grok-imagine-video (Official)

by xAIVideo

Official-channel Grok video generation with prompt, aspect-ratio, duration, resolution, fetch, and extension operations.

InputPrompttext
Models1available
FlowAsyncresult URL
Price3 quota480P official output
Example clip2:3 portrait preview
Example clip

static telephoto shot of a coastal apartment building at dusk, sea in the background, subtle wind and warm window light

Text to video · Official · 6s · 1152 × 1744 · 2:3 portrait · 24 fps
Examples

Prompt to video, in context

01 · Breaking waveT2V
Text-to-video · no reference images
Prompt

The wave crests fully and pitches forward, the translucent green crest folding and crashing down onto the dark rocks with tremendous force. White foam explodes upward and outward. Sound: the deep boom of a heavy swell hitting rock, the hiss and rush of water pulling back across stone, low wind across an open coastline, and sea spray on a microphone.

02 · Dawn run, BangkokT2V
Text-to-video · no reference images
Prompt

The camera tracks alongside runners in Bangkok as all four sprint in perfect lockstep, breath visible in the cool morning air. Shopfront shutters, parked motorbikes, and pedestrians streak past in heavy horizontal motion blur. Sound: running shoes on pavement, synchronized breathing, a distant scooter, and an early street-market ambience.

03 · Quiet afternoonT2V
Text-to-video · no reference images
Prompt

The figure slowly lowers the phone from their ear, exhales, and turns almost imperceptibly toward the room. Dust motes drift through golden light while a cat lifts its head and curtains move in a slow breeze. Sound: distant city traffic, a kitchen tap dripping, the soft hum of an old TV, and a creaking wood floor.

Capabilities

What you can build with grok-imagine-video (Official)

Prompt driven generation

Submit a concise prompt and get production-ready video output through one TTAPI job.

Core controls only

Keep integration simple with prompt, model, output settings, and callback handling.

Async result flow

Use polling or webhook callbacks so long-running generations do not block your UI.

Ready for product UI

Return grok-imagine-video (Official) results that can be displayed, stored, or passed into downstream workflows.

Pricing

Per-action, in quota

Usage is metered in quota by model, action, and output settings.

Official channel pricingOfficial pricing
Input / outputPriceUnit
Input image0.12 quota/ image
480P output3 quota/ second
720P output4.2 quota/ second
API request

grok-imagine-video (Official) operations and request fields

Use the endpoint below with your TTAPI key and the request fields shown.

Generate officialPOST
/grok/v1/videos/generations

Submit an official-channel Grok task with duration, image, reference_images, and resolution.

Official reference
Fetch officialGET
/grok/v1/videos/{request_id}

Retrieve an official-channel Grok video result by request_id.

Official reference
Extend officialPOST
/grok/v1/videos/extensions

Extend an official Grok video with prompt, source video, duration, and model.

Official reference
POSThttps://api.ttapi.io/grok/v1/videos/generations

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

promptstringconditional

Required for grok-imagine-video text-to-video; optional for grok-imagine-video-1.5 image-to-video.

modelenumoptional

Defaults to grok-imagine-video-1.5. Supported: grok-imagine-video and grok-imagine-video-1.5.

aspect_ratioenumoptional

1:1, 16:9, 9:16, 4:3, 3:4, 3:2, or 2:3.

durationinteger | stringoptional

Defaults to 8 seconds. Accepts 1–15 as either a number or a numeric string.

imageobjectconditional

Image input object for image-to-video. Required by grok-imagine-video-1.5 and optional for the base model.

reference_imagesobject[]optional

Reference-image objects for the reference-to-video workflow.

resolutionenumoptional

480p, 720p, or 1080p.

voice_idenumoptional

Voice role ID for the generated video audio. Options include carina, zagan, helix, orion, luna, iris, altair, and zenith.

Open the official TTAPI documentation
Integrate

From key to first result

Copy the resolved endpoint, authentication headers, and request body for this model.

curl --request POST \
  --url https://api.ttapi.io/grok/v1/videos/generations \
  --header 'TT-API-KEY: $TTAPI_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"static telephoto shot of a coastal apartment building at dusk","model":"grok-imagine-video","aspect_ratio":"2:3","duration":6,"resolution":"720p","voice_id":"luna"}'