Skip to content
English

Grok Imagine 1.5 Lite Text to Video API

POST Base URL: https://api.hiapi.ai /v1/tasks

Image, video, and audio models are called through theUnified Async API POST /v1/tasks endpoint; only the input fields differ (see input parameters below).

Model summary

Model name grok-imagine-1.5-lite/text-to-video
Type Video generation (text-to-video)
Endpoint POST /v1/tasks
Pricing See HiAPI Pricing

Grok Imagine 1.5 Lite text-to-video turns a prompt into a 1–15 second clip at 480p to 1080p in 7 aspect ratios, with built-in sound that matches the scene.

Production guidance

Production guidance
  • For production, pass callback.url at the top level of the request body so HiAPI can notify your service when the task reaches a terminal state.
  • GET /v1/tasks/:id is better for local debugging, low-volume jobs, or fallback reconciliation if a callback is missed.
  • Use callback.when=final. Both success and fail are terminal states, so your service should deduplicate by taskId.

Best suited for

Prompt-to-clip

Describe subject, action, camera, and sound in one prompt and get a clip with audio.

promptduration
Multi-platform framing

Seven landscape, square, and vertical aspect ratios for different channels.

aspect_ratio
Resolution tiers

480p for drafts, 720p for everyday content, 1080p for higher-detail delivery.

resolution

Request parameters

model string required

Fixed value grok-imagine-1.5-lite/text-to-video.

example grok-imagine-1.5-lite/text-to-video
input object required

Business parameters for this model.

prompt string required

Describes the subject, action, camera movement, and sound. 1–4096 characters.

duration integer optional

Video length in seconds; an integer from 1 to 15.

default 6
resolution enum optional

Output video resolution: 480p, 720p, or 1080p.

default 720p enum: 480p720p1080p
aspect_ratio enum optional

Output aspect ratio: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, or 9:16.

default 16:9 enum: 16:94:33:21:12:33:49:16
callback object optional

Optional callback configuration. When set, HiAPI notifies your service when the task reaches a terminal state.

url string required

Required when callback is set; the HTTPS URL that receives terminal notifications.

example https://your-domain.com/hiapi/callback
when enum optional

When to send the callback; use final.

default final enum: final

Example requests

Glass balloon over sunrise terraces

Text-to-video example at 6 seconds, 720p, 16:9.

Request body
{
  "model": "grok-imagine-1.5-lite/text-to-video",
  "input": {
    "prompt": "A glass hot-air balloon drifts slowly over a misty valley of terraced rice fields at sunrise. Golden light spills across the water-filled terraces, mist rolls between the hills, a flock of white egrets glides beneath the balloon. Smooth aerial tracking shot, gentle wind sounds and distant birdsong, cinematic, natural colors. No text, no logos.",
    "duration": 6,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }
}

Getting the result

  1. The response returns a taskId immediately without waiting for generation to finish.
  2. In production, prefer waiting for callback.url to receive the terminal notification. For local debugging, poll GET /v1/tasks/:id.
  3. When status=success, download the generated video from output[].url.
  4. When status=fail, fix the request based on the returned error instead of retrying the same invalid payload.

FAQ

Which aspect ratios are supported?

16:9, 4:3, 3:2, 1:1, 2:3, 3:4, and 9:16; the default is 16:9.

Does the video include sound?

Yes. Each clip is generated with sound that matches the scene; no extra parameter is needed.

How should I write the prompt?

Put the subject, setting, action, camera movement, and sound in one passage and describe a single clear shot.

How is it billed?

See the live prices on the HiAPI pricing page. View pricing

Next steps