Note: For video model name settings, refer to the System Supported Video Model List, currently supported video generation models are
cogvideox-flash
(free), cogvideox
, and cogvideox-2
. The response data format is fully compatible with OpenAI, returning the binary data of the video file.Platform | Model | Supported Sizes |
---|---|---|
Zhipu | CogVideoX Series | 720x480, 1024x1024, 1280x960, 960x1280, 1920x1080, 1080x1920, 2048x1080, 3840x2160 (By default, the shorter side is 1080, and the longer side is scaled proportionally) |
cURL Request Example
Authorizations
token
Body
application/json
video model
Example:
"cogvideox-flash"
text prompt
Example:
"Peter Rabbit drives his car along the road, his face beaming with joy and delight."
image URL path used to generate the video, needs to be publicly accessible, default empty
Example:
"https://example.com/image.jpg"
enable async mode
Example:
false
enable audio
Example:
false
video size
Available options:
720x480
, 1024x1024
, 1280x960
, 960x1280
, 1920x1080
, 1080x1920
, 2048x1080
, 3840x2160
video quality
Example:
"speed"
video duration(seconds)
Available options:
30
, 60
video frame rate
Available options:
30
, 60
auto retry times, default 0, means no retry
Example:
0
Response
successful response
video model
Example:
"cogvideox-flash"
task ID
Example:
"bigmodel-video-123456789"
task status
Available options:
pending
, running
, success
, failed
Example:
"running"
video generation result(only returned when successful)
error information(only returned when failed)