Chat GPT AI Image Editor (2026): Edits, Cost and API Code
Unicorn API Team · · 11 min read
The Chat GPT AI image editor is the part of ChatGPT that lets you upload a photo, type what you want changed, and get an edited version back in the same conversation. No layers, no brushes, no selection tools to learn. This guide covers how it works under the hood, how to write edit requests that do not wreck the parts of the photo you like, where it runs out of road, and how to build the same kind of editor yourself with an API when you need volume, automation or tighter control.
What is the Chat GPT AI image editor?
Since March 2025, ChatGPT has been able to generate and edit images natively inside a chat, replacing the older setup where it handed prompts to DALL-E. You attach an image, describe a change (“remove the person in the background”, “make it look like a watercolour”, “put this mug on a marble counter”), and the model returns a new image.
Three terms help explain what is actually happening:
- Image-to-image: a model that takes an existing image plus a text instruction and produces a new image. This is what the Chat GPT AI image editor does on every edit.
- Reference image: an input image the model uses as a guide for content, style or identity. Your uploaded photo is a reference image; you can add more, such as a logo or a second product shot.
- Inpainting (masked editing): regenerating only a selected region while leaving the rest untouched. A mask is a black-and-white image that marks which pixels may change.
The key point: a prompt-only editor usually redraws the whole image, guided by your original. That is why it can relight a scene or change a style in one step, and also why small details such as a face, a logo or a line of text can shift slightly even when you only asked for a new background. Knowing this changes how you write requests.
OpenAI sells its image models to developers under the GPT Image name. You cannot call the ChatGPT app itself from code, but you can call GPT Image models, and several competing editing models, through an API.
How to use ChatGPT for image editing
The Chat GPT AI image editor rewards short, specific instructions. This loop works for most photos:
- Upload the best source you have. Sharper, larger, well-lit photos give the model more to preserve. A blurry 400-pixel thumbnail will come back as a confident guess.
- Ask for one change per message. “Replace the sky with a clear blue sky” beats “replace the sky, brighten the grass, remove the car and make it cinematic”.
- Say what must stay the same. End with an explicit lock: “Keep the person’s face, pose and clothing exactly the same. Do not change the text on the sign.”
- Describe the result, not the process. “The table is empty except for the laptop” works better than “erase the cups”.
- Refine in small steps. If the edit is 80% right, ask for the remaining 20% (“slightly warmer light, same composition”) instead of restarting.
- Use a selection tool if your version offers one. Marking the area you want changed limits drift elsewhere in the image.
- Download and check at full size. Zoom in on hands, text and edges before you publish.
Prompt patterns that work in the Chat GPT AI image editor
- Background swap: “Place this product on a plain light-grey studio background with a soft shadow underneath. Keep the product, its colours and its label exactly as they are.”
- Object removal: “The beach is empty except for the two people in the foreground. Keep their faces and clothing unchanged.”
- Style change: “Redraw this photo as a flat vector illustration with five colours. Keep the composition and the position of every object.”
- Text fix: “Change the sign text to read OPEN DAILY in the same font style and colour. Change nothing else.”

