
cogvideox-2
starting from
API Overview
Image and text-to-video models from Zhipu AI
API Console
Log in to explore more features! Click to Log In
API Analytics
API Reference (3)
| API Description | API Endpoint | Request Method | Stability | Parameter Description |
|---|---|---|---|---|
Generations(Text to Video) | POST | Stable | View Details | |
Document Details Video Generation Model from Zhipu Official documentation: https://open.bigmodel.cn/dev/api#cogvideox Price: cogvideox-2 0.1 PTC / per use Request Parameters Header ParametersContent-TypestringOptional Example Value: application/json;charset:utf-8;AuthorizationstringOptional Example Value: Bearer {{YOUR_API_KEY}}Request Body application/jsonmodelstringRequired cogvideox-3, cogvideox-2 promptstringRequired Video Prompt qualitybooleanOptional Output mode, defaults to “quality”. with_audiobooleanOptional Whether to generate AI sound effects. Default value: False (do not generate sound effects). sizestringRequired Default value: If not specified, the short side of the generated video will be 1080 by default, and the long side will be determined according to the original image’s aspect ratio. Up to 4K resolution is supported. fpsstringRequired Video frame rate (FPS), optional values are 30 or 60. Default value: 30. durationstringRequired Video duration, default is 5 seconds, supports 5 and 10. | ||||
Generations(Image to Video) | POST | Stable | View Details | |
Document Details Image-to-Video Model from Zhipu Official documentation: https://open.bigmodel.cn/dev/api#cogvideox Price: cogvideox-2 0.1 PTC / time Request Parameters Header ParametersContent-TypestringOptional Example Value: application/json;charset:utf-8;AuthorizationstringOptional Example Value: Bearer {{YOUR_API_KEY}}Request Body application/jsonmodelstringRequired cogvideox-2, cogvideox-3 promptstringRequired Video Prompt image_urlstringRequired First frame image qualitybooleanOptional Output mode, defaults to “quality”. with_audiobooleanOptional Whether to generate AI sound effects. Default value: False (do not generate sound effects). sizestringOptional Default value: If not specified, the short side of the generated video will be 1080 by default, and the long side will be scaled according to the original image ratio. Up to 4K resolution is supported. Resolution options: 720x480, 1024x1024, 1280x960, 960x1280, 1920x1080, 1080x1920, 2048x1080, 3840x2160 durationintegerOptional Video duration (seconds). Optional values are 5 or 10. Default value: 5. fpsintegerOptional Video frame rate (FPS), optional values are 30 or 60. Default value: 30. | ||||
Fetch Result | GET | Stable | View Details | |
Document Details Video Generation Model from Zhipu Price: 0 PTC / time Request Parameters Path ParametersidstringRequired Header ParametersContent-TypestringOptional Example Value: application/json;charset:utf-8;AuthorizationstringOptional Example Value: Bearer {{YOUR_API_KEY}} | ||||
API Pricing
| Model | Description | 302.AI Price |
|---|
cogvideox-2 | Text to Video |
|
cogvideox-2 | Image to Video |
|
Result | Result |
|