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
grok-imagine-video (Official) video example poster6s 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

Example inputgrok-imagine-video
Prompt

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

Workflow
Text to video
Channel
Official
Duration
6s
Frame size
1152 × 1744
Aspect ratio
2:3 portrait
Frame rate
24 fps
Example resultExample output

Coastal dusk

A restrained coastal observation balances cool sea haze with a single warm apartment window.

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

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

Retrieve an official-channel Grok video result.

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

Extend an official-channel Grok video.

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 base text-to-video; optional for grok-imagine-video-1.5 image-to-video.

modelenumoptional

grok-imagine-video or grok-imagine-video-1.5.

aspect_ratioenumoptional

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

durationintegeroptional

1–15 seconds; defaults to 8 when omitted.

imageobjectconditional

Required first-frame image for grok-imagine-video-1.5; optional for the base model.

reference_imagesobject[]optional

Reference images for supported workflows.

resolutionenumoptional

480p, 720p, or 1080p.

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"}'