generate-video
Create videos from text prompts and images using AI models, with options to control aspect ratio, resolution, duration, and looping for customized outputs.
Instructions
Generate a video from text prompt and/or images using AI models (Luma or Kling)
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 |
|---|---|---|---|
| aspect_ratio | No | Aspect ratio of the video | 16:9 |
| duration | No | Duration of the video (9s costs 2x more) | 5s |
| end_image_url | No | Final image to end the video with (URL or base64 data URI) | |
| image_url | No | Initial image to start the video from (URL or base64 data URI) | |
| loop | No | Whether the video should loop (blend end with beginning) | |
| model | No | AI model to use (luma=Ray2, kling=Kling) | luma |
| prompt | Yes | Text description of the desired video content | |
| resolution | No | Resolution of the video (higher resolutions use more credits) | 540p |