Skip to main content
Glama

image_to_video

Transform a source image into a short video using Grok Imagine. Specify a prompt, motion style, duration, and aspect ratio to generate video output, returning a task ID and URLs.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNoPoll until the task reaches a terminal status.
indexNoZero-based source image index; used only with source_task_id.
modelNoRunAPI model slug for this model line.
promptNoOptional video generation prompt.
timeout_msNo
aspect_ratioNoOutput aspect ratio.
callback_urlNoWebhook URL for terminal Task delivery.
motion_styleNoVideo motion style; spicy requires source_task_id.
source_task_idNoPrior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both.
duration_secondsNoOutput duration in seconds.
poll_interval_msNo
source_image_urlNoPublic source image URL; provide this or source_task_id, but not both.
output_resolutionNoOutput resolution.
reference_image_urlsNoNot accepted by this model.
enable_safety_checkerNoEnable content safety checks.
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only states that the tool returns a task id, status, and output URLs, implying an asynchronous task-based flow but without details on polling, error handling, safety checks, or mutability. The description fails to disclose potential side effects or invocation implications of this create operation.

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 a single concise sentence that front-loads the primary purpose and briefly mentions return values. There is no wasted text, and the structure is efficient and easy to parse.

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?

The tool has 15 parameters, no output schema, and no annotations, yet the description is extremely brief. It does not explain how to initiate the task (e.g., which input source to provide), the asynchronous behavior, timeout/polling mechanics, or how to interpret the returned task id and status. This is inadequate for a tool of this complexity.

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?

The schema description coverage is high (87%), so the schema already provides substantial parameter meaning. The description itself adds no parameter-specific details beyond the phrase 'image to video', which is already implied by the tool name. As a result, the description does not compensate for the few remaining undocumented parameters, but the schema's high coverage makes this a neutral baseline.

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 clearly states the tool creates a Grok Imagine task for image-to-video conversion on RunAPI. The verb 'Create' plus the resource 'Grok Imagine task' and the mode '(image to video)' provide specific scope. This sufficiently distinguishes it from sibling tools like text_to_video and extend_video.

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?

The description provides no guidance on when to use this tool versus alternatives such as text_to_video or extend_video. It also does not mention any prerequisites like needing a source_task_id or source_image_url, which are critical for invocation. The absence of usage context leaves the agent unclear about appropriate scenarios.

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/runapi-ai/grok-imagine-mcp'

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