Grok Video API · Beta

Bring short-video generation into a production workflow

Create a dedicated Grok Video API key to submit text-to-video or image-to-video jobs, and track every asynchronous task by ID.

Dedicated video API keys
Traceable async tasks
24-hour result retention
Silver bird in motion with temporal echoes

Text-to-video and image-to-video on one API

01

Text to video

Describe the scene, subject, and camera motion to create a short video.

02

Image to video

Upload one reference image and bring it to motion.

Submit once and track the task to completion

There is no upstream task-list API. Save the returned task ID in your own records.
1

Create and use a dedicated Grok Video API key to submit a generation.

2

Save the returned task ID and link it to your own record.

3

Poll status every 5–10 seconds until the task completes.

4

Stream or download the result and store the final file promptly.

/v1/videos/generations

Three core endpoints

POST/v1/videos/generations
GET/v1/videos/{request_id}
GET/v1/videos/{request_id}/content
curl https://api.gettoken.dev/v1/videos/generations \
  -H "Authorization: Bearer $GETTOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video",
    "prompt": "A quiet city street after rain",
    "size": "1280x720",
    "seconds": "8"
  }'

Specifications and cost

ModelBest forVerificationSizeDurationQuota usageRMB estimate
grok-imagine-videoText-to-video / image-to-videoAccepted upstream480p · 848x480115s$0.50/s¥0.067–¥0.2/s
grok-imagine-videoText-to-video / image-to-videoGeneration verified720p · 1280x720115s$0.70/s¥0.093–¥0.28/s
grok-imagine-video-1.5Image-to-video (image required)Accepted upstream480p · 848x480115s$0.80/s¥0.107–¥0.32/s
grok-imagine-video-1.5Image-to-video (image required)Generation verified720p · 1280x720115s$1.40/s¥0.187–¥0.56/s
grok-imagine-video-1.5Image-to-video (image required)Accepted upstream1080p · 1920x1080115s$2.50/s¥0.333–¥1/s
115s
Duration (seconds)
1280×720
Paid generation verified
24h
Result retention
Actual
Quoted upfront, billed on actual usage

RMB estimates use the current pricing-page purchasing-power range (1 USD ≈ ¥0.1333–¥0.40). Text-only requests to grok-imagine-video-1.5 fall back to the base model and use base-model pricing; an input image activates native 1.5. Preview is hidden from the public model list and retained only as a compatibility entry. Reference images support JPEG / PNG / WebP up to 60 MiB each. Final charges follow the upfront quote and Console usage records.

FAQ

Start with one controlled video task

Create a video API key, review the model, size, duration, and quote, then complete the first generation in the workspace.