Grok Imagine Video Image to Video

xai/grok-imagine-video/image-to-video

Grok Imagine Video is xAI's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.

Base price
$0.42USD / run
Execution
async
Model type
video
Input fields
5
Production route

Try the model

Playground

Open playground
Input
Text description of desired changes or motion in the video.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

URL of the input image for video generation.
Resolution of the output video. Allowed values: 480p, 720p.
115
Video duration in seconds. Range: 1 to 15.
Output aspect ratio. Omit to match the input image. Allowed values: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16.
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.42 / run

Context & modalities

Input
Schema-defined
Output
video

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
xAI
Model ID
xai/grok-imagine-video/image-to-video
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Grok Imagine Video Image to Video

Grok Imagine Video image-to-video: animate a picture into a 1–15 second clip with native audio.

Fields

FieldTypeDefaultNotes
promptstring, required—Up to 4,096 characters.
imageimage URL, required—First frame. JPEG, PNG, or WebP URL.
resolution480p / 720p720pSets the per-second rate.
durationinteger 1–156Output length in seconds.
aspect_ratio16:9 / 4:3 / 3:2 / 1:1 / 2:3 / 3:4 / 9:16—Output frame shape.

Billing

$0.07 per output second at 720p and $0.05 at 480p, plus $0.002 per request.

Output480p720p
6s (default)$0.302$0.422
10s$0.502$0.702
15s$0.752$1.052

Failed runs are not charged.

Prompting

  • Describe subject, action, camera, and sound.

Also on SandBase

Other Grok Imagine Video endpoints: xai/grok-imagine-video/text-to-video, xai/grok-imagine-video/reference-to-video, xai/grok-imagine-video/video-edit, xai/grok-imagine-video/video-extend, xai/grok-imagine-video/1.5/text-to-video (1.5, newer).

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
xai/grok-imagine-video/image-to-video
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "xai/grok-imagine-video/image-to-video",
  "image": "https://static.sandbase.ai/examples/xai/grok-imagine-video/image-to-video/input_image_0.png",
  "prompt": "Medieval knight in ornate armor walking through a mystical forest, bioluminescent plants pulsing with light, ancient stone ruins overgrown with glowing vines, over-the-shoulder camera, dark fantasy aesthetic, volumetric fog and Lumen lighting",
  "duration": 6,
  "resolution": "720p"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
xAIVideo$0.42 / runJan 29, 2026
xAIVideo$0.19 / runOct 1, 2026
xAIVideo$0.18 / runOct 1, 2026
xAIVideo$1.13 / runAug 1, 2026
xAIVideo$0.84 / runAug 1, 2026
xAIVideo$0.85 / runMay 31, 2026

Questions

FAQ

How do I call xAI Grok Imagine Video Image to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "xai/grok-imagine-video/image-to-video" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate xAI account?

No. One SandBase API key and balance gives you access to xAI Grok Imagine Video Image to Video and the other models in the catalog; you do not need to sign up with xAI separately.