创建视频
开发环境
开发环境
POST
/v2/videos
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v2/videos' \
--header 'Authorization: $API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"test": true,
"title": "Hello, World!",
"description": "This is my first synthetic video, made with the Synthesia API!",
"visibility": "public",
"ctaSettings": {
"label": "Click me!",
"url": "https://www.synthesia.io"
},
"callbackId": "email@example.com",
"input": [{
"scriptText": "This is my first synthetic video, made with the Synthesia API!",
"scriptAudio": "12345678-1234-1234-1234-123456789012",
"scriptLanguage": "en-US",
"avatar": "anna_costume1_cameraA",
"avatarSettings": {
"voice": "1364e02b-bdae-4d39-bc2d-6c4a34814968",
"horizontalAlign": "center",
"scale": 1.0,
"style": "rectangular",
"backgroundColor": "#F2F7FF",
"seamless": false
},
"background": "off_white",
"backgroundSettings": {
"videoSettings": {
"shortBackgroundContentMatchMode": "freeze",
"longBackgroundContentMatchMode": "trim"
}
}
}],
"soundtrack": "urban"
}'
响应示例响应示例
{
(video object keys)
}
请求参数
Header 参数
Authorization
string
必需
示例值:
$API_KEY
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-01-30 07:51:17