curl --request POST \
--url https://open.bigmodel.cn/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
}
'{
"model": "<string>",
"id": "<string>",
"request_id": "<string>",
"task_status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}图像与视频生成
视频生成(异步)
POST
/
paas
/
v4
/
videos
/
generations
curl --request POST \
--url https://open.bigmodel.cn/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
}
'{
"model": "<string>",
"id": "<string>",
"request_id": "<string>",
"task_status": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
标准的 HTTP Bearer 认证方式,在 API Keys 页面获取密钥。
Body
application/json
- CogVideoX-3
- CogVideoX
- Vidu: Text to Video
- Vidu: Image to Video
- Vidu: First & Last Frame to Video
- Vidu: Ref to Video
Was this page helpful?