Skip to content

大纲生成PPT

适用版本>=v7.0.2603.20260326

标签slide

请求说明

字段
请求地址
配置域名+/openapi+/v7/aiopen/slides/generate
HTTP 方法
POST
接口描述
根据PPT大纲和选定的模板生成PPT文件
签名方式
KSO-1(配置域名+/openapi不参与签名)
限频策略
权限要求
演示AI中台-AI生成PPT(应用授权) kso.aiopen_slide.readwrite

请求头 (Headers)

属性名类型是否必填描述可选值
X-Kso-Date
stringRFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT-
X-Kso-Authorization
stringKSO-1 签名值,详见《签名方法》-
Authorization
string授权凭证,格式为:Bearer {access_token}-

请求体(Body)

请求体格式: application/json

没有可用的数据

请求体示例

json
{
  "outline_data": {
    "root_node": {
      "attachment_id": "string",
      "auto_generate_picture": true,
      "children": [
        {}
      ],
      "copy_user_textbox": true,
      "diagram_type": "string",
      "height": 0,
      "ignore_matched": true,
      "node_type": "string",
      "num": 0,
      "page_index": "string",
      "page_type": "string",
      "ratio": "string",
      "shape_guid": "string",
      "shape_guids": [
        "string"
      ],
      "text": "string",
      "width": 0
    }
  },
  "pptx_params": {
    "filter_slide_types": [
      "string"
    ],
    "generate_index": [
      0
    ],
    "generate_picture_mode": 0,
    "merge_slides": true,
    "slides_count": 0
  },
  "template_params": {
    "template_id": "string",
    "template_name": "string"
  }
}

响应体(Response)

HTTP状态码: 200
响应体格式: application/json

没有可用的数据

响应体示例

json
{
  "code": 0,
  "msg": "string",
  "data": {
    "code": 0,
    "data": {
      "pptx_data": {
        "file_url": "string",
        "slide_index": 0,
        "slide_type": "title",
        "thumbnail_url": "string",
        "total": 0
      },
      "sequence_num": 0,
      "stream_status": "string"
    },
    "msg": "string"
  }
}