Skip to main content
Glama

grok_text_to_video

Generate an AI video directly from your text prompt. Describe the scene, subject, action, and style to produce a matching video clip.

Instructions

Generate AI video from a text prompt using Grok Imagine.

This creates a video from scratch based on your text description. Grok
Imagine will interpret your prompt and generate a matching video clip.

Use this when:
- You want to create a video from a text description
- You don't have a reference image to use
- You want maximum creative freedom

Only the 'grok-imagine-video-1.5-fast:reverse', 'grok-imagine-video:reverse',
and 'grok-imagine-video:official' models support text-to-video. For generating
a video from a reference image, use grok_image_to_video instead.

Returns:
    Task ID and generated video information including URLs and state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoGrok Imagine model. Text-to-video is supported by 'grok-imagine-video-1.5-fast:reverse' (default, fast 6-30s), 'grok-imagine-video:reverse' (standard 1-15s), 'grok-imagine-video:official' (official, higher fidelity), and 'grok-imagine-video' (standard quality). Do NOT use 'grok-imagine-video-1.5:official' here — it is image-to-video only.grok-imagine-video-1.5-fast:reverse
promptYesDescription of the video to generate. Be descriptive about scene, subject, action, camera movement, lighting, and style. Examples: 'A cinematic shot of a kitten chasing a butterfly in a sunlit garden', 'Drone shot flying over a neon-lit cyberpunk city at night'. Required for text-to-video.
durationNoVideo duration in seconds (default 6). 'grok-imagine-video-1.5-fast:reverse' supports 6-30; every other model supports 1-15.
resolutionNoOutput resolution. '480p' (default, cheaper), '720p', or '1080p'. Higher resolution costs more per second on the per-second-priced models.480p
aspect_ratioNoVideo aspect ratio. '16:9' for landscape/widescreen, '9:16' for portrait/vertical, '1:1' for square, plus '4:3', '3:4', '3:2', '2:3'.16:9
callback_urlNoOptional URL to receive a POST callback when generation completes. The callback will include the task_id and video results.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the async nature by stating 'Returns: Task ID and generated video information including URLs and state,' which implies polling. It also mentions model-specific durations, cost implications of resolution, and callback behavior. Minor gap: it doesn't explicitly state that generation is asynchronous or mention failure/error handling, but the return-type disclosure is strong.

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?

The description is well-structured: purpose sentence, context, explicit use cases, sibling-tool reference, model compatibility note, and a concise returns section. Every sentence earns its place, and it is front-loaded with the primary action. No redundancy or 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?

Given six parameters with complex model constraints, the description covers all necessary operational context: supported models, duration limits, resolution cost implications, aspect ratio usage, callback behavior, and return type. It is complete for a task-creation tool with rich schema and no need to explain return values beyond the stated task ID and URLs.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds critical value beyond the schema by clarifying which models support text-to-video and explicitly warning against using 'grok-imagine-video-1.5:official' for this tool. This prevents a common mistake and adds semantic meaning not present in the schema enum alone.

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 statement: 'Generate AI video from a text prompt using Grok Imagine.' It clearly distinguishes the tool from its sibling grok_image_to_video by explicitly noting that image-to-video should use that sibling tool. The 'Use this when' bullets further narrow the purpose to text-only generation with creative freedom.

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?

Explicit 'Use this when' bullets provide clear usage context, and the description directly names the alternative tool for reference-image inputs. It also lists the exact models that support text-to-video, warning against using an incompatible model. This gives unambiguous when-to-use and when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceDataCloud/GrokMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server