Generate video with Wan 2.7
Alibaba Wan 2.7 (video) — text-to-video, plus image-to-video with a start frame and an optional end frame. Prompt-driven narrative, optional generated audio, and an optional driving-audio track. 720p or 1080p, priced per resolution (see resolution_pricing in GET /v1/models); 5, 10, or 15 seconds. (The Wan 2.7 image model is wan-2.7 under POST /v1/images.)
Asynchronous. Returns a job id (the video is not in this response). Poll GET /v1/videos/{id} until status is succeeded — the video URL is in that response’s video_url.
Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
Text description of the video.
Aspect ratio. Ignored when a start image already sets the frame.
16:9, 9:16, 1:1, 4:3, 3:4 Optional driving-audio track (MP3/WAV/OGG) for the generated video. Provide a public audio URL or an uploaded-file URL from POST /v1/uploads (passed by URL, not inlined). Ignored when generate_audio is false.
Optional end frame, used together with image (the start frame) to interpolate the video between the two frames. Same input forms as image.
Generate audio with the video (default true; no price impact).
Optional start frame for image-to-video. Provide a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Omit for text-to-video.
Video length in seconds.
5, 10, 15 Output resolution. Pricing varies by resolution — see resolution_pricing in GET /v1/models.
720p, 1080p