Grok Video Generation
Use `POST /v1/videos` to invoke the Grok video series models and submit asynchronous generation tasks.
https://zx1.deepwl.net/v1/videoscurl -X POST https://zx1.deepwl.net/v1/videos \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "model=grok-video-3" \
-F "prompt=猫咪听歌摇头晃脑,下大雨" \
-F "aspect_ratio=2:3" \
-F "seconds=6" \
-F "size=720P" \
-F "input_reference=@reference.png"{
"id": "video_abc123",
"object": "video",
"model": "grok-video-3",
"status": "queued",
"progress": 0,
"created_at": 1735689600,
"size": "720P"
}OpenAI-format entry point. If you need to use the unified video POST /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
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
Request Body
modelstring必填Model name. The currently available Grok series values are grok-video-3, grok-video-3-pro, and grok-video-3-max.
promptstring必填Prompt.
aspect_ratiostringVideo aspect ratio. Optional values are 16:9, 9:16, 2:3, 3:2, and 1:1.
secondsintegerTarget duration in seconds. For grok-video-3-pro and grok-video-3-max, this will be automatically corrected to a fixed value.
sizestringResolution tier. Common values are 720P or 1080P.
input_referencefileReference image file. Can be passed multiple times, corresponding to multiple input_reference uploads.
Request Examples
Response Examples
Response Fields
idstringTask ID.
objectstringFixed as video.
modelstringThe actual submitted model name.
statusstringTask status. Common values include queued, processing, completed, failed, and cancelled.
progressintegerProgress percentage.
created_atintegerCreation timestamp.
sizestringOutput resolution tier.
Use Cases
Text-to-Video
Just pass the fields model, prompt, seconds, and size.
Image-to-Video
On top of text-to-video, add one or more input_reference files.
Fixed-Duration Models
If you pass grok-video-3-pro or grok-video-3-max, expect the server to process them with a fixed duration.