Skip to main content

Image Generation

Icon Legend

Input: Text · Image

Gemini Nano Banana​

For detailed usage, refer to the Nano Banana API Guide.

ProviderModel IDCapabilitiesEndpointPrice (per 1M Tokens)Launch DateDeprecation DateCapacitySupported RegionsNotes
Vertex AIturing/gemini-2.5-flash-imageInput:
Output:
Tools: Not supported
v1/chat/completionsInput: $0.3
Output: $30
2025-09-12-Vertex AI multi-projectChina region
Europe region
North America region
-
Vertex AIturing/gemini-3-pro-imageInput:
Output:
Tools: Not supported
v1/chat/completionsInput: $2
Output: $60
2025-09-12-Vertex AI multi-projectChina region
Europe region
North America region
-
Vertex AIturing/gemini-3.1-flash-lite-imageInput:
Output:
Tools: Not supported
v1/chat/completionsInput: $0.25
Text output: $1.50
Image output: $30
2026-07-01-Vertex AI multi-projectChina region
Europe region
North America region
Nano Banana 2 Lite, up to 1K output

Azure OpenAI​

ProviderModel IDCapabilitiesEndpointPrice (per image)Launch DateDeprecation DateCapacitySupported RegionsNotes
Azureturing/gpt-image-2.5-sunburstInput:
Output:
Tools: Not supported
v1/images/generations
v1/images/edits
Billed per token (per 1M tokens):
Text input: $5.00 / cached $1.25
Image input: $8.00 / cached $2.00
Image output: $30.00
2026-09-11-GlobalChina region
Europe region
North America region
GPT Image 2.5 base model, quality and editing precision first; quality adds xhigh / max. See GPT-image-2.5
Azureturing/gpt-image-2.5-flareInput:
Output:
Tools: Not supported
v1/images/generations
v1/images/edits
Billed per token (per 1M tokens):
Text input: $5.00 / cached $1.25
Image input: $8.00 / cached $2.00
Image output: $30.00
2026-09-11-GlobalChina region
Europe region
North America region
GPT Image 2.5 small model, speed first, image quality comparable to GPT-image-2; same parameters as Sunburst
Azureturing/gpt-image-2Input:
Output:
Tools: Not supported
v1/images/generationsBilled per token (per 1M tokens):
Text input: $5.00 / cached $1.25
Image input: $8.00 / cached $2.00
Image output: $30.00
2026-04-23-GlobalChina region
Europe region
North America region
Public preview. Supports arbitrary resolution (4K) and optional transparent background
Azureturing/gpt-image-1Input:
Output:
Tools: Not supported
v1/images/generationsLow Quality: $0.011 (1024x1024) $0.016 (1024x1536) $0.016 (1536x1024)
Medium Quality: $0.042 (1024x1024) $0.063 (1024x1536) $0.063 (1536x1024)
High Quality: $0.167 (1024x1024) $0.25 (1024x1536) $0.25 (1536x1024)
2025-06-19-GlobalChina region
Europe region
North America region
-
Azureturing/dall-e-3Input:
Output:
Tools: Not supported
v1/images/generations$0.04 (1024x1024)
$0.08 (1024x1536)
$0.08 (1536x1024)
2025-04-222026-02-18GlobalChina region
Europe region
North America region
-

GPT-image-2.5 Technical Specifications​

Both 2.5 models share GPT-image-2's endpoints and size rules. The differences: quality adds the xhigh / max tiers (default auto), resolutions above 2560x1440 are labelled experimental by OpenAI; OpenAI's docs list background="transparent" as supported, but on Azure it does not take effect yet (measured). See Image Generation API → GPT-image-2.5.

GPT-image-2 Technical Specifications​

Public preview. See Image Generation API → GPT-image-2 for details.

Resolution Support​

gpt-image-2 is no longer limited to a fixed set of resolutions. You can pass any size string in the format <w>x<h>, subject to the following constraints:

  • Both sides must be integer multiples of 16 pixels
  • Longest side ≤ 3840 px (4K supported)
  • Aspect ratio ≤ 3:1
  • Total pixel count between 655,360 and 8,294,400

You may also pass size="auto" to let the model choose the size automatically.

Image Generation Capabilities​

CapabilityDescription
Text to imagePOST /v1/images/generations
Transparent backgroundbackground="transparent" (requires output_format="png")

ByteDance Volcano​

ProviderModel IDCapabilitiesEndpointPrice (per image)Launch DateDeprecation DateCapacitySupported RegionsNotes
ByteDance Volcanodoubao-seedream-4-0-250828Input:
Output:
Tools: Not supported
v1/images/generations¥0.2 per image2025-12-12-ByteDance VolcanoChina region-
ByteDance Volcanodoubao-seedream-4-5-251128Input:
Output:
Tools: Not supported
v1/images/generations¥0.25 per image2025-12-12-ByteDance VolcanoChina region-
ByteDance Volcanodoubao-seedream-5-0-260128Input:
Output:
Tools: Web search
v1/images/generations¥0.22 per image2026-01-28-ByteDance VolcanoChina regionThis is Seedream 5.0-lite. Supports web search (web_search), streaming and batch generation (n). The older id doubao-seedream-5-0-lite-260128 still works
ByteDance Volcanodoubao-seedream-5-0-pro-260628Input:
Output:
Tools: Web search
v1/images/generationssingle image: ≤2.61M px ¥0.30 / >2.61M px ¥0.60
layer split: ≤2.61M px ¥0.15 / >2.61M px ¥0.30
input ¥0.02 per image (first one free)
2026-06-28-ByteDance VolcanoChina regionFlagship tier, supports interactive editing, layer split and multi-image fusion. Supports neither streaming nor batch generation (n). Billed per image, tiered by generation scene and by that image's actual output size

Seedream Technical Specifications​

Resolution Support​

ModelSupported Resolutions
doubao-seedream-4-0-2508281K, 2K, 4K
doubao-seedream-4-5-2511282K, 4K
doubao-seedream-5-0-2601282K, 3K, 4K
doubao-seedream-5-0-pro-2606281K, 1.5K, 2K (layer split also accepts auto)
  • Aspect ratio range: [1/16, 16]
  • Supported image formats: JPEG, PNG, WEBP, BMP, TIFF, GIF (doubao-seedream-5-0-260128 additionally supports HEIC and HEIF)

Image Generation Capabilities​

  • Text to image: Generate high-quality images from text descriptions
  • Image to image: Generate new images based on a reference image
  • Multi-image fusion: Supports 2–14 reference images combined with a text prompt to generate images
  • Batch image generation: Up to 15 images (number of input images + number of generated images ≤ 15)

The n Parameter and Batch Generation​

When using a Seedream model, the n parameter is automatically converted to a batch image generation parameter. doubao-seedream-5-0-pro-260628 is the exception: it does not support batch generation, so n is ignored and a single image is always returned:

# When n=3 is set, the platform automatically converts it to:
payload["sequential_image_generation"] = "auto"
payload["sequential_image_generation_options"] = {"max_images": 3}

sequential_image_generation accepted values:

  • "auto": The model automatically decides whether to return multiple images and how many
  • "disabled": Generate only a single image

Parameter Differences Across the Seedream 5.0 Versions​

Parameterdoubao-seedream-5-0-260128doubao-seedream-5-0-pro-260628
image (image-to-image)SupportedSupported
watermarkSupportedSupported
optimize_prompt_optionsSupportedSupported
output_format (png/jpeg)SupportedSupported
background (opaque/transparent)Not supportedSupported (image-to-image only, and the input image must carry an alpha channel)
layer_decompositionNot supportedSupported (layer split, single input image only)
tools (web search)SupportedNot supported
guidance_scaleNot supportedNot supported
streamSupportedNot supported
sequential_image_generation / nSupportedNot supported

Parameters the upstream does not support are not forwarded, so passing them has no effect (stream: true is rejected during request validation instead).

For web search, pass tools: [{"type": "web_search"}]; the response reports the number of lookups under usage.tool_usage.

Layer Split (doubao-seedream-5-0-pro-260628 only)​

Pass layer_decomposition: true to split a single input image into one base image plus up to 16 transparent PNG layers.

  • image becomes required and accepts exactly one image (png / jpeg, total pixels [262144, 36M])
  • prompt becomes optional: omit it and the model detects and splits every main element on its own; supply it to target specific elements (<bbox> normalized coordinates are supported)
  • In this scene size accepts the tiers 1K / 1.5K / 2K / auto only. When omitted the platform sends auto, because the 1024x1024 schema default is a pixel value the upstream rejects
  • output_format controls the base image only; layers are always png
  • The response data array holds both the base image and the layers, told apart by z_index (0 for the base image), and additionally carries bounding_box.absolute / bounding_box.normalized / name / description
  • A layer can be fed back in as an input image for further editing; to keep the transparent background, set background: "transparent" together with output_format: "png"
Billing

Billing counts the images in usage.generated_images, the base image included, and tiers each one by its own output size — the layer-split rate is half the single-image rate. A measured auto-split of 14 outputs (a 1760×2176 base plus 13 layers) is billed ¥2.25.

Alibaba Model Studio​

VendorModel IDCapabilitiesendpointPrice (per image)Launch datePlanned retirementCapacityAvailable regionsNotes
Alibaba Model Studiowan2.7-imageInput:
Output:
Tools: Not supported
v1/images/generations¥0.20 per image2026-04-01-Alibaba Model StudioChina regionWan 2.7, up to 2K
Alibaba Model Studiowan2.7-image-proInput:
Output:
Tools: Not supported
v1/images/generations¥0.50 per image2026-04-01-Alibaba Model StudioChina regionWan 2.7 flagship tier, 4K for text-to-image

Wan Technical Specifications​

Resolution Support​

ModelSupported resolutions
wan2.7-image1K, 2K, or WIDTHxHEIGHT
wan2.7-image-pro1K, 2K, 4K (4K for text-to-image only), or WIDTHxHEIGHT

When size is given as WIDTHxHEIGHT, the platform rewrites it into the WIDTH*HEIGHT form the upstream requires, so callers can keep writing 1024x1024 as they would for OpenAI.

Image Generation Capabilities​

  • Text to image: Generate an image from a text description
  • Image to image: Pass one or more reference images (URL or base64) through image
  • Sequential (group) generation: enable_sequential: true

Supported Parameters​

Beyond prompt, model, image and size, the following parameters are forwarded upstream as-is:

ParameterTypeDescription
nintegerWith sequential mode off, the number of images to generate, 1–4 (default 1); with it on, the maximum number of images, 1–12 (default 12)
enable_sequentialbooleanEnable group-image output mode. Default false
thinking_modebooleanEnable thinking mode. Default true; only effective with sequential mode off and no image input, and it increases latency
color_palettearrayCustom color theme: 3–10 {hex, ratio} entries whose ratio values must total 100.00%. Only available with sequential mode off
bbox_listarrayBounding boxes for interactive editing, given in input-image order
watermarkbooleanAdd an "AI generated" watermark. Default false
seedintegerRandom seed in [0, 2147483647]
n drives the cost

Billing counts only the images actually returned (failed calls are not charged). With sequential mode on, omitting n lets the upstream generate up to 12 images — always set n explicitly. See Alibaba Model Studio billing for prices.