Skip to main content
Glama

Generate media

generate_media

Generate standalone image or video media using the same prompt, quality, ratio, preset, duration, frame, reference, audio, and character options as the Revid media generator. The media is saved to the user's Revid media library. Set dryRun: true to validate inputs and get estimatedCredits and creditsAvailable without starting or charging a generation. The call waits up to 40 seconds. A generation done by then returns status "ready" with each media's url. A longer one (ultra images often, videos usually: 1 to 10 minutes) returns status "processing" with mediaIds: call get_media_status with them until the status is ready or failed. Do not call generate_media again for the same request while it is processing: every call starts and charges a new generation. Requires an active Revid plan.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioNoFor videos, add native audio (default true; pass false for a silent clip).
countNoImage count (1-10, images only).
ratioNoOutput ratio: 9:16 (default), 16:9, 1:1, or 4:5.
dryRunNoValidate inputs and return estimatedCredits (and creditsAvailable) without starting or charging a generation.
presetNoOptional Revid visual preset from `list_presets`.
promptNoVisual prompt (optional for video when firstFrame is set).
qualityNoImage tier (cheap, good, ultra) or video tier/model (base, pro, ultra, veo3, seedance-1080p, kling-3, ...).
voiceIdNoOptional voice id from `list_voices` for generated video audio.
durationNoVideo duration in seconds.
lastFrameNoOptional video end-frame image URL.
mediaTypeNoMedia type to generate: image (default) or video.
firstFrameNoOptional video start-frame image URL.
characterIdsNoConsistent character ids from `list_characters`.
improvePromptNoImprove the prompt before generation.
withTranscriptNoFor a video with audio, defaults to true (spoken lines + transcript); pass false for sound without speech.
referenceAudiosNoAudio reference URLs for video generation.
referenceImagesNoImage reference URLs.
referenceVideosNoVideo reference URLs for video generation.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
methodYes
statusYes
endpointYes
retryAfterSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "Validate inputs and return estimatedCredits (and creditsAvailable) without starting or charging a generation.",
      +  "type": "boolean"
      +}
  2. Changed24 schema fields changed
    • changedInput schema / properties / audio / description
      Previous value: -"For videos, add audio to generated output, spoken lines included. Defaults to true; pass false for a silent clip."New value: +"For videos, add native audio (default true; pass false for a silent clip)."
    • changedInput schema / properties / characterIds / description
      Previous value: -"Consistent character ids."New value: +"Consistent character ids from `list_characters`."
    • changedInput schema / properties / count / description
      Previous value: -"Image count. Videos generate one item, matching the media generator UI."New value: +"Image count (1-10, images only)."
    • changedInput schema / properties / firstFrame / description
      Previous value: -"Optional video first-frame image URL."New value: +"Optional video start-frame image URL."
    • removedInput schema / properties / generationPreset
      Removed value: -{
      -  "description": "Optional Revid media generator preset value.",
      -  "type": "string"
      -}
    • changedInput schema / properties / improvePrompt / description
      Previous value: -"Improve the image/video prompt before generation."New value: +"Improve the prompt before generation."
    • removedInput schema / properties / inputAudios
      Removed value: -{
      -  "description": "Alias of referenceAudios.",
      -  "items": {
      -    "format": "uri",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / inputImages
      Removed value: -{
      -  "description": "Alias of referenceImages.",
      -  "items": {
      -    "format": "uri",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / inputVideos
      Removed value: -{
      -  "description": "Alias of referenceVideos.",
      -  "items": {
      -    "format": "uri",
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / lastFrame / description
      Previous value: -"Optional video last-frame image URL."New value: +"Optional video end-frame image URL."
    • removedInput schema / properties / media
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "addAudioToVideos": {
      -      "type": "boolean"
      -    },
      -    "firstFrame": {
      -      "format": "uri",
      -      "type": "string"
      -    },
      -    "imageModel": {
      -      "enum": [
      -        "cheap",
      -        "good",
      -        "ultra"
      -      ],
      -      "type": "string"
      -    },
      -    "inputAudios": {
      -      "items": {
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "inputImages": {
      -      "items": {
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "inputVideos": {
      -      "items": {
      -        "format": "uri",
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "lastFrame": {
      -      "format": "uri",
      -      "type": "string"
      -    },
      -    "mediaPreset": {
      -      "type": "string"
      -    },
      -    "type": {
      -      "enum": [
      -        "image",
      -        "video"
      -      ],
      -      "type": "string"
      -    },
      -    "videoModel": {
      -      "enum": [
      -        "base",
      -        "pro",
      -        "ultra",
      -        "veo3",
      -        "sora2"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • changedInput schema / properties / mediaType / description
      Previous value: -"Media type to generate. Defaults to image."New value: +"Media type to generate: image (default) or video."
    • removedInput schema / properties / options
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "characterIds": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "improvePrompt": {
      -      "type": "boolean"
      -    },
      -    "outputCount": {
      -      "exclusiveMinimum": 0,
      -      "maximum": 10,
      -      "type": "integer"
      -    },
      -    "selectedCharacters": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "withTranscript": {
      -      "description": "For a video with audio, defaults to true: the clip may speak and its transcript is returned. Pass false for sound without speech.",
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}
    • changedInput schema / properties / preset / description
      Previous value: -"Alias of generationPreset."New value: +"Optional Revid visual preset from `list_presets`."
    • changedInput schema / properties / prompt / description
      Previous value: -"Media prompt. You can also use source.prompt or input."New value: +"Visual prompt (optional for video when firstFrame is set)."
    • changedInput schema / properties / quality / description
      Previous value: -"Image or video quality, same values as the media generator UI."New value: +"Image tier (cheap, good, ultra) or video tier/model (base, pro, ultra, veo3, seedance-1080p, kling-3, ...)."
    • removedInput schema / properties / quality / enum
      Removed value: -[
      -  "cheap",
      -  "good",
      -  "ultra",
      -  "base",
      -  "pro",
      -  "veo3",
      -  "sora2"
      -]
    • changedInput schema / properties / ratio / description
      Previous value: -"Output ratio."New value: +"Output ratio: 9:16 (default), 16:9, 1:1, or 4:5."
    • removedInput schema / properties / ratio / enum
      Removed value: -[
      -  "portrait",
      -  "landscape",
      -  "square",
      -  "feed",
      -  "linkedin",
      -  "9:16",
      -  "16:9",
      -  "1:1",
      -  "4:5",
      -  "9/16",
      -  "16/9",
      -  "1/1",
      -  "4/5",
      -  "9 / 16",
      -  "16 / 9",
      -  "1 / 1",
      -  "4 / 5"
      -]
    • removedInput schema / properties / selectedCharacters
      Removed value: -{
      -  "description": "Alias of characterIds.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / source
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "durationSeconds": {
      -      "exclusiveMinimum": 0,
      -      "maximum": 9007199254740991,
      -      "type": "integer"
      -    },
      -    "prompt": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedInput schema / properties / video
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "duration": {
      -      "exclusiveMinimum": 0,
      -      "maximum": 60,
      -      "type": "integer"
      -    },
      -    "enableAudio": {
      -      "type": "boolean"
      -    },
      -    "firstFrame": {
      -      "format": "uri",
      -      "type": "string"
      -    },
      -    "lastFrame": {
      -      "format": "uri",
      -      "type": "string"
      -    },
      -    "voiceId": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • changedInput schema / properties / voiceId / description
      Previous value: -"Optional voice id for generated video audio processing."New value: +"Optional voice id from `list_voices` for generated video audio."
    • addedInput schema / properties / withTranscript
      Added value: +{
      +  "description": "For a video with audio, defaults to true (spoken lines + transcript); pass false for sound without speech.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say non-readonly, open-world, non-idempotent. The description adds the costly facts: the call waits up to 40 seconds, longer jobs (ultra images, videos 1–10 min) return status 'processing', each call charges a new generation, and an active Revid plan is required. This is exactly the context annotations cannot carry.

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 what is generated and where it is saved, then the dryRun escape hatch, then the async contract. Dense and purposeful, though the enumeration of parameter families is slightly redundant with a 100%-covered schema.

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 an 18-parameter, chargeable, asynchronous generation tool with an output schema, the description covers the timing contract, the two terminal statuses, the polling handoff, and the billing/plan prerequisite. Nothing an agent needs to invoke it safely 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 the baseline is 3. The description mostly restates the parameter families (prompt, quality, ratio, preset, duration, frame, reference, audio, character) and only adds the return fields `estimatedCredits`/`creditsAvailable` for dryRun, which the schema's dryRun description already states.

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+resource ('Generate standalone image or video media') and adds the consequential outcome that the media lands in the user's Revid media library. An agent can distinguish it from siblings like get_media_status or calculate_credits 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?

Explicitly routes the agent: use `get_media_status` with returned mediaIds for long generations, and a hard exclusion — 'Do not call generate_media again for the same request while it is processing: every call starts and charges a new generation.' It also names a validation mode (dryRun) as an alternative to a real call.

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