grok-imagine-video AI Video API
xAI grok-imagine-video for video generation; Flatkey routes this model through /v1/videos. $0.072 per second
Output
PreviewGenerated with Seedance 2.0
Request summary
- Endpoint
- POST /v1/videos
- Model ID
- grok-imagine-video
- Aspect ratio
- 16:9
- Resolution
- —
- Duration
- 5s
- Reference media
- None
Preview only. Sign in to submit this request to Flatkey.
{
"model": "grok-imagine-video",
"prompt": "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.\n\nVisual treatment: Live-action character-and-drone study with neutral gray lighting and clear spatial separation.\n\nShot 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.\n\nContinuity: Maintain character design, equipment geometry and travel direction from first to final 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.
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.
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.
Add credits
Use the same Flatkey balance and API key across image, video, audio, and text models.
- 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.
| Capability | Previous generation | grok-imagine-video |
|---|---|---|
| Provider | Not verified in this catalog snapshot | xAI |
| Modalities | Not verified in this catalog snapshot | text · image · video |
| Context | Not verified in this catalog snapshot | Context window not listed in the catalog |
| Endpoint | Not verified in this catalog snapshot | /v1/videos |
| Billing | Not 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.
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.
Text to Video
Create a clip from a text prompt and supported output controls.
- Model ID
grok-imagine-video- Endpoint
/v1/videos
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.
durationDuration1–15
Default: 5imageReference limit1 files
Endpoint: /v1/videosFrom 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
Validate the model, prompt, references, and output settings.
- 2
POST the request and retain the returned task ID.
- 3
Poll task status or process the configured callback.
- 4
Fetch the generated file from the content endpoint and store it before expiry.
Production checks
Reject unsupported sizes, durations, ratios, formats, or reference counts before submitting.
Handle invalid keys, insufficient balance, rate limits, and account-group pricing separately.
Surface the rejected prompt or asset clearly so the user can replace only the failing input.
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.
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.
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.
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.
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.
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.
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.
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.
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-***"
FAQ
grok-imagine-video API
pricing, features, and usage FAQs
Answers about grok-imagine-video pricing, capabilities, endpoint access and catalog limits.