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 }'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
Параметры ответа
Заголовок раздела «Параметры ответа»{ "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_id | string | Идентификатор задачи для последующей проверки статуса, получения результата и отмены |
response_url | string | URL для получения итогового результата |
status_url | string | URL для проверки статуса задачи |
cancel_url | string | URL для отмены задачи |
queue_position | int | Текущая позиция в очереди |