TollNode

Grok Imagine Video API and MCP for AI agents

TollNode gives Claude, Cursor or any AI agent Grok Imagine Video, xAI's video model with synchronized sound, over API and MCP, from $0.339 per 5-second video, with no subscription.

Ask for 'A striped hot air balloon rising over terraced green hills...' and get a finished video link back.

No subscription · Sign-up optional · From $0.339 per call · Charged only when it works · No xAI account needed

Claude Code

Make a short video: A striped hot air balloon rising over terraced green hills at sunrise, slow drone...

TollNode · xAI · 480p$0.339 · 1 video, 5 s

ResultDetail
File1 video link
Resolution480p
SoundIncluded

Real result, shown below.

Works in Claude Code, Cursor, Codex, VS Code and any MCP agent.

Grok Imagine Video examples

Made by this node in our own tests, from the request shown under each.

“A striped hot air balloon rising over terraced green hills at sunrise, slow drone orbit around the balloon, morning mist in the valleys, the burner roaring in short bursts”

AI-generatedresolution: 480p

The request that made it

Send the same body to get this kind of result. Change the prompt or the options to get your own.

request body
{
  "prompt": "A striped hot air balloon rising over terraced green hills at sunrise, slow drone orbit around the balloon, morning mist in the valleys, the burner roaring in short bursts",
  "resolution": "480p"
}

What you control with Grok Imagine Video

Failed calls are never charged.

What people ask their AI to do with it

Use it as a Grok Imagine Video MCP server in Claude, Cursor or Codex

Connect once. Then just ask.

Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.

terminal
npx agentcash add https://tollnode.com

Copy for your AI agent

Paste this into your agent so it knows what this node does and how to call it.

prompt
You can use TollNode's Grok Imagine Video node to make a video. Call POST https://tollnode.com/api/v1/nodes/video-grok-imagine with image (optional), prompt (required), resolution (optional), aspect_ratio (optional). The price depends on resolution (480p, 720p; default 480p) and is charged only when a result is returned. Over MCP, call the "video-grok-imagine" tool; use list_models to see prices. Give me the file link when it is done.

Price

from $0.068

per second

One call: from $0.339 per 5-second video

The price depends on the resolution you choose. If you don't choose, you get 480p.

480pdefault$0.339 per 5-second video
720p$0.474 per 5-second video

Charged only when a call returns a result. Failed or empty calls cost $0.

Grok Imagine Video without a xAI account

FAQ

Is this the official xAI API?
No. TollNode is an independent service. It gives your agent access to Grok Imagine Video through its own API and MCP server, priced per video, with no xAI account needed.
Can I use it as a Grok Imagine Video MCP server in Claude?
Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "video-grok-imagine" tool appears with its options and prices.
What options can I choose?
The resolution can be 480p or 720p; the default is 480p. The price follows the option you pick, shown in the price table above.
Can I start from my own image?
Yes. Send an image link in image (https) along with your prompt. The result is built from it.
What if nothing comes back?
You're not charged. TollNode only collects payment when a usable result is returned.
How long are the links valid?
Download the file when you get it. Keep the link as a backup.
How do I pay for Grok Imagine Video?
Your agent sends the request, gets an HTTP 402 with the exact price (from $0.339 per call), signs a USDC payment on Base and retries. Or use an account balance with an API key. Either way you are charged only when a result comes back.
What does the Grok Imagine Video response look like?
A JSON object with a link to the finished video file. Download it when you get it and keep the link as a backup.

Ready in a minute

Connect your AI
For developers: endpoint, inputs and an example response

POST https://tollnode.com/api/v1/nodes/video-grok-imagine

Input

FieldTypeNotes
imagestringOptional starting image (https URL). Or send the file inline as a base64 data: URI (up to 4.5 MB)
prompt*stringWhat to create or change
resolutionenumSets the price. Default 480p (480p, 720p)
aspect_ratioenumAspect ratio, default auto (auto, 16:9, 4:3, 1:1, 9:16, 3:4, 3:2, 2:3)

Example response

{
  "videos": [
    "https://tollnode.com/api/v1/files/00000000-0000-0000-0000-000000000000/0"
  ],
  "aiGenerated": true
}

Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.