Grok Imagine Video API
xAI's Grok Imagine Video: text to video and image to video, up to 1080p, with sound.
Pricing per second of video
| Resolution | Per second |
|---|---|
| 480p | $0.02lowest2 credits |
| 720p | $0.033 credits |
| 1080p | $0.055 credits |
Billed in credits per second of video (100 credits = $1, rounded up to a whole credit). Charged once, only for the route that succeeds. Failed attempts cost $0.00.
See how we compare
Per second of output for a 16:9 clip with sound. Token prices are converted at width × height × 24 / 1024 tokens a second; card and top-up fees are not included. Only prices above Revana's are shown; a dash means the API does not list that setting above Revana's price.
| API | 480p | 720p |
|---|---|---|
| $0.02 | $0.03 | |
| $0.05 | $0.07 | |
fal | $0.05 | $0.07 |
Replicate | $0.05 | $0.05 |
CometAPI | $0.04 | $0.056 |
APIMart | $0.04 | $0.056 |
WaveSpeed | $0.05 | $0.05 |
OpenRouter | $0.05 | $0.07 |
Vercel AI Gateway | $0.05 | $0.07 |
Runware | $0.05 | $0.07 |
Full comparison and sources: /blog/grok-imagine-video-api-pricing (data: /data/market-prices.json)
Request
# One Idempotency-Key per request, made once and sent again with every resend of it
KEY=$(uuidgen)
# 1. Submit. max_cost_usd is your cap: the most this may cost (it lists at $0.18).
# No id after a timeout, a 429 or a 5xx? Run step 1 again: the same $KEY never makes a second one.
RESP=$(curl -s https://api.revana.si/v1/generations \
-H "Authorization: Bearer $REVANA_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $KEY" \
-d '{
"model": "grok-imagine-video",
"input": {
"prompt": "A slow dolly shot through a neon-lit night market in the rain, steam rising from food stalls",
"resolution": "720p",
"duration": 6,
"audio": true
},
"max_cost_usd": 0.27
}')
ID=$(echo "$RESP" | jq -r '.id // empty')
echo "${ID:-no id: ${RESP:-no answer}}"
# 2. Poll it until status is "succeeded" or "failed". A failed one is free; to try it again,
# make a new key first (KEY=$(uuidgen)): the old one answers with the failure.
curl -s https://api.revana.si/v1/generations/${ID:?no id from step 1} \
-H "Authorization: Bearer $REVANA_API_KEY"
# 3. Download the file once it has succeeded
curl -L https://api.revana.si/v1/generations/${ID:?no id from step 1}/content \
-H "Authorization: Bearer $REVANA_API_KEY" \
-o out.mp4Set REVANA_API_KEY to your key. Full reference in the quickstart.
Options
grok-imagine-video1 route
One route today. If it fails you are not charged.
About the Grok Imagine Video API
How much does the Grok Imagine Video API cost?
Grok Imagine Video costs from $0.02 per second of video on Revana (480p: $0.02; 720p: $0.03; 1080p: $0.05). You pay in prepaid credits, 100 credits to the dollar, with no subscription or monthly minimum. A generation that fails costs nothing.
How do I call Grok Imagine Video from code?
Send POST https://api.revana.si/v1/generations with {"model": "grok-imagine-video", "input": {...}} and your Revana API key as a Bearer token, poll GET /v1/generations/{id} until it succeeds, then download GET /v1/generations/{id}/content. Every model on Revana takes the same request shape.
What happens if a Grok Imagine Video generation fails?
You are charged once, only for the route that delivers. A failed generation costs $0.00.
What can Grok Imagine Video do on Revana?
Grok Imagine Video supports text to video and image to video, resolutions 480p, 720p, 1080p, durations 6 to 30 seconds and generated audio. A value it does not offer is refused with 422 before anything is charged.
Can my AI agent use Grok Imagine Video?
Yes. Connect the Revana MCP server (https://revana.si/api/mcp) to Claude, ChatGPT, Cursor or Codex, or have the agent call the REST API. The agent can list models, get a free quote and generate on your credits.
Guides
- Try Grok Imagine Video online
- APIMart Alternative: Revana vs APIMart Prices Compared
- Cheapest AI Video Generation API in 2026: Price per Second
- CometAPI Alternative: Revana vs CometAPI Prices Compared
- Cheaper fal.ai Alternative for Seedance, Veo and Nano Banana
- Grok Imagine Video API Pricing: Cheapest Price per Second
- OpenRouter Video API Alternative: Revana vs OpenRouter Prices
- Cheaper Replicate Alternative: Seedance, Veo, Nano Banana
- Runware Alternative: Revana vs Runware Video API Prices
- WaveSpeed Alternative: Revana vs WaveSpeed API Prices
Compare with similar models
- Grok Imagine Extend xAI, from $0.02 per second of video
- Grok Imagine Upscale xAI, from $0.07 per generation
- Grok Imagine Video 1.5 xAI, from $0.04 per second of video
- Grok Imagine Video 1.5 Preview xAI, from $0.02 per second of video
- Grok Imagine Image xAI, from $0.02 per image
- Grok Imagine Image 2.0 xAI, from $0.02 per image
Also as markdown for agents. Every model and price: models.json.
fal
Replicate
CometAPI
APIMart
WaveSpeed
OpenRouter
Vercel AI Gateway
Runware