MINDSHOW
  1. PPT生成
MINDSHOW
  • 快速开始
  • 错误码列表
  • 账号相关
    • 得到账号信息
      POST
    • 积分变更记录
      POST
  • 模板相关
    • 得到模版列表
      POST
    • 得到单个模版
      POST
    • 得到模版标签配置
      POST
  • 高级模板
    • PPT插入高级模版流程
    • 添加高级模版
      POST
    • 得到高级模版列表
      POST
    • 获取单个高级模版
      POST
    • 设置取单个高级模版数据
      POST
    • 删除高级模版
      POST
  • 文件相关
    • 文件资源上传
      POST
  • 大语言GPT
    • gpt流式接口调用介绍
    • 通过内容生成PPT大纲
      POST
    • 通过PPT大纲生成PPT完整内容
      POST
  • PPT生成
    • AIPPT生成流程
    • 创建任务:[非AI]通过MarkDown大纲生成PPT
      POST
    • 创建任务:[AI]通过GPT生成PPT
      POST
    • 创建任务:[AI]美化PPT
      POST
  • 任务相关
    • 得到任务列表
      POST
    • 获取单个任务数据
      POST
    • 获取单个任务的质检数据
      POST
    • 获取任务的pdf文件
      POST
    • 获取单个任务的编辑/查看链接
      POST
    • 删除任务
      POST
  • 开发中
  1. PPT生成

创建任务:[AI]通过GPT生成PPT

POST
/v1/job/ppt_create_by_gpt
注意
生成PPT是 异步任务
该请求会生成异步任务, 并返回任务id ,此时的 ppt_url 为空
生成时间预计: 1-2分钟
需要 后续轮询调用 获取单个任务数据 /v1/job/get 协议获取任务的最新状态 (推荐每隔5秒请求一次,直到任务成功)
注意
消耗积分规则: 每次扣除10个积分

请求参数

Header 参数
Authorization
string 
认证 key
必需
示例值:
Bearer {{token}}
Body 参数application/json
template_id
string 
模板id
必需
示例值:
xxxxxxxxx
speaker
string 
演讲者
必需
示例值:
演讲者名称
type
string 
必需
方案类型 topic: 通过标题生成ppt, outline: 通过大纲生成PPT
content
string 
必需
type=topic 为标题, type=outline: markdown大纲
content_ex_info
string 
可选
内容扩展信息 , 生成大纲时的得到的,type=outline 时使用 如果设置了,后续的 配置 model, desc_info,qa_list, resource_id_list无需填写。
默认值:
示例值:
model
string 
可选
使用模型. ali :阿里,deepseek: "Deepseek" ,
默认值:
ali
示例值:
ali
desc_info
string 
可选
备注,关于该主题的更多说明,或用户对话内容
默认值:
示例值:
qa_list
array [object {2}] 
问答列表
可选
question
string 
问题
必需
answer
string 
回答
必需
resource_id_list
array[string]
可选
参考的文件id列表:["xxxx1","xxxx2"],
create_preview_image_type
string 
可选
创建预览图.(会减慢生成速度!) null :无需生成,title: "标题页" , top3 :"前3张" ,
默认值:
null
示例值:
null
示例
{
    "template_id": "xxxxxxxxx",
    "speaker": "演讲者名称",
    "type": "string",
    "content": "string",
    "content_ex_info": "",
    "model": "ali",
    "desc_info": "",
    "qa_list": [
        {
            "question": "",
            "answer": ""
        }
    ],
    "resource_id_list": [
        "xxxx"
    ],
    "create_preview_image_type": "null"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mindshow.vip/v1/job/ppt_create_by_gpt' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "template_id": "xxxxxxxxx",
    "speaker": "演讲者名称",
    "type": "string",
    "content": "string",
    "content_ex_info": "",
    "model": "ali",
    "desc_info": "",
    "qa_list": [
        {
            "question": "",
            "answer": ""
        }
    ],
    "resource_id_list": [
        "xxxx"
    ],
    "create_preview_image_type": "null"
}'

返回响应

🟢200成功
application/json
成功
Body
code
integer 
必需
错误码( 0:成功. 其它值:失败[无data数据区])
info
string 
错误信息
必需
示例值:
succ
request_id
string 
可选
请求id,用于定位请求
示例值:
21al1389334aal4f
data
object 
数据区
可选
job
object 
任务消息
必需
示例
{
    "code": 0,
    "info": "succ",
    "request_id": "21al1389334aal4f",
    "data": {
        "job": {
            "id": "1dk13k3hgfk",
            "title": "标题",
            "status": "succeeded",
            "queue_wait_count": 0,
            "progress_percent": 0,
            "created_at": "2020-01-01T00:00:00+08:00",
            "finished_at": "2020-01-01T00:00:00+08:00",
            "ppt_url": "string",
            "preview_img_list": [
                "string"
            ],
            "md_content": "string",
            "error": "string"
        }
    }
}
修改于 2025-06-04 02:40:14
上一页
创建任务:[非AI]通过MarkDown大纲生成PPT
下一页
创建任务:[AI]美化PPT
Built with