- YunApi中转系统使用教程
- 系统介绍
- 系统优势
- 补充说明
- 辅助功能
- 功能介绍
- 账户余额查询
- 文件上传
- 文件解析(无特定接口)
- 按量计费
- 按次计费
- 视频生成
- 图片生成
- 音乐生成
- urlanalysis
生成(generations)
POST
/cogvideox/v1/videos/generations
请求参数
Body 参数application/json
model
string
必需
prompt
string
必需
image_url
string
可选
示例
{
"model": "cogvideox",
"prompt": "Peter Rabbit drives a small car, wandering on the road, with a face full of happiness and joy.",
"image_url":"https://sfile.chatglm.cn/testpath/video_cover/0e89d8bf-ded0-5b77-b673-fd264fad9c9d_cover_0.png"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/cogvideox/v1/videos/generations' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "cogvideox",
"prompt": "Peter Rabbit drives a small car, wandering on the road, with a face full of happiness and joy.",
"image_url":"https://sfile.chatglm.cn/testpath/video_cover/0e89d8bf-ded0-5b77-b673-fd264fad9c9d_cover_0.png"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{"id":"112616908736573238875817957674828622","model":"cogvideox","request_id":"8875817957674828620","task_status":"PROCESSING"}
🟢200成功