Skip to main content
Glama

Generate video

generate_video

Generate 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

NameRequiredDescriptionDefault
modelNoVideo model ID. Default video/gemini-omni-flash.
extrasNoModel-specific parameters as listed by get_model_params. They are merged with the top-level fields.
promptYesSubject, action, camera, setting, timing and sound of the clip.
durationNoLength in seconds, e.g. 5 or "5s"; limits per model.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
image_urlNoLiteral first frame (https URL).
audio_urlsNoReference audio, for models that support it.
image_urlsNoReference images that guide but do not become frames.
resolutionNoe.g. 480p, 720p, 1080p; allowed values per model.
video_urlsNoReference or source videos.
skills_usedNoOptional 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_ratioNoe.g. 16:9, 9:16, 1:1.
character_idNoA 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_projectNoOptional 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_urlNoLast frame, for models that support it.
agentic_promptingNoOptional 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations by disclosing the billing model (submitting charges credits, auto-refund on failure) and the asynchronous job/check_job lifecycle, neither of which is inferable from readOnlyHint/destructiveHint/openWorldHint. Remaining gaps are minor: no statement of concurrency limits, typical job duration, or failure modes other than refunds.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the generation modes before the routing, billing, and lifecycle details, and each sentence carries information. It is a single dense block rather than a structured list, though, which makes the per-model caveat and the billing rule slightly harder to scan for a 16-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, nested-object, no-output-schema tool, the description covers the asynchronous return value (a job, permanent URL via check_job), cost behavior, default model, and model-dependent constraints. It does not describe the job object's shape or what happens to extras merged with top-level fields, but the schema covers the latter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real cross-field meaning the schema only implies: image_url is a literal first frame while image_urls are references that never become frames, and Character plus image_url/last_frame_url are mutually exclusive. It also flags that supported durations and resolutions vary by model, which the flat schema cannot express.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (generate) and resource (video clip) and then enumerates the distinct operating modes: text-to-video from a prompt, first-frame animation via image_url/last_frame_url, reference-media conditioning, and Character-based generation. That breakdown lets an agent distinguish it from generate_image, generate_html_video, and the post-processing siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names three sibling tools and the exact condition that selects each: get_model_params for per-model input/duration/resolution support, check_job for retrieving the finished URL, and estimate_generation for pricing without charging. The cost sentence effectively defines when to price first versus when to submit directly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.