Skip to main content
POST
Playground
Fill in your API key and a prompt, then send. This hits the live API — the same endpoint your code would call, and the only way to reach the video models.
Requests sent from this page are real and are billed to your key. Video is priced per second: a one-second 480p clip costs $0.05 to $0.08, and a fifteen-second 1080p clip costs several dollars. Start short.

Parameters

string
required
Which model to run. Accepts grok-imagine-video or grok-imagine-video-1.5, matched exactly. Only grok-imagine-video can edit or extend an existing clip; only grok-imagine-video-1.5 reaches 1080p and preset voices.
object
required
The generation parameters. Any key not listed below is rejected with invalid_params.
string
An https URL to POST the finished task to, so you can skip polling. Given that video takes 20 to 50 seconds, a callback is worth wiring up.

What comes back

Submitting returns immediately, in well under a second. The clip is not in this response — generation happens in the background.

Then poll for the result

This playground covers the create call only. Take the id from the response above and read the task until status reaches completed or failed — expect 20 to 50 seconds depending on length and resolution.
A finished task carries an outputs array holding one MP4:
The file is served as video/mp4 and plays inline. Its duration runs about 0.04 seconds longer than you asked for.
Output URLs are unauthenticated and expire 24 hours after the task finishes. usage.cost_in_usd_ticks is the list price; your balance moves by that figure times your group multiplier — see pricing.

Next steps

Overview

Modes, duration and resolution tiers, reference images, voices and pricing.

Async task API

The polling loop, callbacks and the full error table.