Skip to main content
Glama

Generate video

video_generate
Idempotent

Start generating a video from a text prompt — or from an image, with an image-to-video model — with an AIMLAPI video model. For images use image_generate, for music audio_generate. Billed to your AIMLAPI balance at the model's price, usually per second of video (see model_get). Returns at once with job_id, kind, model and status "processing": generation takes minutes, so check it with job_status and, once it is "complete", fetch the video URL with job_result. The same request again within 24 hours returns the job already started instead of a second billed generation; send a new idempotency_key to generate again on purpose.

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": {
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "video_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesAIMLAPI video model id or alias, e.g. "kling-video/v1.6/standard". Find others with models_list (modality "video") or jev_model_search.
paramsNoModel-specific request fields, sent to the model as they are, e.g. { "duration": 5, "resolution": "720p", "aspect_ratio": "16:9" }, or { "image_url": "https://…" } for an image-to-video model. Field names and allowed values differ by model: see its API reference on docs.aimlapi.com.
promptYesWhat happens in the video, in plain words.
idempotency_keyNoOptional key that makes a resubmit safe: the same key returns the same job without starting (or charging) a second generation. Without a key, the same request within 24 hours is deduplicated the same way; send a new key to generate again on purpose.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, open-world, idempotent and non-destructive, but the description adds what those hints cannot: billing against the AIMLAPI balance at a per-second model price, multi-minute latency, the immediate return shape (job_id, kind, model, status "processing"), and the 24-hour deduplication window with the escape hatch of a new idempotency_key. The only minor gap is that it does not describe failure modes or what happens to a partially completed job.

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

Conciseness5/5

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

Three sentences, front-loaded with the action, then alternatives, then cost/async lifecycle. Each sentence carries distinct information (capability, routing, billing, return shape, polling path, dedup) with no filler.

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?

There is no output schema, and the description compensates by naming the returned fields and the two follow-up tools needed to reach the final video URL. For an asynchronous, billed generation tool with a nested params object this is close to complete; only error/refund behavior on failed jobs is unaddressed.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents model, prompt, params and idempotency_key thoroughly, including the free-form model-specific params object. The description restates the idempotency behavior and the image_url-via-params convention but adds no syntax or constraint detail beyond the schema, so the baseline 3 applies.

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 and resource ("Start generating a video") plus both input modes (text prompt or image-to-video) and names the model provider. It explicitly routes image and music requests to image_generate and audio_generate, so the agent can separate this from 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?

Gives explicit when-to-use guidance (text prompt or image with an image-to-video model), explicit alternatives for non-video modalities, and the follow-up path: poll with job_status, then fetch the URL with job_result once status is "complete". Nothing about tool selection is left to inference.

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