Перейти к содержимому
Главная

Wan 2.6 - Text to Image

wan26_t2i

Wan 2.6 Text to Image generates images from text prompts.

POST /v1/queue/wan26_t2i # Создать задачу
GET /v1/queue/wan26_t2i/requests/{request_id}/status # Проверить статус
GET /v1/queue/wan26_t2i/requests/{request_id}/response # Получить результат
PUT /v1/queue/wan26_t2i/requests/{request_id}/cancel # Отменить задачу
Окно терминала
curl --location "https://odirouter.ai/model/v1/queue/wan26_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 обязательно

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/wan26_t2i/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/wan26_t2i/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/wan26_t2i/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
ПолеТипОписание
request_idstringИдентификатор задачи для последующей проверки статуса, получения результата и отмены
response_urlstringURL для получения итогового результата
status_urlstringURL для проверки статуса задачи
cancel_urlstringURL для отмены задачи
queue_positionintТекущая позиция в очереди