grok-imagine-video AI Video API

xAI grok-imagine-video for video generation; Flatkey routes this model through /v1/videos. $0.072 per second

Image to VideoReference-guided VideoShort-form Video
Provider
xAI
Reference price
$0.090 / second
Flatkey price
$0.072 / second-20%
Generator setup · Playground (edit before sign-up)

Input

PromptCheck more752 / 10000
Quick Prompts
Reference image0 / 1
Start generating

Output

Preview

Generated with Seedance 2.0

Request summary

Endpoint
POST /v1/videos
Model ID
grok-imagine-video
Aspect ratio
9:16
Resolution
—
Duration
5s
Reference media
None

Preview only. Sign in to submit this request to Flatkey.

Request preview
{
  "model": "grok-imagine-video",
  "prompt": "Creative direction: A white travel mug with a blue hinged lid stands on a dark studio surface. One hand flips the lid open at its fixed hinge; a thin plume of steam rises from the opening. Finish on the mug profile with its lid, handle and opening clearly visible.\n\nVisual treatment: Photoreal product close-up with a soft edge light on white ceramic, a blue lid and restrained backlit steam.\n\nShot sequence: 1. Hold the closed mug in a three-quarter close-up; 2. Show the hand opening the lid around its hinge; 3. Let the steam rise and settle on the open product profile\n\nContinuity: Keep the product silhouette, cap or hinge, materials and prop positions stable; hold the final hero frame.\nExclude: extra people or props, text, logos and watermarks.",
  "duration": 5
}

grok-imagine-video API performance

grok-imagine-video API reliability and uptime

Live Flatkey request telemetry for grok-imagine-video appears here when enough production traffic is available.

Avg. provider uptime
—
last 30 days
Latency
—
last 30 days
Requests
245
30-day window
Successful inference trend

grok-imagine-video API activity

grok-imagine-video API usage and request activity

Track request volume and successful inference activity for grok-imagine-video over the latest reporting window.

Requests
245
30-day window
Latency
—
last 30 days
Uptime
—
last 30 days
Successful inference trendActivity

grok-imagine-video pricing

grok-imagine-video API pricing and billing

Prices below are calculated from Flatkey pricing data for this model and the visible groups currently returned by our pricing API.

Flatkey price

Price / second

Live catalog model
$0.072 / second
Price / second
$0.072 / second$0.090 / second
Try a prompt
Shared balance

Add credits

Add credits

Use the same Flatkey balance and API key across image, video, audio, and text models.

Model catalog
Model Type
Text to Video
API
/v1/videos
Billing basis
second
Duration
1–15s
Aspect ratio
adaptive

grok-imagine-video video generation: core capabilities

xAI's grok-imagine-video route supports text · image · video. Catalog categories: Marketing.

grok-imagine-video scene creation

Turn a written brief into short-form scenes through /v1/videos, ready for creative iteration.

grok-imagine-video reference-led motion

Animate a designed frame, product, character, or storyboard when the route accepts reference media.

grok-imagine-video camera and action direction

Shape how the camera, subject, pacing, and framing develop into a coherent clip.

grok-imagine-video production handoff

Move a tested concept from prompt exploration into an authenticated Flatkey video workflow.

Compare

grok-imagine-video API comparison: capabilities and access

Compare the catalog facts for grok-imagine-video with the previous-generation baseline before changing your integration.

CapabilityPrevious generationgrok-imagine-video
ProviderNot verified in this catalog snapshotxAI
ModalitiesNot verified in this catalog snapshottext · image · video
ContextNot verified in this catalog snapshotContext window not listed in the catalog
EndpointNot verified in this catalog snapshot/v1/videos
BillingNot verified in this catalog snapshot$0.072 per second

Choose the right request before you integrate

Review the supported workflows, live cost for the current setup, and the exact parameter contract used by Flatkey.

Live cost estimate

Calculated from the current Playground settings and the live catalog rate when a fixed unit price is available.

Current setup
5s
Live rate
$0.072 / second
Estimated request
$0.360
$0.072 × 5s

