Skip to content
youbot
Grok Imagine cover

Grok Imagine API

grok-imagine-image-to-video
GrokCommercial use API verifiedVideo generationAspect ratiosDuration

Grok Imagine — high-quality AI video generation.

by Grok

Get Your API Key
View as Markdown
Model Type:

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 up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable 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

Establishing shots

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

Loops for a landing page

Loops for a landing page

Short seamless loops that carry a page without a video crew.

Before-and-after reveals

Before-and-after reveals

Show the change itself, not two photos side by side.

Character-led shorts

Character-led shorts

One consistent character across several cuts.

Food in motion

Food in motion

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

Architectural walk-throughs

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.

Model14 cr17 cr19 cr22 cr24 cr26 cr27 cr29 cr31 cr32 cr34 cr36 cr41 cr45 cr50 cr54 cr59 cr63 cr68 cr720p480p
Grok Imagine Video 1.512.65 cr$0.127 · official $0.471615.36 cr$0.154 · official $0.572617.16 cr$0.172 · official $0.6419.87 cr$0.199 · official $0.741121.57 cr$0.216 · official $0.823.49 cr$0.235 · official $0.875823.49 cr$0.235 · official $0.8426.2 cr$0.262 · official $0.976828 cr$0.280 · official $1.044228.91 cr$0.289 · official $1.077930.71 cr$0.307 · official $1.145331.32 cr$0.313 · official $1.1237.04 cr$0.370 · official $1.381139.15 cr$0.392 · official $1.445.17 cr$0.452 · official $1.684246.97 cr$0.470 · official $1.6853.3 cr$0.533 · official $1.987454.8 cr$0.548 · official $1.9661.43 cr$0.614 · official $2.29053.91 cr$0.039 · official $0.142.16 cr$0.022 · official $0.08
Grok Imaginethis page11.32 cr$0.113 · official $0.313.74 cr$0.137 · official $0.364315.36 cr$0.154 · official $0.407117.78 cr$0.178 · official $0.471419.16 cr$0.192 · official $0.521.02 cr$0.210 · official $0.557119.13 cr$0.191 · official $0.4223.44 cr$0.234 · official $0.621425.06 cr$0.251 · official $0.664325.87 cr$0.259 · official $0.685727.48 cr$0.275 · official $0.728625.51 cr$0.255 · official $0.5633.14 cr$0.331 · official $0.878631.88 cr$0.319 · official $0.740.42 cr$0.404 · official $1.071438.26 cr$0.383 · official $0.8447.69 cr$0.477 · official $1.264344.64 cr$0.446 · official $0.9854.97 cr$0.550 · official $1.45713.19 cr$0.032 · official $0.071.92 cr$0.019 · official $0.05

How to access and deploy the Grok Imagine API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Grok Imagine endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

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

Featureyou.botGoing direct
Price per video$0.11$0.3
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

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.

Grok

Grok Imagine API code example

POST/api/v1/generate

Grok 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_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `grok-imagine-image-to-video`
inputobjectYesInput parameters object (see below)
callbackUrlstringNohttps 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

ParameterTypeRequiredDescription
image_urlsstring[]NoProvide 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_idstringNoEnter 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.
indexnumberNoWhen 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
promptstringNoThe 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.
modestringNoNote: 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_ratiostringNoThe 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
durationnumberNoThe duration of the generated video in seconds (range 6–30) · default: 6
resolutionstringNoResolution of the generated video (options: 480p, 720p) · default: 480p
nsfw_checkerbooleanNoA configurable parameter. Defaults to true in the Playground. (true/false) · default: true

Query task status

GET/api/v1/task/{taskId}?model=grok-imagine-image-to-video

When state is success, the output is in resultUrls:

{ "state": "success", "resultUrls": ["https://…/api/file?t=…"] }

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
Request
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"
}'
Response
{
  "taskId": "281e5b0…f39b9",
  "creditsCharged": 11.32
}