Skip to main content
Glama

generate_video

Generate a video from a text prompt or a start image URL. Returns request ID and cost instantly; video renders in 1-10 minutes.

Instructions

Start a video generation from a text prompt (text-to-video) or from a start image (image-to-video, pass image_url). Returns request_id and cost in credits immediately — video renders take 1–10 minutes, poll with wait_generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoFixes randomness. Video renders one clip per call (no batch) — for multiple distinct variants run separate calls with a different seed each; identical calls within ~20s are de-duplicated to one generation.
inputNoAdvanced model-specific parameters (see get_model input_schema). Merged with the fields above.
modelNoModel slug from list_models. Omit to use the default video model (text-to-video or image-to-video is picked automatically based on image_url).
promptYesScene description. English recommended for best quality. Do not include on-screen text.
durationNoClip length in seconds (model-dependent, typically 5–10).
image_urlNoPublic https URL of the start frame — switches to image-to-video.
resolutionNoe.g. '480p', '720p', '1080p' where supported.
aspect_ratioNoe.g. '16:9', '9:16', '1:1'.
wait_secondsNoOptional inline wait before returning.
generate_audioNoGenerate a soundtrack/ambient audio where supported.
idempotency_keyNoOptional stable key to safely retry without creating (and paying for) a duplicate generation. Reuse the same key when retrying the same request.
Behavior5/5

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

Description adds significant behavioral details beyond annotations: de-duplication within ~20s, one clip per call, need for separate calls with different seeds for variants, and approximate render time (1-10 min). Annotations only indicate non-readonly and non-destructive; description fills the gaps.

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?

Description is concise (one paragraph) and front-loaded with the core purpose. However, it could be slightly more structured (e.g., bullet points for two modes). No wasted words.

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?

Given 11 parameters, all documented in schema, and no output schema, the description covers return format (request_id, cost) and polling mechanism. It does not explicitly mention all sibling tools but the context is sufficient for an AI agent.

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 already covers all 11 parameters with descriptions (100% coverage). The description adds value by explaining de-duplication behavior and idempotency_key usage, which is not fully captured in schema descriptions.

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?

Clearly states the tool starts video generation from text or image, with immediate return of request_id and cost, and distinguishes between text-to-video and image-to-video modes. It differentiates from siblings like generate_image and compose_video.

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?

Provides explicit guidance on when to use text-to-video versus image-to-video (by passing image_url). Mentions polling with wait_generation as a follow-up. Does not explicitly list when not to use but implies through context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clipia-ai/clipia-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server