Wan 2.5 Image-to-Image Preview
wan25_i2i_preview
Wan 2.5 Image-to-Image Preview edits and transforms input images from text prompts through the China mainland (Beijing) node.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/wan25_i2i_preview # Создать задачуGET /v1/queue/wan25_i2i_preview/requests/{request_id}/status # Проверить статусGET /v1/queue/wan25_i2i_preview/requests/{request_id}/response # Получить результатPUT /v1/queue/wan25_i2i_preview/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location "https://odirouter.ai/model/v1/queue/wan25_i2i_preview" \ --header "Authorization: Bearer YOUR_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "Turn the reference image into a clean product poster with a white studio background.", "images": [ "https://example.com/reference-image.webp" ], "negative_prompt": "low quality, blurry", "size": "1024*768", "n": 1, "prompt_extend": true, "watermark": false, "seed": 12345 }'Positive prompt describing the expected elements and visual characteristics in the generated image.
Chinese and English are supported. Maximum length: 2000 characters. Extra content is automatically truncated.
Example: 一只坐着的橘黄色的猫, 表情愉悦, 活泼可爱, 逼真准确.
Array of image URLs or Base64-encoded strings. Supports single-image editing and multi-image fusion.
Maximum array length: 3 images. For multi-image input, image order follows the array order.
Image formats: JPEG, JPG, PNG, BMP, WEBP. PNG images do not support transparent channels.
Image width and height: 384 - 5000 pixels.
File size: no more than 10MB.
Negative prompt describing content that should not appear in the image. It can be used to constrain the image.
Chinese and English are supported. Maximum length: 500 characters. Extra content is automatically truncated.
Output image resolution in width*height format. Total pixels must be between 768*768 and 1280*1280, and the aspect ratio must be between 1:4 and 4:1. If size is not specified, the system generates an image with total pixels of 1280*1280 by default and approximately preserves aspect ratio as follows: for single-image input, it follows the input image aspect ratio; for multi-image input, it follows the last input image aspect ratio.
Default: 1280*1280
Number of images to generate. This parameter directly affects cost; explicitly set it to 1 during testing to control cost.
Range: 1 - 4
Default: 4
Whether to enable intelligent prompt rewriting. When enabled, a large model rewrites the input prompt to improve overall results, but request latency increases.
Default: true
Whether to add a watermark in the lower-right corner of the image. The fixed watermark text is AI生成.
Options: false, true
Default: false
Random seed. If omitted, the algorithm automatically generates a random seed. When n=4, the algorithm uses seed, seed+1, seed+2, and seed+3 respectively.
Range: 0 - 2147483647
Параметры ответа
Заголовок раздела «Параметры ответа»{ "request_id": "mmsu_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/wan25_i2i_preview/requests/mmsu_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/wan25_i2i_preview/requests/mmsu_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/wan25_i2i_preview/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 | Текущая позиция в очереди. |