Wan 2.6 Image To Video
curl --request POST \
--url https://api.myrouter.ai/v3/async/wan2.6-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"input": {
"prompt": "<string>",
"img_url": "<string>",
"template": "<string>",
"audio_url": "<string>",
"negative_prompt": "<string>"
},
"parameters": {
"seed": 123,
"audio": true,
"duration": 123,
"shot_type": "<string>",
"watermark": true,
"resolution": "<string>",
"prompt_extend": true
}
}
'{
"task_id": "<string>"
}Video
Wan 2.6 Image To Video
POST
/
v3
/
async
/
wan2.6-i2v
Wan 2.6 Image To Video
curl --request POST \
--url https://api.myrouter.ai/v3/async/wan2.6-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"input": {
"prompt": "<string>",
"img_url": "<string>",
"template": "<string>",
"audio_url": "<string>",
"negative_prompt": "<string>"
},
"parameters": {
"seed": 123,
"audio": true,
"duration": 123,
"shot_type": "<string>",
"watermark": true,
"resolution": "<string>",
"prompt_extend": true
}
}
'{
"task_id": "<string>"
}This is an async API that only returns the async task_id. Use the task_id to call the Get Async Task Result API to retrieve the video generation result.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.
Request Headers
Enum:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
Hide properties
Hide properties
Text prompt describing the desired elements and visual characteristics in the generated video. Supports Chinese and English; each Chinese character or letter counts as one character. Content exceeding the limit will be automatically truncated.Length limit: 0 - 2000
URL or Base64-encoded data of the input image. Supports HTTP or HTTPS protocols; local files can be uploaded to obtain a temporary URL. Image requirements: Formats: JPEG, JPG, PNG (no alpha channel), BMP, WEBP; Resolution: width and height between [360, 2000] pixels; File size: max 10MB. Input image notes: 1. Use a publicly accessible URL - supports HTTP or HTTPS protocols; local files can be uploaded to get a temporary URL. Example: https://cdn.translate.alibaba.com/r/wanx-demo-1.png. 2. Pass a Base64-encoded image string - Format: data:;base64,; Example: data:image/png;base64,GDU7MtCZEbTbmRZ… (encoded string truncated for display). See Input Image documentation for more details.
Name of the video effect template. If not provided, no video effects are applied. Different templates support different effects; check the video effects list before calling to avoid failures.
Audio file URL; the model will use this audio to generate the video. Supports HTTP or HTTPS protocols. Audio requirements: formats wav, mp3; duration 3-30 seconds; file size max 15MB. Overflow handling: if the audio length exceeds the duration value (5 or 10 seconds), only the first 5 or 10 seconds are used and the rest is discarded. If the audio is shorter than the video duration, the portion beyond the audio length will be silent. For example, if the audio is 3 seconds and the video duration is 5 seconds, the output video will have audio for the first 3 seconds and silence for the last 2 seconds.
Negative prompt describing content you do not want to appear in the video. Supports Chinese and English, up to 500 characters; content exceeding the limit will be automatically truncated.Length limit: 0 - 500
Hide properties
Hide properties
Random seed. Range: [0, 2147483647]. When not specified, a random seed is automatically generated. To improve reproducibility, set a fixed seed value. Note that due to the probabilistic nature of model generation, even with the same seed, results may not be completely identical.Range: [0, 2147483647]
Controls whether to add audio. Parameter priority: audio_url > audio; only takes effect when audio_url is empty. See audio settings for usage. true: default, automatically adds audio to the video; false: no audio, outputs a silent video.
Duration of the generated video in seconds. Duration directly affects cost; please confirm model pricing before calling.Possible values:
5, 10, 15Video generation mode. single: single-shot generation; multi: multi-shot generation.Possible values:
single, multiWhether to add a watermark. The watermark is placed in the bottom-right corner with fixed text “AI Generated”. false: default, no watermark; true: add watermark.
Specifies the output video resolution tier. Supports 720P and 1080P tiers.Possible values:
720P, 1080PWhether to enable intelligent prompt rewriting. When enabled, a language model rewrites the input prompt. This significantly improves results for shorter prompts but increases processing time. true: default, enable intelligent rewriting; false: disable intelligent rewriting.
Response
Use the task_id to call the Get Async Task Result API to retrieve the generated output.
⌘I