text_to_video
Generate a video from a text prompt via RunAPI's Grok Imagine; it returns a task ID, status, and output URLs for polling or download.
Instructions
Create a Grok Imagine task on RunAPI (text to video). Returns a task id, status, and output URLs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "text_to_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Video generation prompt. Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Declared type: string. Known values: "2:3", "3:2", "1:1", "16:9", "9:16", "auto". | |
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| motion_style | No | Video motion style. Declared type: string. | |
| duration_seconds | No | Output duration in seconds. Declared type: integer. | |
| poll_interval_ms | No | ||
| output_resolution | No | Output resolution. Declared type: string. Known values: "480p", "720p", "1080p". | |
| reference_image_urls | No | Not accepted by this model. Declared type: array. | |
| enable_safety_checker | No | Enable content safety checks. Declared type: boolean. |