Grok Imagine Video Text to Video
xai/grok-imagine-video/text-to-videoGrok Imagine Video by xAI - generate cinematic videos from text descriptions with AI. Create high-quality video content with natural motion, camera control, and optional audio generation.
- Base price
- $0.30USD / run
- Execution
- async
- Model type
- video
- Input fields
- 4
Try the model
Playground
Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.30 / 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/text-to-video
- Execution
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
API README
Grok Imagine Video Text to Video
Grok Imagine Video turns a prompt into a 1–15 second clip with native audio.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 4,096 characters. |
resolution | 480p / 720p | 720p | Sets the per-second rate. |
duration | integer 1–15 | 6 | Output length in seconds. |
aspect_ratio | 16:9 / 4:3 / 3:2 / 1:1 / 2:3 / 3:4 / 9:16 | 16:9 | Output frame shape. |
Billing
$0.05 per output second.
| Output | Price |
|---|---|
| 6s (default) | $0.30 |
| 10s | $0.50 |
| 15s | $0.75 |
Failed runs are not charged.
Prompting
- Describe subject, action, camera, and sound.
Also on SandBase
Other Grok Imagine Video endpoints: xai/grok-imagine-video/image-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.
# 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/text-to-video",
"prompt": "Anime schoolgirl bursting out of house door, cherry blossoms blowing, morning light, speed lines indicating rush, chibi-ready expressions, classic shojo aesthetic, vibrant colors",
"duration": 6,
"resolution": "720p",
"aspect_ratio": "16:9"
}
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
| Model | Type | Default price | Released |
|---|---|---|---|
Grok Imagine Video Text to VideoThis model xAI | Video | $0.30 / run | Jan 29, 2026 |
xAI | Video | $0.19 / run | Oct 1, 2026 |
xAI | Video | $0.18 / run | Oct 1, 2026 |
xAI | Video | $1.13 / run | Aug 1, 2026 |
xAI | Video | $0.84 / run | Aug 1, 2026 |
xAI | Video | $0.85 / run | May 31, 2026 |
Questions
FAQ
How do I call xAI Grok Imagine Video Text to Video through SandBase?
Create a SandBase API key, then send requests with the model ID "xai/grok-imagine-video/text-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 Text to Video and the other models in the catalog; you do not need to sign up with xAI separately.
