POST
/
paas
/
v4
/
videos
/
generations
cURL
curl --request POST \
  --url https://api.z.ai/api/paas/v4/videos/generations \
  --header 'Accept-Language: <accept-language>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "cogvideox-2",
  "prompt": "<string>"
}'
{
  "model": "<string>",
  "id": "<string>",
  "request_id": "<string>",
  "task_status": "<string>"
}

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Headers

Accept-Language
enum<string>
default:en-US,en
required

It is an HTTP request header used to inform the server of the browser's preferred list of languages, so the server can return content in the language that best matches the user's preference.

Available options:
en-US,en

Body

application/json

Response

200
application/json

Business processing successful.

The response is of type object.