Image Editing API
UnificAlly serves 27 image editing models from Black Forest Labs, ByteDance, Google, Alibaba, OpenAI, Kling, xAI and Topaz Labs through one REST API and one API key. Rates start at $0.0072 per image (FLUX 3 Image Klein), and you pay per generation from a prepaid balance with no subscription. Every model below uses the same two calls: POST /v1/tasks to start a job and GET /v1/tasks/{task_id} to fetch the result.
All 27 image editing models on UnificAlly
| Model | Provider | Starting rate |
|---|---|---|
| GPT Image 2.6 API OpenAI Flare for speed, Sunburst for detail: 1K/2K/4K, 15 aspect ratios, 16 reference images. | OpenAI | from $0.039 per image |
| FLUX 3 Image API Black Forest Labs Bounding-box layouts and edits, up to 10 references, 15 aspect ratios plus auto, 768sq to 4K. | Black Forest Labs | from $0.03485 per image |
| FLUX 3 Image Klein API Black Forest Labs 5.6B open weights, text-to-image, editing, up to 4 references, 7 aspect ratios to 4 MP, 16 steps. | Black Forest Labs | from $0.0072 per image |
| FLUX 3 Image Klein Base API Black Forest Labs Undistilled 5.6B FLUX 3 Klein, 50 steps, CFG guidance, negative prompt, 4 refs, 7 ratios to 4 MP. | Black Forest Labs | from $0.0134 per image |
| GPT Image 2.5 API OpenAI Flare for speed, Sunburst for edit precision: 1K/2K/4K, 15 aspect ratios, 16 reference images, transparent output. | OpenAI | from $0.038 per image |
| Grok Imagine 2.0 Image API xAI Quality-focused xAI text-to-image and reference editing with up to 5 input images. | xAI | from $0.02 per image |
| SeeDream 5.0 Pro API ByteDance Up to 10 reference images, 8 aspect ratios, 1K/1.5K/2K output, one image per call. | ByteDance | from $0.0405 per image |
| Nano Banana 2 API Gemini image gen with 1K, 2K, or 4K resolution control and 10 aspect ratios. | from $0.034 per image | |
| Nano Banana 2 Lite API Sub-2s generation, 14 aspect ratios, 1K output, up to 14 reference images. | $0.02 per image | |
| Nano Banana 2.1 API Nano Banana 2.1: 1K, 2K, or 4K output, 5 aspect ratios plus auto, up to 10 references. | from $0.02 per image | |
| Flux.2 Flex API Black Forest Labs Steps, guidance, seed, and prompt upsampling controls, 7 aspect ratios up to 4 MP. | Black Forest Labs | from $0.054 per image |
| Flux.2 Max API Black Forest Labs Maximum quality Flux.2 output, 7 aspect ratios, 0.6-4 MP, up to 10 reference images. | Black Forest Labs | from $0.063 per image |
| Flux.2 Pro API Black Forest Labs Balanced production runs, 7 aspect ratios, 0.6-4 MP, up to 10 reference images. | Black Forest Labs | from $0.027 per image |
| Grok Imagine 1.0 Image API xAI Fast xAI text-to-image and reference editing with up to 5 images. | xAI | $0.01 per image |
| GPT Image 2 API OpenAI T2I or reference editing, 5 aspect ratios, 1K, 2K, or 4K resolution control. | OpenAI | from $0.03 per image |
| Nano Banana Pro API Gemini 3 image gen with 1K, 2K, or 4K, 10 aspect ratios, and reference image support. | from $0.07 per image | |
| Flux.2 Klein 4B API Black Forest Labs 4B Flux.2 Klein, smallest in the line, 7 aspect ratios up to 4MP, reference image support. | Black Forest Labs | from $0.0112 per image |
| Flux.2 Klein 9B API Black Forest Labs 9B Flux.2 Klein, 7 aspect ratios up to 4MP, reference image support. | Black Forest Labs | from $0.012 per image |
| SeeDream 4.0 API ByteDance Up to 6 reference images, 8 aspect ratios, 2K or 4K, returns 4 images per call. | ByteDance | $0.027 per image |
| SeeDream 4.5 API ByteDance Up to 6 reference images, 8 aspect ratios, 2K or 4K, returns 4 images per call. | ByteDance | $0.036 per image |
| Kling 3.0 Omni Image API Kling T2I or editing with up to 10 reference images, 9 aspect ratios incl. auto, and 1K to 4K. | Kling | from $0.0252 per image |
| Kling O1 Image API Kling Reasoning image gen with up to 10 reference images, 9 aspect ratios, and 1K or 2K output. | Kling | $0.0252 per image |
| SeeDream 5.0 Lite API ByteDance Up to 6 reference images, 8 aspect ratios, 2K or 4K, returns 4 images per call. | ByteDance | $0.0315 per image |
| Topaz Image Upscale API Topaz Labs AI image upscale 1x–16x with denoise, sharpen, and face enhancement controls. | Topaz Labs | from $0.035 per image |
| Qwen Image 2.0 API Alibaba T2I plus multi-image fusion editing, 5 aspect ratios, smart prompt rewriting on by default. | Alibaba | $0.0315 per image |
| Qwen Image 2.0 Pro API Alibaba Text rendering, multi-image fusion editing, 5 aspect ratios, highest output in the line. | Alibaba | $0.0675 per image |
| Wan 2.6 Image API Alibaba T2I, editing, or style transfer with 1–4 reference images and 7 aspect ratios. | Alibaba | $0.027 per image |
How to call the Image Editing API
Every model takes the same request: a model ID and an input object. This example uses google/nano-banana-2; swap in any model ID from the table and the input fields from its model page.
# 1. Start a task
curl -X POST https://api.unifically.com/v1/tasks \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "google/nano-banana-2",
"input": {
"prompt": "Replace the background with a sunlit beach",
"image_urls": ["https://example.com/photo.jpg"],
"aspect_ratio": "match_input_image"
}
}'
# 2. Read the result with the task_id from step 1
curl https://api.unifically.com/v1/tasks/TASK_ID \
-H "Authorization: Bearer YOUR_API_KEY"Image Editing API FAQ
- How much does the Image Editing API cost?
- Each model has its own rate, shown in the table above and on the pricing page. The lowest listed rate right now is $0.0072 per image (FLUX 3 Image Klein). You pay per generation from a prepaid balance: no subscription, no monthly minimum, and the balance does not expire. Failed generations are not charged, and a request with dry_run set to true returns the exact price without running the job.
- How do I call these image editing models from code?
- Send POST https://api.unifically.com/v1/tasks with your API key, a model ID (for example google/nano-banana-2) and an input object. The response holds a task_id: poll GET /v1/tasks/{task_id} until the status is completed, or pass a callback_url to receive the result by webhook. The request shape is the same for every model; only the model ID and the input fields change.
- How do I pass the image to edit?
- Put the image URL in the model's input together with a prompt that describes the change. Nano Banana 2, for example, takes an image_urls array and accepts match_input_image as the aspect ratio so the result keeps the source framing. If the image is not hosted yet, upload it to UnificAlly file storage and use the URL it returns.
- Can I try the image editing models before topping up?
- Yes. A new UnificAlly account starts with a $0.50 signup balance, and every model page has a browser playground that runs on it, so you can compare outputs before writing any code. Your first top-up of $25 or more adds a $5 bonus.