Skip to main content
Glama

Generate a video clip

generate_video

Generates one video clip from a prompt and saves it to your FXI library. Optional start and end frames, reference images, a reference or source video (for example your own clip to edit with Gemini Omni) and reference audio. Bring your own files with create_upload_url or upload_from_url first. Spends credits. Returns a generation id; check with get_generation (usually 1-3 min; prefer lifecycle_status).

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
seedNoOptional seed for repeatable results.
modelNoVideo model from list_models. Defaults to "p-video-2" (fast, lowest cost); for dialogue, multi-shot or complex camera work the result suggests "seedance-2-mini".
outfitNoOptional outfit for this clip only (overrides the character's default Look). Modest, everyday clothing words.
promptYesWhat happens in the clip, including camera movement.
durationNoClip length in seconds. Up to 20, or up to the model's max_duration_seconds from list_models (Seedance 2.5: 30). Within that, each model adjusts to its own range.
model_idNoDeprecated alias of "model". Prefer "model".
resolutionNoFor example "720p" or "1080p". Models that list resolutions in list_models accept only those.
video_roleNoHow reference_video is used by Gemini Omni: "source" edits that clip, "previous" continues from it, "reference" (default) guides motion and style.
location_idNoOptional id of one of your saved locations (list_assets). Its reference image is attached so the clip keeps the same set.
aspect_ratioNoFor example "16:9" or "9:16".
character_idNoOptional id of one of your saved characters (find ids with list_characters). Their locked Identity and default Look go into the clip word for word, with their reference images where the model accepts them.
estimate_onlyNoIf true, returns the estimated credit cost for this exact request (model, duration, resolution) and does NOT generate anything or spend any credits.
voice_consentNoRequired with reference_audio: true only after the user confirms they own the audio or have the rights to use it, including any voice, music or lyrics in it.
generate_audioNoAsk for sound on models that support it.
idempotency_keyNoOptional. Reuse the same key to retry safely: the earlier result is returned and nothing is charged twice.
reference_audioNoOptional reference audio (models that support it). Requires voice_consent. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is).
reference_imageNoOptional reference image. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is).
reference_videoNoOptional reference or source video, mp4 or webm (models that support it; Gemini Omni uses it as the clip to edit). Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is).
last_frame_imageNoOptional end frame image. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is).
reference_imagesNoOptional up to 4 reference images (models that accept several). Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is).
first_frame_imageNoOptional start frame image. Public https URL, or an asset_url from create_upload_url, upload_from_url or upload_media_data (used as-is).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / location_id
      Added value: +{
      +  "description": "Optional id of one of your saved locations (list_assets). Its reference image is attached so the clip keeps the same set.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Video model from list_models. Defaults to \"seedance-2-fast\"."New value: +"Video model from list_models. Defaults to \"p-video-2\" (fast, lowest cost); for dialogue, multi-shot or complex camera work the result suggests \"seedance-2-mini\"."
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare non-read-only, open-world, non-destructive, non-idempotent, but the description adds the context they can't carry: the call consumes credits, the result is persisted to a library, generation is asynchronous (1-3 min), and the return is an id, not the clip itself. That is exactly the cost/latency/persistence disclosure an agent needs before invoking a paid long-running operation.

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?

Four sentences, front-loaded with the purpose, then inputs, then prerequisites, then cost/return contract — a sensible ordering with essentially no filler. The one partially redundant sentence is the enumeration of optional media inputs, which largely restates what the 100%-covered schema already documents.

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 21-parameter, no-output-schema, credit-spending generation tool, the description covers the critical decision surface: what it produces, where it lands, what it costs, how to supply files, and how to retrieve the result. Remaining details (model names, duration/resolution ranges, estimate_only, voice_consent) live in the schema, which is fully documented, so their absence here is acceptable.

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 per-parameter baseline is 3, but the description adds cross-parameter meaning: the frame/image/video/audio parameters are grouped as optional conditioning inputs, and the media inputs must be either public https URLs or asset_urls produced by the upload tools. It also clarifies the role of reference_video for Gemini Omni ('your own clip to edit'), which is a usage distinction the schema only partly captures.

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?

Opens with a specific verb+resource+cardinality: 'Generates one video clip from a prompt and saves it to your FXI library.' That distinguishes it immediately from generate_image (still images), compose_scene and frame_chain (scene/multi-clip composition), and names the persisted side effect (library save) that those siblings imply but don't state.

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

Usage Guidelines4/5

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

Gives concrete workflow routing: obtain media via create_upload_url or upload_from_url first, then poll with get_generation and 'prefer lifecycle_status' rather than blocking. It also warns that the call spends credits. It stops short of stating when NOT to use this tool (e.g., versus compose_scene or frame_chain), so no explicit exclusions.

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.

Resources