Generate Video
sirv_generate_videoGenerate a video from a text prompt and images, choosing a model, duration, resolution, and optional audio to create new footage ready for download.
Instructions
Make a video from a prompt and images. Pick model by the input you have:
gemini-omni-flash (default): a first frame in
image_url. 3 to 15 seconds (default 8); 360p, 720p, 1080p or 4k.gemini-omni-flash-ref: 1 to 10 reference images in
image_urls. The same lengths and resolutions.ltx:
image_url. 6, 8 or 10 seconds; 1080p (default), 1440p or 2160p.kling:
image_url. 5 or 10 seconds.h3-max:
image_url, or the prompt alone. 5, 10 or 15 seconds; 480P or 768P (default).durationis the length in seconds as text; a length that the model does not offer returns an error.generate_audioadds sound with ltx and kling. The retired veo31 and veo31ref ids run on the gemini models.
Do not use it to make an existing video sharper: use sirv_upscale_video. Returns video_url. The request can take up to 10 minutes: keep the connection open for that long.
Credits: spends workspace credits. The cost depends on the model and options.
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": "sirv_generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Video model. The retired veo31 and veo31ref run on gemini-omni-flash and gemini-omni-flash-ref. Default: gemini-omni-flash | gemini-omni-flash |
| prompt | Yes | The video to make, in words, up to 2000 characters | |
| duration | No | Length in seconds, as text, such as '6'. gemini-omni-flash takes 3 to 15. Default: the model's own | |
| image_url | No | Public URL of the first frame. Needed for gemini-omni-flash, ltx and kling; optional for h3-max; not used by gemini-omni-flash-ref | |
| image_urls | No | 1 to 10 public image URLs that keep the subject the same. Needed for gemini-omni-flash-ref; not used by other models | |
| resolution | No | Output resolution. Default: the model's own | |
| aspect_ratio | No | Width to height of the video. Default: the model's own | |
| generate_audio | No | true adds a sound track. Default: false |