智能剪辑 - 模板详情

智能剪辑 · 模板详情

按模板 ID 获取模板结构详情。接口为同步免费查询。

基本信息

字段内容
应用编码smart_clip
API 编码template_detail
请求方式GET
请求路径/api/v1/apps/smart_clip/template_detail?id={id}
调用模式同步

请求参数

参数位置类型必填示例说明
idquerystring是67b7ee802b2beb0030cdeaaf模板id

请求示例

GET /api/v1/apps/smart_clip/template_detail?id=67b7ee802b2beb0030cdeaaf
Authorization: Bearer <YOUR_API_KEY>

成功响应说明

字段类型必返说明
codestring是表示本次请求的状态,值为成功状态时表示成功,其他均为失败
dataobject是结果数据
data.idstring是模板id
data.namestring是模板名称
data.coverUrlstring是封面url
data.scenestring是应用场景,同模板列表接口的 scene
data.videoStructInfoobject是模板结构详情
data.videoStructInfo.editInfoobject是编辑结构信息
data.videoStructInfo.editInfo.canvas.widthinteger是模板画布尺寸宽
data.videoStructInfo.editInfo.canvas.heightinteger是模板画布尺寸高
data.videoStructInfo.editInfo.headerLayerobject是标题图层,返回 {} 表示没有相关图层
data.videoStructInfo.editInfo.subtitleLayerobject是字幕图层,返回 {} 表示没有相关图层
data.videoStructInfo.editInfo.ipLayerobject是身份栏图层,返回 {} 表示没有相关图层
data.videoStructInfo.editInfo.figureLayerobject是数字人图层,返回 {} 表示没有相关图层
data.videoStructInfo.editInfo.backgroundLayerobject是背景图层,返回 {} 表示没有相关图层
requestIdstring是本次请求的唯一标识id
messagestring否错误描述信息,失败时返回

图层数据结构

字段类型必返说明
widthinteger是图层宽
heightinteger是图层高
transformobject否图层位置数据
transform.anchorinteger[]是锚点,辅助定位,不支持修改
transform.scalarinteger[]是缩放,单位:%,不支持修改
transform.positioninteger[]是锚点定位
uristring否背景资源图片,仅背景图层返回

同类文章