Grok Imagine Video API

Model id: x-ai/grok-imagine-video.

A video model, called through Hyperouter's OpenAI-compatible API. Text, image or video input. 15 s at most. Supports edit.

Price

TierPrice per second of video
Base rate$0.050
720p$0.070

Call it with the OpenAI SDK

Set HYPEROUTER_API_KEY to an API key from the dashboard. Any OpenAI SDK works once its base URL is https://api.hyperouter.app/v1.

curl https://api.hyperouter.app/v1/videos \
  -H "Authorization: Bearer $HYPEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-imagine-video",
    "prompt": "A lighthouse at dusk, the camera circling it",
    "seconds": 8
  }'

Reference

Sign in with Google or GitHub, create an API key, and open a top-up ticket to add credits. You are charged at the provider's list price.