Grok Imagine Text-to-Video API
x-ai/grok-imagine-text-to-video
Make videos with Grok Imagine Text-to-Video through UberLLM — $0.0742 per video, routed to the cheapest healthy seller. xAI. Fee included.
Grok Imagine Text-to-Video pricing
UberLLM routes every request to the cheapest healthy seller for this model. The price shown includes UberLLM’s 10% fee.
How to use it
Start the job, check on it, then download the video. You only pay when it is made.
# 1. Start the video. It takes a minute or two.
curl https://api.uberllm.dev/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "x-ai/grok-imagine-text-to-video", "prompt": "a red ball bouncing on green grass", "duration_seconds": 5}'
# → {"id": "<job id>", "status": "queued", "max_cost_usdc": "…", "poll_url": "/v1/video/generations/<job id>"}
# max_cost_usdc is the most it can cost (millionths of a dollar); you pay the real cost when it is done.
# 2. Ask again every few seconds until "status" is "succeeded"
curl -H "Authorization: Bearer $UBERLLM_API_KEY" https://api.uberllm.dev/v1/video/generations/<job id>
# 3. Download it
curl -L -o video.mp4 -H "Authorization: Bearer $UBERLLM_API_KEY" https://api.uberllm.dev/v1/media/artifacts/<job id>/0Grok Imagine Text-to-Video API — FAQ
How much does Grok Imagine Text-to-Video cost?
Grok Imagine Text-to-Video is $0.0742 per video through UberLLM right now. That price for a video includes UberLLM's 10% fee. A job that fails costs nothing.
How do I make a video with Grok Imagine Text-to-Video?
Send a POST to https://api.uberllm.dev/v1/video/generations with your UberLLM key, model "x-ai/grok-imagine-text-to-video" and a prompt. You get a job id back; ask https://api.uberllm.dev/v1/video/generations/<job id> until it says "succeeded", then download it from https://api.uberllm.dev/v1/media/artifacts/<job id>/0.