Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
Document theme, can exist at the same time as dataUrl
File data url, returned through the parsing file content interface (can exist at the same time as subject)
Whether to return streaming
The length of the article, short/medium/long, the default medium, corresponds to: pages 10-15/pages 20-30/pages 25-35
language, zh/zh-Hant/en/ja/ko/ar/de/fr/it/pt/es/ru
User-defined requirements
{
"subject": "string",
"dataUrl": "string",
"stream": false,
"length": "string",
"lang": "string",
"prompt": "string"
}
Request samples
curl --location --request POST 'https://api.302.ai/302/ppt/generateoutline' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"subject": "string",
"dataUrl": "string",
"stream": false,
"length": "string",
"lang": "string",
"prompt": "string"
}'
Responses
application/json {
"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"
}
Modified at 2025-02-27 06:22:33