Grok Imagine Video API
Grok Imagine Video is xAI's video model that turns a prompt, a still image or reference images into a 1 to 15 second clip, with sound and dialogue made in the same pass. Through CoreSpeed, Claude Code, Codex, Cursor or any MCP agent runs version 1.5, 1.5 Lite and the first release with no xAI account, from one credit balance.
From
15credits
per billed second · about $0.015
By xAI · 8 ways to run it · No xAI key
Paste this into Claude Code, Codex or Cursor
set up https://corespeed.io/SKILL.md (read it raw, e.g. with curl), then make a 6-second 16:9 clip of a barista pouring latte art at Harbor Coffee with Grok Imagine Video 1.5, and tell me the rate before you run itWhat it costs,per billed unit.
- Text to video, 1.5Grok Imagine Video 1.5 Text to Video, in the catalog15 creditsper billed second · $0.015
- Image to video, 1.5Grok Imagine Video 1.5, in the catalog15 creditsper billed second · $0.015
- From references, 1.5Grok Imagine Video 1.5 Reference to Video, in the catalog15 creditsper billed second · $0.015
- Text to video, first releaseGrok Imagine Video, in the catalog75 creditsper billed second · $0.075
- Image to video, first releaseGrok Imagine Video, in the catalog75 creditsper billed second · $0.075
- From references, first releaseGrok Imagine Reference to Video, in the catalog75 creditsper billed second · $0.075
A run is billed once, after it succeeds: the rate times the units the model reports for that run. Settings such as resolution, length, count or sound change how many units a run counts. A failed, cancelled or expired run costs nothing. Credits come from one balance: 1,000 credits are $1.
Rates come from the catalog and follow it. Every model in Video generation, with its rate
What itdoes well.
- Sound effects, ambience and dialogue made in the same pass, timed to the action.
- Movement that holds together over the clip, with fewer warps.
- On 1.5, an exact last frame and up to 4 keyframes pinned inside the clip.
- Takes
- A prompt of up to 4,096 characters; a start image; or up to 7 reference images named in the prompt.
- Length
- 1 to 15 seconds; from references on the first release, 1 to 10.
- Resolution
- 480p, 720p or 1080p on 1.5 and Lite; up to 720p from references and on the first release.
- Aspect ratio
- 16:9, 4:3, 3:2, 1:1, 2:3, 3:4 or 9:16, and 21:9 or 5:2 on 1.5; image to video can follow the image.
From xAI's own page: Video generation, in xAI's API docs
Your agentruns it.
Set up once with the line above. Then your agent calls Grok Imagine Video through CoreSpeed's media tools, with no xAI account.
Find it
Your agent searches the catalog for Grok Imagine Video and picks the variant that fits the job.
media__list_modelsRead the rate and inputs
It reads the rate and the inputs the model takes, before anything runs.
media__get_modelRun it
The video clip comes back as a link and as a file in your Drive for 7 days. A long run finishes as a job.
media__generate