Grok Imagine (Text-to-Video)

xAI Grok Imagine video generation. Text-to-video and image-to-video, 6-30s, 480p / 720p. · xai

All models
Parameters

Text prompt describing the desired video motion.

Video length in seconds.

Enable content filtering. Set to false to disable.

Pricing
14.399999999999999credits
6s
Per second2.4 credits/s
Result

Configure parameters and click Run to test the API.

Code Example
curl -X POST https://aivideoapi.ai/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-text-to-video",
  "input": {
    "mode": "normal",
    "duration": 6,
    "resolution": "480p",
    "aspect_ratio": "2:3",
    "nsfw_checker": true
  }
}'