视频生成
开发中
POST
http://112.124.20.250:8180/api/v1/videos
请求参数
Body 参数application/json
string
可选
示例
{
"notify_hook": "",
"video_subject": "中国",
"video_script": "",
"video_terms": "",
"video_aspect": "9:16",
"video_concat_mode": "random",
"video_clip_duration": 5,
"video_count": 1,
"video_language": "zh-CN",
"video_source": "local",
"video_materials": [
{
"provider": "local",
"url": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/1.mp4",
"duration": 0
},
{
"provider": "local",
"url": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/2.mp4",
"duration": 0
}
],
"voice_name": "zh-CN-XiaoxiaoNeural",
"voice_volume": 1,
"bgm_type": "random",
"bgm_file": "",
"bgm_volume": 0.2,
"subtitle_enabled": true,
"subtitle_position": "bottom",
"font_name": "STHeitiMedium.ttc",
"text_fore_color": "#FFFFFF",
"text_background_color": "transparent",
"font_size": 60,
"stroke_color": "#000000",
"stroke_width": 1.5,
"n_threads": 2,
"paragraph_number": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://112.124.20.250:8180/api/v1/videos' \
--header 'Content-Type: application/json' \
--data-raw '{
"notify_hook": "",
"video_subject": "中国",
"video_script": "",
"video_terms": "",
"video_aspect": "9:16",
"video_concat_mode": "random",
"video_clip_duration": 5,
"video_count": 1,
"video_language": "zh-CN",
"video_source": "local",
"video_materials": [
{
"provider": "local",
"url": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/1.mp4",
"duration": 0
},
{
"provider": "local",
"url": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/2.mp4",
"duration": 0
}
],
"voice_name": "zh-CN-XiaoxiaoNeural",
"voice_volume": 1,
"bgm_type": "random",
"bgm_file": "",
"bgm_volume": 0.2,
"subtitle_enabled": true,
"subtitle_position": "bottom",
"font_name": "STHeitiMedium.ttc",
"text_fore_color": "#FFFFFF",
"text_background_color": "transparent",
"font_size": 60,
"stroke_color": "#000000",
"stroke_width": 1.5,
"n_threads": 2,
"paragraph_number": 1
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-05-29 15:40:04