generate_video
Create a short MP4 video from a text description using AI providers like fal or Runway. Provide a prompt, optional duration and model, and receive the generated video file path.
Instructions
Generate a short video from a text description using AI (fal or Runway). Requires a provider API key. Generation is slow (minutes). Returns the path to the generated MP4.
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": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id. Omit for the default. | |
| prompt | Yes | Description of the video to generate | |
| duration | No | Duration in seconds (5-10, provider-dependent; Runway snaps to 5 or 10). | |
| provider | No | AI provider. Omit to use the first configured key. |