🎯 Endpoint

POST /api/v1/ppt/generate/presentation

Use this endpoint to generate a presentation from a prompt, outline, or uploaded documents.

🧾 Request Format

Content-Type: multipart/form-data

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)
themestringNoTheme of the presentation (e.g., light, dark, royal_blue, etc.)
documentsfile[]NoOptional files (PDF, PPTX, DOCX, TXT) to include
export_asstringNoExport format: pptx or pdf (default: pptx)

📤 Example Request

curl -X POST http://localhost:5000/api/v1/ppt/generate/presentation \
  -F "prompt=Introduction to Machine Learning" \
  -F "n_slides=5" \
  -F "language=English" \
  -F "theme=light" \
  -F "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

✅ Supported Themes

  • light (default)
  • dark
  • cream
  • royal_blue
  • faint_yellow
  • light_red
  • dark_pink