Wan 2.6 Text to Image
wan2.6-t2i
Wan 2.6 Text to Image generates images from text prompts.
Endpoints
Section titled “Endpoints”POST /v1/queue/wan2.6-t2i # Create taskGET /v1/queue/wan2.6-t2i/requests/{request_id}/status # Check statusGET /v1/queue/wan2.6-t2i/requests/{request_id}/response # Get resultPUT /v1/queue/wan2.6-t2i/requests/{request_id}/cancel # Cancel taskRequest Parameters
Section titled “Request Parameters”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 }'Message role. Use user.
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 describing content that should not appear in the image.
Maximum length: 500 characters
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
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
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
Whether to enable prompt rewriting. When enabled, the positive prompt is optimized while the negative prompt is unchanged.
Options: true, false
Default: true
Whether to add a watermark in the lower-right corner of the image.
Options: false, true
Default: false
Response Parameters
Section titled “Response Parameters”{ "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}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for later status checks, result retrieval, and cancellation |
response_url | string | URL for retrieving the final result |
status_url | string | URL for checking task status |
cancel_url | string | URL for canceling the task |
queue_position | int | Queue position |