UniRoute
Models
TextImageVideoAudio
PricingIntegrations
Video
Video APITemplatesPrompts
Docs
GuidesBlog
Log inGet started
Models
TextImageVideoAudio
Pricing
Integrations
Video
Video APITemplatesPrompts
Docs
GuidesBlog
Log inGet started
Models/Video/Grok Imagine

Grok Imagine

Grok
APIPricing

Turn text into video or images with xAI’s Grok Imagine, choosing the output mode in one workspace.

  • From $0.01 / imageSave up to 70%
  • 1:1, 16:9, 9:16, 2:3 or 3:2
Aspect ratiooption
prompt0/2000
≈ $0.01

Your result appears here

Details

Grok Imagine

  • Overview
  • What you can do
  • Specs
  • Pricing
  • API
  • Use cases
  • FAQ
  • Related models

What is Grok Imagine?

Grok Imagine is xAI’s image and video model family. Select text to video for a moving shot or text to image for a still composition, then use the options shown for that mode.

Describe the subject, action and visual style, then choose one of the catalog options and review the request quote. The available input is text and the catalog option; reference-media inputs are not exposed for these variants.

The image variant exposes aspect choices, while the video variant exposes duration. Switching variants also switches the output type and available settings.

What you can do

What you can do with Grok Imagine through UniRoute today.

Text to video

Describe the subject, action and visual style, then choose one of the catalog options and review the request quote.

Text to image

Select the image variant, describe a still image and choose its aspect option.

The workspace shows only callable variants; other family operations are not available on UniRoute yet.

Specs & variants

The variants you can call, with their options and prices.

VariantModel IDModesInputsOutputPrice
Grok Imagine Videogrok-imagine/text-to-videoText to videoText prompt and an option for durationDuration: 6s$0.09 per request
Grok Imagine Imagegrok-imagine/text-to-imageText to imageText prompt and an option for aspect ratioAspect ratio: 1:1, 16:9, 9:16, 2:3, 3:2$0.01 per request

Pricing

Priced per request. The option you choose sets the price.

Grok Imagine VideoOfficial APIUniRouteSave
6s$0.30$0.09Save 70%
Grok Imagine ImageOfficial APIUniRouteSave
1:1—$0.0125—
16:9—$0.0125—
9:16—$0.0125—
2:3—$0.0125—
3:2—$0.0125—

Official price: docs.x.ai

Example

10 images at Grok Imagine Image · 1:1

≈ $0.13

10 images at Grok Imagine Image · 9:16

≈ $0.13

10 clips at Grok Imagine Video · 6s

≈ $0.90

Prices updated 2026-11-25.

Create an API key

Pay as you go from a single USD wallet balance. You see the quote before each request.

API

Call Grok Imagine from your own code with the media API.

cURL
# Requires bash, curl and jq. Set API_KEY to your own unified UniRoute Key.set -euo pipefail: "${API_KEY:?Set API_KEY first}"BASE='https://api.uniroute.app/v1/media'MODEL='grok-imagine/text-to-image'OPTION='1:1'PROMPT='A calm sunrise over a mountain lake'curl -fsS --max-time 60 "$BASE/catalog" -H "Authorization: Bearer $API_KEY" | jq -e '.data.models'BODY=$(jq -n --arg model "$MODEL" --arg option "$OPTION" --arg prompt "$PROMPT" '{model:$model,option:$option,prompt:$prompt}')QUOTE_BODY=$(printf '%s' "$BODY" | jq '{model,option}')QUOTE=$(curl -fsS --max-time 60 "$BASE/quote" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' -d "$QUOTE_BODY")CAP=$(printf '%s' "$QUOTE" | jq -er '.data.quoted_usd')BODY=$(printf '%s' "$BODY" | jq --arg cap "$CAP" '. + {max_cost_usd:$cap}')IDEMPOTENCY="example-$(date +%s)-$$"create() { curl -fsS --max-time 60 "$BASE/tasks" -H "Authorization: Bearer $API_KEY" -H "Idempotency-Key: $IDEMPOTENCY" -H 'Content-Type: application/json' -d "$BODY"; }TASK_ID=$(create | jq -er '.data.task_id')# The same request and idempotency key must return the original task without charging again.REPLAY_ID=$(create | jq -er '.data.task_id')[ "$TASK_ID" = "$REPLAY_ID" ]for attempt in $(seq 1 120); do  TASK=$(curl -fsS --max-time 60 "$BASE/tasks/$TASK_ID" -H "Authorization: Bearer $API_KEY")  printf '%s' "$TASK" | jq -e '.data | {task_id,status,billing}'  if printf '%s' "$TASK" | jq -e '.data.status == "success" and .data.billing.state == "charged"' >/dev/null; then    index=0    while IFS= read -r url; do      index=$((index+1))      curl -fL --max-time 120 "$url" -o "$TASK_ID-$index.bin"    done < <(printf '%s' "$TASK" | jq -er '.data.urls[].url')    break  fi  if printf '%s' "$TASK" | jq -e '.data.status == "failed" and .data.billing.state == "released"' >/dev/null; then exit 1; fi  if [ "$attempt" = 120 ]; then    echo "Polling limit reached. Keep task ID $TASK_ID and query it later; do not create a new task." >&2    exit 1  fi  sleep 5donecurl -fsS --max-time 60 "$BASE/tasks?limit=20" -H "Authorization: Bearer $API_KEY" | jq -e '.data'# Check this task and the caller Key in Console usage; billing.charged_usd is the actual USD charge.

