Wan 2.7 Image Pro
wan27_image_pro
Wan 2.7 Image Pro is a professional image generation model that supports 4K output, text-to-image, image editing, and multi-image reference generation.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/wan27_image_pro # Создать задачуGET /v1/queue/wan27_image_pro/requests/{request_id}/status # Проверить статусGET /v1/queue/wan27_image_pro/requests/{request_id}/response # Получить результатPUT /v1/queue/wan27_image_pro/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location "https://odirouter.ai/model/v1/queue/wan27_image_pro" \ --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": "1K", "n": 1, "watermark": false, "seed": 12345 }'Message role. Use user.
Positive prompt describing the desired image content, style, and composition. Chinese and English are supported.
Maximum length: 5000 characters
Output image resolution. You can use a resolution tier or explicit dimensions such as 1024*1024; aspect ratio limits follow the official constraints.
Options: 1K, 2K, 4K
For square text-to-image prompts, size=1K returns a 1024x1024 PNG, and size=4K returns a 4096x4096 PNG.
Default: 1K
Number of images to generate. This parameter directly affects cost.
Range: 1 - 4
Default: 4
Whether to add a watermark. The watermark appears in the lower-right corner of the image.
Options: false, true
Default: false
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/wan27_image_pro/requests/mmsu_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/wan27_image_pro/requests/mmsu_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/wan27_image_pro/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 | Текущая позиция в очереди |