generate_video
Create a 4-, 6-, or 8-second MP4 video with sound from a text prompt via Plantain and save it to disk; set duration, resolution, and aspect ratio.
Instructions
Generate a 4, 6, or 8 second MP4 video clip with sound from a text prompt using Plantain. Costs 8 credits (€0.16) regardless of length or resolution. Saves the MP4 to disk.
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 |
|---|---|---|---|
| prompt | Yes | Text description of the video clip and audio to generate. | |
| duration_s | No | Video duration in seconds: 4, 6, or 8. Same price for all lengths. | |
| resolution | No | Output resolution: 720p or 1080p. Same price for both. | 720p |
| output_path | No | Local file path to save the MP4. Defaults to ./plantain-<job_id>.mp4 in the current working directory. | |
| aspect_ratio | No | Landscape (16:9) or vertical/portrait (9:16). | 16:9 |