Grok Video Generation
OpenAI Format
Grok Video Generation
Use POST /v1/videos to invoke the Grok video series models and submit asynchronous generation tasks.
POST
Grok Video Generation
Grok Video Generation
OpenAI-format entry point. If you need to use the unified videoPOST /v1/video/create, see Create Video.
The Grok video generation API uses multipart/form-data for submission. Please organize the request according to the fields here.
- The endpoint path is
POST /v1/videos. input_referenceis the reference image field and supports uploading multiple images repeatedly.grok-video-3-prowill be automatically fixed to10seconds, andgrok-video-3-maxwill be automatically fixed to15seconds.- The base version
grok-video-3has no additional fixed-seconds logic and is processed according to the actual parameters passed.
Currently Available Models
grok-video-3grok-video-3-progrok-video-3-max
Method and Path
Request Example
Response Example
Authentication
Body
Model name. The currently available Grok series values are
grok-video-3, grok-video-3-pro, and grok-video-3-max.Prompt.
Video aspect ratio. Optional values are 16:9, 9:16, 2:3, 3:2, and 1:1.
Target duration in seconds. For
grok-video-3-pro and grok-video-3-max, this will be automatically corrected to a fixed value.Resolution tier. Common values are
720P or 1080P.Reference image file. Can be passed multiple times, corresponding to multiple
input_reference uploads.Response
Task ID.
Fixed as
video.The actual submitted model name.
Task status. Common values include
queued, processing, completed, failed, and cancelled.Progress percentage.
Creation timestamp.
Output resolution tier.
Use Cases
Text-to-Video
Just pass the fieldsmodel, prompt, seconds, and size.
Image-to-Video
On top of text-to-video, add one or moreinput_reference files.
Fixed-Duration Models
If you passgrok-video-3-pro or grok-video-3-max, expect the server to process them with a fixed duration.