Generations(Text to Video)
POST
/zhipu/api/paas/v4/videos/generationsText-to-Video Model from Zhipu.
Zhipu AI:https://open.bigmodel.cn/dev/api#cogvideox
Price: 0.1 PTC / call
请求参数
Header Params
Content-Type
string
optional
Example:
application/json;charset:utf-8;
Authorization
string
optional
API Key from 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
model
string
required
cogvideox
prompt
string
required
Video prompt
Example
{
"model": "cogvideox",
"prompt": "Peter Rabbit dritves a small car, wandering on the road, with a iface full of happiness and joy."
}
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 个月前