generate_video
Generate videos from text prompts or images using Grok's video model. Start an asynchronous job to receive a request ID, then download the finished video and access it via a public URL.
Instructions
Create an asynchronous Console video job via Grok2API (model grok-imagine-video). Returns request_id immediately. Then call wait_video to download the finished file to grok-mcp, get a public /media URL, and optionally delete the remote gallery job. duration 1-15s (default 8). aspect_ratio: 1:1|16:9|9:16|... resolution: 480p|720p|1080p.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | No | ||
| duration | No | ||
| image_urls | No | ||
| resolution | No | 720p | |
| aspect_ratio | No | 16:9 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |