Generate Video
generate_videoGenerate an AI video with Grok Imagine, Seedance, Veo, or Kling. Users can name a model family naturally: Veo maps to Veo 3.1 Fast, Kling to Kling 2.5 Turbo, Grok to Grok Imagine, Seedance to Seedance 2.0 Mini, and Seedance Pro to Seedance 1.5 Pro. Never omit model when the user named one. Call list_models first when the user wants to review models and costs before spending credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Video model or friendly name. Shortcuts: grok -> grok-imagine; seedance or seedance-mini -> seedance-2.0-mini; seedance-pro -> seedance-1.5-pro; veo -> veo-3.1-fast; kling -> kling-2.5-turbo. Defaults to grok-imagine only when the user did not name a model. | |
| prompt | Yes | Video description | |
| duration | No | Seconds: Grok 6-30, Seedance 1.5 Pro 4-12, Seedance 2.0 Mini 4-15, Veo 3.1 Fast 4/6/8, Kling 5/10. Defaults to the selected model preset. | |
| image_url | No | Optional public image URL to animate | |
| resolution | No | Quality: Grok and Seedance 1.5 support 480p/720p/1080p; Seedance 2.0 Mini supports 480p/720p; Veo 3.1 Fast currently uses 720p; Kling uses fixed Pro quality. | |
| aspect_ratio | No | Video aspect ratio, default 16:9. Veo supports 16:9 or 9:16; Kling image-to-video follows the source image instead. |