Grok Imagine Video 1.5 API reference
1 to 15-second clips with sound and spoken lines, timed keyframes and seamless loops
Call Grok Imagine Video 1.5 from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.
At a glance
- Made by
- xAI
- Output
- Video
- From
- $0.028 USD per second of output
- Typical time
- about 34 s
Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.
Create Video
xai/grok-imagine-video-1.5/text-to-video
Price
| Option | USD |
|---|---|
480p | $0.028 per second of output |
720p | $0.051 per second of output |
1080p | $0.09 per second of output |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 4,096 characters | Describe the scene, the motion and any spoken line in quotes. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 | Frame shape of the video. |
resolutionOptional | string | 480p | 480p, 720p, 1080p | Output height tier. Higher tiers cost more per second. |
duration_secondsOptional | integer | 6 | 1 to 15 | Length of the video in whole seconds, 1 to 15. |
generate_audioOptional | boolean | true | — | Generate a matching soundtrack with the video. Turning it off returns a silent clip at the same price. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
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: $(uuidgen)" \
-d '{
"model": "xai/grok-imagine-video-1.5/text-to-video",
"input": {
"prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
"duration_seconds": 6,
"resolution": "480p"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Image to Video
xai/grok-imagine-video-1.5/image-to-video
Price
| Option | USD |
|---|---|
480p | $0.028 per second of output |
720p | $0.051 per second of output |
1080p | $0.09 per second of output |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 4,096 characters | Describe how the scene moves from the first frame. Write @image1 to point at the reference image. |
image_urlRequired | string (uri) | — | — | First frame of the video: JPEG, PNG or WebP up to 20 MB. |
last_image_urlOptional | string (uri) | — | — | Optional last frame. Leave it empty when loop is on. |
reference_image_urlsOptional | array<string (uri)> | — | up to 1 items | Optional reference image (one) the prompt can name as @image1. Only 480p and 720p accept it. |
aspect_ratioOptional | string | auto | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 | Frame shape. auto follows the first frame. |
keyframesOptional | array<object> | [] | up to 4 items | Up to four in-between frames, each with the second at which the video should pass through it. |
loopOptional | boolean | false | — | End on the same frame as the first one so the clip can loop. Do not combine it with a last frame. |
resolutionOptional | string | 480p | 480p, 720p, 1080p | Output height tier. Higher tiers cost more per second. |
duration_secondsOptional | integer | 6 | 1 to 15 | Length of the video in whole seconds, 1 to 15. |
generate_audioOptional | boolean | true | — | Generate a matching soundtrack with the video. Turning it off returns a silent clip at the same price. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
The example uses PopNow sample files in image_url. Replace them with your own public HTTPS links, uploads or saved assets.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "xai/grok-imagine-video-1.5/image-to-video",
"input": {
"prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"duration_seconds": 6,
"resolution": "480p"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Reference to Video
xai/grok-imagine-video-1.5/reference-to-video
Price
| Option | USD |
|---|---|
480p | $0.09 per second of output |
720p | $0.157 per second of output |
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 4,096 characters | Describe the scene and name the references as @image1, @image2 and so on, in upload order. |
reference_image_urlsRequired | array<string (uri)> | — | up to 7 items | One to seven reference images (people, objects, places). Each image adds a small charge. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 3:2, 2:3 | Frame shape of the video. |
resolutionOptional | string | 480p | 480p, 720p | Output height tier. Higher tiers cost more per second. |
duration_secondsOptional | integer | 6 | 1 to 15 | Length of the video in whole seconds, 1 to 15. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
The example uses PopNow sample files in reference_image_urls. Replace them with your own public HTTPS links, uploads or saved assets.
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: $(uuidgen)" \
-d '{
"model": "xai/grok-imagine-video-1.5/reference-to-video",
"input": {
"prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"duration_seconds": 6,
"resolution": "480p"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
