生成大纲
POST
/302/ppt/generateoutline价格: 免费
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
subject
string
文档主题
与dataUrl可同时存在
dataUrl
string
文件数据url
通过解析文件内容接口返回(与subject可同时存在)
stream
boolean
是否流式返回
默认值:
false
length
string
篇幅长度
short/medium/long, 默认 medium, 分别对应: 10-15页/20-30页/25-35页
lang
string
语言
zh/zh-Hant/en/ja/ko/ar/de/fr/it/pt/es/ru
prompt
string
用户自定义需求
示例
{
"subject": "string",
"dataUrl": "string",
"stream": false,
"length": "string",
"lang": "string",
"prompt": "string"
}
示例代码
返回响应
成功(200)
event-stream 流式生成(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
必需
result
object
必需
text
string
必需
code
integer
必需
message
string
必需
示例
{
"data": {
"result": {
"level": 0,
"name": "string",
"url": null,
"type": null,
"children": [
{
"level": 0,
"name": "string",
"url": null,
"type": null,
"children": [
{
"level": 0,
"name": "string",
"url": null,
"type": null,
"children": [
{
"level": 0,
"name": "string",
"url": null,
"type": null,
"children": [
"string"
]
}
]
}
]
}
]
},
"text": "string"
},
"code": 0,
"message": "string"
}
最后修改时间: 15 天前