Skip to main content
Glama

text_to_video

Generate a video from a text prompt via RunAPI's Grok Imagine; it returns a task ID, status, and output URLs for polling or download.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptYesVideo generation prompt. Declared type: string.
timeout_msNo
aspect_ratioNoOutput aspect ratio. Declared type: string. Known values: "2:3", "3:2", "1:1", "16:9", "9:16", "auto".
callback_urlNoWebhook URL for terminal Task delivery. Declared type: string.
motion_styleNoVideo motion style. Declared type: string.
duration_secondsNoOutput duration in seconds. Declared type: integer.
poll_interval_msNo
output_resolutionNoOutput resolution. Declared type: string. Known values: "480p", "720p", "1080p".
reference_image_urlsNoNot accepted by this model. Declared type: array.
enable_safety_checkerNoEnable content safety checks. Declared type: boolean.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv0.2.0
    • addedInput schema / additionalProperties
      Added value: +{}
    • removedInput schema / properties / aspect_ratio / anyOf
      Removed value: -[
      -  {
      -    "const": "2:3",
      -    "type": "string"
      -  },
      -  {
      -    "const": "3:2",
      -    "type": "string"
      -  },
      -  {
      -    "const": "1:1",
      -    "type": "string"
      -  },
      -  {
      -    "const": "16:9",
      -    "type": "string"
      -  },
      -  {
      -    "const": "9:16",
      -    "type": "string"
      -  },
      -  {
      -    "const": "auto",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / aspect_ratio / description
      Previous value: -"Output aspect ratio."New value: +"Output aspect ratio. Declared type: string. Known values: \"2:3\", \"3:2\", \"1:1\", \"16:9\", \"9:16\", \"auto\"."
    • addedInput schema / properties / aspect_ratio / type
      Added value: +"string"
    • 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 / duration_seconds / description
      Previous value: -"Output duration in seconds."New value: +"Output duration in seconds. Declared type: integer."
    • removedInput schema / properties / duration_seconds / maximum
      Removed value: -30
    • removedInput schema / properties / duration_seconds / minimum
      Removed value: -6
    • changedInput schema / properties / duration_seconds / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / enable_safety_checker / description
      Previous value: -"Enable content safety checks."New value: +"Enable content safety checks. Declared type: boolean."
    • removedInput schema / properties / model / enum
      Removed value: -[
      -  "grok-imagine-text-to-video",
      -  "grok-imagine-video-1.5-fast",
      -  "grok-imagine-video-1.5-preview"
      -]
    • changedInput schema / properties / motion_style / description
      Previous value: -"Video motion style."New value: +"Video motion style. Declared type: string."
    • removedInput schema / properties / output_resolution / anyOf
      Removed value: -[
      -  {
      -    "const": "480p",
      -    "type": "string"
      -  },
      -  {
      -    "const": "720p",
      -    "type": "string"
      -  },
      -  {
      -    "const": "1080p",
      -    "type": "string"
      -  }
      -]
    • changedInput schema / properties / output_resolution / description
      Previous value: -"Output resolution."New value: +"Output resolution. Declared type: string. Known values: \"480p\", \"720p\", \"1080p\"."
    • 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: -5000
    • changedInput schema / properties / reference_image_urls / description
      Previous value: -"Not accepted by this model."New value: +"Not accepted by this model. Declared type: array."
  2. Changed9 schema fields changedv0.1.13
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / aspect_ratio / anyOf
      Added value: +[
      +  {
      +    "const": "2:3",
      +    "type": "string"
      +  },
      +  {
      +    "const": "3:2",
      +    "type": "string"
      +  },
      +  {
      +    "const": "1:1",
      +    "type": "string"
      +  },
      +  {
      +    "const": "16:9",
      +    "type": "string"
      +  },
      +  {
      +    "const": "9:16",
      +    "type": "string"
      +  },
      +  {
      +    "const": "auto",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / aspect_ratio / enum
      Removed value: -[
      -  "2:3",
      -  "3:2",
      -  "1:1",
      -  "16:9",
      -  "9:16",
      -  "auto"
      -]
    • removedInput schema / properties / aspect_ratio / type
      Removed value: -"string"
    • addedInput schema / properties / output_resolution / anyOf
      Added value: +[
      +  {
      +    "const": "480p",
      +    "type": "string"
      +  },
      +  {
      +    "const": "720p",
      +    "type": "string"
      +  },
      +  {
      +    "const": "1080p",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / output_resolution / enum
      Removed value: -[
      -  "480p",
      -  "720p"
      -]
    • removedInput schema / properties / output_resolution / type
      Removed value: -"string"
    • addedInput schema / properties / poll_interval_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / timeout_ms / maximum
      Added value: +9007199254740991
  3. Changed12 schema fields changedv0.1.11
    • addedInput schema / properties / aspect_ratio / description
      Added value: +"Output aspect ratio."
    • changedInput schema / properties / aspect_ratio / enum
      Previous value: -[
      -  "2:3",
      -  "3:2",
      -  "1:1",
      -  "16:9",
      -  "9:16"
      -]New value: +[
      +  "2:3",
      +  "3:2",
      +  "1:1",
      +  "16:9",
      +  "9:16",
      +  "auto"
      +]
    • addedInput schema / properties / callback_url
      Added value: +{
      +  "description": "Webhook URL for terminal Task delivery.",
      +  "type": "string"
      +}
    • addedInput schema / properties / duration_seconds
      Added value: +{
      +  "description": "Output duration in seconds.",
      +  "maximum": 30,
      +  "minimum": 6,
      +  "type": "number"
      +}
    • addedInput schema / properties / enable_safety_checker
      Added value: +{
      +  "description": "Enable content safety checks.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "grok-imagine-text-to-video"
      -]New value: +[
      +  "grok-imagine-text-to-video",
      +  "grok-imagine-video-1.5-fast",
      +  "grok-imagine-video-1.5-preview"
      +]
    • addedInput schema / properties / motion_style / description
      Added value: +"Video motion style."
    • removedInput schema / properties / motion_style / enum
      Removed value: -[
      -  "fun",
      -  "normal",
      -  "spicy"
      -]
    • addedInput schema / properties / output_resolution / description
      Added value: +"Output resolution."
    • addedInput schema / properties / prompt
      Added value: +{
      +  "description": "Video generation prompt.",
      +  "maxLength": 5000,
      +  "type": "string"
      +}
    • addedInput schema / properties / reference_image_urls
      Added value: +{
      +  "description": "Not accepted by this model.",
      +  "items": {},
      +  "type": "array"
      +}
    • addedInput schema / required
      Added value: +[
      +  "prompt"
      +]
  4. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, but it does disclose the async task model and that it returns a task id, status, and output URLs — meaningful behavioral context absent from any output schema. It omits permissions, cost/rate limits, failure behavior, and that the task id is meant to be consumed by get_task, leaving notable gaps for a creation tool.

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 with no filler, and the action is front-loaded before the return-value note. It is efficient, though so sparse that it borders on under-specification rather than exemplary conciseness.

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 12-parameter generation tool with no annotations and no output schema, the description is thin: it doesn't mention the timeout_ms/poll_interval_ms behavior, the fact that reference_image_urls is rejected by this model, or the handoff to get_task. The return-value sentence is the only substantive addition.

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 83%, so the schema already documents nearly all 12 parameters, and the description adds no parameter-level meaning at all. Baseline 3 per the rubric when schema coverage is high.

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?

States a specific verb and resource — 'Create a Grok Imagine task on RunAPI (text to video)' — which clearly separates it from image_to_video, text_to_image, and extend_video. It doesn't explicitly name those siblings, but the 'text to video' qualifier makes the scope unambiguous.

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 guidance on when to choose this tool over image_to_video or extend_video, nor any prerequisites (API key, credit cost) or advice on the wait/polling behavior. Usage is only inferable from the tool name.

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