Grok Imagine API
grok-imagine-image-to-videoGrok Imagine — high-quality AI video generation.
by Grok
Pricing: Image To Video — 480P: 1.92 credits/s (≈ $0.0192/s), 720P: 3.19 credits/s (≈ $0.0319/s).
Save up to 65%with the $1,250 top-up pack (+10% bonus) — 62% lower than direct rates even without itTop up24H Status Monitor
OperationalAffordable Grok Imagine API on you.bot
xAI Grok Imagine — fast, expressive image generation with a playful style.
Grok Imagine API pricing & guide (2026)
Grok Imagine — high-quality AI video generation. Through you.bot you call the Grok Imagine API by Grok on the same unified endpoint as every other model — one key, one integration.
On you.bot, the Grok Imagine API costs about $0.11 per video — roughly 62% cheaper than the official Grok price of $0.3. You only pay for successful generations; failed tasks are never charged.
Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Grok Imagine API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.
Core capabilities of the Grok Imagine API
Quick & expressive
Eye-catching images generated in seconds.
Reference support
Guide output with an input image.
Simple controls
Prompt plus aspect ratio — easy to use.
Where the Grok Imagine API fits in production
Every image below was generated on you.bot with the Grok Imagine API itself — no stock photography.

Establishing shots
Wide openers for a campaign, generated per market instead of licensed per market.

Loops for a landing page
Short seamless loops that carry a page without a video crew.

Before-and-after reveals
Show the change itself, not two photos side by side.

Character-led shorts
One consistent character across several cuts.

Food in motion
Steam, pour and sizzle — the shots that sell a menu.

