generate_video
Generate a video. Default model: seedance_1_5_pro at 480p, 8s, no audio (cheapest reasonable quality). Before calling, if the user has not specified them, briefly ASK for: (1) aspect ratio (9:16 vertical, 16:9 horizontal, 1:1 square), (2) duration (4/8/12s), (3) whether they want audio, (4) resolution (480p/720p/1080p) — higher costs more. Skip the questions only when the user already gave you those details or asked for "the cheapest". For character consistency across shots (e.g. a recurring person), pass extra face/body anchor photos in reference_image_urls — Seedance 2 / 2-fast use up to 7 references. MOTION CONTROL: model kling_2_6_motion transfers the motion of a driving video onto the person in your image — pass the person photo in image_url AND the driving clip URL in motion_video_url (both required); set duration to the driving clip length (billed ~11 coins/s, min 3s). Returns job_id; poll check_job until status=done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| duration | No | ||
| image_url | No | First-frame / primary input image for image-to-video. Optional. For multi-ref, also pass reference_image_urls. | |
| resolution | No | 480p cheapest; 1080p ~5x cost. Default 480p. | |
| with_audio | No | Generate sound. SeeDance/Kling support audio — typically doubles cost. Default false. | |
| aspect_ratio | No | ||
| motion_video_url | No | Driving/reference VIDEO URL for Motion Control (model kling_2_6_motion only). The motion of this clip is applied to the person in image_url. Required for kling_2_6_motion; ignored by other models. Must be a publicly reachable mp4/mov. | |
| reference_image_urls | No | Extra reference images (Seedance 2 / 2-fast accept up to 7 total including image_url). Use for character face/body anchors, multiple people, style references. Order matters — most important reference first. |