grok-imagine-mcp
The grok-imagine-mcp server provides AI agents with access to Grok Imagine models on RunAPI for image and video generation, editing, and utility tasks.
text_to_image: Generate images from a text prompt, with aspect ratio options.text_to_video: Generate videos from a text prompt, with aspect ratio, motion style (fun,normal,spicy), and output resolution (480p,720p) options.image_to_video: Convert a static image into a video, with aspect ratio, motion style, and resolution controls.edit_image: Apply edits to an existing image.extend_video: Lengthen an existing video (6 or 10 seconds extension).upscale_image: Increase the resolution/quality of an existing image.get_task: Fetch the current status and result payload for any previously created task by task ID.check_pricing: Look up current pricing for any Grok Imagine model and endpoint — no API key required.Async or synchronous execution: All creation tools support a
waitflag to poll until completion or return immediately with a task ID. Configurable viatimeout_msandpoll_interval_ms.
Supported model variants: grok-imagine-text-to-image, grok-imagine-text-to-video, grok-imagine-image-to-video, grok-imagine-edit-image.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grok-imagine-mcpgenerate an image of a cat wearing a wizard hat"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Why This Package?
@runapi.ai/grok-imagine-mcp is a focused Model Context Protocol server for the Grok Imagine model line on RunAPI.
It gives MCP-compatible assistants direct access to 7 endpoints and 7 model variants without loading the full RunAPI catalog.
Use this per-model server when an agent should stay scoped to Grok Imagine. Use @runapi.ai/mcp when one assistant should discover every RunAPI model line.
Related MCP server: GPT Image MCP Server
Install
Add it to Claude Code:
claude mcp add grok-imagine -s user -- npx -y @runapi.ai/grok-imagine-mcpUse project scope when the server should be shared with a repository:
claude mcp add grok-imagine -s project -- npx -y @runapi.ai/grok-imagine-mcpCodex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts can use the same stdio command:
{
"mcpServers": {
"grok-imagine": {
"command": "npx",
"args": ["-y", "@runapi.ai/grok-imagine-mcp"]
}
}
}check_pricing works before sign-in. For task creation and status polling, ask your assistant to call the login tool. It opens a browser login and saves credentials to ~/.config/runapi/config.json, the same file used by runapi login.
Headless and CI hosts can still set RUNAPI_API_KEY before starting the MCP host.
Ready-made examples are in examples/ for Claude, Cursor, Windsurf, VS Code, and Roo Code.
Tools
Tool | Auth | Purpose |
| Yes | Create a Grok Imagine edit image task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Create a Grok Imagine extend video task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Create a Grok Imagine image to video task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Create a Grok Imagine segment map task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Create a Grok Imagine text to image task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Create a Grok Imagine text to video task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Create a Grok Imagine upscale image task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Fetch the current status and latest payload for an existing task. |
| No | Look up current pricing for a Grok Imagine model and endpoint. |
Models
Grok Imagine covers 7 model variants across 7 endpoints. Each tool accepts the models listed for it:
Tool | Models |
|
|
| no model parameter |
|
|
|
|
|
|
|
|
| no model parameter |
Model availability can change between releases. Use check_pricing or the Grok Imagine model page for the current catalog view.
Agent Prompts
Ask your assistant in natural language; it can inspect pricing, create the task, and return the task id plus output URLs.
Create a task
Run a Grok Imagine edit image task with RunAPI.The assistant can call check_pricing, then edit_image, and return the task id, status, and output URLs.
Submit without waiting
Create the task but don't wait for it to finish.The assistant calls the create tool with wait: false and returns the task id. Check on it later with get_task.
Check pricing before creating
Check current Grok Imagine pricing, then create the task if it matches my request.The assistant calls check_pricing and can link to the Grok Imagine model page for the canonical catalog entry.
Configuration
The server resolves auth in this order:
RUNAPI_API_KEYenvironment variable, useful for headless and CI hosts~/.config/runapi/config.json, created by the MCPlogintool orrunapi loginNo key, which still allows
check_pricing
The config file is normally managed by login. A pre-provisioned headless config can use:
{
"apiKey": "your_runapi_key"
}Do not commit real API keys.
Links
Resource | URL |
Grok Imagine model page | |
npm package | |
GitHub repository | |
RunAPI MCP overview | |
RunAPI docs |
License
Licensed under the Apache License, Version 2.0.
Available Tools
10 toolscheck_pricingA
Look up RunAPI pricing for the grok-imagine model line.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model slug. Defaults to the line's primary model. | |
| action | No | Endpoint name. Defaults to the endpoint that offers the model. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden. 'Look up' implies a read-only, side-effect-free operation, which is useful context, but details such as authentication requirements, rate limits, or return behavior are absent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, front-loaded sentence with zero waste. It conveys the complete purpose without unnecessary qualifiers.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read-only lookup with fully documented schema parameters and no output schema, the description is largely sufficient: an agent knows what it does and how to invoke it. It misses explicit usage guidance and any indication of the return format, which are minor gaps for this complexity level.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so both parameters are fully documented in the schema. The description adds the model line context ('grok-imagine'), which slightly sharpens the default for the model parameter, but it does not explain the action enum beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Look up'), resource ('RunAPI pricing'), and scope ('grok-imagine model line'). It is immediately distinguishable from sibling action endpoints and login/get_task.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no explicit when-to-use or when-not-to-use guidance, nor does it name any alternative. It merely restates the tool's purpose, leaving the agent to infer that it is called whenever pricing is needed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
edit_imageB
Create a Grok Imagine task on RunAPI (edit image). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | No | Optional image editing instruction. Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | No | Declared type: string. | |
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| mask_indices | No | Not accepted by this model. | |
| source_task_id | No | Not accepted by this model. | |
| poll_interval_ms | No | ||
| source_image_url | No | Public source image URL. Declared type: string. | |
| source_image_urls | No | Declared type: array. | |
| enable_safety_checker | No | Enable content safety checks. Declared type: boolean. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden. It does usefully disclose the async task model and the return shape (task id, status, output URLs), but omits auth requirements, that wait defaults to true and triggers polling, and that some declared parameters are rejected by this model.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the action and resource, and no filler. Slightly jargon-heavy ('Grok Imagine task on RunAPI') but efficient overall.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 12-parameter, zero-required, no-output-schema tool with no annotations, the description covers purpose and return values but leaves polling behavior, the default wait=true, and rejected-parameter caveats unexplained. Adequate but with clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 83%, above the 80% threshold, so the schema already documents most parameters. The description adds no parameter-level detail such as prompt format, aspect ratio values, or callback semantics, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: creating a Grok Imagine task for image editing on RunAPI. 'edit image' distinguishes it reasonably from siblings like text_to_image and upscale_image, though it never explicitly contrasts itself with them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no mention of alternatives (e.g., upscale_image, text_to_image), and no prerequisites such as needing a source image URL. The agent must infer all routing decisions from the name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
extend_videoC
Create a Grok Imagine task on RunAPI (extend video). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| prompt | Yes | Video continuation prompt. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| start_seconds | Yes | Source video position in seconds where extension begins. Declared type: integer. | |
| source_task_id | Yes | Completed prior Grok Imagine video Task ID. Declared type: string. | |
| poll_interval_ms | No | ||
| extension_duration_seconds | Yes | Extension duration in seconds. Declared type: integer. Known values: 6, 10. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it does disclose the asynchronous task model and the return shape (task id, status, output URLs). However, it omits that this is a mutating, credit-consuming operation, how polling/wait behaves, and what happens on timeout or failure despite the schema exposing wait, timeout_ms, poll_interval_ms, and callback_url.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler; every clause earns its place. It is arguably too terse for an 8-parameter mutation tool, but there is no wasted text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For an 8-parameter, mutation-style task tool with no output schema and no annotations, the description is far too thin. It should cover the source-task dependency, duration constraints, and the async/polling contract that the schema hints at.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 75%, so most parameters are partially documented in the schema, but the description adds no meaning at all beyond 'extend video' — nothing about start_seconds positioning, the allowed extension durations, or how source_task_id is consumed.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
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 Grok Imagine task ... extend video') and names the platform, which the bare name extend_video would not convey. It is clear what the tool produces, though it does not explicitly distinguish itself from video-producing siblings such as image_to_video or text_to_video.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no exclusions, and no mention of alternatives. The fact that it operates on a prior completed task is only inferable from the required source_task_id in the schema, not from the description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_taskB
Fetch the current status and latest result payload for a grok-imagine task.
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Asynchronous endpoint the task was created on. | |
| task_id | Yes | Task id returned when the task was created. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden. It does disclose the return content (status and latest result payload), which is useful, but says nothing about pending/failed task states, polling cadence, auth, or rate limits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, front-loaded sentence with no filler; the resource and returned fields are stated immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter read tool with a fully documented schema and no output schema, the description covers the essentials. It falls short on lifecycle context (polling behavior, terminal states) that an agent needs to use it correctly in the async workflow.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% – both task_id and the action enum are documented in the schema. The description adds no additional parameter meaning (e.g. that action must match the endpoint the task was created on), so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (fetch) and resource (current status + latest result payload for a task), which clearly separates it from the sibling creation endpoints like text_to_image or extend_video. It does not explicitly name a sibling, but the resource is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance, no mention that this is the polling companion to the async creation tools, and no prerequisites or exclusions. The polling intent is only loosely implied by 'current status'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
image_to_videoB
Create a Grok Imagine task on RunAPI (image to video). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| index | No | Zero-based source image index; used only with source_task_id. Declared type: integer. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | No | Optional video generation prompt. Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Declared type: string. Known values: "2:3", "3:2", "1:1", "16:9", "9:16", "auto". | |
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| motion_style | No | Video motion style; spicy requires source_task_id. Declared type: string. | |
| source_task_id | No | Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both. Declared type: string. | |
| duration_seconds | No | Output duration in seconds. Declared type: integer. | |
| poll_interval_ms | No | ||
| source_image_url | No | Public source image URL; provide this or source_task_id, but not both. Declared type: string. | |
| output_resolution | No | Output resolution. Declared type: string. Known values: "480p", "720p", "1080p". | |
| reference_image_urls | No | Not accepted by this model. Declared type: array. | |
| enable_safety_checker | No | Enable content safety checks. Declared type: boolean. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full disclosure burden, and it does at least characterize the async task model by stating the call returns a task id, status, and output URLs. It stops there – no mention of cost, failure behavior, or auth requirements, and the async/polling nature is only hinted at rather than explained.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with no filler, and the core action is front-loaded ahead of the return-value note. It is appropriately sized, though the terseness contributes to the coverage gaps noted elsewhere.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 15-parameter generation tool with no annotations and no output schema, the description is thin: it briefly covers the return payload, which is genuinely useful without an output schema, but says nothing about the async lifecycle or how wait/timeout/callback interact. Adequate as a minimum but with clear gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is high at 87%, so the schema already documents most parameters, and the description adds no syntax, format, or interplay details beyond it. Baseline of 3 is appropriate when the schema does the heavy lifting and the prose adds nothing on top.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
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 ... image to video') and names the underlying provider, so the agent knows it is an image-to-video generation call. It does not explicitly contrast with siblings like text_to_video or extend_video, but the '(image to video)' qualifier is enough to separate it from those without opening a schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no when-to-use guidance and never names an alternative, even though siblings text_to_video and extend_video are obvious confusables. It also omits the prerequisite that a source image (URL or prior task id) must be supplied despite zero required parameters, leaving the agent to infer the workflow entirely from the schema.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
loginA
Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-run browser login when the current credential comes from the local config file. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden. It discloses the interactive browser flow and the file write side effect (config.json). However, it does not mention that it may overwrite existing credentials or that it could block waiting for user input, though these are implied.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the action ('Authenticate RunAPI') and provides necessary details without extraneous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple login tool with one optional parameter and no output schema, the description covers the core purpose and side effect. It lacks an explicit statement that this is a prerequisite for other tools, but that is implied.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% (the only parameter 'force' has a description). The tool description adds no additional meaning about parameters beyond the schema, so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Authenticate'), target resource ('RunAPI'), method ('browser PKCE login flow'), and side effect (saving to config.json). It is distinct from sibling tools, none of which relate to authentication.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage (to authenticate RunAPI) but does not explicitly say when to run it (e.g., before other RunAPI tools) or when to use the 'force' parameter. Since there are no alternative auth tools among siblings, 'vs alternatives' is not applicable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
segment_mapC
Create a Grok Imagine task on RunAPI (segment map). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| image_url | No | Public image URL that the service can fetch. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| source_task_id | No | Completed Image 2.0 text-to-image Task ID owned by the same account. Compatibility input; use image_url instead. Declared type: string. | |
| poll_interval_ms | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it does disclose the return shape (task id, status, output URLs) and implies async task creation. It omits other important traits: whether this is a paid/consuming operation, auth requirements, and the polling behavior implied by the wait/poll_interval_ms parameters.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two compact sentences, front-loaded with the action and followed by the return contract. Nothing is padded, though the parenthetical '(segment map)' is low-value restatement.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 7-parameter task-creation tool with no annotations and no output schema, stating the return values is genuinely useful. But the description leaves the tool's actual semantics ('segment map'), usage context, and the async/polling lifecycle unaddressed, so an agent still needs the sibling get_task to close the loop by inference.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 71%, leaving timeout_ms and poll_interval_ms with no documented meaning in either place. The description adds no parameter guidance at all, so it fails to compensate for the coverage gap on a 7-parameter tool.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
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') and names the operation type ('segment map'). However, '(segment map)' merely restates the tool name, and nothing distinguishes this from siblings like edit_image, text_to_image, or image_to_video that also create Grok Imagine tasks. The agent can tell it creates a task but not what a 'segment map' produces.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no prerequisites, and no mention of alternatives among the many sibling task-creation tools. The only hint of routing ('use image_url instead') lives in the source_task_id parameter description, not the tool description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
text_to_imageB
Create a Grok Imagine task on RunAPI (text to image). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Image generation prompt. Declared type: string. | |
| enable_pro | No | Not accepted by this model. Declared type: boolean. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Declared type: string. Known values: "1:1", "2:3", "3:2", "16:9", "9:16". | |
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| poll_interval_ms | No | ||
| enable_safety_checker | No | Not accepted by this model. Declared type: boolean. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it does disclose the async task model plus the return shape (task id, status, output URLs). However, it omits the wait/polling behavior that governs the call's blocking semantics, any auth or rate-limit context, and what a terminal status failure looks like.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with no filler, and the operation is front-loaded ahead of the return-value note. Efficient, though the second sentence duplicates value already implied by the tool's nature.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
There is no output schema, and the description partially fills that gap by naming the returned fields. But for a 9-parameter, annotation-free creation tool, the absence of usage, polling, and parameter detail leaves meaningful gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 78% with 9 parameters, and two parameters (timeout_ms, poll_interval_ms) have no schema description at all. The description adds zero parameter meaning beyond what the schema already provides, so it does not compensate for the coverage gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
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') and disambiguates the modality with '(text to image)', which separates it from edit_image and image_to_video. It does not explicitly name a sibling, so it stops 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.
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 over edit_image, text_to_video, or upscale_image, and no prerequisites are stated. The only usage hint is the parenthetical modality label, which is implied rather than instructional.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
text_to_videoB
Create a Grok Imagine task on RunAPI (text to video). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Video generation prompt. Declared type: string. | |
| timeout_ms | No | ||
| aspect_ratio | No | Output aspect ratio. Declared type: string. Known values: "2:3", "3:2", "1:1", "16:9", "9:16", "auto". | |
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| motion_style | No | Video motion style. Declared type: string. | |
| duration_seconds | No | Output duration in seconds. Declared type: integer. | |
| poll_interval_ms | No | ||
| output_resolution | No | Output resolution. Declared type: string. Known values: "480p", "720p", "1080p". | |
| reference_image_urls | No | Not accepted by this model. Declared type: array. | |
| enable_safety_checker | No | Enable content safety checks. Declared type: boolean. |
TDQS
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.
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.
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.
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.
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.
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.
upscale_imageB
Create a Grok Imagine task on RunAPI (upscale image). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| source_task_id | Yes | Completed prior Grok Imagine video Task ID. Declared type: string. | |
| poll_interval_ms | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It helpfully discloses that this is an async task creation returning a task id, status, and output URLs, which is meaningful context. However, it omits permissions/auth, the meaning of the source_task_id, and — notably — does not reconcile the tool's image-upscale purpose with a parameter documented as accepting a prior *video* task ID.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the action and backend, with the return shape stated inline. Minimal waste, though '(upscale image)' is slightly redundant with the tool name.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a task-creation tool with no annotations and no output schema, the description usefully covers the return values. It is still thin on behavioral contract — async semantics, source_task_id requirements, and the image-vs-video inconsistency — so it is only partly complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 60%, so the description should compensate, but it adds no input-parameter meaning at all. It says nothing about source_task_id, wait, timeout_ms, callback_url, or poll_interval_ms, leaving half the input contract unexplained.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (Create), a named operation (upscale image), and the backend (Grok Imagine task on RunAPI). This distinguishes it from siblings like edit_image and text_to_image, but it doesn't explicitly contrast with the closest alternative (edit_image), keeping it below a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance, no prerequisites, and no mention of when to prefer this over edit_image or text_to_image. The parenthetical '(upscale image)' only restates the operation rather than routing the agent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
9 tool updates
v0.2.0- Changed
check_pricing2 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - removed
Input schema / properties / model / enumRemoved value: -[ - "grok-imagine-edit-image", - "grok-imagine-image-2-0", - "grok-imagine-image-to-video", - "grok-imagine-video-1.5-fast", - "grok-imagine-video-1.5-preview", - "grok-imagine-text-to-image", - "grok-imagine-text-to-video" -]
- Changed
edit_image9 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - added
Input schema / properties / aspect_ratio / descriptionAdded value: +"Declared type: string." - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - changed
Input schema / properties / enable_safety_checker / descriptionPrevious value: -"Enable content safety checks."New value: +"Enable content safety checks. Declared type: boolean." - removed
Input schema / properties / model / enumRemoved value: -[ - "grok-imagine-edit-image", - "grok-imagine-image-2-0" -] - changed
Input schema / properties / prompt / descriptionPrevious value: -"Optional image editing instruction."New value: +"Optional image editing instruction. Declared type: string." - changed
Input schema / properties / source_image_url / descriptionPrevious value: -"Public source image URL."New value: +"Public source image URL. Declared type: string." - added
Input schema / properties / source_image_urls / descriptionAdded value: +"Declared type: array." - added
Input schema / requiredAdded value: +[]
- Changed
extend_video11 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - removed
Input schema / properties / extension_duration_seconds / anyOfRemoved value: -[ - { - "const": 6, - "type": "number" - }, - { - "const": 10, - "type": "number" - } -] - changed
Input schema / properties / extension_duration_seconds / descriptionPrevious value: -"Extension duration in seconds."New value: +"Extension duration in seconds. Declared type: integer. Known values: 6, 10." - added
Input schema / properties / extension_duration_seconds / typeAdded value: +"integer" - changed
Input schema / properties / prompt / descriptionPrevious value: -"Video continuation prompt."New value: +"Video continuation prompt. Declared type: string." - removed
Input schema / properties / prompt / maxLengthRemoved value: -5000 - changed
Input schema / properties / source_task_id / descriptionPrevious value: -"Completed prior Grok Imagine video Task ID."New value: +"Completed prior Grok Imagine video Task ID. Declared type: string." - changed
Input schema / properties / start_seconds / descriptionPrevious value: -"Source video position in seconds where extension begins."New value: +"Source video position in seconds where extension begins. Declared type: integer." - removed
Input schema / properties / start_seconds / minimumRemoved value: -0 - changed
Input schema / properties / start_seconds / typePrevious value: -"number"New value: +"integer"
- Changed
get_task1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
- Changed
image_to_video25 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - removed
Input schema / properties / aspect_ratio / anyOfRemoved 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" - } -] - changed
Input schema / properties / aspect_ratio / descriptionPrevious 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\"." - added
Input schema / properties / aspect_ratio / typeAdded value: +"string" - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - changed
Input schema / properties / duration_seconds / descriptionPrevious value: -"Output duration in seconds."New value: +"Output duration in seconds. Declared type: integer." - removed
Input schema / properties / duration_seconds / maximumRemoved value: -30 - removed
Input schema / properties / duration_seconds / minimumRemoved value: -6 - changed
Input schema / properties / duration_seconds / typePrevious value: -"number"New value: +"integer" - changed
Input schema / properties / enable_safety_checker / descriptionPrevious value: -"Enable content safety checks."New value: +"Enable content safety checks. Declared type: boolean." - changed
Input schema / properties / index / descriptionPrevious value: -"Zero-based source image index; used only with source_task_id."New value: +"Zero-based source image index; used only with source_task_id. Declared type: integer." - removed
Input schema / properties / index / maximumRemoved value: -5 - removed
Input schema / properties / index / minimumRemoved value: -0 - changed
Input schema / properties / index / typePrevious value: -"number"New value: +"integer" - removed
Input schema / properties / model / enumRemoved value: -[ - "grok-imagine-image-to-video", - "grok-imagine-video-1.5-fast", - "grok-imagine-video-1.5-preview" -] - changed
Input schema / properties / motion_style / descriptionPrevious value: -"Video motion style; spicy requires source_task_id."New value: +"Video motion style; spicy requires source_task_id. Declared type: string." - removed
Input schema / properties / output_resolution / anyOfRemoved value: -[ - { - "const": "480p", - "type": "string" - }, - { - "const": "720p", - "type": "string" - }, - { - "const": "1080p", - "type": "string" - } -] - changed
Input schema / properties / output_resolution / descriptionPrevious value: -"Output resolution."New value: +"Output resolution. Declared type: string. Known values: \"480p\", \"720p\", \"1080p\"." - added
Input schema / properties / output_resolution / typeAdded value: +"string" - changed
Input schema / properties / prompt / descriptionPrevious value: -"Optional video generation prompt."New value: +"Optional video generation prompt. Declared type: string." - removed
Input schema / properties / prompt / maxLengthRemoved value: -5000 - changed
Input schema / properties / reference_image_urls / descriptionPrevious value: -"Not accepted by this model."New value: +"Not accepted by this model. Declared type: array." - changed
Input schema / properties / source_image_url / descriptionPrevious value: -"Public source image URL; provide this or source_task_id, but not both."New value: +"Public source image URL; provide this or source_task_id, but not both. Declared type: string." - changed
Input schema / properties / source_task_id / descriptionPrevious value: -"Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both."New value: +"Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both. Declared type: string." - added
Input schema / requiredAdded value: +[]
- Changed
segment_map6 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - changed
Input schema / properties / image_url / descriptionPrevious value: -"Public image URL that the service can fetch."New value: +"Public image URL that the service can fetch. Declared type: string." - removed
Input schema / properties / model / enumRemoved value: -[ - "grok-imagine-image-2-0" -] - changed
Input schema / properties / source_task_id / descriptionPrevious value: -"Completed Image 2.0 text-to-image Task ID owned by the same account. Compatibility input; use image_url instead."New value: +"Completed Image 2.0 text-to-image Task ID owned by the same account. Compatibility input; use image_url instead. Declared type: string." - added
Input schema / requiredAdded value: +[]
- Changed
text_to_image9 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - removed
Input schema / properties / aspect_ratio / anyOfRemoved value: -[ - { - "const": "1:1", - "type": "string" - }, - { - "const": "2:3", - "type": "string" - }, - { - "const": "3:2", - "type": "string" - }, - { - "const": "16:9", - "type": "string" - }, - { - "const": "9:16", - "type": "string" - } -] - changed
Input schema / properties / aspect_ratio / descriptionPrevious value: -"Output aspect ratio."New value: +"Output aspect ratio. Declared type: string. Known values: \"1:1\", \"2:3\", \"3:2\", \"16:9\", \"9:16\"." - added
Input schema / properties / aspect_ratio / typeAdded value: +"string" - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - changed
Input schema / properties / enable_pro / descriptionPrevious value: -"Not accepted by this model."New value: +"Not accepted by this model. Declared type: boolean." - changed
Input schema / properties / enable_safety_checker / descriptionPrevious value: -"Not accepted by this model."New value: +"Not accepted by this model. Declared type: boolean." - removed
Input schema / properties / model / enumRemoved value: -[ - "grok-imagine-image-2-0", - "grok-imagine-text-to-image" -] - changed
Input schema / properties / prompt / descriptionPrevious value: -"Image generation prompt."New value: +"Image generation prompt. Declared type: string."
- Changed
text_to_video18 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - removed
Input schema / properties / aspect_ratio / anyOfRemoved 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" - } -] - changed
Input schema / properties / aspect_ratio / descriptionPrevious 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\"." - added
Input schema / properties / aspect_ratio / typeAdded value: +"string" - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - changed
Input schema / properties / duration_seconds / descriptionPrevious value: -"Output duration in seconds."New value: +"Output duration in seconds. Declared type: integer." - removed
Input schema / properties / duration_seconds / maximumRemoved value: -30 - removed
Input schema / properties / duration_seconds / minimumRemoved value: -6 - changed
Input schema / properties / duration_seconds / typePrevious value: -"number"New value: +"integer" - changed
Input schema / properties / enable_safety_checker / descriptionPrevious value: -"Enable content safety checks."New value: +"Enable content safety checks. Declared type: boolean." - removed
Input schema / properties / model / enumRemoved value: -[ - "grok-imagine-text-to-video", - "grok-imagine-video-1.5-fast", - "grok-imagine-video-1.5-preview" -] - changed
Input schema / properties / motion_style / descriptionPrevious value: -"Video motion style."New value: +"Video motion style. Declared type: string." - removed
Input schema / properties / output_resolution / anyOfRemoved value: -[ - { - "const": "480p", - "type": "string" - }, - { - "const": "720p", - "type": "string" - }, - { - "const": "1080p", - "type": "string" - } -] - changed
Input schema / properties / output_resolution / descriptionPrevious value: -"Output resolution."New value: +"Output resolution. Declared type: string. Known values: \"480p\", \"720p\", \"1080p\"." - added
Input schema / properties / output_resolution / typeAdded value: +"string" - changed
Input schema / properties / prompt / descriptionPrevious value: -"Video generation prompt."New value: +"Video generation prompt. Declared type: string." - removed
Input schema / properties / prompt / maxLengthRemoved value: -5000 - changed
Input schema / properties / reference_image_urls / descriptionPrevious value: -"Not accepted by this model."New value: +"Not accepted by this model. Declared type: array."
- Changed
upscale_image3 fields changed- added
Input schema / additionalPropertiesAdded value: +{} - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for terminal Task delivery."New value: +"Webhook URL for terminal Task delivery. Declared type: string." - changed
Input schema / properties / source_task_id / descriptionPrevious value: -"Completed prior Grok Imagine video Task ID."New value: +"Completed prior Grok Imagine video Task ID. Declared type: string."
9 tool updates
v0.1.13- Changed
check_pricing2 fields changed- changed
Input schema / properties / action / enumPrevious value: -[ - "edit_image", - "extend_video", - "image_to_video", - "text_to_image", - "text_to_video", - "upscale_image" -]New value: +[ + "edit_image", + "extend_video", + "image_to_video", + "segment_map", + "text_to_image", + "text_to_video", + "upscale_image" +] - changed
Input schema / properties / model / enumPrevious value: -[ - "grok-imagine-edit-image", - "grok-imagine-image-to-video", - "grok-imagine-video-1.5-fast", - "grok-imagine-video-1.5-preview", - "grok-imagine-text-to-image", - "grok-imagine-text-to-video" -]New value: +[ + "grok-imagine-edit-image", + "grok-imagine-image-2-0", + "grok-imagine-image-to-video", + "grok-imagine-video-1.5-fast", + "grok-imagine-video-1.5-preview", + "grok-imagine-text-to-image", + "grok-imagine-text-to-video" +]
- Changed
edit_image9 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / aspect_ratioAdded value: +{ + "type": "string" +} - added
Input schema / properties / mask_indicesAdded value: +{ + "description": "Not accepted by this model." +} - changed
Input schema / properties / model / enumPrevious value: -[ - "grok-imagine-edit-image" -]New value: +[ + "grok-imagine-edit-image", + "grok-imagine-image-2-0" +] - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - added
Input schema / properties / source_image_urlsAdded value: +{ + "items": {}, + "type": "array" +} - added
Input schema / properties / source_task_idAdded value: +{ + "description": "Not accepted by this model." +} - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991 - removed
Input schema / requiredRemoved value: -[ - "source_image_url" -]
- Changed
extend_video6 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / extension_duration_seconds / anyOfAdded value: +[ + { + "const": 6, + "type": "number" + }, + { + "const": 10, + "type": "number" + } +] - removed
Input schema / properties / extension_duration_seconds / enumRemoved value: -[ - 6, - 10 -] - removed
Input schema / properties / extension_duration_seconds / typeRemoved value: -"number" - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991
- Changed
get_task1 field changed- changed
Input schema / properties / action / enumPrevious value: -[ - "edit_image", - "extend_video", - "image_to_video", - "text_to_image", - "text_to_video", - "upscale_image" -]New value: +[ + "edit_image", + "extend_video", + "image_to_video", + "segment_map", + "text_to_image", + "text_to_video", + "upscale_image" +]
- Changed
image_to_video9 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / aspect_ratio / anyOfAdded 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" + } +] - removed
Input schema / properties / aspect_ratio / enumRemoved value: -[ - "2:3", - "3:2", - "1:1", - "16:9", - "9:16", - "auto" -] - removed
Input schema / properties / aspect_ratio / typeRemoved value: -"string" - added
Input schema / properties / output_resolution / anyOfAdded value: +[ + { + "const": "480p", + "type": "string" + }, + { + "const": "720p", + "type": "string" + }, + { + "const": "1080p", + "type": "string" + } +] - removed
Input schema / properties / output_resolution / enumRemoved value: -[ - "480p", - "720p" -] - removed
Input schema / properties / output_resolution / typeRemoved value: -"string" - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991
- Added
segment_map - Changed
text_to_image10 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / aspect_ratio / anyOfAdded value: +[ + { + "const": "1:1", + "type": "string" + }, + { + "const": "2:3", + "type": "string" + }, + { + "const": "3:2", + "type": "string" + }, + { + "const": "16:9", + "type": "string" + }, + { + "const": "9:16", + "type": "string" + } +] - removed
Input schema / properties / aspect_ratio / enumRemoved value: -[ - "2:3", - "3:2", - "1:1", - "16:9", - "9:16" -] - removed
Input schema / properties / aspect_ratio / typeRemoved value: -"string" - changed
Input schema / properties / enable_pro / descriptionPrevious value: -"Enable Pro image generation mode."New value: +"Not accepted by this model." - changed
Input schema / properties / enable_safety_checker / descriptionPrevious value: -"Enable content safety checks."New value: +"Not accepted by this model." - changed
Input schema / properties / model / enumPrevious value: -[ - "grok-imagine-text-to-image" -]New value: +[ + "grok-imagine-image-2-0", + "grok-imagine-text-to-image" +] - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - removed
Input schema / properties / prompt / maxLengthRemoved value: -5000 - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991
- Changed
text_to_video9 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / aspect_ratio / anyOfAdded 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" + } +] - removed
Input schema / properties / aspect_ratio / enumRemoved value: -[ - "2:3", - "3:2", - "1:1", - "16:9", - "9:16", - "auto" -] - removed
Input schema / properties / aspect_ratio / typeRemoved value: -"string" - added
Input schema / properties / output_resolution / anyOfAdded value: +[ + { + "const": "480p", + "type": "string" + }, + { + "const": "720p", + "type": "string" + }, + { + "const": "1080p", + "type": "string" + } +] - removed
Input schema / properties / output_resolution / enumRemoved value: -[ - "480p", - "720p" -] - removed
Input schema / properties / output_resolution / typeRemoved value: -"string" - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991
- Changed
upscale_image3 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991
8 tool updates
v0.1.11- Changed
check_pricing1 field changed- changed
Input schema / properties / model / enumPrevious value: -[ - "grok-imagine-edit-image", - "grok-imagine-image-to-video", - "grok-imagine-text-to-image", - "grok-imagine-text-to-video" -]New value: +[ + "grok-imagine-edit-image", + "grok-imagine-image-to-video", + "grok-imagine-video-1.5-fast", + "grok-imagine-video-1.5-preview", + "grok-imagine-text-to-image", + "grok-imagine-text-to-video" +]
- Changed
edit_image5 fields changed- added
Input schema / properties / callback_urlAdded value: +{ + "description": "Webhook URL for terminal Task delivery.", + "type": "string" +} - added
Input schema / properties / enable_safety_checkerAdded value: +{ + "description": "Enable content safety checks.", + "type": "boolean" +} - added
Input schema / properties / promptAdded value: +{ + "description": "Optional image editing instruction.", + "type": "string" +} - added
Input schema / properties / source_image_urlAdded value: +{ + "description": "Public source image URL.", + "type": "string" +} - added
Input schema / requiredAdded value: +[ + "source_image_url" +]
- Changed
extend_video6 fields changed- added
Input schema / properties / callback_urlAdded value: +{ + "description": "Webhook URL for terminal Task delivery.", + "type": "string" +} - added
Input schema / properties / extension_duration_seconds / descriptionAdded value: +"Extension duration in seconds." - added
Input schema / properties / promptAdded value: +{ + "description": "Video continuation prompt.", + "maxLength": 5000, + "type": "string" +} - added
Input schema / properties / source_task_idAdded value: +{ + "description": "Completed prior Grok Imagine video Task ID.", + "type": "string" +} - added
Input schema / properties / start_secondsAdded value: +{ + "description": "Source video position in seconds where extension begins.", + "minimum": 0, + "type": "number" +} - added
Input schema / requiredAdded value: +[ + "source_task_id", + "prompt", + "start_seconds", + "extension_duration_seconds" +]
- Changed
get_task1 field changed- changed
Input schema / properties / action / descriptionPrevious value: -"Endpoint the task was created on."New value: +"Asynchronous endpoint the task was created on."
- Changed
image_to_video14 fields changed- added
Input schema / properties / aspect_ratio / descriptionAdded value: +"Output aspect ratio." - changed
Input schema / properties / aspect_ratio / enumPrevious value: -[ - "2:3", - "3:2", - "1:1", - "16:9", - "9:16" -]New value: +[ + "2:3", + "3:2", + "1:1", + "16:9", + "9:16", + "auto" +] - added
Input schema / properties / callback_urlAdded value: +{ + "description": "Webhook URL for terminal Task delivery.", + "type": "string" +} - added
Input schema / properties / duration_secondsAdded value: +{ + "description": "Output duration in seconds.", + "maximum": 30, + "minimum": 6, + "type": "number" +} - added
Input schema / properties / enable_safety_checkerAdded value: +{ + "description": "Enable content safety checks.", + "type": "boolean" +} - added
Input schema / properties / indexAdded value: +{ + "description": "Zero-based source image index; used only with source_task_id.", + "maximum": 5, + "minimum": 0, + "type": "number" +} - changed
Input schema / properties / model / enumPrevious value: -[ - "grok-imagine-image-to-video" -]New value: +[ + "grok-imagine-image-to-video", + "grok-imagine-video-1.5-fast", + "grok-imagine-video-1.5-preview" +] - added
Input schema / properties / motion_style / descriptionAdded value: +"Video motion style; spicy requires source_task_id." - removed
Input schema / properties / motion_style / enumRemoved value: -[ - "fun", - "normal", - "spicy" -] - added
Input schema / properties / output_resolution / descriptionAdded value: +"Output resolution." - added
Input schema / properties / promptAdded value: +{ + "description": "Optional video generation prompt.", + "maxLength": 5000, + "type": "string" +} - added
Input schema / properties / reference_image_urlsAdded value: +{ + "description": "Not accepted by this model.", + "items": {}, + "type": "array" +} - added
Input schema / properties / source_image_urlAdded value: +{ + "description": "Public source image URL; provide this or source_task_id, but not both.", + "type": "string" +} - added
Input schema / properties / source_task_idAdded value: +{ + "description": "Prior Grok Imagine text-to-image Task ID; provide this or source_image_url, but not both.", + "type": "string" +}
- Changed
text_to_image6 fields changed- added
Input schema / properties / aspect_ratio / descriptionAdded value: +"Output aspect ratio." - added
Input schema / properties / callback_urlAdded value: +{ + "description": "Webhook URL for terminal Task delivery.", + "type": "string" +} - added
Input schema / properties / enable_proAdded value: +{ + "description": "Enable Pro image generation mode.", + "type": "boolean" +} - added
Input schema / properties / enable_safety_checkerAdded value: +{ + "description": "Enable content safety checks.", + "type": "boolean" +} - added
Input schema / properties / promptAdded value: +{ + "description": "Image generation prompt.", + "maxLength": 5000, + "type": "string" +} - added
Input schema / requiredAdded value: +[ + "prompt" +]
- Changed
text_to_video12 fields changed- added
Input schema / properties / aspect_ratio / descriptionAdded value: +"Output aspect ratio." - changed
Input schema / properties / aspect_ratio / enumPrevious value: -[ - "2:3", - "3:2", - "1:1", - "16:9", - "9:16" -]New value: +[ + "2:3", + "3:2", + "1:1", + "16:9", + "9:16", + "auto" +] - added
Input schema / properties / callback_urlAdded value: +{ + "description": "Webhook URL for terminal Task delivery.", + "type": "string" +} - added
Input schema / properties / duration_secondsAdded value: +{ + "description": "Output duration in seconds.", + "maximum": 30, + "minimum": 6, + "type": "number" +} - added
Input schema / properties / enable_safety_checkerAdded value: +{ + "description": "Enable content safety checks.", + "type": "boolean" +} - changed
Input schema / properties / model / enumPrevious 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" +] - added
Input schema / properties / motion_style / descriptionAdded value: +"Video motion style." - removed
Input schema / properties / motion_style / enumRemoved value: -[ - "fun", - "normal", - "spicy" -] - added
Input schema / properties / output_resolution / descriptionAdded value: +"Output resolution." - added
Input schema / properties / promptAdded value: +{ + "description": "Video generation prompt.", + "maxLength": 5000, + "type": "string" +} - added
Input schema / properties / reference_image_urlsAdded value: +{ + "description": "Not accepted by this model.", + "items": {}, + "type": "array" +} - added
Input schema / requiredAdded value: +[ + "prompt" +]
- Changed
upscale_image3 fields changed- added
Input schema / properties / callback_urlAdded value: +{ + "description": "Webhook URL for terminal Task delivery.", + "type": "string" +} - added
Input schema / properties / source_task_idAdded value: +{ + "description": "Completed prior Grok Imagine video Task ID.", + "type": "string" +} - added
Input schema / requiredAdded value: +[ + "source_task_id" +]
1 tool update
v0.1.6- Added
login
8 tool updates
v0.1.0- First observed
check_pricing - First observed
edit_image - First observed
extend_video - First observed
get_task - First observed
image_to_video - First observed
text_to_image - First observed
text_to_video - First observed
upscale_image
TDQS
Scored across 10 tools
Each generation tool targets a distinct modality/operation (text_to_image, image_to_video, extend_video, upscale_image, segment_map, edit_image), all clearly separated. The auxiliary tools (login, check_pricing, get_task) are likewise unambiguous. No overlapping purposes exist across the set.
All names follow a consistent snake_case verb_noun or noun_action pattern: text_to_image, extend_video, check_pricing, get_task, etc. No camelCase or stylistic mixing. The convention is predictable throughout.
10 tools is well-scoped for a media-generation service: six generation operations, plus auth, pricing, and task polling. Every tool earns its place with no redundancy.
The lifecycle is well covered: authenticate (login), price check, create tasks across image/video operations, and poll results (get_task). A minor gap is the lack of task cancellation or listing of prior tasks, but core workflows are fully supported.
Maintenance
Related MCP Connectors
Generate and edit images, create videos, quote credit costs, and retrieve private results.
130+ AI models for image, video, music, and audio — 18 model families, one RunAPI account.
Image and video AI tools and your own pipelines, run from any AI assistant.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Related MCP Servers
AlicenseAqualityFmaintenanceEnables AI video and image generation through the Runway API. Supports video generation from images and text prompts, image creation, video upscaling and editing, and task management.722 npm23MIT- AlicenseAqualityAmaintenanceEnables creating and managing GPT Image tasks (edit and text-to-image) via RunAPI, with options to poll status and check pricing.5245 npmApache 2.0
- AlicenseBqualityAmaintenanceEnables creating and polling Luma video modification tasks, fetching task status, and checking pricing via the RunAPI API.4267 npmApache 2.0
- AlicenseAqualityAmaintenanceEnables image editing, remixing, and text-to-image generation using Qwen 2 models via RunAPI. Supports task polling and pricing checks.5289 npmApache 2.0