Qwen Video · Video

Image to VideoNEW

Animate a reference image into a video. wan2.7-i2v supports three tasks: first-frame, first+last frame (pass lastFrameUrl), and video continuation (pass a .mp4/.mov clip in imageUrls).

💡 When to use:Use to animate an image, or to control start/end with first+last frame, or to continue from a clip.

This page has been rewritten for the unified API: create with POST /v1/videos, poll with GET /v1/videos/{id}, authenticate with Authorization: Bearer <key>, errors use the OpenAI format. See the video guide for the common parts. Video guide
Submit task
POST/ v1/ videos
Query Result
GET/ v1/ videos/ {id}
Download the video
GET/ v1/ videos/ {id}/ content
⏱ Recommended polling interval:Creating returns a video object right away (status: queued). Poll GET /v1/videos/{id} until status is completed or failed; when done, url is the result address, and you can also download it with GET /v1/videos/{id}/content.

Authorization

AuthorizationstringheaderRequired
API key, sent as a Bearer token in the Authorization header.

Request body

application/json
modelstringRequired
wan2.7-i2v / wan2.5-i2v-preview (audio on by default) / happyhorse-1.0-i2v / happyhorse-1.1-i2v / wan3.0-video / wan3.0-video-prime (all-in-one: pass imageUrls for image-to-video, lastFrameUrl for keyframes) / vidu/viduq3-pro_img2video (account not enabled, currently unavailable)
imageUrlsstring[]Required
Input image URL(s), usually first image is used as the first frame. Note: jpg / png only, no webp. For wan2.7-i2v continuation the first item may be a .mp4/.mov clip.
lastFrameUrlstring
Last frame URL (wan2.7-i2v first+last frame / continuation end frame)
promptstring
Motion / camera prompt
durationinteger
Duration in seconds, default 5, affects billing; wan2.5-preview only 5 / 10; happyhorse 3-15; wan3.0-video/prime 2-30 (pass -1 for smart duration)
aspectRatiostring
Ratio / resolution mapping: 16:9 and 9:16 usually map to 1080P; 1:1 maps to 720P; 4:3/3:4 map to 480P
audioboolean
Generate video with audio when supported
audioUrlstring
Optional audio URL
webhookUrlstring
Completion webhook URL

model, prompt, seconds, size and input_reference are the common fields of the unified interface. The other fields in the table are specific to this model channel and go in the same request body under their own names. seconds and size (which must be WIDTHxHEIGHT, for example 1280x720) are only translated into channel fields when you did not send the matching channel field yourself.

Response fields

idstring
Task ID, starts with video_; used to query and download.
objectstring
Always video.
modelstring
The model passed when creating.
statusstring
queued, in_progress, completed or failed.
progressinteger
Progress percent; 100 when done.
created_atinteger
Creation time (Unix seconds).
completed_atinteger | null
Completion time; null until finished.
expires_atinteger | null
Expiry time; currently null.
secondsstring
Returned only if seconds was sent when creating.
sizestring
Returned only if size was sent when creating.
errorobject | null
{code, message} on failure; code is video_generation_failed.
urlstring
Extension field: the result address once completed.