The final charge follows the submitted request and your account group. Token-priced or tiered requests cannot be reduced to one fixed estimate.

Workflows and Model ID

Use only the workflows marked available. Flatkey keeps one public model ID while the request body selects the input workflow.

Available

Text to Video

Create a clip from a text prompt and supported output controls.

Model ID
grok-imagine-video
Endpoint
/v1/videos
Available

Image to Video

Animate one or more image references while preserving the requested subject and composition.

Model ID
grok-imagine-video
Endpoint
/v1/videos

Parameter compatibility

These values come from the same model configuration used by the Playground and request preview.

durationDuration
Accepted

1–15

Default: 5
imageReference limit
Accepted

1 files

Endpoint: /v1/videos

From first test to production

Use the same request contract in the Playground and API, then handle validation, balance, task state, and output retrieval explicitly.

Request lifecycle

  1. 1

    Validate the model, prompt, references, and output settings.

  2. 2

    POST the request and retain the returned task ID.

  3. 3

    Poll task status or process the configured callback.

  4. 4

    Fetch the generated file from the content endpoint and store it before expiry.

Production checks

Parameter validation

Reject unsupported sizes, durations, ratios, formats, or reference counts before submitting.

Authentication and balance

Handle invalid keys, insufficient balance, rate limits, and account-group pricing separately.

Input or policy rejection

Surface the rejected prompt or asset clearly so the user can replace only the failing input.

Task failure or timeout

Keep the task ID, use bounded retries, and never treat a timeout as a successful generation.

Prompt library

grok-imagine-video video generation prompt examples

Start with a grok-imagine-video prompt for short-form creator clips, then adjust the request fields shown in the playground.

Micro-drama and comic creators

Generated with Seedance 2.0

Creative direction: A young man in a mustard jacket stands in an empty stairwell holding a white envelope. He opens it, studies the contents, and looks upward toward the landing as the camera moves from a medium view into his reaction. Visual treatment: Live-action suspense with subdued stairwell light and a mustard jacket accent. Shot sequence: 1. Frame the mustard-jacketed man and white envelope in the stairwell.; 2. Ease closer as he opens the envelope and reads.; 3. Hold his upward glance toward the landing without changing eyeline direction. Continuity: Keep the character's face, clothing and key prop consistent; preserve screen direction across cuts. Exclude: extra people or props, text, logos and watermarks.

Create similar
Advertising and ecommerce teams

Generated with Seedance 2.0

Creative direction: A white travel mug with a blue hinged lid stands on a dark studio surface. One hand flips the lid open at its fixed hinge; a thin plume of steam rises from the opening. Finish on the mug profile with its lid, handle and opening clearly visible. Visual treatment: Photoreal product close-up with a soft edge light on white ceramic, a blue lid and restrained backlit steam. Shot sequence: 1. Hold the closed mug in a three-quarter close-up; 2. Show the hand opening the lid around its hinge; 3. Let the steam rise and settle on the open product profile Continuity: Keep the product silhouette, cap or hinge, materials and prop positions stable; hold the final hero frame. Exclude: extra people or props, text, logos and watermarks.

Create similar
Film concept and production teams

Generated with Seedance 2.0

Creative direction: A man enters an empty industrial room beside the sea and walks toward a large window. The camera follows from behind as the ocean and warm sunset fill the opening, ending on his silhouette against the view. Visual treatment: Live-action location reveal with industrial shadows and warm coastal sunset. Shot sequence: 1. Follow the man from behind through the industrial room.; 2. Approach the large window as the sunset ocean fills the opening.; 3. Stop behind his silhouette and retain detail around the window frame. Continuity: Maintain scene geography, subject scale and motivated light direction throughout the camera move. Exclude: extra people or props, text, logos and watermarks.

Create similar
Game art and animation teams

Generated with Seedance 2.0

