generateVideo
Start AI video generation from a prompt. Use listModels with kind=video to check models, supported lengths, and video credit costs. Confirm the model and cost with the user first. The finished video is saved as a draft and is not published. Check progress with getVideoStatus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | A model id from GET /v1/models?kind=video (cost shown there), or a built-in name: veo-3.1-fast-generate-preview (default, 1 credit), veo-3.1-generate-preview (3), sora-2 (1), sora-2-pro (3). | |
| prompt | Yes | Description of the video content to generate | |
| duration | No | Seconds. Default 8. Must be a length the model supports (see `durations` in listModels). Built-in Veo models: 4, 6, or 8; Sora: 4, 8, or 12. | |
| aspectRatio | No | Default: 9:16 | |
| contentGroupId | Yes |