X Ai Grok Imagine Video Image To Video
Playground
Try it on WavespeedAI!X-AI Grok Imagine Video transforms images into videos using xAI’s Grok Imagine Video model. Animate still images with natural motion, scene continuity, and synchronized audio. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
Grok Imagine Video Image-to-Video
Grok Imagine Video Image-to-Video is X-AI’s video generation model that brings static images to life. Upload a reference image and describe the motion you want — the model generates cinematic video with smooth, natural movement.
Why Choose This?
-
Image-driven generation Transform any image into a dynamic video with natural motion.
-
Flexible duration Generate videos up to 15 seconds in length.
-
Multiple aspect ratios Auto-detect from source image or choose a specific ratio.
-
Resolution options Output in 480p or 720p based on your needs.
-
Prompt Enhancer Built-in tool to automatically improve your motion descriptions.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text description of the desired motion and scene |
| image | Yes | Reference image to animate (URL or upload) |
| duration | No | Video length in seconds (default: 15) |
| aspect_ratio | No | Output ratio: auto (default) or specific ratio |
| resolution | No | Output resolution: 720p (default), 480p |
How to Use
- Upload your image — provide the reference image to animate.
- Write your prompt — describe the motion, camera movement, and scene details.
- Set duration — choose how long the video should be.
- Select aspect ratio — use auto to match source image or choose specific ratio.
- Select resolution — 720p for quality, 480p for faster processing.
- Run — submit and download your video.
Pricing
| Duration | Cost |
|---|---|
| Per second | $0.055 |
Best Use Cases
- Photo Animation — Bring portraits, landscapes, and product images to life.
- Social Media Content — Create engaging video content from static images.
- Marketing & Ads — Generate dynamic promotional videos from product photos.
- Storytelling — Animate illustrations and concept art for narratives.
- Creative Projects — Explore motion concepts from reference images.
Pro Tips
- Use the Prompt Enhancer to refine your motion descriptions.
- Be specific about camera movement (pan, zoom, dolly) and subject motion.
- Use high-quality source images for better video results.
- Choose auto aspect ratio to preserve your image’s original proportions.
- Start with shorter durations to test motion concepts before generating longer videos.
Notes
- Both prompt and image are required fields.
- Maximum duration is 15 seconds.
- Ensure uploaded image URLs are publicly accessible.
- For best results, describe both motion and atmosphere in your prompt.
Related Models
- Grok Imagine Video Edit — Edit existing videos with text instructions.
- Grok Imagine Image Text-to-Image — Generate images from text prompts.
- Grok Imagine Image Edit — Edit images with text instructions.
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/image-to-video" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"duration": 6,
"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 |
|---|---|---|---|---|---|
| image | string | Yes | - | URL of the input image for video generation. | |
| prompt | string | Yes | - | Text description of desired motion or changes in the video. | |
| duration | integer | No | 6 | 6, 10 | Video duration in seconds. |
| 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 |