Skip to main content
POST
Qwen Image Series
Qwen Image is the image foundation model line from Alibaba’s Qwen team. It unifies text-to-image generation and image editing behind one interface and is strongest at bilingual (Chinese and English) typography, infographics and text inside posters. This page covers the four models available today, in two generations, both returning one to six images per request: the 2.0 generation settles at a single per-image price, while the 3.0 generation adds multi-reference editing and prompt expansion and prices reference images separately.

Quick start

A successful submission returns a task_id. Retrieve the result with GET /v1/tasks/{task_id}, wait inline with Prefer: wait, or configure a webhook.

Request parameters

string
required
One of qwen-image-2.0, qwen-image-2.0-pro, qwen-image-3.0 or qwen-image-3.0-pro.
string
default:"generate"
  • generate: create an image from text
  • edit: rewrite reference images; requires image_urls
string
required
The image description or editing instruction, in Chinese or English.
string[]
Reference image URLs. qwen-image-2.0 and qwen-image-2.0-pro require at least one on edit. qwen-image-3.0 and qwen-image-3.0-pro require one to three of them on edit and accept none on generate.
string
Framing: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3. qwen-image-3.0 and qwen-image-3.0-pro default to 1:1.
string
Output resolution, 1k or 2k. qwen-image-3.0 and qwen-image-3.0-pro default to 1k.
integer
default:"1"
Number of images to generate; all four models accept 1–6.
string
Content to avoid in the generated result, up to 500 characters.
boolean
default:"false"
Let the model expand the prompt; disabled by default. Supported by qwen-image-3.0 and qwen-image-3.0-pro only.
string
Prompt expansion mode, direct or agent. Supported by qwen-image-3.0 and qwen-image-3.0-pro only, requires prompt_extend: true, and edit accepts direct only.
See Submit a task for callback_url, callback_events, Prefer: wait, Idempotency-Key and the maximum-cost header. This series does not accept seed, quality, watermark or mask_url. Any other parameter returns 400 and is not billed.

Limits

Pricing

Billed at a fixed price per successfully generated image. Rates are in price_config on GET /v1/models and in the console’s Model Market. What a single call actually cost is the cost field on the task response — an integer quota at 500,000 quota = 1 USD, not dollars. The billing dimensions differ by generation:
  • qwen-image-2.0 / qwen-image-2.0-pro — one per-image price; 1k and 2k cost the same, and neither aspect ratio nor prompt length affects it. The total is that price times n.
  • qwen-image-3.0 — 1k and 2k cost the same; the output part is the per-image price × n.
  • qwen-image-3.0-pro — 2k costs more than 1k; the output part is the per-image price × n.
  • Reference images on both 3.0 models — each reference image in the request adds its own per-image fee on top of the output images, charged once per request and not repeated for each of the n outputs. generate carries no reference images and no such fee.
A resolution outside the tiers a model supports settles at its fallback price, equal to that model’s base tier. You are only billed for a successfully generated image. Failed and cancelled tasks, and tasks that return no usable image, are refunded in full.

Response

Completed task
Generated images come back in result.images, and expires_at is when that link stops working. With n greater than 1 the images array holds several entries. See Query Task Status for the full field list.

Available models

All four support generate and edit and share the same aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.