generate_video
Generate AI videos using a chosen model and input modality (prompt, reference image, or video), with parameters like prompt, aspect ratio, and duration. Supports multiple storage modes.
Instructions
Generate AI video (step 2 of 3)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Engine id (e.g. `KLING_VIDEO_PRO`, `VEO_3_1`, `WAN_V25_PREVIEW`, `SORA_2`, etc.). Discover available ids by calling `getVideoModelFields` with `type=video` and no `model_id` — the response lists every registered video engine. | KLING_VIDEO_PRO |
| storage | No | Storage mode for the rendered video — see operation description. | default |
| capability | Yes | Which input modality to use. Each model supports a different subset — `getVideoModelFields` returns the supported capabilities per model. | |
| parameters | Yes | Per-(model, capability) field schema is **dynamic** — always call `getVideoModelFields` first. Common keys across engines: `prompt`, `negative_prompt`, `aspect_ratio`, `duration`, `image_url`, `image_urls`, `first_frame_url`, `last_frame_url`, `video_url`, `resolution`, `generate_audio`. File-typed fields take an asset UUID (not a raw URL). |