xAI's Grok Imagine Video 1.5 preview: image-to-video generation with synchronized audio. An upgraded successor to Grok Imagine Video with flat per-second pricing regardless of resolution.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "xai/grok-imagine-video-1.5",
"input": {
"image": "https://replicate.delivery/pbxt/PCRhFZ9wvsy2oylrpkZqa9VyAhDfe7VQi0jOKERQF6tX2ddF/download-4.png",
"prompt": "Cinematic motion - the woman looks up out into the sunlight filtering into the room.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "auto"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | - | Text prompt describing the motion or scene for the generated video |
image | string | Yes | - | Input image to animate (image-to-video). Supports jpg, jpeg, png, webp. Output aspect ratio defaults to the image's native ratio |
duration | integer | No | 5 | Duration of the video in seconds (1-15) |
resolution | string | No | 720p | Resolution of the video (480p and 720p cost the same) 720p480p |
aspect_ratio | string | No | auto | Aspect ratio of the output video. 'auto' follows the input image's native ratio auto16:94:31:19:163:43:22:3 |
There are 3 ways to provide files for the image parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=xai/grok-imagine-video-1.5" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "xai/grok-imagine-video-1.5",
"input": {
"prompt": "your prompt here",
"image": "https://example.com/image.jpg"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Animating a still portrait with subtle motion and synced ambience
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "xai/grok-imagine-video-1.5",
"input": {
"image": "https://replicate.delivery/pbxt/PCRhFZ9wvsy2oylrpkZqa9VyAhDfe7VQi0jOKERQF6tX2ddF/download-4.png",
"prompt": "Cinematic motion - the woman looks up out into the sunlight filtering into the room.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "auto"
}
}'A 3-second clip costs just 360 credits thanks to per-second billing
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "xai/grok-imagine-video-1.5",
"input": {
"image": "https://example.com/product-shot.png",
"prompt": "Slow camera push-in on the sneaker as studio lights sweep across it, subtle dust particles in the air",
"duration": 3,
"resolution": "720p",
"aspect_ratio": "1:1"
}
}'POST /v1/predictions