Parameters

NameInDescription
modelBodyModel ID to run.
optionBodyOne of the options offered for the model: 6, 1:1, 16:9, 9:16, 2:3, 3:2.
promptBodyText prompt describing what to generate.
max_cost_usdBodyMaximum cost in USD for this task, taken from the quote.
Idempotency-KeyHeaderA unique key per task, so a repeated request returns the original task instead of charging again.

Guides

  • Video generation API guide
  • Manage API keys

Use cases

Typical ways to put Grok Imagine to work.

Creative sketches

Explore a visual idea from a written brief, then revise the description to refine the result.

Content production

Use the generated result as a draft in a wider production workflow and review it before publication.

Application integration

Use the media API to quote a request, create a task and poll until the output is ready.

FAQ

Common questions about Grok Imagine.

What is Grok Imagine?

Grok Imagine is xAI’s image and video model family. Select text to video for a moving shot or text to image for a still composition, then use the options shown for that mode.

Which variants can I use?

The variant selector lists the callable model IDs on UniRoute. Unavailable operations are omitted, and the specifications table shows the available options.

How much does Grok Imagine cost?

From $0.01 / image. The Pricing section lists the available rates for the selected variant and settings, with prices updated 2026-11-25.

How do I call it from code?

Use the media API to request a quote, create a task with an Idempotency-Key and a maximum cost, then poll for the result.

What inputs does this workspace accept?

Describe the subject, action and visual style, then choose one of the catalog options and review the request quote. Reference-media inputs are not exposed for the callable variants shown here.

Is there a free trial or free credits?

No. Generation is paid from your wallet balance. You can open the workspace and review the price without paying, create an account to see a live quote for your exact settings, and you are charged only for requests that are accepted.

Related models

Other versions, models from the same provider and alternatives.

Other versions

  • Grok Imagine Video 1.5
    GrokGrok Imagine Video 1.5

More from Grok

  • Grok 4.7
    GrokGrok 4.7
  • Grok 4.6
    GrokGrok 4.6
  • Grok Imagine Image 2.0
    GrokGrok Imagine Image 2.0
  • Grok 4.5
    GrokGrok 4.5

Similar video models

  • Seedance 2.0
    ByteDanceSeedance 2.0
  • Kling 3.0
    KlingKling 3.0
  • Veo 3.1
    GoogleVeo 3.1
  • Wan 2.7 Video
    WanWan 2.7 Video
UniRoute

Mainstream models, one platform. Connecting your product and your creativity.

Models

  • All models
  • Text
  • Image
  • Video
  • Audio

Pricing

  • All pricing
  • Anthropic API
  • OpenAI API
  • Google API
  • xAI API
  • DeepSeek API
  • Moonshot AI API
  • Z.ai API
  • Alibaba API
  • Black Forest Labs API
  • ByteDance API
  • ElevenLabs API
  • Kling AI API
  • MiniMax API
  • PixVerse API
  • Recraft API

Integrations

  • All integrations
  • Claude Code
  • Codex
  • Gemini CLI
  • OpenCode
  • OpenClaw
  • Hermes Agent
  • Cline
  • Kilo Code
  • Cursor
  • JetBrains IDEs
  • TRAE (international)
  • Claude desktop
  • Codex desktop
  • Cherry Studio
  • Chatbox
  • CC Switch

Video & creation

  • Video API
  • Templates
  • Prompts

Resources

  • Docs
  • Blog
  • Quick start
  • Privacy policy
  • Terms of service
  • Acceptable Use Policy
  • Email Support
Featured onFeatured on Startup FameFeatured on FazierFeatured on Dang.aiFeatured on Findly.toolsFeatured on DeepLaunch.ioFeatured on topfreealternativeFeatured on Submit AI ToolsFeatured on AI工具网 (ai138.com)
© 2026 UniRoute. All rights reserved.