Grok

grok-imagine-video-1.5

xai/grok-imagine-video-1.5
Capabilities
2
480p720p1080p
Context length
—
Tokens
Max output tokens
—
Tokens
Type
Video
xAI

Playground

Input

Output

Pricing

Pricing breakdown
Usage-based pricing, broken down by billing item at your current rates.
30% off

Input images

Standard rate
0.007 credits

Video duration (s)

4 price tiers

Output resolution: 480p
0.056 credits
Output resolution: 720p
0.098 credits
Output resolution: 1080p
0.175 credits
All other cases
0.098 credits

Billing items are additive. Only one matching price tier applies to each item. Each request is calculated exactly from actual usage, and the total is rounded up once to the nearest 0.000001 credits.

API

cURL example
Request type
POST/v1/videos/generations
AsynchronousNative
CREATE_RESPONSE=$(curl "https://api.modelrover.ai/v1/videos/generations" \  -X POST \  -H "Authorization: Bearer $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "model": "xai/grok-imagine-video-1.5",  "prompt": "Explain model gateways in one sentence.",  "duration": 8,  "resolution": "480p",  "aspect_ratio": "16:9"}')# Requires jq.TASK_ID=$(printf '%s' "$CREATE_RESPONSE" | jq -r '.request_id')for attempt in $(seq 1 120); do  RESPONSE=$(curl -sS "https://api.modelrover.ai/v1/tasks/"$TASK_ID -H "Authorization: Bearer $API_KEY")  STATUS=$(printf '%s' "$RESPONSE" | jq -r '.status')  case "$STATUS" in pending) sleep 10 ;; *) printf '%s' "$RESPONSE"; break ;; esacdone

Set your API_KEY environment variable before running. Keep your key server-side.

API documentation

Uptime