v1

latestOpenAPI 3.0.1Z.AI Developer Agreement and Policy2026-07-131458163.2 KB

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.

Vidu: A high-performance video large model that combines high consistency and high dynamism, with precise semantic understanding and exceptional reasoning speed.

post/paas/v4/videos/generations

Headers

Accept-Language'en-US,en'

Config desired response language for HTTP requests.

Example:en-US,en

Request body

OR
OR
OR
OR

Example request

{
  "quality": "speed",
  "image_url": [
    "https://example.com/image.png"
  ],
  "size": "1920x1080",
  "fps": 30,
  "duration": 5
}

Response

Processing successful.

modelstring

Model name used in this call.

idstring

Task order number generated by the Z.AI, use this order number when calling the request result interface.

request_idstring

Task number submitted by the user during the client request or generated by the platform.

task_statusstring

Processing status, PROCESSING (processing), SUCCESS (success), FAIL (failure). Results need to be obtained via query.