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.

6
models
$0.0369
from, per generation
45%
max below list
Price per image, cheapest first
Nano Banana 2$0.037GPT Image 2$0.038Nano Banana Pro$0.074GPT Image 1.5$0.165

Samples from these models

Generated through this API, 2026-09-28

Image editing models, by price per image

ModelVendorCrazyrouter price (per generation)Discount
Nano Banana 2
nano-banana-2
Google$0.0369 / image−45%Try
GPT Image 2
gpt-image-2
OpenAI$0.0377 / image−35%Try
Nano Banana Pro
nano-banana-pro
Google$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 Cloudsee live pricing—Try
Seedream 5.0
doubao-seedream-5-0
ByteDancesee 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

Product photo and e-commerce

GPT Image 2 and Nano Banana Pro keep the product pixel-accurate while changing scene and light.

Style transfer and restyling

Seedream 5 and Qwen Image 2 for illustration, poster and brand-style conversions.

Text in images

GPT Image 2 renders and corrects text most reliably.

Batch variations

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
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.