Skip to main content

🎯 Endpoint

POST /api/v1/ppt/presentation/generate
Use this endpoint to generate a presentation from text content or uploaded documents.
For detailed information about the request format, please see the API Reference.

🔐 Authentication

Before calling the API, log in to Presenton and create an API key from your account page: Presenton Account. Your key will look like sk-presenton-xxxxx. Include this key in every request using the Authorization header:
Authorization: Bearer sk-presenton-xxxxx

📤 Example Request

curl -X POST https://api.presenton.ai/api/v1/ppt/presentation/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-presenton-xxxxx" \
  -d '{
    "content": "Introduction to Machine Learning",
    "n_slides": 5,
    "language": "English",
    "template": "general",
    "export_as": "pptx"
  }'

📥 Example Response

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

Editing the Presentation Manually

edit_path is the link to the User Interface to edit the presentation. This link leads to the Presenton user interface that allows editing and re-exporting presentation to either PPTX of PDF. Presentation can be edited in these ways:
  • edit text in slides through intutive visual editor
  • change image in slides by re-generating/fetching new images
  • change icons in slides by searching for new icons and selecting one
  • change position of slides in by dragging and rearranging slides
  • delete and add slides manually
  • edit content (text, icons and images) through AI using prompt (consumes AI credits)
curl -X POST https://api.presenton.ai/api/v1/ppt/presentation/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-presenton-xxxxx" \
  -d '{
    "content": "Introduction to Machine Learning",
    "n_slides": 5,
    "language": "English",
    "template": "general",
    "export_as": "pptx"
  }'
{
  "presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
  "path": "https://api.presenton.ai/static/user_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pptx",
  "edit_path": "https://presenton.ai/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57",
  "credits_consumed": 5
}
I