Skip to content
Home

Wan 2.6 Text to Image

wan2.6-t2i

Wan 2.6 Text to Image generates images from text prompts.

POST /v1/queue/wan2.6-t2i # Create task
GET /v1/queue/wan2.6-t2i/requests/{request_id}/status # Check status
GET /v1/queue/wan2.6-t2i/requests/{request_id}/response # Get result
PUT /v1/queue/wan2.6-t2i/requests/{request_id}/cancel # Cancel task
Окно терминала
curl --location "https://odirouter.ai/model/v1/queue/wan2.6-t2i" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "A red apple on a white table, clean studio lighting, simple background.",
"size": "1280*1280",
"n": 1,
"prompt_extend": false,
"watermark": false,
"seed": 12345
}'
role string

Message role. Use user.

prompt string Required

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

Maximum length: 2100 characters

negative_prompt string

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

Maximum length: 500 characters

size string

Output image resolution, in width*height format or another resolution value supported by the model.

Total pixels are approximately from 1280x1280 to 1440x1440, with aspect ratio from 1:4 to 4:1.

Recommended values include 1280*1280, 1104*1472, 1472*1104, 960*1696, and 1696*960.

Default: 1280*1280

n int

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

Range: 1 - 4

Default: 4

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

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

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/wan2.6-t2i/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/wan2.6-t2i/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/wan2.6-t2i/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