Where the Chat GPT AI image editor falls short
For a handful of personal photos, the Chat GPT AI image editor is hard to beat for convenience. It gets awkward in a few predictable situations:
- Drift on repeated edits. Each round can regenerate the image, so after five or six edits faces and fine details can wander from the original. Going back to the original upload for a fresh attempt often works better than stacking edits.
- Volume. Editing 200 product photos means 200 uploads, 200 prompts and 200 downloads by hand, under whatever usage limits your plan has.
- No automation. You cannot plug the chat app into a store, a CMS or a design pipeline.
- Limited output control. You get less say over exact resolution, aspect ratio, number of variations and masks than you would through an API.
- One model. Some edits suit a different model better: a cheaper fast model for drafts, a mask-based model for surgical fixes, or a stylised model for illustration work.
None of these are flaws in the model so much as limits of a chat interface. When they start to bite, the answer is either a different app or an API.
What AI can edit images like ChatGPT?
Plenty of tools now offer prompt-based editing. They differ mostly in the interface around the model and how much control you keep. Here is how the common alternatives to the Chat GPT AI image editor compare:
| Tool | How you edit | Best for | Main trade-off |
|---|---|---|---|
| ChatGPT | Upload and describe in chat | Quick one-off edits, style changes | Manual, one image at a time |
| Adobe Firefly and Photoshop Generative Fill | Select an area, then prompt | Designers who want layers and precise selections | Requires learning the Adobe tools |
| Canva AI editing | Prompt and click tools inside a design | Social posts and marketing layouts | Less control over the raw image |
| Google Photos (Magic Eraser, Unblur) | Tap to remove or fix | Phone photos, removing distractions | Narrow set of edit types |
| Image editing APIs (via Unicorn API) | Send image URLs and a prompt in code | Batches, apps, automated pipelines | Needs a few lines of code |
Editing models you can call directly
If you want ChatGPT-style editing without the chat window, these models accept a source image plus an instruction. All of them run through one Unicorn API key and are billed in the same credits:
- GPT Image 2.5 Flare: OpenAI’s faster GPT Image 2.5 variant for everyday generation and edits at 1K, 2K or 4K, with up to 16 reference images. The closest match to the Chat GPT AI image editor experience for most jobs.
- GPT Image 2.5 Sunburst: the premium GPT Image 2.5 variant, with tighter control and more polished output. Slower than Flare, same price.
- GPT Image 1.5: strong prompt adherence and legible text, low, medium or high quality, optional transparent background, up to 4 reference images.
- Nano Banana 2 Lite: Google’s cheapest Gemini image model, fast 1K images and edits with up to 10 reference images. Good for drafts and high-volume work. We cover the whole family in our Nano Banana AI image editor guide.
- Grok Imagine 2: xAI’s model for vivid, stylised images and edits with up to 5 reference images.
- Qwen 2.1 Image to Image: takes source images plus an optional mask URL, so you can restrict changes to one region (true inpainting), at 1K or 2K.
- Qwen3 Image to Image: image-to-image with a negative prompt field, useful for telling the model what to avoid.
- Grok Imagine Image 2.0 Segment Edit: edits selected segments of an earlier Grok image, using that job’s task ID and a list of segment indexes. Check its model page for the exact workflow.
You can try any of them without code in the image playground before you commit to one.
Building your own Chat GPT AI image editor with an API
The API version of the Chat GPT AI image editor is a simple loop: submit a job with your photo and instruction, poll until it finishes, then download the result. Media jobs are asynchronous, which means the first request returns a job ID immediately and the image arrives a little later.
Step 1: get a key
Create a key on the API keys page and export it as UNICORN_API_KEY. Your source image needs to be reachable by URL (a public link or a signed URL from your storage bucket).
Step 2: submit an edit with curl
curl https://api.unicornapi.net/v1/jobs \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5-flare",
"input": {
"prompt": "Place this sneaker on a plain light-grey studio background with a soft shadow. Keep the shoe, its colours and its logo exactly the same.",
"ref_images": ["https://example.com/photos/sneaker-01.jpg"],
"resolution": "2K",
"aspect_ratio": "1:1"
}
}'
The response includes the job ID. Poll GET /v1/jobs/{id} until status is "succeeded", then read outputs[0].url.
Step 3: a complete Python script for batch edits
This script applies the same instruction you would type into the Chat GPT AI image editor to every image in a list, and prints the output URLs. It handles polling, failures and a timeout.
import os
import time
import requests
API = "https://api.unicornapi.net"
HEADERS = {
"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}",
"Content-Type": "application/json",
}
def edit_image(image_url, instruction, model="gpt-image-2.5-flare",
resolution="2K", aspect_ratio="1:1", timeout_s=300):
body = {
"model": model,
"input": {
"prompt": instruction,
"ref_images": [image_url],
"resolution": resolution,
"aspect_ratio": aspect_ratio,
},
}
r = requests.post(f"{API}/v1/jobs", json=body, headers=HEADERS, timeout=30)
r.raise_for_status()
job_id = r.json()["id"]
deadline = time.time() + timeout_s
while time.time() < deadline:
job = requests.get(f"{API}/v1/jobs/{job_id}", headers=HEADERS, timeout=30).json()
status = job.get("status")
if status == "succeeded":
return job["outputs"][0]["url"]
if status in ("failed", "canceled", "cancelled"):
raise RuntimeError(f"Job {job_id} ended with status {status}: {job}")
time.sleep(3)
raise TimeoutError(f"Job {job_id} did not finish in {timeout_s}s")
if __name__ == "__main__":
instruction = (
"Place this product on a plain light-grey studio background with a soft "
"shadow underneath. Keep the product, its colours and its label exactly the same."
)
photos = [
"https://example.com/photos/sneaker-01.jpg",
"https://example.com/photos/sneaker-02.jpg",
"https://example.com/photos/sneaker-03.jpg",
]
for url in photos:
try:
print(url, "->", edit_image(url, instruction))
except Exception as err:
print(url, "FAILED:", err)
Step 4: switch to masked editing when drift matters
If the product or face must not change by a single pixel, which a prompt-only Chat GPT AI image editor cannot guarantee, use a model with a mask. Qwen 2.1 Image to Image accepts a mask_url pointing to a black-and-white image that marks the editable area:
{
"model": "qwen2-1-image-to-image",
"input": {
"prompt": "A plain light-grey studio background with a soft shadow",
"image_urls": ["https://example.com/photos/sneaker-01.jpg"],
"mask_url": "https://example.com/masks/sneaker-01-background.png",
"resolution": "1K"
}
}
Send that body to the same POST /v1/jobs endpoint and poll the same way. Full field references live in the API documentation, and if you work in Cursor or Claude Code you can call these models straight from your editor through the MCP integration.

