How to Choose an AI Image API: Nano Banana, GPT, Seedream, Qwen
Four image API families on DreamTo compared by request format, output size, reference images, editing and price unit, with a model pick for each job.

On this page
Pick the image API by the job. For a poster with exact lettering or a composition that must follow instructions closely, call Nano Banana Pro. For faster, cheaper iteration at up to 4K, call Nano Banana 2.1. For existing OpenAI image code, masked edits, transparent PNGs or SVG, call GPT Image 2.6. For multi-round edits, native alpha and layer splitting, call Seedream 5.5. For Chinese or English text in the image and up to six candidates per request, call Qwen Image 3.0.
All of them work with one DreamTo API key, but each family keeps its vendor's request format, so switching models means switching request shapes. Prices are as of December 2026; current ones are on /prices.
The four families at a glance#
| Nano Banana (Pro, 2.1) | GPT Image 2.6 | Seedream 5.5 | Qwen Image 3.0 | |
|---|---|---|---|---|
| Model IDs | gemini-3-pro-image, gemini-nano-banana-2.1 | gpt-image-2.6-flare, gpt-image-2.6-sunburst | seedream-5.5 | qwen-image-3.0, qwen-image-3.0-pro |
| API style | Gemini generateContent | OpenAI Images (/v1/images/generations, /v1/images/edits) | ModelArk-style /api/v3/images/generations | DashScope multimodal-generation |
| Documented max output | 4K (imageSize) | 3840 px longest edge | 2K tier, up to 4,624,220 pixels | 4,194,304 pixels (2048*2048) |
| Images per request | Not documented | n 1 to 10 | 1 (image generation) | n 1 to 6 |
| Reference images | Up to 14 | Repeated image[] uploads on edits | Up to 10 | 1 to 3 |
| Editing | Conversational multi-turn editing | /v1/images/edits, with mask | Multi-turn editing, layer decomposition | 1 to 3 images plus an instruction |
| Transparent output | Not documented | background: transparent (png / webp) | background: transparent (png) | Not documented |
| Price unit | Per request | Per 1M tokens (Economy: per request) | Per image | Per image |
"Not documented" means the docs list no parameter for it, not that the model cannot do it.
How each family sets the output size#
- Nano Banana:
imageSizeof1K(default),2Kor4K, with an uppercase K, plusaspectRatio. - GPT Image 2.6:
sizeofauto(default) orWIDTHxHEIGHT. Both edges are multiples of 16, the longest edge is at most 3840, the long-to-short ratio is at most 3:1, and total pixels fall between 655,360 and 8,294,400. - Seedream 5.5: a tier (
1K,1.5Kor the default2K), orWIDTHxHEIGHTbetween 921,600 and 4,624,220 total pixels. - Qwen Image 3.0:
WIDTH*HEIGHT, joined with an asterisk, with total pixels between512*512and2048*2048and an aspect ratio from 1:8 to 8:1.
If the final asset has to be 4K, that leaves Nano Banana and GPT Image. Up to 2K, all four are in range.
Nano Banana: Gemini-style requests, 4K, up to 14 references#
Both models use the Gemini generateContent request against https://api.dreamto.ai, with the key in Authorization: Bearer or x-goog-api-key. The prompt and the reference images go in contents; the output controls go in generationConfig.
curl -X POST "https://api.dreamto.ai/v1beta/models/gemini-3-pro-image:generateContent" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "user", "parts": [ { "text": "A poster for a night market, the headline reads NIGHT MARKET in bold hand-cut letters, warm lantern light, vertical layout" } ] } ], "generationConfig": { "responseModalities": ["IMAGE"], "imageConfig": { "aspectRatio": "2:3", "imageSize": "2K" } } }'The image comes back Base64-encoded in an inlineData part. Reference images go in as inlineData (PNG, JPEG, WEBP, HEIC or HEIF) or as a public https link in fileData.fileUri.
Nano Banana Pro (gemini-3-pro-image) thinks before it renders; thinking is always on and cannot be disabled. The catalog calls it the premium Nano Banana tier and Google's best for in-image text. It takes up to 14 references (up to 6 object images, 5 character images and 3 style references) and 10 aspect ratios.
Nano Banana 2.1 (gemini-nano-banana-2.1) keeps Flash-tier speed and cost. It takes up to 14 references (up to 10 object images and 4 character images) and 14 aspect ratios, including 1:4, 4:1, 1:8 and 8:1 for banners and panoramas. Pro does not list those four.
Limits: systemInstruction, safetySettings and tools (Google Search grounding) are not supported yet. They return 400 and nothing is charged, so put instructions in the prompt. Only generateContent is covered; the Batch API and Files API references are not.
Docs: Nano Banana Pro and Nano Banana 2.1. See also the Nano Banana Pro API guide and the 2.1 vs Pro comparison.
GPT Image 2.6: OpenAI SDK, transparency, SVG#
GPT Image 2.6 comes in two specs that share the same endpoints and parameters. Flare (gpt-image-2.6-flare) is the fast one, built for interactive editing. Sunburst (gpt-image-2.6-sunburst) is the detail model, and the one the catalog lists with quality up to xhigh and max. The request follows the OpenAI Images API, so the official OpenAI SDK works once base_url points at https://api.dreamto.ai/v1.
import base64import osfrom openai import OpenAIclient = OpenAI(base_url="https://api.dreamto.ai/v1", api_key=os.environ["DREAMTO_API_KEY"])result = client.images.generate( model="gpt-image-2.6-flare", prompt="A sticker of a red paper lantern, flat colors, clean outline", size="1024x1024", quality="medium", background="transparent", output_format="png",)with open("lantern.png", "wb") as f: f.write(base64.b64decode(result.data[0].b64_json))The output options set this family apart. background takes auto, opaque or transparent; transparency needs png or webp. output_format also accepts gif for an animation and svg for vectors. SVG is for generations only, with n of 1, and requires svg.model, the text model that writes the markup; without it the request returns 400 missing_required_parameter. complexity (low, medium, high; default high) sets how much the model plans before rendering, independently of quality.
Limits: edits go to /v1/images/edits as multipart/form-data with repeated image[] fields and, for masked edits, mask. The JSON images form is not supported yet. The GIF frame count and frame duration parameters are not supported either, so GIFs come back with the default 9 frames. Images are returned as Base64 in data[].b64_json.
The standard models are billed per 1M tokens, and the docs give no per-image figure. The Economy routes (gpt-image-2.6-flare-economy, gpt-image-2.6-sunburst-economy) are the same models billed per request, at one price for every size, for batch jobs that can wait longer. Endpoints and parameters are the same.
Docs: GPT Image 2.6 and GPT Image 2.6 Economy. See also the GPT Image 2.6 API guide.
Seedream 5.5: multi-round edits, alpha and layers#
Seedream 5.5 uses a ModelArk-style endpoint, POST https://api.dreamto.ai/api/v3/images/generations, with model set to seedream-5.5. The OpenAI SDK works too, with base_url https://api.dreamto.ai/api/v3 and the vendor parameters in extra_body. Requests are synchronous and return the image directly, so there is no polling.
curl -X POST "https://api.dreamto.ai/api/v3/images/generations" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "seedream-5.5", "prompt": "A flat-style app icon of a paper boat, centered, transparent background", "size": "2K", "output_format": "png", "background": "transparent", "response_format": "url", "watermark": false }'The docs feature three capabilities:
- Multi-round editing. Pass the previous output back as
imagefor the next turn. The docs describe it as very stable, preserving untouched regions at pixel level. - Native RGBA. Set
backgroundtotransparentandoutput_formattopng; it works from text alone or from up to 10 reference images. - Layer decomposition.
layer_decomposition: truesplits one image into a base image plus up to 99 transparent layers, with optional rich-text OCR for regular text layers.
Limits: an image generation request returns one image, the top tier is 2K, and image sets, streaming and web search are not supported. watermark defaults to true and adds an "AI generated" mark in the lower-right corner unless you set it to false. Returned URLs are valid for 24 hours. A layer decomposition with many layers can take several minutes, so set the client read timeout to at least 300 seconds.
Docs: Seedream 5.5. See also the Seedream 5.5 API guide.
Qwen Image 3.0: DashScope format, one price for 1K and 2K#
Qwen Image 3.0 follows the DashScope protocol at POST https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation. The same endpoint serves qwen-image-3.0, the standard model that balances quality and speed, and qwen-image-3.0-pro, the flagship. The prompt sits under input.messages[].content[] and the controls under parameters.
curl -X POST "https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen-image-3.0", "input": { "messages": [ { "role": "user", "content": [ { "text": "A bakery storefront at dawn, the sign reads FRESH BREAD, photorealistic" } ] } ] }, "parameters": { "size": "1328*1328", "n": 2, "prompt_extend": true, "watermark": false } }'Image links come back under output.choices[0].message.content[].image. n returns up to 6 images per request. Prompts can be Chinese or English, and the docs feature accurate Chinese and English text rendering. prompt_extend rewrites short prompts and is on by default. enable_thinking is on by default too; it needs prompt_extend: true and takes longer. For editing, put 1 to 3 images in content[].image next to the instruction.
Limits: the output is PNG, and the agent value of prompt_extend_mode is text-to-image only. The links are valid for 24 hours. Calls are synchronous, and the docs advise a client read timeout of at least 180 seconds.
Docs: Qwen Image 3.0. See also the Qwen Image 3.0 API guide.
Prices as of December 2026#
List prices in USD as of December 2026. They change, so check /prices before you budget.
| Model | Unit | Price |
|---|---|---|
| Nano Banana 2.1 | Per request | $0.01 at 1K, $0.02 at 2K, $0.03 at 4K |
| Nano Banana Pro | Per request | $0.03 at 1K and 2K, $0.05 at 4K |
| GPT Image 2.6 Flare and Sunburst | Per 1M tokens | $2 text input, $3.2 image input, $12 image output |
| GPT Image 2.6 Flare Economy and Sunburst Economy | Per request | $0.004 |
| Seedream 5.5 | Per image | $0.016 at 1.5K or lower, $0.028 above 1.5K, $0.0064 per input image |
| Qwen Image 3.0 | Per image | $0.021 at the 1K and 2K tiers, $0.0021 per input image |
| Qwen Image 3.0 Pro | Per image | $0.028 at the 1K tier, $0.0525 at the 2K tier, $0.0021 per input image |
The units do not compare directly. A token price is a rate, and the docs note that the xhigh and max quality tiers use more output tokens. Seedream and Qwen also bill each reference image as an input image. Qwen's 2K tier starts above 2,250,000 pixels, and Seedream's higher price above 2,601,123 pixels.
Which model for which job#
| Job | Start with | Why |
|---|---|---|
| Poster or infographic with exact lettering | Nano Banana Pro | Catalog: Google's best for in-image text; up to 4K |
| Drafts and iteration | Nano Banana 2.1 | $0.01 per request at 1K, up to 4K, wide ratios |
| Product shot edited with a mask or a logo | GPT Image 2.6 Flare | /v1/images/edits, mask, repeated image[] inputs |
| Sticker, icon or cutout | GPT Image 2.6 or Seedream 5.5 | Both document background: transparent |
| Vector artwork | GPT Image 2.6 Sunburst | The only family here with output_format: svg |
| The same image edited over many turns | Seedream 5.5 | Documented multi-round consistency |
| A design split into layers | Seedream 5.5 | Layer decomposition, up to 99 layers |
| Chinese or English text, several candidates per call | Qwen Image 3.0 | Docs feature Chinese and English text rendering; n up to 6 |
| Batch jobs that can wait | GPT Image 2.6 Economy | $0.004 per request at every size |
| Existing OpenAI image code | GPT Image 2.6 | Same SDK; change base_url and model |
| Existing ModelArk or DashScope code | Seedream 5.5 / Qwen Image 3.0 | Same request body; replace the base URL and API key |
A reasonable default: prototype on Nano Banana 2.1, switch to Nano Banana Pro for the final render when in-image text has to be exact, and call GPT Image, Seedream or Qwen for the features only they document.
Model pages: Nano Banana Pro, GPT Image 2.6 Flare, Seedream 5.5 and Qwen Image 3.0; the full catalog is at /models. Before you write code, try a prompt in the Nano Banana Pro playground, the GPT Image 2.6 Flare playground, the Seedream 5.5 playground or the Qwen Image 3.0 playground. For prompt wording, see the product photo prompts and the Nano Banana prompt guide.
Errors and charges#
The docs for all four families state that invalid requests and failed generations are not charged. A request the gateway rejects, such as one with an unsupported parameter or a malformed body, returns 400 before the model is called. Seedream and Qwen check your balance against the most the request can produce and return 402 if it is too low.
Branch on the HTTP status first and the error code second, not on the message text. Qwen's validation and model errors keep DashScope's code and message, for example 400 InvalidParameter; each docs page has error examples for its endpoint. The errors page covers status codes and retries, and authentication covers keys.
FAQ#
Which AI image API supports 4K output?#
Nano Banana Pro and Nano Banana 2.1 take imageSize of 1K, 2K or 4K. GPT Image 2.6 accepts a size up to 3840 pixels on the longest edge. Seedream 5.5 stops at its 2K tier, and Qwen Image 3.0 at 2048*2048 total pixels.
How many reference images does each model take?#
Both Nano Banana models take up to 14. Seedream 5.5 takes up to 10, and Qwen Image 3.0 takes 1 to 3 for editing. GPT Image 2.6 edits take repeated image[] uploads; its docs page does not state a maximum.
Can I use the OpenAI SDK for image generation on DreamTo?#
Yes for GPT Image 2.6: set base_url to https://api.dreamto.ai/v1. Seedream 5.5 also works, with base_url https://api.dreamto.ai/api/v3 and the vendor parameters in extra_body. Nano Banana uses the Gemini generateContent format and Qwen the DashScope format.
Which model can output a transparent background?#
The docs list background: transparent for GPT Image 2.6 (with png or webp) and for Seedream 5.5 (with png). The Nano Banana and Qwen docs list no transparency parameter.
How is image generation priced?#
As of December 2026, Nano Banana is billed per request, Seedream and Qwen per image, and the standard GPT Image 2.6 models per 1M tokens, with the Economy routes per request. Current numbers are on /prices.
Are failed generations charged?#
No. The docs for all four families state that invalid requests and failed generations are not charged.