Creative direction: A man stands still in a neutral gray studio while a compact quadcopter drone circles behind and beside him. Keep the camera locked at waist height so the drone's orbit, distance, and the subject's profile remain easy to read. Visual treatment: Live-action character-and-drone study with neutral gray lighting and clear spatial separation. Shot sequence: 1. Hold the man in profile in the neutral gray studio.; 2. Move the quadcopter behind and beside him along a clear curved path.; 3. Keep its distance from the man as the locked camera holds the composition. Continuity: Maintain character design, equipment geometry and travel direction from first to final frame. Exclude: extra people or props, text, logos and watermarks.

Create similar
Creator and explainer channels

Generated with Seedance 2.0

Creative direction: A presenter speaks at a home desk into a black microphone. Cut to a close view of one hand connecting a small audio cable and adapter, then return to the seated presenter continuing the explanation. Visual treatment: Live-action creator demonstration with natural desk lighting and restrained depth of field. Shot sequence: 1. Establish the seated presenter speaking into the black microphone.; 2. Cut to the hand aligning and inserting the cable into the adapter.; 3. Return to the original desk framing as the explanation continues. Continuity: Keep demonstration props, layout and hand contact consistent so the action remains legible. Exclude: extra people or props, text, logos and watermarks.

Create similar
Music producers and visual artists

Generated with Seedance 2.0

Creative direction: A man in a dark gallery pushes and rotates a glowing turquoise rectangular panel. Orange and purple panels light up around him as he changes its angle, ending with the three colored surfaces arranged across the room. Visual treatment: Light-installation performance with turquoise, orange and purple emissive panels. Shot sequence: 1. Frame the man touching the turquoise panel in the dark gallery.; 2. Follow his hands pushing and rotating the panel while orange and purple panels illuminate.; 3. Hold all three colored surfaces in their final arrangement. Continuity: Keep the main subject, palette and light behavior consistent as the visual pattern develops. Exclude: extra people or props, text, logos and watermarks.

Create similar

Why grok-imagine-video API

Why use grok-imagine-video through Flatkey?

Use one gateway for grok-imagine-video, account controls and the rest of your model catalog.

grok-imagine-video in one API

Keep the grok-imagine-video model id and endpoint explicit while using the same Flatkey key as other workloads.

Live catalog pricing

See the current grok-imagine-video billing dimensions before a request is sent, then confirm the final estimate in your account.

A practical model handoff

Test a grok-imagine-video prompt in the public playground and carry the same settings into an authenticated integration.

Usage and routing controls

Centralize keys, quotas and routing for grok-imagine-video without changing your application’s provider-facing workflow.

grok-imagine-video API

grok-imagine-video API integration guide

Use the model id above with /v1/videos; keep the request fields and billing unit documented for your route.

Send an authenticated request to /v1/videos with model set to grok-imagine-video.
Use grok-imagine-video in your SDK configuration so routing and usage reports map to the intended catalog entry.
Review $0.072 per second and account limits before scaling grok-imagine-video requests.
Start in the playground, then reuse the request shape with a Flatkey API key in your server or agent.
curl https://router.flatkey.ai/v1/videos \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-***" \
  -d '{"model":"grok-imagine-video","prompt":"Create a short product video with grok-imagine-video: clear subject motion, realistic lighting, stable camera, and production-ready framing.","duration":5}'

# Poll for the result (replace TASK_ID with the returned task id)
curl "https://router.flatkey.ai/v1/videos/TASK_ID" \
  -H "Authorization: Bearer sk-***"
Docs

FAQ

grok-imagine-video API
pricing, features, and usage FAQs

Answers about grok-imagine-video pricing, capabilities, endpoint access and catalog limits.

What is grok-imagine-video used for?
grok-imagine-video is listed by xAI for video generation; the catalog lists these modalities: text · image · video.
How is grok-imagine-video priced?
Use the pricing section above for current Flatkey prices from our pricing API.
Which API endpoint calls grok-imagine-video?
Flatkey routes this model through /v1/videos. Set the model field to grok-imagine-video and follow the fields supported by that endpoint.
What context or input limits does grok-imagine-video have?
grok-imagine-video is listed with Context window not listed in the catalog. Other limits depend on the route and current account availability, so verify them before production use.