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
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
| Result | Detail |
|---|---|
| File | 1 video link |
| Resolution | 480p |
| Sound | Included |
Real result, shown below.
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”
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.
{
"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
Prompt and style
Grok Imagine Video text to video
Describe the scene, the camera move and the sound.
- Prompt
- A striped hot air balloon rising over terraced green hills at...
- Resolution
- 480p
- Returns
- 1 video link
You get
- prompt: what to create, in plain words
- aspect_ratio: the shape of the result: 8 options
Start image
Optional first frame for the video.
- image
- https://.../photo.jpg
- Prompt
- A striped hot air balloon rising over terraced green...
- Returns
- 1 video link
You get
- image: the image to use (https link)
- prompt: what to create, in plain words
- from $0.339
Resolution and price
Grok Imagine Video resolution options
Pick the option; the price follows it.
- Default
- 480p
- Options
- 480p, 720p
- Charged
- only when a result comes back
You get
- resolution: output size; sets the price; default 480p
- options: 480p, 720p
Actions
Failed calls are never charged.
What people ask their AI to do with it
Marketers
Social video ads
“Make a short video of a coffee being poured into a glass, steam rising”
3 × 480p
Cost today$1.017
Ecommerce sellers
Product teasers
“Show my sneaker rotating slowly on a concrete plinth with soft studio light”
480p
Cost today$0.339
Filmmakers
Previsualize a scene
“A lighthouse beam sweeping over a stormy sea at night, slow push-in”
3 × 480p
Cost today$1.017
Founders
A hero clip for the landing page
“A delivery drone landing on a suburban porch at golden hour”
480p
Cost today$0.339
Educators
Explainer clips
“Time-lapse of a seed sprouting and growing into a plant, macro view”
480p
Cost today$0.339
Real estate agents
Listing teasers
“Slow dolly through a bright modern living room with large windows”
480p
Cost today$0.339
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.
npx agentcash add https://tollnode.comCopy for your AI agent
Paste this into your agent so it knows what this node does and how to call it.
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
No subscription, no credit packs
Pay per video: $0.339 at 480p, $0.474 at 720p.
No xAI account, no quota form
Your agent calls TollNode. You never set up billing with the model's maker or request access.
Only charged when it works
If generation fails or returns nothing, the call costs nothing.
One connection, many video models
The same setup also gives your agent other models and live data tools, so it can compare results.
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.
Works well with
- Grok Imagine Video 1.5 image-to-videoAnother video model to compare on the same prompt$0.541
- Veo 3.1 video with soundTurn a finished image or idea into a video with soundfrom $2.161
- Kling 4.0 text-to-videoA second video model to comparefrom $1.061
- Nano Banana Pro image generationA high-quality image model to comparefrom $0.204
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/video-grok-imagine
Input
| Field | Type | Notes |
|---|---|---|
| image | string | Optional starting image (https URL). Or send the file inline as a base64 data: URI (up to 4.5 MB) |
| prompt* | string | What to create or change |
| resolution | enum | Sets the price. Default 480p (480p, 720p) |
| aspect_ratio | enum | Aspect 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.