Request
示例值:Bearer {{YOUR_API_KEY}}
Body Params application/json
通过解析文件内容接口返回(与subject可同时存在)
short/medium/long, 默认 medium, 分别对应: 10-15页/20-30页/25-35页
{
"subject": "string",
"dataUrl": "string",
"stream": true,
"templateId": "string",
"pptxProperty": false,
"length": "string",
"lang": "string",
"prompt": "string"
}
Request samples
curl --location --request POST 'https://api.302.ai/302/ppt/directgeneratepptx' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"subject": "string",
"dataUrl": "string",
"stream": true,
"templateId": "string",
"pptxProperty": false,
"length": "string",
"lang": "string",
"prompt": "string"
}'
Responses
application/json {
"data": {
"pptInfo": {
"id": "string",
"name": "string",
"subject": "string",
"coverUrl": "string",
"fileUrl": "string",
"templateId": "string",
"pptxProperty": null,
"updateTime": "string",
"createTime": "string",
"createUser": null,
"updateUser": null
}
},
"code": 0,
"message": "string"
}
Modified at 2025-02-27 07:18:40