Image editing API — edit with a reference image
Models that take an input image plus an instruction: replace a background, restyle, extend, fix text. Same OpenAI edits endpoint for all of them.
Crazyrouter is an AI API gateway that serves 6 image-editing models through the OpenAI images/edits endpoint with one key, billed per image from $0.0369, including GPT Image 2 and Nano Banana Pro for reference-image edits.
Samples from these models
Generated through this API, 2026-09-28Image editing models, by price per image
| Model | Vendor | Crazyrouter price (per generation) | Discount | |
|---|---|---|---|---|
| Nano Banana 2 nano-banana-2 | $0.0369 / image | −45% | Try | |
| GPT Image 2 gpt-image-2 | OpenAI | $0.0377 / image | −35% | Try |
| Nano Banana Pro nano-banana-pro | $0.0737 / image | −45% | Try | |
| GPT Image 1.5 gpt-image-1.5 | OpenAI | $0.165 / image | — | Try |
| Qwen Image 2.0 qwen-image-2.0 | Alibaba Cloud | see live pricing | — | Try |
| Seedream 5.0 doubao-seedream-5-0 | ByteDance | see live pricing | — | Try |
Prices come from the live billing table and already include the Crazyrouter discount; list prices are each vendor's public rate, for comparison only.
What is a image editing API?
Image editing (image-to-image) sends an existing picture and a text instruction and gets back a modified picture. It is how product-photo pipelines, avatar tools and ad-creative generators work; prompt adherence on the untouched regions is the quality bar.
How to choose
GPT Image 2 and Nano Banana Pro keep the product pixel-accurate while changing scene and light.
Seedream 5 and Qwen Image 2 for illustration, poster and brand-style conversions.
GPT Image 2 renders and corrects text most reliably.
Nano Banana 2 for cheap variants once a hero image is approved.
Edit an image
Swap model for any row in the table; the example uses nano-banana-2.
curl https://api.crazyrouter.com/v1/images/edits \ -H "Authorization: Bearer $CRAZYROUTER_API_KEY" \ -F model="nano-banana-2" \ -F image="@input.png" \ -F prompt="replace the background with a white studio sweep"
FAQ
What endpoint handles edits?
POST https://api.crazyrouter.com/v1/images/edits as multipart form: model, image, optional mask, prompt.
Can I pass more than one reference image?
Where the upstream model supports it (GPT Image 2, Nano Banana Pro) you can send multiple image parts.
How is editing billed?
Per output image, same rate as generation for that model; see the table.
Which editing model is cheapest?
Nano Banana 2 at $0.0369 per image as of the latest sync.
Are uploads kept?
Inputs are used for the request only and are not added to any training set.





