by xAI

720p Video with Sound

xai/grok-imagine-video-1.5/reference-to-video
  • Up to 720p
  • 1–15s clips
  • Sound included
  • Up to 7 reference images
  • 5 aspect ratios
  • Create Video
  • Image to Video
  • Reference to Video

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/reference-to-video on POST /jobs/createTask, from $0.462.

Introduction

Supply reference_image_urls to guide a Grok Imagine Video 1.5 scene with people, objects or locations.

Key features

This workflow accepts one to seven images and offers 480p or 720p output with generated sound.

Request parameters

ParameterRequiredDescription
aspect_ratioNoThe shape of the frame: wide, square or tall. 16:9 · 9:16 · 1:1 · 3:2 · 2:3 · Default: 16:9
duration_secondsNoLength of the generated clip. ≥ 1 · ≤ 15 · Default: 6
promptYesDescribe what you want to make.
reference_image_urlsYesPictures of the people, outfits or places the result should keep.
resolutionNoChoose an available output size. 480p · 720p · 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.

OptionUSD per second
resolution 480p$0.09
resolution 720p$0.157

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

The dancer-and-crane sample uses separate references to bring a performer and a folded-paper object into a studio.

Prompt guide & pro tips

Assign a role to every reference using @image1, @image2 and later upload positions, then describe their movement together.

API quick start

Call the Grok Imagine Video 1.5 API in three steps

  1. 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.
  2. Send the request. POST /jobs/createTask with model xai/grok-imagine-video-1.5/reference-to-video and an input object that follows the parameter table. The response returns a task ID straight away.
  3. 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/reference-to-video",
  "input": {
    "prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
    "reference_image_urls": [
      "https://media.popnow.ai/influencer/examples/ava.webp"
    ],
    "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.

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.462 for a 5-second clip with Reference to Video, its lowest-priced task. Prices by option: 480p $0.09 per second, 720p $0.157 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 · Reference to Video API?

Clip length: 1–15 s; Resolutions: 480p · 720p; Aspect ratios: 16:9 · 9:16 · 1:1 · 3:2 · 2:3; Reference images: 7; Prompt length (characters): 4,096. Requests outside these limits are rejected before anything is charged.

More about Grok Imagine Video 1.5