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",
    "theme": "edge-yellow",
    "export_as": "pdf"
  }'
{
  "presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
  "path": "https://api.presenton.ai/static/user_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pdf",
  "edit_path": "https://presenton.ai/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57",
  "credits_consumed": 5
}

🧩 Templates

Templates are collections of pre-designed slide layouts used to create presentations quickly and consistently. Internally, each template has two parts:
  • Design: The visual layout of slides, including elements, positioning, fonts, colors, and formatting.
  • Schema: The content definition that describes what goes on each slide (text blocks, images, icons, and their constraints).
Content rules in schemas:
  • Bulleted lists are variable-length. They can expand or contract between the minimum and maximum limits defined in the schema.
  • Other text fields (like titles, subtitles, and body text) have min/max length constraints that guide how much content is generated.
Built-in templates you can use right away:
  • general
  • modern
  • standard
  • swift
Select a template by name using the template parameter in your request (for example, “template”: “modern”).

🎨 Themes

Themes define the visual style of a presentation. While templates handle the layout and schema of slides, themes control the look and feel (colors, fonts, branding). There are two types of themes:
  • Built-in Themes: Predefined styles you can use immediately without customization.
  • Custom Themes: Fully configurable styles you can create and manage from the dashboard at settings.
All available built-in themes:
  • edge-yellow
  • mint-blue
  • light-rose
  • professional-blue
  • professional-dark
When editing or creating a theme, the following elements are customizable:

Accent Colors

  • Primary Accent Color – Used for highlights, headings, and key UI elements.
  • Secondary Accent Color – Supporting accent for variation.
  • Tertiary Accent Color – Optional additional accent.

Background Colors

  • Page Background Color – The overall background of the slide.
  • Card Background Color – Background of slide content blocks or cards.

Text Colors

  • Text Heading Color – Applied to titles, headings, and key emphasis text.
  • Text Body Color – Applied to main body text, descriptions, and paragraphs.

Fonts

  • Font selection for text and body.

Branding

  • Upload and set your Logo to apply branding consistently across slides.
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",
    "theme": "edge-yellow",
    "export_as": "pdf"
  }'
{
  "presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
  "path": "https://api.presenton.ai/static/user_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pdf",
  "edit_path": "https://presenton.ai/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57",
  "credits_consumed": 5
}