PopNowAPI Docs
Main content

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

OptionUSD
480p$0.028 per second of output
720p$0.051 per second of output
1080p$0.09 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 4,096 charactersDescribe the scene, the motion and any spoken line in quotes.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3Frame shape of the video.
resolutionOptionalstring480p480p, 720p, 1080pOutput height tier. Higher tiers cost more per second.
duration_secondsOptionalinteger61 to 15Length of the video in whole seconds, 1 to 15.
generate_audioOptionalbooleantrue—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.

POST /api/v1/jobs/createTask
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.

GET /api/v1/jobs/recordInfo
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

OptionUSD
480p$0.028 per second of output
720p$0.051 per second of output
1080p$0.09 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 4,096 charactersDescribe how the scene moves from the first frame. Write @image1 to point at the reference image.
image_urlRequiredstring (uri)——First frame of the video: JPEG, PNG or WebP up to 20 MB.
last_image_urlOptionalstring (uri)——Optional last frame. Leave it empty when loop is on.
reference_image_urlsOptionalarray<string (uri)>—up to 1 itemsOptional reference image (one) the prompt can name as @image1. Only 480p and 720p accept it.
aspect_ratioOptionalstringautoauto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3Frame shape. auto follows the first frame.
keyframesOptionalarray<object>[]up to 4 itemsUp to four in-between frames, each with the second at which the video should pass through it.
loopOptionalbooleanfalse—End on the same frame as the first one so the clip can loop. Do not combine it with a last frame.
resolutionOptionalstring480p480p, 720p, 1080pOutput height tier. Higher tiers cost more per second.
duration_secondsOptionalinteger61 to 15Length of the video in whole seconds, 1 to 15.
generate_audioOptionalbooleantrue—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.

POST /api/v1/jobs/createTask?wait=60
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.

GET /api/v1/jobs/recordInfo
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

OptionUSD
480p$0.09 per second of output
720p$0.157 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
promptRequiredstring—up to 4,096 charactersDescribe the scene and name the references as @image1, @image2 and so on, in upload order.
reference_image_urlsRequiredarray<string (uri)>—up to 7 itemsOne to seven reference images (people, objects, places). Each image adds a small charge.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 3:2, 2:3Frame shape of the video.
resolutionOptionalstring480p480p, 720pOutput height tier. Higher tiers cost more per second.
duration_secondsOptionalinteger61 to 15Length 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.

POST /api/v1/jobs/createTask
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.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Next steps

On this page