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.

Model480p / second720p / second1080p / secondPer reference image
grok-imagine-1.5-video-ext0.01083750.020315Not supportedFree
grok-imagine-video0.04250.0595Not supported0.0017
grok-imagine-video-1.50.0680.1190.21250.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"}'
ParameterDescription
modelA model from the table above
promptPrompt of 1–8000 characters
durationInteger seconds from 1 to 15; 8 seconds if omitted
resolutionA resolution supported by the model; default 480p
aspect_ratio1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3; default 16:9
image_urlsOptional, 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.