Wan 2.2 Flash - Image to Video
wan22_i2v_flash
Wan 2.2 Flash - Image to Video generates video from an input image, balancing speed with common quality controls.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/wan22_i2v_flash # Создать задачуGET /v1/queue/wan22_i2v_flash/requests/{request_id}/status # Проверить статусGET /v1/queue/wan22_i2v_flash/requests/{request_id}/response # Получить результатPUT /v1/queue/wan22_i2v_flash/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location "https://odirouter.ai/model/v1/queue/wan22_i2v_flash" \ --header "Authorization: Bearer YOUR_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "A red apple slowly rotating on a white table, clean studio lighting, static camera.", "img_url": "https://example.com/reference-image.webp", "duration": 5, "resolution": "720P", "prompt_extend": true, "watermark": false, "seed": 12345 }'Text prompt describing the expected elements and visual characteristics in the generated video. Chinese and English are supported. For wan2.2 series models, the length must not exceed 800 characters; extra content is automatically truncated.
First-frame image URL or Base64-encoded data.
Image formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.
Image width and height: 360 - 2000 pixels.
File size: no more than 10MB.
For wan2.2-i2v-flash, duration is fixed at 5 seconds and cannot be changed.
Fixed value: 5
Generated video resolution tier. The model scales to a similar total pixel count and tries to preserve an aspect ratio close to img_url.
Options: 480P, 720P
Default: 720P
Whether to enable intelligent prompt rewriting. When enabled, a large model rewrites the input prompt, which can significantly improve short-prompt results but increases latency.
Options: true, false
Default: true
Random seed. If omitted, the system automatically generates a random seed. Fixing seed can improve reproducibility, but the same seed does not guarantee identical results every time.
Range: 0 - 2147483647
Whether to add a watermark in the lower-right corner of the video.
Options: false, true
Default: false
Параметры ответа
Заголовок раздела «Параметры ответа»{ "request_id": "mmsu_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/wan22_i2v_flash/requests/mmsu_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/wan22_i2v_flash/requests/mmsu_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/wan22_i2v_flash/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 | Текущая позиция в очереди. |