grok-imagine-video

by xAIVideo

Non-official Grok video generation with text-to-video, image-to-video, multiple reference images, 1–15 second duration, and 720P output.

InputPrompttext
Models1available
FlowAsyncresult URL
Price2 quotanon-official channel
Example clip2:3 portrait preview
Example clip

a joyful panda rides a roller coaster through a green park, fast motion, wide-angle close-up

Text to video · Non-official · 6s · 1168 × 1728 · 2:3 portrait · 24 fps
Examples

Prompt to video, in context

01 · SkincareT2V
Text-to-video · no reference images
Prompt

She touches her cheek and smiles gently, then smiles wide looking into the camera, camera not moving, text and items stay exactly the same not moving.

02 · MonkeyT2V
Text-to-video · no reference images
Prompt

The monkey slowly turns a page, focused, reading. A small baby monkey dressed in a baby suit comes to distract him. No talking.

03 · Architecture drone footageT2V
Text-to-video · no reference images
Prompt

Drone footage, flying at the front of the building.

Capabilities

What you can build with grok-imagine-video

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 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.

Non-official per-second pricingOfficial pricing
ModelPriceUnit
grok-imagine-video2 quota/ second
API request

grok-imagine-video operations and request fields

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

GeneratePOST
/grok/generations

Submit a non-official Grok video task with video_length, resolution_name, reference images, and an optional callback.

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

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

promptstringrequired

Generation prompt. Base and 1.5 accept up to 4,096 characters; 1.5 Fast supports longer prompts.

modelenumoptional

Defaults to grok-imagine-video-1.5-fast. Also supports grok-imagine-video and grok-imagine-video-1.5.

aspect_ratioenumoptional

Defaults to 16:9. Supported: 2:3, 3:2, 1:1, 9:16, and 16:9.

video_lengthstringoptional

Defaults to 10. Fast supports 6–30 seconds; base and 1.5 support 1–15 seconds. Base supports up to 15 seconds with one image and up to 10 with multiple images.

resolution_nameenumoptional

Defaults to 720p. 480p and 720p work across all models; 1080p is supported only by grok-imagine-video-1.5.

refer_imagesstring[]conditional

Reference-image URLs. Fast accepts up to 7; base accepts multiple; 1.5 requires exactly one image.

voice_idenumoptional

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

hook_urlstringoptional

Callback URL notified when the job completes or fails; otherwise retrieve the result through Fetch.

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/generations \
  --header 'TT-API-KEY: $TTAPI_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"model":"grok-imagine-video","prompt":"a joyful panda rides a roller coaster through a green park","aspect_ratio":"2:3","video_length":"6","resolution_name":"720p","voice_id":"luna"}'