Grok Video Generation API Documentation
Use the Grok Video Generation API to submit prompt-based text-to-video requests and build async AI video workflows on TTAPI.
When To Use Grok Generations API
Use this endpoint when your app needs:- Prompt-based Grok Video API generation
- A text-to-video entry point for async creative workflows
- The first step before polling results with Grok Fetch API
Recommended Workflow
- Submit the video generation request through Grok Generations API.
- Store the returned job identifier.
- Poll the Grok Fetch API until the result is ready.
Before You Integrate
- Review Gateway & Auth for the required
TT-API-KEY. - Review Video Pricing before enabling production workloads.
Related Pages
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
Prompt
Model name. grok-imagine-1.0-video keeps original behavior (duration 1-30s, supports multiple reference images); grok-imagine-video-1.5-preview supports duration 1-15s, only single reference image and it is required.
grok-imagine-1.0-video, grok-imagine-video-1.5-preview "grok-imagine-1.0-video"
Video aspect ratio
2:3, 3:2, 1:1, 9:16, 16:9 Video duration. grok-imagine-1.0-video range: 1 to 30 seconds; grok-imagine-video-1.5-preview range: 1 to 15 seconds.
Output resolution, supports 480p and 720p
480p, 720p Reference image URL. grok-imagine-1.0-video supports multiple images; grok-imagine-video-1.5-preview only supports a single image and it is required.['https://cdn.ttapi.io/other/2026-03-13/a86ca2c7-6333-4840-b337-395a5d02a182.png','https://cdn.ttapi.io/other/2026-03-13/64a858ed-6095-45ce-92d5-b515c9864703.png']
Callback URL address. When the task completes or fails, notifications will be sent to this address. The notification data structure is consistent with the fetch structure [blocked]. If not set, you need to call the fetch endpoint [blocked] to query the result
"https://example.com/callback"