Image Generation
Wan Image Series
Alibaba Wan 2.7 image models: one endpoint for generation and editing, with box-targeted edits and custom palettes
POST
Wan Image Series
Wan 2.7 Image puts generation and editing in the same request: text-to-image takes only a
A successful submission returns a
See Submit a task for
Generated images come back in
prompt, while image-to-image, local rewrites and multi-image blending all go through edit with image_urls. This page covers the standard and pro models. Their parameter sets are identical; they differ only in the top text-to-image resolution and unit price — switching tiers means changing model and nothing else.
Quick start
task_id. Retrieve the result with GET /v1/tasks/{task_id}, wait inline with Prefer: wait, or configure a webhook.
Request parameters
string
required
Either
wan2.7-image or wan2.7-image-pro.string
default:"generate"
generate: create an image from text; takes no input imagesedit: rewrite input images; requiresimage_urls
edit; they differ only in how many image_urls you send and whether you add bbox_list.string
required
The image description or editing instruction, in Chinese or English.
string
Content to avoid in the generated result.
string[]
Input image URLs. Required for
edit; up to nine images.string
default:"1:1"
Framing:
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.string
default:"2k"
Output resolution.
wan2.7-image supports 1k and 2k; wan2.7-image-pro adds 4k for text-to-image. On both models, edit tops out at 2k.integer
default:"1"
Number of images to generate.
1–4 in standard mode; 1–12 with enable_sequential. Billed per image, so n multiplies the unit price.integer
Random seed. The same seed with the same parameters keeps results consistent.
boolean
Add a watermark to the output image.
boolean
default:"true"
Reasoning mode: the model thinks before generating, improving quality at the cost of longer generation time. Effective on
generate only.boolean
default:"false"
Sequential (multi-image) mode, for storyboards and series: one request returns
n thematically coherent images (n up to 12). thinking_mode and color_palette have no effect when it is on; wan2.7-image-pro tops out at 2k in this mode.array
Per-input-image boxes,
[[[x1, y1, x2, y2], …], …], in absolute pixel coordinates. The outer length must equal the length of image_urls, and each image takes at most two boxes.array
A custom palette of 3 to 10 entries (8 recommended), each shaped like
{"hex": "#1B4D3E", "ratio": 12.5}, with all ratio values summing to 100.00%. Standard mode only; it has no effect in sequential mode.callback_url, callback_events, Prefer: wait, Idempotency-Key and the maximum-cost header.
This series does not accept quality or mask_url. Any other parameter returns 400 and is not billed.
Limits
Pricing
Billed at a fixed price per successfully generated image, with one price per model; a request forn images is charged n times the unit price, and the hold at submission is sized by n.
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.
Within a model, generate and edit cost the same, and resolution, aspect ratio, input image count, thinking_mode and color_palette do not affect the price — the unit price times n is the whole cost of a call, known before it is sent.
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
result.images, and expires_at is when that link stops working. See Query Task Status for the full field list.
Available models
Both support
generate and edit, return up to 4 images per request (12 in sequential mode), accept up to nine input images, and share the same aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3.