Skip to content

Grok Imagine Video 1.5

Generates a video from a text prompt.

Model ID grok-imagine-video-1.5
Task text-to-video
Output video
Family Grok Imagine
Status Active

Prices are live, so this page does not show them. GET /v1/models/grok-imagine-video-1.5 returns the published price (price), and POST /v1/quotes returns the binding maximum for one request, with the processor that will run it. You are never charged more than the quoted maximum, and failed work is free. See Pricing and quotes.

Send these in input. Omitted parameters take their default; unknown parameters are refused with 422 parameter_unknown. The same schema is input_schema in GET /v1/models/grok-imagine-video-1.5.

Name Type Default Allowed Required Description
prompt string 1 to 4000 characters Yes Describe the scene, motion, camera and sound.
duration integer 6 1 to 15 No Video length. Longer videos cost more. In seconds.
aspect_ratio string 16:9 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16 No Frame shape.
resolution string 720p 480p, 720p, 1080p No Output resolution. Higher resolutions cost more.

Price the request first. A quote is free and starts nothing:

Quote
curl https://api.halationlab.ai/v1/quotes \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @- <<'JSON'
{
"model": "grok-imagine-video-1.5",
"input": {
"prompt": "A red ball rolls across a sunlit wooden table, slow tracking shot",
"duration": 6,
"aspect_ratio": "16:9"
}
}
JSON

Then start it, paying at most MAX_COST tokens. If the price is higher, nothing starts and the 402 max_cost_exceeded answer carries the quote:

Generate
MAX_COST=${MAX_COST:?Set MAX_COST to the most you will pay, in tokens}
curl https://api.halationlab.ai/v1/generations \
-H "Authorization: Bearer $HALATIONLAB_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Prefer: wait=60" \
-H "Content-Type: application/json" \
-d @- <<JSON
{
"model": "grok-imagine-video-1.5",
"input": {
"prompt": "A red ball rolls across a sunlit wooden table, slow tracking shot",
"duration": 6,
"aspect_ratio": "16:9"
},
"max_cost": $MAX_COST
}
JSON