About Grok Imagine Video 1.5
xai/grok-imagine-video-1.5 is a three-task video API: text-to-video, image-to-video and reference-to-video. Each returns a 1 to 15 second MP4 with a generated soundtrack, including dialogue written in quotes, at 480p, 720p or 1080p, with references capped at 720p. The default request is six seconds at 480p, one of the cheapest calls in the video catalog, which suits previews, looping backgrounds and short spoken clips. Image jobs typically finished in well under a minute in our runs, so polling every few seconds is enough.
Call it with the model name xai/grok-imagine-video-1.5/text-to-video on POST /jobs/createTask, from $0.14.
Introduction
Send a prompt to create a Grok Imagine Video 1.5 scene without supplying an image.
Key features
Choose 1–15 seconds at 480p, 720p or 1080p, with generated audio enabled by default.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Describe what you want to make. |
resolution | No | Choose an available output size. 480p · 720p · 1080p · Default: 480p |
aspect_ratio | No | The shape of the frame: wide, square or tall. 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 3:2 · 2:3 · Default: 16:9 |
generate_audio | No | Adds sound made to match the picture: voices, ambience and effects. Default: true |
duration_seconds | No | Length of the generated clip. ≥ 1 · ≤ 15 · Default: 6 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| resolution 480p | $0.028 |
| resolution 720p | $0.051 |
| resolution 1080p | $0.09 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
A boat crossing with a brief spoken line is one tested use for a text-led shot.
Prompt guide & pro tips
Describe what moves and what can be heard; enclose dialogue in quotation marks and choose a clip length that fits the scene.
API quick start
Call the Grok Imagine Video 1.5 API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model xai/grok-imagine-video-1.5/text-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "xai/grok-imagine-video-1.5/text-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"aspect_ratio": "16:9",
"resolution": "480p",
"duration_seconds": 6
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the Grok Imagine Video 1.5 API
- Looping hero backgrounds for landing pages: image-to-video with loop true and no last_image_url, so the clip ends on its opening frame and the player can repeat it without a visible cut.
- A beat-timed transition editor where users drop up to four images on a timeline; each becomes a keyframes item with an image_url and a time_seconds between 1 and 14.
- Short talking promos: one text-to-video prompt with a quoted line and a named speaker returns a clip with the voice already mixed into the soundtrack.
Grok Imagine Video 1.5 parameter notes
- duration_seconds runs 1 to 15 with a default of 6 on all three tasks, and resolution defaults to 480p. If your interface presents HD as the default, send 720p or 1080p explicitly.
- keyframes is an array of objects, not URLs: each needs image_url and time_seconds, an integer from 1 to 14 that should fall inside the requested duration. At most four are accepted.
- loop and last_image_url are mutually exclusive. Validate this on your side and send one or the other, never both in the same request.
- The optional single reference image in image-to-video, named @image1, and every reference-to-video request work only at 480p or 720p. Tokens are lower case without spaces: @image1, @image2.
How Grok Imagine Video 1.5 API pricing adds up
Text and image jobs are billed per output second at the rate for the chosen resolution; 720p is close to twice the 480p rate and 1080p a little over three times. generate_audio false gives a silent clip at the same price, and keyframes, loop and a closing frame add nothing. reference-to-video has its own, higher per-second rate plus a small fixed charge for each reference image, so a seven-image request costs noticeably more than a one-image request of the same length. Charges come from your PopNow balance in USD.
- resolution 480p, 5-second clip: $0.14 each, $14.00 for 100 clips
- resolution 1080p, 5-second clip: $0.45 each, $45.00 for 100 clips
Async jobs, webhooks and rate limits
Every Grok Imagine Video 1.5 request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for xai/grok-imagine-video-1.5/text-to-video never runs or bills twice.
Common Grok Imagine Video 1.5 API errors
| errorCode | What it usually means and how to fix it |
|---|---|
invalid_request | Typically a keyframe time_seconds outside 1 to 14 or beyond the clip length, more than four keyframes, a duration outside 1 to 15, or a reference image sent with 1080p. |
invalid_asset | An image over 20 MB or in an unsupported format. JPEG, PNG and WebP work for the opening frame; reference uploads also accept GIF. |
content_rejected | xAI refused the prompt or an image. Show the reason and let the user rephrase; resending the same input is refused again. |
Examples
Grok Imagine Video 1.5 API questions
How much does the Grok Imagine Video 1.5 API cost?
Grok Imagine Video 1.5 starts at $0.14 for a 5-second clip with Create Video, its lowest-priced task. Prices by option: 480p $0.028 per second, 720p $0.051 per second, 1080p $0.09 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Grok Imagine Video 1.5 in the API?
Put xai/grok-imagine-video-1.5/text-to-video for Create Video; xai/grok-imagine-video-1.5/image-to-video for Image to Video; xai/grok-imagine-video-1.5/reference-to-video for Reference to Video in the model field of POST /jobs/createTask.
Does the Grok Imagine Video 1.5 API return audio?
Yes, inside the same MP4, unless generate_audio is false on a text or image job. Quoted lines are voiced; reference-to-video has no audio switch and always returns sound.
What is the shortest clip Grok Imagine Video 1.5 can return?
One second. duration_seconds accepts any integer from 1 to 15, which suits stingers and reaction beats; very short clips leave little room for a spoken line.
Which aspect ratios does each task accept?
text-to-video: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2 and 2:3. image-to-video adds auto, which follows the opening frame. reference-to-video accepts 16:9, 9:16, 1:1, 3:2 and 2:3.
What are the limits of the Grok Imagine Video 1.5 API?
Clip length: 1–15 s; Resolutions: 480p · 720p · 1080p; Aspect ratios: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 3:2 · 2:3; Prompt length (characters): 4,096. Requests outside these limits are rejected before anything is charged.
Can I try Grok Imagine Video 1.5 without writing code?
Run Grok Imagine Video 1.5 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All Grok models
MiniMax H3 is the lower-cost default for everyday clips. Pick Grok Imagine Video 1.5 for spoken lines with sound, frames pinned to exact seconds, or a shot built from up to seven reference pictures.
- Grok Imagine Image 2.0 APIxAI's image model for text-to-image and edits from up to five picturesFrom $0.028 per image
- Grok Imagine Video 1.5 API1 to 15-second clips with sound and spoken lines, timed keyframes and seamless loopsFrom $0.14 for a 5-second clip
- Grok STT APITranscripts with word timings in 25 languagesFrom $0.000033334 per second
- Grok TTS API71 voices across 20 languages with speech tagsFrom $0.018 per 1,000 characters