Generate video and wait
generate_and_waitGenerate a video from a text prompt, wait for rendering to finish, and get the local file path—all in one call.
Instructions
Submit a Grok video generation, poll until complete (up to timeoutSeconds), and return the downloaded file path. The one-call convenience for agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the video to generate | |
| duration | No | Duration in seconds (default 8) | |
| resolution | No | Resolution (grok-imagine-video-1.5 supports 1080p) | |
| aspectRatio | No | Aspect ratio (default 16:9) | |
| timeoutSeconds | No | Max wait in seconds (default 900) |