Steps to generate professional AI presentations via self hosted Presenton’s API in just 5 minutes.
In this guide, I’ll walk you through a simple, straightforward way to host and use Presenton’s API for generating presentations. If you’re a developer or someone building tools or automation around presentations, this approach will save you some valuable time.
Before we start, I’m assuming you’ve already set up Presenton. If not, just quickly check out the Quickstart or Development guide.
Presenton runs in Docker, making it easy to set up across different environments.
You’re now ready to run Presenton’s docker image to start generating presentations. First, you will have to decide upon the LLM provider you’re going to use to generate presentations. You can go for either OPENAI
, GOOGLE
or OLLAMA
. GOOGLE
is free to start with but if you want complete control and privacy OLLAMA
allows you to host your own model, but also requires PEXELS
(free image library) API key.
We will go with GOOGLE
in this guide as it’s relatively simpler to configure and free to start with. You will have to grab its API Key from Google AI Studio.
You can find details to run with other providers in Environment Variables.
Now, open your command line and execute the relevant command based on your OS:
If port
5000
is already occupied or you prefer a different port, feel free to change it.
Once this step is done, you can access Presenton locally at http://localhost:5000.
Presenton supports several environment variables for customization (such as using OpenAI or local models).
Typical use-cases you might encounter:
If you don’t need to change anything right now, it’s safe to skip this step. Return to it when you need more customization.
Generating presentations via Presenton’s API is straightforward. It has one primary endpoint:
For a deeper dive later, check the full API documentation.
Here’s how you’d quickly generate a presentation called “Introduction to Machine Learning”:
Here’s a quick reference for the key parameters you can set:
Parameter | Type | Required | Description |
---|---|---|---|
prompt | string | Yes | Topic/title of your presentation |
n_slides | int | No | Number of slides (default: 8; min: 5, max: 15) |
language | string | No | Language you’d like the presentation in (default: English) |
theme | string | No | Optional styling (e.g.: “light”, “dark”, “royal_blue”) |
documents | file[] | No | Additional supporting documents (PDF/PPTX/DOCX/TXT) |
export_as | string | No | ”pptx” or “pdf” (default: pptx) |
Yes, it can generate presentations directly from most popular file formats. Make sure you understand the context window of model you’re using with respect to file size.
For now, these should be enough to get you going. Later, you can reference the API docs if needed.
Here’s what a normal, successful response looks like:
presentation_id
: Keep this handy if you want to refer back later.path
: This is your generated PPT file. Download from here.edit_path
: A convenient URL that lets you edit your slides directly from Presenton’s built-in editor.Note: Make sure to prepend your server’s root URL to the path and edit_path fields in the response to construct valid links.
Presenton provides easy-to-use themes for quick styling:
light
(default, clean/professional look)dark
(ideal for coding tutorials or tech seminars)cream
(suitable for detailed reviews, proposals)royal_blue
(great for presenting to clients or external stakeholders)faint_yellow
(easy on eyes, educational slides)light_red
(highlight warnings or critical presentations)dark_pink
(marketing, creative slide decks)Once you’re comfortable and ready for more:
That’s it! You’ve successfully generated a professional-looking presentation through an easy-to-use API endpoint.
If you have more questions or want to explore further, the complete documentation is always here to help you.