X Ai Grok Imagine Video Text To Video
Playground
Try it on WavespeedAI!X-AI Grok Imagine Video generates videos from text descriptions using xAI’s Grok Imagine Video model. Create high-quality videos with customizable duration, aspect ratio, and resolution. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Grok Imagine Video Text-to-Video
Grok Imagine Video Text-to-Video is X-AI’s text-to-video generation model that creates videos directly from text descriptions. Describe the scene, motion, and style you want — the model generates cinematic footage with realistic movement and atmosphere.
Why Choose This?
-
Pure text-driven generation Create videos from scratch using only text descriptions.
-
Flexible duration Generate videos of varying lengths based on your needs.
-
Multiple aspect ratios Support for 16:9, 9:16, and other common formats.
-
Resolution options Output in 480p or 720p based on your requirements.
-
Prompt Enhancer Built-in tool to automatically improve your video descriptions.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the video scene and motion |
| duration | No | Video length in seconds (default: 6) |
| aspect_ratio | No | Output ratio: 16:9, 9:16, etc. |
| resolution | No | Output resolution: 720p (default), 480p |
How to Use
- Write your prompt — describe the scene, motion, camera movement, and atmosphere in detail.
- Set duration — choose how long the video should be.
- Select aspect ratio — 16:9 for landscape, 9:16 for vertical content.
- Select resolution — 720p for quality, 480p for faster processing.
- Run — submit and download your video.
Pricing
| Duration | Cost |
|---|---|
| Per second | $0.055 |
Billing Rules
- Total cost = $0.055 × duration (in seconds)
Examples
- 5s video → $0.275
- 6s video → $0.33
- 10s video → $0.55
Best Use Cases
- Social Media Content — Generate short-form videos for TikTok, Reels, and Stories.
- Concept Visualization — Bring ideas to life without filming or stock footage.
- Marketing & Ads — Create promotional video content from descriptions.
- Storytelling — Generate narrative scenes for creative projects.
- Rapid Prototyping — Test video concepts before full production.
Pro Tips
- Use the Prompt Enhancer to refine your descriptions automatically.
- Be specific about camera movement (handheld, dolly, pan, zoom) for dynamic footage.
- Describe lighting, weather, and atmosphere for more realistic results.
- Match aspect ratio to your target platform: 16:9 for YouTube, 9:16 for TikTok/Reels.
- Include action details and timing for more controlled motion.
Notes
- Only prompt is required; other parameters have defaults.
- Ensure uploaded URLs are publicly accessible if referencing external content.
- For best results, write detailed prompts with scene, motion, and style information.
Related Models
- Grok Imagine Video Image-to-Video — Generate video from reference images.
- Grok Imagine Video Edit — Edit existing videos with text instructions.
- Grok Imagine Image Text-to-Image — Generate images from text prompts.
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/x-ai/grok-imagine-video/text-to-video" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"duration": 6,
"aspect_ratio": "16:9",
"resolution": "720p"
}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | Text description of the desired video. | |
| duration | integer | No | 6 | 6, 10 | Video duration in seconds. |
| aspect_ratio | string | No | 16:9 | 16:9, 1:1, 9:16 | Aspect ratio of the generated video. |
| resolution | string | No | 720p | 720p, 480p | Resolution of the output video. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content. |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |