翻篇收录说明
翻篇网页快照

Generate Video(Async) - Overview - Z.AI DEVELOPER DOCUMENT

https://docs.z.ai/api-reference/video/generate-video

最近抓取:2026-12-03 18:07:51(北京时间)

最近内容变化:2026-12-03 18:07:51(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

CogVideoX is a video generation large model developed by Z.AI, equipped with powerful video generation capabilities. Simply inputting text or images allows for effortless video creation.

正文摘录

cURLText to Video Examplecurl --request POST \ --url https://api.z.ai/api/paas/v4/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "cogvideox-3", "prompt": "A cat is playing with a ball.", "quality": "quality", "with_audio": true, "size": "1920x1080", "fps": 30 } '200default{ "model": "<string>", "id": "<string>", "request_id": "<string>", "task_status": "<string>" }POST/paas/v4/videos/generationsTry itcURLText to Video Examplecurl --request POST \ --url https://api.z.ai/api/paas/v4/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "cogvideox-3", "prompt": "A cat is playing with a ball.", "quality": "quality", "with_audio": true, "size": "1920x1080", "fps": 30 } '200default{ "model": "<string>", "id": "<string>", "request_id": "<string>", "task_status": "<string>" }AuthorizationsAuthorizationstringheaderrequiredUse the following format for authentication: Bearer HeadersAccept-Languageenum<string>default:en-US,enConfig desired response language for HTTP requests.Available options: en-US,en Example:"en-US,en"Bodyapplication/jsonmodelenum<string>requiredThe model code to be called.Available options: cogvideox-3 promptstringText description of the video, maximum input length of 512 characters. Either image_url or prompt must be provided, or both.qualityenum<string>Output mode, default is speed. quality: Prioritizes quality, higher generation quality. speed: Prioritizes speed, faster generation time, relatively lower quality. Available options: speed, quality Example:"speed"with_audiobooleanWhether to generate AI sound effects. Default: false (no sound effects).Example:falseimage_url(string<uri> | string<byte>)[]Provide an image based on which content will be generated. If this parameter is passed, the system will operate based on this image. Supports passing images via URL or Base64 encoding. Image requirements: images support .png, .jpeg, .jpg formats; image size: no more than 5M. Either image_url and prompt can be used, or both can be passed simultaneously. First and last frames: supports inputting two images. The first uploaded image is regarded as the first frame, and the second image is regarded as the last frame. The model will generate the video based on the images passed in this parameter. First and last frame mode only supports speed modeExample:"https://example.com/image.png"sizeenum<string>Default value: if not specified, the short side of the generated video is 1080 by default, and the long side is determined according to the original image ratio. Maximum support for 4K resolution. Resolution options: "1280x720", "720x1280", "1024x1024", "1080x1920", "2048x1080", "3840x2160"Available options: 1280x720, 720x1280, 1024x1024, 1920x1080, 1080x1920, 2048x1080, 3840x2160 Example:"1920x1080"fpsenum<integer>Video frame rate (FPS), optional values are 30 or 60. Default: 30.Available options: 30, 60 Example:30durationenum<integer>Video duration, default is 5 seconds, supports 5 and 10 seconds.Available options: 5, 10 Example:5request_idstringPassed by the user side, needs to be unique; used to distinguish each request, 6–64 characters. If not provided by the user side, the platform will generate one by default.Required string length: 6 - 64user_idstringUnique ID of the end-user, assists the platform in intervening in end-user violations, generating illegal or inappropriate information, or other abusive behaviors. ID length requirement: minimum 6 characters, maximum 128 characters.Response200application/jsonProcessing successful.modelstringModel name used in this call.idstringTask order number generated by the Z.AI, use this order number when calling the request result interface.request_idstringTask number submitted by the user during the client request or generated by the platform.task_statusstringProcessing status, PROCESSING (processing),SUCCESS (success), FAIL (failure). Results need to be obtained via query.Was this page helpful?YesNo