APIrove

Home / Models / Grok / Grok Imagine Video

MODEL · GROK · VIDEO

Grok Imagine Video API

Sign in to get a trial allowance

Send your first request

Replace YOUR_API_KEY with your API key.

curl https://apirove.com/v1/videos \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model": "grok-imagine-video", "prompt": "Describe a paper boat on a lake.", "seconds": "5", "resolution": "480p"}'
python -m pip install openai
from openai import OpenAI

client = OpenAI(base_url="https://apirove.com/v1", api_key="YOUR_API_KEY")
print(client.post("/videos", cast_to=object, body={"model": "grok-imagine-video", "prompt": "Describe a paper boat on a lake.", "seconds": "5", "resolution": "480p"}))
Node.js · .mjs
const response = await fetch("https://apirove.com/v1/videos", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({"model": "grok-imagine-video", "prompt": "Describe a paper boat on a lake.", "seconds": "5", "resolution": "480p"})
});
console.log(response.status, await response.json());

On sale

Two published resolution tiers in one video model

Grok Imagine Video creates clips through an asynchronous video API with published 480p and 720p tiers. Compare resolutions using the same prompt, then choose based on the result and current per-second rates.

Model IDgrok-imagine-video

Verified in production on 2026-11-16 (Beijing time)

Endpoints

  • Base URL: https://apirove.com/v1
  • POST /v1/videos
  • Auth: Authorization: Bearer YOUR_API_KEY

Public price

Billing itemUSD rateOfficial priceSavingsUnit
480p$0.025$0.05Save 50%second
720p$0.035$0.07Save 50%second

Public USD retail rates. The server renders the public price list of 2026-11-24; the page refreshes them on load. Actual charges are on the Usage page.

Official prices: xAI pricing page (checked 2026-11-24). Savings = 1 − our rate ÷ official price, rounded down to a whole percent.

Highlights

  • Published 480p and 720p tiers; the example explicitly selects 720p
  • Set seconds explicitly as a whole number from 1 to 15
  • Create, inspect and download separately; creation returns a task
  • Compare at matching resolutions with Wan or Seedance
Five outlined frames on a slate grey gradient, with a right-pointing triangle in the middle, with a disc at upper right

Use cases

  • Comparing 480p previews and 720p output within one model
  • Turning written shot briefs into clips for editing review
  • Checking a two-resolution integration in an asynchronous video client

How to call it

Create a task, inspect its status, then download. Replace VIDEO_ID with the returned id; run the download command only after status becomes completed. Use a full-group key as described in the API guide.

bash
APIROVE_API_KEY='YOUR_API_KEY'

curl https://apirove.com/v1/videos \
  -H "Authorization: Bearer $APIROVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "grok-imagine-video", "prompt": "A small sailboat crossing calm water at sunrise, steady wide shot", "seconds": "5", "resolution": "720p"}'

Set the variable to the returned task ID and check its status.

bash
VIDEO_ID='id-from-create-response'
curl https://apirove.com/v1/videos/$VIDEO_ID \
  -H "Authorization: Bearer $APIROVE_API_KEY"

Download the MP4 once the status is completed.

bash
curl -L https://apirove.com/v1/videos/$VIDEO_ID/content \
  -H "Authorization: Bearer $APIROVE_API_KEY" \
  -o video.mp4
Create the task, poll its ID, then download the completed video

FAQ

Can I submit a 1080p request?

This page publishes only 480p and 720p. Higher tiers on another model do not establish support here. Select a published tier and check its current price.

Which resolutions and durations are published?

The published resolution is 480p or 720p. Use whole-number seconds from 1 to 15. The example sends 5 seconds at 720p. Do not submit unpublished resolutions or durations outside the range.

Why does a successful creation request not return a video file?

POST /v1/videos returns task JSON. Keep the returned id, inspect it with GET /v1/videos/{id}, and download the MP4 through the content endpoint only after status becomes completed.

How often should I poll?

Existing integration examples suggest checking every 5–10 seconds until completed or failed. Set a waiting limit. If that expires, keep the task id and check it later rather than treating the timeout as a failed task and creating another immediately.

Why can I not download immediately?

The content endpoint rejects downloads before the task completes. Continue checking the original task. Request GET /v1/videos/{id}/content only after completed; do not create a second task just to obtain the file.

What should I check after rejected parameters or a failed task?

Check model, resolution and seconds, then confirm video permissions for the key. A failed task has no video to download. Keep its id, review the console Usage record and share sanitized details with support if needed.

How is video billed, and what about duplicate submissions?

This model uses the currently published per-second rate; actual charges appear on the console Usage page. A duplicate creation is a separate request. Check the original task state before retrying.

Compare at matching resolutions, and re-check the allowed duration and resolution before switching models. More: model directory · video · video prices

Get an API key See pricing