curl --location --request POST '/docmee/v1/api/ppt/generateContent' \
--header 'token: {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"templateId": "xxx", // Template ID (optional)
"outlineMarkdown": "# Topic\n## Chapter\n### Page Title\n#### Content Title", // Outline markdown text
"asyncGenPptx": true, // Asynchronous PPT generation (must be true here for streaming generation)
"prompt": null, // User request
"dataUrl": null // Data URL, returned by calling the file content parsing interface
}'{
"text": "",
"status": 3, // Status: -1 Exception 0 Model Reset 1 Parse File 2 Search Web 3 Generating 4 Completed
// The following data is returned during asynchronous PPT generation. Each time it appears, you can call the asyncPptInfo API to get the latest PPT data
"pptId": "xxx", // Asynchronous generated pptId
"total": 23, // Total pages
"current": 1 // Currently generated pages
}
{ "text": "#", "status": 3 }
{ "text": " ", "status": 3 }
{ "text": "Theme", "status": 3 }
...
{
"text": "",
"status": 4,
"result": {
"level": 1,
"name": "Theme",
"children": [
{
"level": 2,
"name": "Chapter",
"children": [
{
"level": 3,
"name": "Page Title",
"children": [
{
"level": 4,
"name": "Content Title",
"children": [
{
"level": 0,
"name": "Content"
}
]
}
]
}
]
}
]
}
}