Generate video
generate_videoGenerate a video clip from a prompt, animate a start frame (image_url, optionally to last_frame_url), or work from reference images, videos and audio (image_urls, video_urls, audio_urls) or a saved Character (character_id). Default model: video/gemini-omni-flash. Supported inputs, durations and resolutions differ per model (get_model_params). Returns a job; check_job returns the permanent video URL once it is completed. Submitting charges credits, refunded automatically if the job fails; estimate_generation prices a request without charging.
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 | Video model ID. Default video/gemini-omni-flash. | |
| extras | No | Model-specific parameters as listed by get_model_params. They are merged with the top-level fields. | |
| prompt | Yes | Subject, action, camera, setting, timing and sound of the clip. | |
| duration | No | Length in seconds, e.g. 5 or "5s"; limits per model. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| image_url | No | Literal first frame (https URL). | |
| audio_urls | No | Reference audio, for models that support it. | |
| image_urls | No | Reference images that guide but do not become frames. | |
| resolution | No | e.g. 480p, 720p, 1080p; allowed values per model. | |
| video_urls | No | Reference or source videos. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| aspect_ratio | No | e.g. 16:9, 9:16, 1:1. | |
| character_id | No | A saved Character. Its description is added to the prompt and its image is appended to image_urls as a reference, never as a start frame, so it cannot be combined with image_url or last_frame_url. Choose a model that supports image references. It does not select the Character's voice for native video audio. Use list_characters to find ids. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| last_frame_url | No | Last frame, for models that support it. | |
| agentic_prompting | No | Optional prompt rewrite for the selected model. Omit it by default to preserve the user's wording while keeping the provider's own prompt expansion where a model has one. Set true only when the user wants a model-specific rewrite; the result returns the rewritten prompt (and original_prompt), or a warning when the original was kept. Set false for strict wording; it also turns off the provider's prompt expansion. Adds a few seconds and costs nothing extra. Selected Character identity context is appended unchanged either way. |