Synthesia
  1. 视频
Synthesia
  • 介绍
    • 验证
    • 分页
    • 速率限制
  • 视频
    • 从模板创建视频
      POST
    • 创建视频
      POST
    • 检索视频
      GET
    • 列出视频
      GET
    • 更新一个视频
      PATCH
    • 删除视频
      DELETE
  • 模板
    • 检索模板
      GET
    • 列出模板
      GET
  • 脚本音频
    • 上传脚本音频
      POST
  • 资产
    • 创建资产
      POST
  • webhook
    • 验证综合签名
    • 创建 webhook
      POST
    • 检索 webhook
      GET
    • 列出 webhooks
      GET
    • 删除 webhook
      DELETE
  1. 视频

创建视频

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v2/videos

请求参数

Header 参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Body

请求示例请求示例
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)
}
修改于 2024-01-30 07:51:17
上一页
从模板创建视频
下一页
检索视频
Built with