Grok video API
Grok video generation, reference images, asynchronous queries and customer pricing.
Use an Official Group API key to call POST https://app.apipool.dev/v1/videos/generations. It supports text-to-video and video generation from one reference image.
Models and pricing
Customer prices below already include the discount and are in US dollars. The total equals the selected duration multiplied by the per-second price for the resolution; using a reference image adds a one-time reference image input fee.
| Model | 480p / second | 720p / second | 1080p / second | Per reference image |
|---|---|---|---|---|
grok-imagine-1.5-video-ext | 0.0108375 | 0.020315 | Not supported | Free |
grok-imagine-video | 0.0425 | 0.0595 | Not supported | 0.0017 |
grok-imagine-video-1.5 | 0.068 | 0.119 | 0.2125 | 0.0085 |
1.5 Video Ext supports 6–15 seconds, default 6 seconds, with aspect ratios 1:1, 16:9, 9:16, 3:2 and 2:3. The total price for each duration and resolution combination is rounded to one millionth of a US dollar.
For example, a 5-second 720p Video 1.5 with one reference image costs 5 × 0.119 + 0.0085 = US$0.6035 in total. Generation wait time does not count toward video duration.
Submission example
curl https://app.apipool.dev/v1/videos/generations \
-H "Authorization: Bearer $APIPOOL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-imagine-video-1.5","prompt":"The camera slowly moves toward a green ceramic cup on a table","duration":1,"resolution":"480p","aspect_ratio":"16:9"}'| Parameter | Description |
|---|---|
model | A model from the table above |
prompt | Prompt of 1–8000 characters |
duration | Integer seconds from 1 to 15; 8 seconds if omitted |
resolution | A resolution supported by the model; default 480p |
aspect_ratio | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3; default 16:9 |
image_urls | Optional, at most one HTTPS reference image URL, such as ["https://example.com/cup.png"]; omit it when not using a reference image |
Video editing, video input, multiple reference images and additional moderation options are not currently available. Do not reuse extension parameters from other video models with this endpoint.
Query and save
After acceptance the response is 202 with a task id. Query GET /v1/tasks/{id} with the same key that submitted the task until completed or failed. On success, iterate over the data array and save every video file; download links expire and cannot serve as permanent storage.
See asynchronous video tasks for all statuses. If a submission result is unclear, keep the task ID and query first; do not start another generation.
From the model catalog you can open a video model page to submit, query and play results online with an existing Official Group key.