Generations(Image to Video)
POST
/zhipu/api/paas/v4/videos/generationsImage-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
image_url
string
required
First frame image
Example
{
"model": "cogvideox",
"prompt": "Peter Rabbit dritves a small car, wandering on the road, with a iface full of happiness and joy.",
"image_url": "https://file.302.ai/gpt/imgs/20240806/448066b8585148e1bda23d276f0f9af2.png"
}
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 个月前