xAI: xai/grok-imagine-video-1.5
grok-imagine-video-1.5
xai/grok-imagine-video-1.5Capabilities
2
Context length
—
Tokens
Max output tokens
—
Tokens
Type
Video
xAI
Playground
Output
Ready to generate
Configure the options and submit a prompt. Task status and generated videos will appear here.
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
request.sh
POST
/v1/videos/generationsAsynchronousNative
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 ;; esacdoneThis request creates a task
The example creates a task, polls the platform task endpoint every 10 seconds, and prints the terminal JSON response. It stops after 120 attempts.
Set your API_KEY environment variable before running. Keep your key server-side.