About Grok Imagine Video 1.5
Grok Imagine Video 1.5 is xAI's video model. It makes 1 to 15-second clips at 480p, 720p or 1080p from a prompt or an opening still, with sound made in the same pass, including lines of dialogue you write in quotes. Image to video can add a closing frame, up to four keyframes pinned to exact seconds, or a seamless loop; reference to video builds a shot from one to seven pictures.
Call it with the model name xai/grok-imagine-video-1.5/image-to-video on POST /jobs/createTask, from $0.14.
Introduction
Begin Grok Imagine Video 1.5 animation with image_url and a written movement instruction.
Key features
A final image can guide the ending, up to four keyframes can guide intermediate moments, and loop matches the start and finish.
Request parameters
| Parameter | Required | Description |
|---|---|---|
aspect_ratio | No | The shape of the frame: wide, square or tall. auto · 16:9 · 9:16 · 1:1 · 4:3 · 3:4 · 3:2 · 2:3 · Default: auto |
duration_seconds | No | Length of the generated clip. ≥ 1 · ≤ 15 · Default: 6 |
generate_audio | No | Adds sound made to match the picture: voices, ambience and effects. Default: true |
image_url | Yes | The picture to start from. |
keyframes | No | Optional: up to four pictures the clip passes through, each at the second you set. Default: [] |
last_image_url | No | Reference image to guide the final frame. |
loop | No | End on the first frame so the clip can loop. Can't be combined with an end frame. Default: false |
prompt | Yes | Describe what you want to make. |
reference_image_urls | No | Pictures of the people, outfits or places the result should keep. |
resolution | No | Choose an available output size. 480p · 720p · 1080p · Default: 480p |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your API 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
Use timed images for a lantern-alley transition or choose loop for a rocking paper crane.
Prompt guide & pro tips
Specify time_seconds for each intermediate image; select either last_image_url or loop, and refer to an optional single reference as @image1.
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/image-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/image-to-video",
"input": {
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"aspect_ratio": "auto",
"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.
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 Image to 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 API 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 are the limits of the Grok Imagine Video 1.5 · Image to Video API?
Clip length: 1–15 s; Resolutions: 480p · 720p · 1080p; Aspect ratios: auto · 16:9 · 9:16 · 1:1 · 4:3 · 3:4 +2; Reference images: 1; Prompt length (characters): 4,096. Requests outside these limits are rejected before anything is charged.