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.
Idle
$0.05per run·~20 / $1
A high-quality cinematic video of a couple sitting at a table in a dimly lit, warm atmosphere cafe. The handsome man on the left and the beautiful woman on the right are looking into each other's eyes with a loving smile. The man slightly nods his head while listening, and the woman tucks a strand of hair behind her ear. In the background, soft bokeh lights flicker gently. The camera slowly orbits around them to enhance the romantic vibe.
Grok Imagine Video Image-to-Video is X-AI's image animation model that brings static images to life. Upload a reference image and describe the motion you want — the model generates a cinematic video with smooth, natural movement and consistent visual quality.
Image-driven generation Transform any still image into a dynamic video with natural, fluid motion.
Flexible duration Generate videos at 6 or 10 seconds to match your scene pacing.
Resolution options Output in 720p or 480p based on your quality and speed requirements.
Prompt Enhancer Built-in tool to automatically refine and strengthen your motion descriptions for better results.
| Parameter | Required | Description |
|---|---|---|
| image | Yes | Reference image to animate (URL or file upload). |
| prompt | Yes | Text description of the desired motion, camera movement, and scene. |
| duration | No | Video length in seconds. Options: 6, 10. |
| resolution | No | Output resolution: 720p (default) or 480p. |
| Duration | Cost |
|---|---|
| 6s | $0.30 |
| 10s | $0.50 |
Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/x-ai/grok-imagine-video/image-to-video with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Grok Imagine Video Image To Video below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/x-ai/grok-imagine-video/image-to-video" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"image": "https://example.com/your-input.jpg",
"duration": 6,
"resolution": "720p"
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("x-ai/grok-imagine-video/image-to-video", {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"image": "https://example.com/your-input.jpg",
"duration": 6,
"resolution": "720p"
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"x-ai/grok-imagine-video/image-to-video",
{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"image": "https://example.com/your-input.jpg",
"duration": 6,
"resolution": "720p"
}
)
print(output["outputs"][0]) # → URL of the generated outputGrok Imagine Video Image To Video is a xAI model for video generation from images, exposed as a REST API 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. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/x-ai/x-ai-grok-imagine-video-image-to-video.
Grok Imagine Video Image To Video starts at $0.050 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `prompt`, `image`, `resolution`, `duration`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/x-ai/x-ai-grok-imagine-video-image-to-video.
Average end-to-end generation time on WaveSpeedAI is around 83 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.
Commercial usage rights depend on the model's license, set by its provider (xAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.