Skip to main content
Glama
@runapi.ai/gemini-omni-mcp

@runapi.ai/gemini-omni-mcp

by runapi-ai

text_to_video

Generates a Gemini Omni video from a text prompt on RunAPI, returning a task ID, status, and output URLs. Use it to turn written ideas into finished video clips.

Instructions

Create a Gemini Omni task on RunAPI (text to video). Returns a task id, status, and output URLs.

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

Input Schema

NameRequiredDescriptionDefault
seedNoDeterministic generation seed. Declared type: integer.
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptYesVideo generation prompt. Declared type: string.
audio_idsNoAudio preset IDs returned by create-audio. Declared type: array.
timeout_msNo
video_listNoSource video clips; each clip consumes two reference units. Declared type: array.
aspect_ratioNoOutput aspect ratio. Declared type: string. Known values: "16:9", "9:16", "auto".
callback_urlNoWebhook URL for terminal Task delivery. Declared type: string.
character_idsNoCharacter IDs returned by create-character; dual-image characters consume two of the shared seven reference units. Declared type: array.
duration_secondsNoOutput duration in seconds. Declared type: integer.
poll_interval_msNo
output_resolutionNoOutput resolution. Declared type: string. Known values: "360p", "720p", "1080p", "4k".
last_frame_image_urlNoPublic last-frame image URL; requires first_frame_image_url. Declared type: string.
reference_image_urlsNoPublic reference image URLs; images, video clips, and characters share a seven-unit reference limit. Declared type: array.
reference_video_urlsNoSource video for edit; consumes two reference slots and determines output and billable duration. Declared type: array.
first_frame_image_urlNoPublic first-frame image URL; mutually exclusive with reference images, audio IDs, video clips, and character IDs. Declared type: string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • changedInput schema / properties / aspect_ratio / description
      Previous value: -"Output aspect ratio. Declared type: string. Known values: \"16:9\", \"9:16\"."New value: +"Output aspect ratio. Declared type: string. Known values: \"16:9\", \"9:16\", \"auto\"."
    • addedInput schema / properties / reference_video_urls
      Added value: +{
      +  "description": "Source video for edit; consumes two reference slots and determines output and billable duration. Declared type: array.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed31 schema fields changedv0.3.1
    • addedInput schema / additionalProperties
      Added value: +{}
    • removedInput schema / properties / aspect_ratio / anyOf
      Removed value: -[
      -  {
      -    "const": "16:9",
      -    "type": "string"
      -  },
      -  {
      -    "const": "9:16",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / aspect_ratio / description
      Previous value: -"Output aspect ratio."New value: +"Output aspect ratio. Declared type: string. Known values: \"16:9\", \"9:16\"."
    • addedInput schema / properties / aspect_ratio / type
      Added value: +"string"
    • changedInput schema / properties / audio_ids / description
      Previous value: -"Audio preset IDs returned by create-audio."New value: +"Audio preset IDs returned by create-audio. Declared type: array."
    • changedInput schema / properties / callback_url / description
      Previous value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string."
    • changedInput schema / properties / character_ids / description
      Previous value: -"Character IDs returned by create-character; dual-image characters consume two of the shared seven reference units."New value: +"Character IDs returned by create-character; dual-image characters consume two of the shared seven reference units. Declared type: array."
    • changedInput schema / properties / duration_seconds / description
      Previous value: -"Output duration in seconds."New value: +"Output duration in seconds. Declared type: integer."
    • changedInput schema / properties / duration_seconds / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / first_frame_image_url / description
      Previous value: -"Public first-frame image URL; mutually exclusive with reference images, audio IDs, video clips, and character IDs."New value: +"Public first-frame image URL; mutually exclusive with reference images, audio IDs, video clips, and character IDs. Declared type: string."
    • removedInput schema / properties / first_frame_image_url / pattern
      Removed value: -"^https?:\\/\\/"
    • changedInput schema / properties / last_frame_image_url / description
      Previous value: -"Public last-frame image URL; requires first_frame_image_url."New value: +"Public last-frame image URL; requires first_frame_image_url. Declared type: string."
    • removedInput schema / properties / last_frame_image_url / pattern
      Removed value: -"^https?:\\/\\/"
    • removedInput schema / properties / model / enum
      Removed value: -[
      -  "gemini-omni-flash-1-1",
      -  "gemini-omni-flash-preview",
      -  "gemini-omni-text-to-video"
      -]
    • removedInput schema / properties / output_resolution / anyOf
      Removed value: -[
      -  {
      -    "const": "360p",
      -    "type": "string"
      -  },
      -  {
      -    "const": "720p",
      -    "type": "string"
      -  },
      -  {
      -    "const": "1080p",
      -    "type": "string"
      -  },
      -  {
      -    "const": "4k",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / output_resolution / description
      Previous value: -"Output resolution."New value: +"Output resolution. Declared type: string. Known values: \"360p\", \"720p\", \"1080p\", \"4k\"."
    • addedInput schema / properties / output_resolution / type
      Added value: +"string"
    • changedInput schema / properties / prompt / description
      Previous value: -"Video generation prompt."New value: +"Video generation prompt. Declared type: string."
    • removedInput schema / properties / prompt / maxLength
      Removed value: -20000
    • changedInput schema / properties / reference_image_urls / description
      Previous value: -"Public reference image URLs; images, video clips, and characters share a seven-unit reference limit."New value: +"Public reference image URLs; images, video clips, and characters share a seven-unit reference limit. Declared type: array."
    • changedInput schema / properties / seed / description
      Previous value: -"Deterministic generation seed."New value: +"Deterministic generation seed. Declared type: integer."
    • removedInput schema / properties / seed / maximum
      Removed value: -2147483647
    • removedInput schema / properties / seed / minimum
      Removed value: -0
    • changedInput schema / properties / seed / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / video_list / description
      Previous value: -"Source video clips; each clip consumes two reference units."New value: +"Source video clips; each clip consumes two reference units. Declared type: array."
    • addedInput schema / properties / video_list / items / additionalProperties
      Added value: +true
    • removedInput schema / properties / video_list / items / properties / ends / description
      Removed value: -"Clip end time in seconds; must be greater than start and no more than 10 seconds after start."
    • removedInput schema / properties / video_list / items / properties / ends / minimum
      Removed value: -0
    • removedInput schema / properties / video_list / items / properties / start / description
      Removed value: -"Clip start time in seconds."
    • removedInput schema / properties / video_list / items / properties / start / minimum
      Removed value: -0
    • removedInput schema / properties / video_list / items / properties / url / description
      Removed value: -"Public source video URL."
  3. Changed23 schema fields changedv0.2.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / aspect_ratio / anyOf
      Added value: +[
      +  {
      +    "const": "16:9",
      +    "type": "string"
      +  },
      +  {
      +    "const": "9:16",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / aspect_ratio / enum
      Removed value: -[
      -  "16:9",
      -  "9:16"
      -]
    • removedInput schema / properties / aspect_ratio / type
      Removed value: -"string"
    • addedInput schema / properties / audio_ids / description
      Added value: +"Audio preset IDs returned by create-audio."
    • addedInput schema / properties / character_ids / description
      Added value: +"Character IDs returned by create-character; dual-image characters consume two of the shared seven reference units."
    • addedInput schema / properties / duration_seconds / description
      Added value: +"Output duration in seconds."
    • addedInput schema / properties / first_frame_image_url
      Added value: +{
      +  "description": "Public first-frame image URL; mutually exclusive with reference images, audio IDs, video clips, and character IDs.",
      +  "pattern": "^https?:\\/\\/",
      +  "type": "string"
      +}
    • addedInput schema / properties / last_frame_image_url
      Added value: +{
      +  "description": "Public last-frame image URL; requires first_frame_image_url.",
      +  "pattern": "^https?:\\/\\/",
      +  "type": "string"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "gemini-omni-flash-preview",
      -  "gemini-omni-text-to-video"
      -]New value: +[
      +  "gemini-omni-flash-1-1",
      +  "gemini-omni-flash-preview",
      +  "gemini-omni-text-to-video"
      +]
    • addedInput schema / properties / output_resolution / anyOf
      Added value: +[
      +  {
      +    "const": "360p",
      +    "type": "string"
      +  },
      +  {
      +    "const": "720p",
      +    "type": "string"
      +  },
      +  {
      +    "const": "1080p",
      +    "type": "string"
      +  },
      +  {
      +    "const": "4k",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / output_resolution / enum
      Removed value: -[
      -  "720p",
      -  "1080p",
      -  "4k"
      -]
    • removedInput schema / properties / output_resolution / type
      Removed value: -"string"
    • addedInput schema / properties / poll_interval_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / reference_image_urls / description
      Added value: +"Public reference image URLs; images, video clips, and characters share a seven-unit reference limit."
    • addedInput schema / properties / seed / description
      Added value: +"Deterministic generation seed."
    • addedInput schema / properties / seed / maximum
      Added value: +2147483647
    • addedInput schema / properties / seed / minimum
      Added value: +0
    • addedInput schema / properties / timeout_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / video_list / description
      Added value: +"Source video clips; each clip consumes two reference units."
    • addedInput schema / properties / video_list / items / properties
      Added value: +{
      +  "ends": {
      +    "description": "Clip end time in seconds; must be greater than start and no more than 10 seconds after start.",
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "start": {
      +    "description": "Clip start time in seconds.",
      +    "minimum": 0,
      +    "type": "number"
      +  },
      +  "url": {
      +    "description": "Public source video URL.",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / video_list / items / required
      Added value: +[
      +  "url",
      +  "ends",
      +  "start"
      +]
    • addedInput schema / properties / video_list / items / type
      Added value: +"object"
  4. Changed5 schema fields changedv0.2.1
    • addedInput schema / properties / aspect_ratio / description
      Added value: +"Output aspect ratio."
    • addedInput schema / properties / callback_url / description
      Added value: +"Webhook URL for terminal Task delivery."
    • addedInput schema / properties / output_resolution / description
      Added value: +"Output resolution."
    • addedInput schema / properties / prompt / description
      Added value: +"Video generation prompt."
    • addedInput schema / properties / prompt / maxLength
      Added value: +20000
  5. Changed11 schema fields changedv0.2.0
    • addedInput schema / properties / audio_ids
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • addedInput schema / properties / callback_url
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / character_ids
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • removedInput schema / properties / duration_seconds / enum
      Removed value: -[
      -  4,
      -  6,
      -  8,
      -  10
      -]
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "gemini-omni-text-to-video"
      -]New value: +[
      +  "gemini-omni-flash-preview",
      +  "gemini-omni-text-to-video"
      +]
    • addedInput schema / properties / prompt / type
      Added value: +"string"
    • addedInput schema / properties / reference_image_urls / items
      Added value: +{}
    • addedInput schema / properties / reference_image_urls / type
      Added value: +"array"
    • addedInput schema / properties / seed
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / video_list
      Added value: +{
      +  "items": {},
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "duration_seconds"
      -]New value: +[
      +  "prompt"
      +]
  6. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return shape (task id, status, output URLs), which is valuable with no output schema, but it omits the asynchronous task semantics, that wait defaults to true and blocks until terminal status, billing/duration implications, and the shared seven-unit reference limit implied by several parameters.

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?

Two short sentences, front-loaded with the action and the product line, with the return values trailing. Nothing is padded, though the brevity is partly a symptom of missing content rather than discipline.

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

Completeness2/5

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

For a 17-parameter, annotation-free, asynchronous generation tool with no output schema, the description is thin. It never explains the polling/wait contract, callback_url behavior, or the reference-budget interaction among images, video clips, and characters, leaving the agent to reconstruct critical invocation behavior from schema fragments alone.

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 88%, so the schema already documents nearly all 17 parameters, including mutual exclusivity of first_frame_image_url and the reference-unit limits. The description adds nothing parameter-specific 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: "Create a Gemini Omni task on RunAPI (text to video)." An agent can tell this is the text-to-video generation entry point. It does not, however, distinguish itself from siblings such as extend_video (which also produces video), so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named. The parenthetical "text to video" implies a starting-point generation tool, but the agent is left to infer when to choose this over extend_video or create_audio, and nothing says how this relates to get_task for polling.

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