获取PPT模版
更新时间:2025-12-19
概述
提供 PPT 模板获取能力,用于在生成 PPT 时选择和应用对应模板,帮助用户快速产出风格统一、结构规范的演示文稿。
接口定义
| URL | https://qianfan.baidubce.com/v2/tools/ai_ppt/get_ppt_theme |
|---|---|
| Method | POST |
Headers
| 字段 | 值 |
|---|---|
| Authorization | Bearer {ApiKey} |
| Content-Type | application/json |
| X-Appbuilder-Request-Id | 非必填项(建议填写,方便后续链路问题排查,UUID格式) |
请求参数
无
请求示例
Plain Text
1curl --request POST \
2 --url https://qianfan.baidubce.com/v2/tools/ai_ppt/get_ppt_theme \
3 --header 'Authorization: Bearer xxxxxx' \
4 --header 'content-type: application/json' \
响应参数
| 字段 | 类型 | 描述 |
|---|---|---|
| errno | int | 错误码,成功:0 |
| show_msg | string | 状态描述 |
| request_id | string | 请求唯一ID |
| server_time | int | 服务器时间戳 |
| newno | string | 新版错误码 通常为空 |
| data | object | 返回结果内容 |
| data.ppt_themes | array | PPT主题列表 |
| data.ppt_themes[].style_id | int | 样式ID |
| data.ppt_themes[].tpl_id | int | 模板ID |
| data.ppt_themes[].style_name_list | array | 样式名称列表 |
| data.ppt_themes[].color_list | array | 颜色列表 |
| data.ppt_themes[].main_img_url | string | 主预览图URL |