How much does an AI image edit cost?
Unlike the Chat GPT AI image editor, where what you can do depends on your subscription’s limits, an API charges per image. Unicorn API prices every request in credits. Monthly plans give credits at $0.01 each (Starter $25, Creator $50, Studio $100, Pro $200 per month). Top-up credits cost $0.015 each and never expire. Prices are per output image and are rounded up to whole credits, so a 4.8-credit request bills as 5.
| Model | Setting | Credits per image | Cost on a plan | Cost with top-ups |
|---|---|---|---|---|
| GPT Image 1.5 | low quality | 3 | $0.03 | $0.045 |
| Nano Banana 2 Lite | default | 4 | $0.04 | $0.06 |
| Grok Imagine 2 | default | 4 | $0.04 | $0.06 |
| Qwen 2.1 Image to Image | 1K / 2K | 4 / 8 | $0.04 / $0.08 | $0.06 / $0.12 |
| Qwen3 Image to Image | any resolution | 5 (4.8 rounded up) | $0.05 | $0.075 |
| GPT Image 2.5 Flare or Sunburst | 1K / 2K / 4K | 6 / 10 / 16 | $0.06 / $0.10 / $0.16 | $0.09 / $0.15 / $0.24 |
| GPT Image 1.5 | high quality | 22 | $0.22 | $0.33 |
Worked example: a 200-photo catalogue
Say you sell 200 products and want every photo on a clean studio background. Run a draft pass with Nano Banana 2 Lite at 4 credits each: 800 credits, or $8 on a plan. Review the drafts, then run the final pass on GPT Image 2.5 Flare at 2K for 10 credits each: 2,000 credits, or $20. The whole job fits inside the Starter plan’s 2,500 credits with room for about 70 retries at 2K. Doing the same in the Chat GPT AI image editor would mean 400 manual uploads.
Before running a large batch, ask POST /v1/models/price for the exact cost of a request so there are no surprises. Plan details are on the pricing page.
Free AI image editors and “no restrictions”: what is realistic
Many people searching for a Chat GPT AI image editor really want one that is free, unlimited and unfiltered. It helps to know why that combination does not exist.
- Free: image models run on expensive GPUs, so free AI tiers always have limits: a daily cap, lower resolution, watermarks or slow queues. ChatGPT, Canva and Google Photos all offer some free AI editing on those terms. Classic editors like GIMP are fully free, but you do the editing by hand.
- Unlimited: “unlimited” plans usually throttle you after heavy use. Pay-per-edit pricing is more honest at volume because you only pay for what you run.
- No restrictions: every hosted service enforces a content policy, including APIs. What an API gives you is technical freedom (resolution, masks, batch size, choice of model), not freedom from the rules. Sites that promise “no restrictions, no sign-up” are worth treating with suspicion, especially if you are uploading photos of real people.
A sensible split: use the free tier of the Chat GPT AI image editor to learn what prompt-based editing can do, then move to paid credits once you are editing more than a few images a week.
Common mistakes with AI image editors
Whether you use the Chat GPT AI image editor or an API, the same mistakes cause most bad results:
- Stacking many changes in one prompt. The model balances competing requests and gets each one slightly wrong. One change per request.
- Forgetting the “keep” clause. If you do not say the face, logo or text must stay identical, the model treats them as fair game.
- Editing an edit of an edit. Quality degrades with each regeneration. Go back to the original photo when a chain of edits starts to drift.
- Using a whole-image model for a pixel-exact fix. If one area must change and nothing else may, use a mask-based model such as Qwen 2.1 Image to Image.
- Paying top resolution for drafts. Run cheap 1K drafts first, then spend 2K or 4K credits only on the versions you keep.
- Not checking text and hands at full size. Thumbnails hide errors. Zoom in before publishing.
- Ignoring aspect ratio. Ask for the shape you need (1:1 for marketplaces, 9:16 for stories) instead of cropping afterwards and losing the composition.
For a few personal photos, the Chat GPT AI image editor is the fastest path from idea to result. When you need batches, masks, a choice of models or an editor inside your own product, the same kind of editing is a single API call away. Browse the full model catalog to compare every image model side by side.
Frequently asked questions
How do I use ChatGPT for image editing?
Upload your photo in a chat, then describe one change at a time in plain language, for example "replace the grey sky with a clear blue one, keep everything else the same." Say what must stay unchanged, such as faces, text or layout. Review the result and ask for small follow-up tweaks rather than rewriting the whole request. When you are happy, download the image from the chat.
What AI can edit images like ChatGPT?
Several tools take a photo plus a text instruction. Adobe Firefly and Photoshop's Generative Fill work inside a layer-based editor, Canva adds AI edits to its design tool, and Google Photos offers Magic Eraser and Unblur. Developers can call the same kind of models directly by API, such as GPT Image 2.5 Flare, Nano Banana 2 Lite, Grok Imagine 2 or Qwen image-to-image models, all through one Unicorn API key.
Which photo editor is 100% free?
Traditional open-source editors such as GIMP are completely free, but they do not edit from text prompts. AI editors run on paid GPUs, so free AI tiers come with daily or monthly limits, lower resolution or slower queues. ChatGPT, Canva and Google Photos all offer some free AI editing with limits. For predictable volume, paying per edit is usually cheaper than upgrading a whole subscription.
Is there an AI image editor with no restrictions?
No hosted AI image editor runs without rules. Every service that runs models on its own servers enforces a content policy, and most block edits of real people in misleading or explicit ways. What varies is how strict the filters are and how much control you get over resolution, masks and batch size. An API gives you far more control over the output, but the content policies still apply.
How much does an AI image edit cost through an API?
On Unicorn API, edits cost between 3 and 22 credits depending on the model and quality. Nano Banana 2 Lite and Grok Imagine 2 cost 4 credits per image, GPT Image 2.5 Flare costs 6, 10 or 16 credits at 1K, 2K or 4K. Plan credits cost $0.01 each, so a 2K Flare edit is $0.10. You can check the exact price before running a request.