Grok Imagine (xAI) API

xAI's Grok Imagine — real-time video and image generation

video by xAI · 21 variants available
Get API key Try in Playground
Starting price
$0.0168
per second · grok-imagine-video-1-5-preview, 480p
Pay-as-you-go · No subscription · $10 minimum top-up · One API key for 21 variants + 501 models in total
Full Grok Imagine (xAI) price list and cost examples →

Overview

Grok Imagine by xAI provides fast AI video and image generation with real-time capabilities. Access all Grok Imagine variants including extend, 6s, 10s, 480p, 720p via AI Generate.

All 21 Grok Imagine (xAI) variants & pricing

Every variant is accessible via the same API endpoint. Switch variants by changing the model parameter. No extra setup.

Variant Credits Price USD Unit
grok-imagine-video-1-5-preview, 480p 2.40 $0.0168 per second Details →
grok-imagine, text-to-video, 480p 2.40 $0.0168 per second Details →
grok-imagine, image-to-video, 480p 2.40 $0.0168 per second Details →
grok-imagine-image-2-0, Image Edit 4.00 $0.0280 per image Details →
grok-imagine-image-2-0, Text to Image 4.00 $0.0280 per image Details →
grok-imagine, text-to-image 4.00 $0.0280 per 2 images Details →
grok-imagine-image-2-0, segment-edit 4.00 $0.0280 per image Details →
grok-imagine, image-to-image 4.00 $0.0280 per generation Details →
grok-imagine, text-to-video, 720p 4.50 $0.0315 per second Details →
grok-imagine, image-to-video, 720p 4.50 $0.0315 per second Details →
grok-imagine-video-1-5-preview, 720p 4.50 $0.0315 per second Details →
grok-imagine, text-to-image(quality) 5.00 $0.0350 per generation Details →
grok-imagine, text-to-video, 1080p 8.00 $0.0560 per second Details →
grok-imagine, image-to-video, 1080p 8.00 $0.0560 per second Details →
grok-imagine, upscale, 480p→720p 10.00 $0.0700 per upscale Details →
grok-imagine/extend, 6s 480p 14.40 $0.1008 per video Details →
grok-imagine, upscale, 720P → 1080P 20.00 $0.1400 per upscale Details →
grok-imagine/extend, 10s 480p 24.00 $0.1680 per video Details →
grok-imagine/extend, 6s 720p 27.00 $0.1890 per video Details →
grok-imagine, upscale, 480P → 1080P 30.00 $0.2100 per upscale Details →
grok-imagine/extend, 10s 720p 45.00 $0.3150 per video Details →

Use Grok Imagine (xAI) via API

Example call with the default variant. Replace model with any slug from the table above.

curl https://aimarcusimage.eu/api/v1/jobs/createTask \
  -H "Authorization: Bearer sk-aig-..." \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-grok-imagine-video-1-5-preview-480p",
  "input": {
    "prompt": "a golden retriever running through autumn leaves, cinematic",
    "aspect_ratio": "16:9",
    "duration": 5
  }
}'

FAQ

How much does Grok Imagine (xAI) cost?

Pricing starts at $0.0168 per second for the most affordable variant. You pay per call from your credit balance — no monthly subscription, no minimum commitment. Starter top-up is $10 → 1,430 credits.

Is this an official xAI API?

AI Generate is an AI model aggregator that routes calls to xAI's upstream API. You get the exact same model outputs with simpler billing (pay per call, no contracts), one API key for 501 models, and the same create-task request shape across all providers.

Can I use Grok Imagine (xAI) in production?

Yes. Each API key is rate-limited to 20 requests per 10 seconds. Results are asynchronous: poll /api/v1/jobs/recordInfo with the taskId, or pass a callBackUrl in the create-task body to receive a POST when the task finishes. Daily and monthly spend caps in dashboard settings stop runaway usage.

Which Grok Imagine (xAI) variant should I pick?

For first tests, start with the cheapest variant (lowest "Price USD" in the table above). Upgrade to higher-resolution or "Quality" tiers only when you have validated prompts. The Playground runs the most popular models from your browser; every variant in the table is available through the API at the price shown.

Google Veo 3.1
Google DeepMind's flagship AI video model — realistic motion, synchronized audio, up to 4K resolution
Seedance (ByteDance)
ByteDance's Seedance 2.0 — realistic video generation with multi-shot consistency
Wan (Alibaba)
Alibaba's Wan 2.6/2.7 — full-modality AI video and image suite
Kling
Kling — China's leading AI video generator with Hollywood-grade quality
Runway
Runway text-to-video, image-to-video and video extend, 720p and 1080p