Generate a video
generate_videoStarts a video with a genframe model and charges the account's credits (refunded if it fails). Videos take about 1–6 minutes: the result gives a job_id; call get_job with wait_seconds to get the link when it is ready. Optional first/last frame pictures as public https URLs or links from this server.
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 |
|---|---|---|---|
| audio | No | Sound, for models that offer it (may change the price). | |
| model | No | Video model id from list_models. Default: an inexpensive model. | |
| prompt | Yes | What happens in the video. Any language. 3–1500 characters. | |
| duration | No | Seconds, one of the model's options.duration (default 5 when offered). | |
| resolution | No | One of the model's options.resolution, e.g. 480p, 720p, 1080p (1080p and above need the Про plan). | |
| aspect_ratio | No | For example 16:9, 9:16, 1:1. With a first frame the frame's proportions win. | |
| last_frame_url | No | Picture to end on (only models whose inputs.last is true; needs first_frame_url). | |
| first_frame_url | No | Picture to start the video from (image-to-video). |