Skip to content
Platform / Docs / Smart editing — template list API

API Reference

Smart editing — template list API

POST smartclip-template-api ID 23

Page through smart-editing templates and get each template id, name, cover, and sample.

POST https://xiaoapis.com/api/smartclip/template

Overview

  • 按场景筛选
  • 分页游标
  • 返回封面与样片

Use cases

  • 选择成片模板
  • 模板商城/后台选模
Conventions
  • Gateway · https://xiaoapis.com
  • Auth · send key (query or JSON body, as this API specifies)
  • Response · JSON. Check the business code and the HTTP status, not only HTTP 200

Authentication

Send the platform API key (query parameter key or JSON field key, as this page specifies). Create one in API key management.

POST https://xiaoapis.com/api/smartclip/template
Content-Type: application/json

{
  "key": "YOUR_API_KEY"
}

Request example

https://xiaoapis.com/api/smartclip/template?key=你的密钥

Details

ScreenShot_2026-10-10_214944_865@2x.png

演示地址:https://xiaobao.ink/digital_human/agent

请求HEADER:

名称值
Content-Typeapplication/json

鉴权说明:请在 URL 参数或 JSON Body 中携带 key(平台 API 密钥)。使用 POST + JSON 时,key 必须写在 JSON Body 内。

请求参数说明:

名称必填类型示例值说明
key是string你的密钥平台 API 密钥
scene是stringrealMan模板场景:virtualman 数字人口播;realMan 真人口播;oralMixCutting 素材混剪;newsMixCutting 新闻混剪
pageSize否int10每页大小,默认 10
sid否string
分页游标,有值时表示还有下一页
searchKey否stringname搜索字段:name 按名称;id 按模板 ID
searchValue否string
搜索值
sortBy否stringdesc排序:desc 上架时间倒序;asc 正序

返回参数说明:

名称类型说明
codeint200 成功
msgstring状态信息
data.result.data.results[]array模板列表
data.result.data.results[].idstring模板 ID(styleId)
data.result.data.results[].namestring模板名称
data.result.data.results[].coverUrlstring封面 URL
data.result.data.results[].scenestring场景枚举
data.result.data.results[].demoUrlstring样片视频 URL
data.result.data.sidstring下一页游标(可选)

Response example

{    "code": 200,    "msg": "success",    "data": {        "result": {            "code": "Succeed",            "data": {                "results": [                    {                        "id": "6a2668a137004e003477b6ed",                        "name": "双语大橙",                        "coverUrl": "https://example.com/cover.jpg",                        "scene": "realMan",                        "demoUrl": "https://example.com/demo.mp4"                    }                ],                "sid": ""            }        }    },    "exec_time": 0.35,    "ip": "127.0.0.1"}

FAQ

模板列表接口做什么?

按场景(如真人口播、口播混剪、新闻混剪)列出可用模板,供 create 时填写 styleId。

scene 怎么填?

按文档枚举填写,例如 realMan、oralMixCutting、newsMixCutting 等。

如何翻页?

使用返回的 sid 作为下一页游标;为空表示没有更多。

返回的 id 用在哪里?

作为真人口播/混剪等 create 请求中的 styleId(模板 ID)。

需要鉴权吗?

需要。请求携带平台 API Key。

Full console doc (with the debugger):/doc/23