Skip to main content
Glama

Start a video

generate_video

Creates a video from a prompt and optional images using a Kunavo video model, charges the prepaid balance, and returns a task ID to track progress with get_task.

Instructions

Start generating a video with a Kunavo video model (endpoint video in list_models), from a prompt and optionally from images. Spends the balance, and video is the dearest thing here: a model is priced per video or per second of video (its listed price is in list_models), and a higher resolution costs more. What was charged is what get_usage reports. A clip takes from half a minute to several minutes, so this returns a task id; follow it with get_task. Starting it twice makes and charges two videos, unless the second call carries the first one's idempotency_key.

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": "generate_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesA model id from list_models with endpoint video.
imagesNoOptional source images. One image as the first frame needs a model with the image-to-video capability; two (first and last frame) need first-last-frame; references need reference-image, and no more than the model's max_reference_images in list_models. Without any, the model needs text-to-video. Each: An https:// URL, or the path of a local PNG, JPEG, WebP or GIF file (25 MB at most), which is uploaded for you.
promptYesDescription of the shot.
durationNoClip length in whole seconds, on a model priced per second: these are the seconds charged, and a length outside the model's range (`duration_seconds` in list_models) is refused. When left out, the model's default length is made and charged. A model priced per video does not read it.
image_modeNoHow the images are used. "frame" (default): one image is the first frame, two are the first and last frame. "reference": style or subject references that are not shown as frames; how many a model takes is its max_reference_images in list_models.
resolutionNoResolution tier: one of the ids list_models gives under `tiers` for the model, e.g. "720p" or "1080p". It sets the price. A value that is none of the model's tiers is refused by the API with a 400 that lists them, and is not charged.
aspect_ratioNoShape of the clip, e.g. "16:9" or "9:16".
wait_secondsNoHow long to wait for the result before returning, in seconds (0 to 45, default 0). An unfinished task is returned with its id.
idempotency_keyNoAny string of your own, 128 characters at most. Calling again with the same one and the same arguments returns the task that call started instead of starting, and charging, another. A key stands for one request for as long as the API keeps its task: the API refuses it for a request on another tool, for another model or with other arguments, so use a new one for each new request. When left out, one is made and given back in the answer.

Output Schema

NameRequiredDescriptionDefault
idYesTask id: img_… (image), vid_… (video) or msc_… (music).
kindYes
urlsYesResult files once completed: the images, the video, or the audio of each track.
errorYes
modelYes
statusYesqueued, in_progress, completed or failed. Anything else is a task that is not finished.
tracksNoMusic only: one entry for each track.
stalledYestrue when the task has gone longer than expected without finishing.
archivedYestrue: every URL in `urls` is Kunavo's own copy and does not expire. false: a file could not be archived and its URL is the model provider's temporary one. null until completed.
next_stepYesWhat to do with this result.
created_atYes
resolutionNoVideo only.
completed_atYes
pollable_untilYesThe task can be read with get_task at least until then.
idempotency_keyNoThe key this task was started under, in the answer of the tool that started it (get_task does not know it). Calling that tool again with it and the same arguments returns this task.
duration_secondsNoVideo only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations it discloses cost semantics (per-video vs per-second pricing, resolution raising price, get_usage as the source of truth), latency expectations ('half a minute to several minutes'), asynchronous task-id return, and that a duplicate call creates and charges a second video unless idempotency_key is reused. That is exactly the behavioral context an agent needs before committing money.

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?

Purpose and cost warning are front-loaded, and every sentence carries operational information. Some sentences are densely multi-clause and colloquial ('video is the dearest thing here'), which costs a little readability, but there is no filler.

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

Completeness5/5

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

For a 9-parameter, costly, asynchronous generation tool with an output schema already defined, the description covers cost, latency, return shape, capability constraints, and retry safety. Nothing critical for a correct first call is missing.

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 parameter meaning is already fully documented in the schema (model capability gating, image modes, duration ranges, resolution tiers, idempotency semantics). The description reinforces the price impact of resolution and duration but adds little that the schema does not already say; 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?

The description opens with a specific verb+resource ('Start generating a video with a Kunavo video model'), scopes the model via 'endpoint video in list_models', and states the inputs ('from a prompt and optionally from images'). That clearly separates it from generate_image, generate_music, and chat without needing to name them.

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?

It gives concrete workflow guidance: pick a model via list_models, follow the returned task id with get_task, and check actual charges with get_usage. It also explains the retry rule around idempotency_key. It stops short of explicit when-not-to-use exclusions (e.g. choose generate_image for stills), so a 4 rather than a 5.

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