Architectural walk-throughs
Move a camera through a space that does not exist yet.
Grok Imagine API compared with the rest of its family
The same prices this page charges, side by side — so you can see what a version step costs before you switch.
| Model | 14 cr | 17 cr | 19 cr | 22 cr | 24 cr | 26 cr | 27 cr | 29 cr | 31 cr | 32 cr | 34 cr | 36 cr | 41 cr | 45 cr | 50 cr | 54 cr | 59 cr | 63 cr | 68 cr | 720p | 480p |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Grok Imagine Video 1.5 | 12.65 cr$0.127 · official $0.4716 | 15.36 cr$0.154 · official $0.5726 | 17.16 cr$0.172 · official $0.64 | 19.87 cr$0.199 · official $0.7411 | 21.57 cr$0.216 · official $0.8 | 23.49 cr$0.235 · official $0.8758 | 23.49 cr$0.235 · official $0.84 | 26.2 cr$0.262 · official $0.9768 | 28 cr$0.280 · official $1.0442 | 28.91 cr$0.289 · official $1.0779 | 30.71 cr$0.307 · official $1.1453 | 31.32 cr$0.313 · official $1.12 | 37.04 cr$0.370 · official $1.3811 | 39.15 cr$0.392 · official $1.4 | 45.17 cr$0.452 · official $1.6842 | 46.97 cr$0.470 · official $1.68 | 53.3 cr$0.533 · official $1.9874 | 54.8 cr$0.548 · official $1.96 | 61.43 cr$0.614 · official $2.2905 | 3.91 cr$0.039 · official $0.14 | 2.16 cr$0.022 · official $0.08 |
| Grok Imaginethis page | 11.32 cr$0.113 · official $0.3 | 13.74 cr$0.137 · official $0.3643 | 15.36 cr$0.154 · official $0.4071 | 17.78 cr$0.178 · official $0.4714 | 19.16 cr$0.192 · official $0.5 | 21.02 cr$0.210 · official $0.5571 | 19.13 cr$0.191 · official $0.42 | 23.44 cr$0.234 · official $0.6214 | 25.06 cr$0.251 · official $0.6643 | 25.87 cr$0.259 · official $0.6857 | 27.48 cr$0.275 · official $0.7286 | 25.51 cr$0.255 · official $0.56 | 33.14 cr$0.331 · official $0.8786 | 31.88 cr$0.319 · official $0.7 | 40.42 cr$0.404 · official $1.0714 | 38.26 cr$0.383 · official $0.84 | 47.69 cr$0.477 · official $1.2643 | 44.64 cr$0.446 · official $0.98 | 54.97 cr$0.550 · official $1.4571 | 3.19 cr$0.032 · official $0.07 | 1.92 cr$0.019 · official $0.05 |
How to access and deploy the Grok Imagine API on you.bot
Get your API key
Create a key in the dashboard — one key works across every model on the platform.
Call the Grok Imagine endpoint
POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.
Poll for your result
Use the returned taskId to poll the task endpoint, or register a webhook to receive the result URLs.
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer sk-live-..." \
-H "Content-Type: application/json" \
-d '{
"modelId": "grok-imagine-image-to-video",
"input": { "prompt": "..." }
}'Grok Imagine API on you.bot vs going direct
| Feature | you.bot | Going direct |
|---|---|---|
| Price per video | $0.11 | $0.3 |
| Failed-task billing | Free (auto-refund) | Charged |
| Integration | One unified API | Per-vendor SDKs |
| Credit expiry | Never | Varies |
4.9
Based on 1,200+ developer reviews
Why choose you.bot for the Grok Imagine API
62% cheaper
Lower rates than going direct to Grok — and you only pay for successful runs.
Production-grade reliability
Monitored availability with automatic credit refunds on failed jobs.
One API for everything
Swap models freely without touching your integration or juggling vendors.
FAQs about the Grok Imagine API
Grok Imagine is billed per video at about $0.11 on you.bot — and you only pay for successful generations.
Yes — output can be used in commercial projects, subject to the upstream provider's usage policy.
Create a task to receive a taskId, then poll the task endpoint or register a webhook to fetch the result.
Yes — it's the same Grok model, accessed through you.bot's unified API at better rates.
Set `aspect_ratio` to one of: 2:3, 3:2, 1:1, 16:9, 9:16. The default is 2:3.
Choose `resolution` from: 480p, 720p. Higher settings cost more per run — the price for each setting is shown in the playground before you run. The default is 480p.
Set `duration` to any value from 6 to 30 seconds. You are billed for the length you request. The default is 6.
Yes. Besides the prompt, the Grok Imagine API accepts `image_urls` (image). Pass a public URL for each file, or upload it in the playground.
Grok
Grok Imagine API code example
/api/v1/generateGrok Imagine — high-quality AI video generation.
Overview
Grok Imagine runs in two steps: POST /api/v1/generate to start a task, then poll GET /api/v1/task/{taskId} until the result is ready.
Key features
- Multiple generation modes: fun, normal, spicy
- Flexible aspect ratios: 2:3, 3:2, 1:1, 16:9, 9:16
- Configurable duration: 6–30s
Authentication
All requests require a Bearer Token in the header:
Authorization: Bearer YOUR_API_KEYRequest parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| modelId | string | Yes | Model id: `grok-imagine-image-to-video` |
| input | object | Yes | Input parameters object (see below) |
| callbackUrl | string | No | https URL we POST the finished task to. Signed with `X-Webhook-Signature` once you create a webhook signing key in Dashboard → Settings |
input object parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| image_urls | string[] | No | Provide one external image URL as a reference for video generation (only one image is supported). This is one of two image input options — you can either upload an external image or specify a task_id + index from a Grok-generated image below. Do not provide both image_urls and task_id at the same time.In your prompt, reference an uploaded image by typing @image(n) followed by a space (for example: @image1 a sunset over the ocean). (image URL) |
| task_id | string | No | Enter the task_id of an image previously generated with the Grok model on you.bot. Use it together with the index below to select a specific image from that generation. When using this method, do not provide image_urls. Unlike external images, this method supports Spicy mode. |
| index | number | No | When using a task_id, specify which image to use (Grok generates 6 images per task). This parameter only works with task_id and is ignored if image_urls is used(0-based). (range 0–5) · default: 0 |
| prompt | string | No | The text prompt describing the desired video motion · default: Slow cinematic push-in with gentle ambient motion, soft light shifting across the frame, subtle parallax and a shallow, dreamlike depth of field. |
| mode | string | No | Note: When generating videos using external image inputs, Spicy mode is not supported and will automatically switch to Normal. (options: fun, normal, spicy) · default: normal |
| aspect_ratio | string | No | The aspect ratio of the video. This parameter is invalid if it is a single image. (options: 2:3, 3:2, 1:1, 16:9, 9:16) · default: 2:3 |
| duration | number | No | The duration of the generated video in seconds (range 6–30) · default: 6 |
| resolution | string | No | Resolution of the generated video (options: 480p, 720p) · default: 480p |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) · default: true |
Query task status
/api/v1/task/{taskId}?model=grok-imagine-image-to-videoWhen state is success, the output is in resultUrls:
{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }Error codes
| Code | Description |
|---|---|
| 200 | Request successful |
| 400 | Invalid request parameters |
| 401 | Authentication failed — check API Key |
| 402 | Insufficient account balance |
| 403 | IP not allowed for this key, or the key is restricted to other models |
| 404 | Task not found, or it has expired |
| 409 | Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe |
| 413 | Payload too large — see the character and file-size limits for this model |
| 429 | Rate limit exceeded — retry after the Retry-After header |
| 500 | Internal server error |
| 504 | Upstream timed out — nothing was delivered; retry is safe |
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"modelId": "grok-imagine-image-to-video",
"input": {
"image_urls": [
"https://you.bot/examples/grok-imagine-text-to-image.jpg"
],
"task_id": "example",
"index": 0,
"prompt": "Slow cinematic push-in with gentle ambient motion, soft light shifting across the frame, subtle parallax and a shallow, dreamlike depth of field.",
"mode": "normal",
"aspect_ratio": "2:3",
"duration": 6,
"resolution": "480p",
"nsfw_checker": true
},
"callbackUrl": "https://your-domain.com/api/callback"
}'{
"taskId": "281e5b0…f39b9",
"creditsCharged": 11.32
}

