Skip to content
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: 480P: 1.53 credits/s (≈ $0.0153/s), 720P: 2.86 credits/s (≈ $0.0286/s).

Save up to 71%with the $1,250 top-up pack (+10% bonus) — 68% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow

Input

Images0 / 7
Drag and drop or click to upload your imageSupported formats: JPEG, PNG, WEBP · Maximum file size: 10MB; Maximum files: 7Select files

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).

Task ID

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

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).

Prompt145 / 5000 characters

The text prompt describing the desired video motion

Mode

Note: When generating videos using external image inputs, Spicy mode is not supported and will automatically switch to Normal.

Aspect Ratio

The aspect ratio of the video. This parameter is invalid if it is a single image.

Duration

The duration of the generated video in seconds

Resolution

Resolution of the generated video

NSFW filter
OnLocked — this platform doesn't generate adult content.
9.54 cr / run

Output

output typevideo
You only pay for successful generations — if a task fails or returns no result, its credits are refunded automatically, never charged. And your credits never expire: top up once and spend at your own pace.1 credit = $0.01 USDTop up $1,250 for +10% bonus credits → up to ~9% more off every call.Top up credits
Grok Imagine API pricing9 prices

grok-imagine, image-to-video, 720p

videoGrok

Credits / Gen2.86per second
Our Price (USD)$0.0286
Direct / Standard Price (USD)$0.09
Base savings68.2%
Savings with top-up · $1,250 · +10%71% ↓

grok-imagine, image-to-video, 480p

videoGrok

Credits / Gen1.53per second
Our Price (USD)$0.0153
Direct / Standard Price (USD)$0.048
Base savings68.1%
Savings with top-up · $1,250 · +10%71% ↓

grok-imagine, text-to-video, 720p

videoGrok

Credits / Gen2.86per second
Our Price (USD)$0.0286
Direct / Standard Price (USD)$0.09
Base savings68.2%
Savings with top-up · $1,250 · +10%71% ↓

grok-imagine, text-to-video, 480p

videoGrok

Credits / Gen1.53per second
Our Price (USD)$0.0153
Direct / Standard Price (USD)$0.048
Base savings68.1%
Savings with top-up · $1,250 · +10%71% ↓

grok-imagine, text-to-image(quality)

imageGrok

Credits / Gen1.6per generation
Our Price (USD)$0.016
Direct / Standard Price (USD)$0.05
Base savings68.0%
Savings with top-up · $1,250 · +10%71% ↓

grok-imagine, image-to-image

imageGrok

Credits / Gen1.6per generation
Our Price (USD)$0.016
Direct / Standard Price (USD)$0.022
Base savings27.3%
Savings with top-up · $1,250 · +10%34% ↓

6s 720p

videoGrok

Credits / Gen21.12per generation
Our Price (USD)$0.2112
Direct / Standard Price (USD)$0.72
Base savings70.7%
Savings with top-up · $1,250 · +10%73% ↓

10s 720p

videoGrok

Credits / Gen31.68per generation
Our Price (USD)$0.3168
Direct / Standard Price (USD)$1.08
Base savings70.7%
Savings with top-up · $1,250 · +10%73% ↓

grok-imagine, upscale, 360p→720p

videoGrok

Credits / Gen8.03per generation
Our Price (USD)$0.0803
Direct / Standard Price (USD)N/A
Base savingsN/A
Savings with top-up · $1,250 · +10%N/A

Explore more video models