Skip to content
Home

Wan 2.6 Image

wan2.6-image

Wan 2.6 Image is an Alibaba image generation and editing model. It supports prompt-only image generation, image editing, and interleaved text-image output through the international (Singapore) node.

POST /v1/queue/wan2.6-image # Create task
GET /v1/queue/wan2.6-image/requests/{request_id}/status # Check status
GET /v1/queue/wan2.6-image/requests/{request_id}/response # Get result
PUT /v1/queue/wan2.6-image/requests/{request_id}/cancel # Cancel task
Окно терминала
curl --location "https://odirouter.ai/model/v1/queue/wan2.6-image" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "Turn the input image into a clean studio product photo on a white background.",
"image_url": "https://example.com/input.webp",
"enable_interleave": false,
"size": "1K",
"n": 1,
"prompt_extend": false,
"watermark": false
}'
role string

Message role. Use user.

prompt string Required

Positive prompt describing the desired generated or edited image content, style, and composition. Chinese and English are supported, and content beyond the model limit is truncated automatically.

Maximum length: 2000 characters

image string

Input image URL or Base64-encoded string.

Supported formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.

Image width and height: 240 - 8000 pixels

Maximum file size: 10MB

image_url string

Input image URL or Base64-encoded string.

Supported formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.

Image width and height: 240 - 8000 pixels

Maximum file size: 10MB

image_2 string

Input image URL or Base64-encoded string.

Supported formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.

Image width and height: 240 - 8000 pixels

Maximum file size: 10MB

image_3 string

Input image URL or Base64-encoded string.

Supported formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.

Image width and height: 240 - 8000 pixels

Maximum file size: 10MB

image_4 string

Input image URL or Base64-encoded string.

Supported formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.

Image width and height: 240 - 8000 pixels

Maximum file size: 10MB

enable_interleave bool

Controls image generation mode.

false: image editing mode, supporting 1-4 reference images. Provide at least one input image with image, image_url, image_2, image_3, or image_4.

true: interleaved text-image output mode, supporting prompt-only generation or one input image.

Default: false

negative_prompt string

Negative prompt describing content that should not appear in the image.

Maximum length: 500 characters

size string

Output image resolution. Image editing mode can use reference tiers 1K or 2K, or explicit pixel dimensions.

In image editing mode, total pixels are approximately from 768x768 to 2048x2048, with aspect ratio from 1:4 to 4:1.

In interleaved text-image output mode, explicit pixel dimensions support total pixels approximately from 768x768 to 1280x1280.

Default: 1K

n int

Number of images to generate. This parameter directly affects cost; set it to 1 when you need a single output.

Image editing mode range: 1 - 4

In interleaved mode, this must be 1. Use max_images to control the output limit.

Default: 1

max_images int

Maximum number of generated images in interleaved text-image output mode.

Use with enable_interleave=true. In this mode, keep n set to 1.

Range: 1 - 4

Default: 1

prompt_extend bool

Whether to enable prompt rewriting. When enabled, the positive prompt is optimized while the negative prompt is unchanged.

Options: true, false

Default: true

watermark bool

Whether to add a watermark in the lower-right corner of the image.

Options: false, true

Default: false

seed int

Random seed. When omitted, the system generates a random seed automatically. A fixed seed can improve reproducibility, but identical results are not guaranteed.

Range: 0 - 2147483647

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/wan2.6-image/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/wan2.6-image/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/wan2.6-image/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
FieldTypeDescription
request_idstringTask ID used for later status checks, result retrieval, and cancellation
response_urlstringURL for retrieving the final result
status_urlstringURL for checking task status
cancel_urlstringURL for canceling the task
queue_positionintQueue position