🎯 Endpoint

POST /api/v1/ppt/presentation/generate
Use this endpoint to generate a presentation from a prompt, outline, or uploaded documents.

🧾 Request Format

Content-Type: application/json
FieldTypeRequiredDescription
promptstringYesThe main topic or subject for the presentation
n_slidesintNoNumber of slides (default: 8, min: 5, max: 15)
languagestringNoLanguage of the presentation (default: English)
export_asstringNoExport format: pptx or pdf (default: pptx)
templatestringNoSelected presentation template: Available templates classic, modern, professional, general + Custom Templates (default: general)

📤 Example Request

curl -X POST http://localhost:5000/api/v1/ppt/presentation/generate \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Introduction to Machine Learning",
    "n_slides": 5,
    "language": "English",
    "template": "general",
    "export_as": "pptx"
  }'

📥 Example Response

{
  "presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
  "path": "/static/user_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pptx",
  "edit_path": "/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57"
}
  • presentation_id: Unique ID of the presentation
  • path: File path for downloading the presentation
  • edit_path: Link to open the presentation in the editor