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

ModelArena scoreOfficial priceSite discountRelease date
GPT Image 21461.5
Evaluation details
Evaluated model:
GPT-Image-2 (Medium)
Confidence interval:
1458.6–1464.5
Battles:
371,930
Not verified−35%
Nano Banana 2Not matched$0.067 / image · 1K−45%
GPT Image 1.51367.3
Evaluation details
Evaluated model:
GPT-Image-1.5 (High Fidelity)
Confidence interval:
1364.7–1369.8
Battles:
682,072
$0.009 / image · 1024², low—
Nano Banana Pro1390.8
Evaluation details
Evaluated model:
Gemini 3 Pro Image (nano-banana-pro, 2K)
Confidence interval:
1388.2–1393.3
Battles:
682,032
$0.134 / image · 1K / 2K−45%
Qwen Image 2.0Not matchedNot verifiedNot verifiedNot verified
Seedream 5.0Not matchedNot verifiedNot verifiedNot verified

Text prices: USD per 1M tokens (input / output), standard base tier. Image examples show output cost; input may be billed separately. Site discounts come from the current billing configuration. Dates cite official announcements or API release notes, including previews; they are not listing dates on this site.

Leaderboard: Image editing · Published:

Official Arena data; selected models and scores rounded to one decimal. Higher is better within the same leaderboard and publication date; scores are not percentages or comparable across tasks. Evaluation settings may differ from your API requests. Unmatched versions are left blank.

Source: Arena · License: CC BY 4.0

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

Open a model's detail page to copy its API model ID.

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.

Guides and comparisons

Podcast

AI Dev Tools: The Crazyrouter Podcast

Short episodes for developers on AI APIs, gateways, cost control and coding tools.

Latest episodes

  • EP196 · Oct 29, 2026 · 6:53

    AI API Security Posture — Turn Controls Into Continuous Evidence

    A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.

  • EP195 · Oct 28, 2026 · 7:21

    AI API Policy Drift — Detect When Production Rules Stop Matching Intent

    A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.

Episodes with written show notes →