Update README.md for improved clarity and organization of content

This commit is contained in:
sudipnext 2026-03-16 14:26:01 +05:45
parent d3c2dd2d90
commit b1d1aaea6d

627
README.md
View file

@ -1,263 +1,408 @@
<p align="center">
<img src="readme_assets/images/presenton-logo.png" height="90" alt="Presenton Logo" />
<img src="./readme_assets/images/logo.png" alt="Presenton" />
</p>
<p align="center">
<a href="https://discord.gg/9ZsKKxudNE">
<img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?logo=discord&style=for-the-badge" alt="Join our Discord" />
</a>
&nbsp;
<a href="https://x.com/presentonai">
<img src="https://img.shields.io/badge/X-Follow%20Us-000000?logo=twitter&style=for-the-badge" alt="Follow us on X" />
</a>
<a href="https://presenton.ai/download"><strong>Quickstart</strong></a> &middot;
<a href="https://docs.presenton.ai/"><strong>Docs</strong></a> &middot;
<a href="https://www.youtube.com/@presentonai"><strong>Youtube</strong></a> &middot;
<a href="https://discord.gg/9ZsKKxudNE"><strong>Discord</strong></a>
</p>
<p align="center">
<a href="https://github.com/presenton/presenton/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue?style=flat" alt="Apache2.0" /></a>
<a href="https://github.com/presenton/presenton"><img src="https://img.shields.io/github/stars/presenton/presenton?style=flat" alt="Stars" /></a>
<a href="https://presenton.ai/"><img src="https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey?style=flat" alt="Platform" /></a>
</p>
<!--
[![website-shield]][website-url]
[![download-shield]][download-url]
[![docs-shield]][docs-url]
[![youtube-shield]][youtube-url]
[![discord-shield]][discord-url]
<br>
[![docker-shield]][docker-url]
[![stars-shield]][stars-url]
[![license-shield]][license-url]
[![platform-shield]][platform-url]
[website-shield]: https://img.shields.io/badge/Website-presenton.ai-111827?style=flat&logo=google-chrome&logoColor=white
[website-url]: https://presenton.ai/
[download-shield]: https://img.shields.io/badge/Download-Latest%20Release-6C47FF?style=flat&logo=download&logoColor=white
[download-url]: https://presenton.ai/download
[docs-shield]: https://img.shields.io/badge/Docs-docs.presenton.ai-0ea5e9?style=flat&logo=readthedocs&logoColor=white
[docs-url]: https://docs.presenton.ai/
[youtube-shield]: https://img.shields.io/badge/YouTube-PresentonAI-FF0000?style=flat&logo=youtube&logoColor=white
[youtube-url]: https://www.youtube.com/@presentonai
[discord-shield]: https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=flat&logo=discord&logoColor=white
[discord-url]: https://discord.gg/9ZsKKxudNE
[docker-shield]: https://img.shields.io/badge/Docker-ghcr.io/presenton/presenton-2496ED?style=flat&logo=docker&logoColor=white
[docker-url]: https://ghcr.io/presenton/presenton
[stars-shield]: https://img.shields.io/github/stars/presenton/presenton?style=flat
[stars-url]: https://github.com/presenton/presenton
[license-shield]: https://img.shields.io/badge/License-Apache%202.0-blue?style=flat
[license-url]: https://github.com/presenton/presenton/blob/main/LICENSE
[platform-shield]: https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey?style=flat
[platform-url]: https://presenton.ai/ -->
# Open-Source AI Presentation Generator and API (Gamma, Beautiful AI, Decktopus Alternative)
**Presenton** is an open-source application for generating presentations with AI — all running locally on your device. Stay in control of your data and privacy while using models like OpenAI and Gemini, or use your own hosted models through Ollama.
**✨ Now, generate presentations with your existing PPTX file! Just upload your presentation file to create template design and then use that template to generate on brand and on design presentation on any topic.**
### ✨ Why Presenton
![Demo](readme_assets/demo.gif)
No SaaS lock-in · No forced subscriptions · Full control over models and data
> [!NOTE] > **Enterprise Inquiries:**
> For enterprise use, custom deployments, or partnership opportunities, contact us at **[suraj@presenton.ai](mailto:suraj@presenton.ai)**.
What makes Presenton different?
- Use your **existing PPTX files as templates**
- Fully **self-hosted**
- Works with OpenAI, Gemini, Anthropic, Ollama, or custom models
- API deployable
- Fully open-source (Apache 2.0)
> [!IMPORTANT]
> Like Presenton? A ⭐ star shows your support and encourages us to keep building!
<p align="center">
<img src="./readme_assets/images/banner_bg.gif" alt="Presenton" />
</p>
> [!TIP]
> For detailed setup guides, API documentation, and advanced configuration options, visit our **[Official Documentation](https://docs.presenton.ai)**
#
## ✨ More Freedom with AI Presentations
### 🎛 UI Features
<p align="center">
<img src="./readme_assets/images/UI-elements/features.png" alt="Presenton" />
</p>
#
### 📌 Download Presenton
Create AI-powered presentations using your own model provider (BYOK) or run everything locally on your own machine for full control and data privacy.
<p align="center">
<a href="https://presenton.ai/download">
<img src="./readme_assets/images/banner-4.jpg" alt="Cloud deployment" />
</a>
</p>
**Available Platforms:** [macOS](https://presenton.ai/download), [Linux](https://presenton.ai/download), [Windows](https://presenton.ai/download)
Presenton gives you complete control over your AI presentation workflow. Choose your models, customize your experience, and keep your data private.
- ✅ **Custom Templates & Themes** — Create unlimited presentation designs with HTML and Tailwind CSS
- ✅ **AI Template Generation** — Create presentation templates from existing Powerpoint documents.
- ✅ **Flexible Generation** — Build presentations from prompts or uploaded documents
- ✅ **Export Ready** — Save as PowerPoint (PPTX) and PDF with professional formatting
- ✅ **Built-In MCP Server** — Generate presentations over Model Context Protocol
- ✅ **Bring Your Own Key** — Use your own API keys for OpenAI, Google Gemini, Anthropic Claude, or any compatible provider. Only pay for what you use, no hidden fees or subscriptions.
- ✅ **Ollama Integration** — Run open-source models locally with full privacy
- ✅ **OpenAI API Compatible** — Connect to any OpenAI-compatible endpoint with your own models
- ✅ **Multi-Provider Support** — Mix and match text and image generation providers
- ✅ **Versatile Image Generation** — Choose from DALL-E 3, Gemini Flash, Pexels, or Pixabay
- ✅ **Rich Media Support** — Icons, charts, and custom graphics for professional presentations
- ✅ **Runs Locally** — All processing happens on your device, no cloud dependencies
- ✅ **API Deployment** — Host as your own API service for your team
- ✅ **Fully Open-Source** — Apache 2.0 licensed, inspect, modify, and contribute
- ✅ **Docker Ready** — One-command deployment with GPU support for local models
- ✅ **Electron Desktop App** — Run Presenton as a native desktop application on Windows, macOS, and Linux (no browser required)
- ✅ **Sign in with ChatGPT** — Use your free or paid ChatGPT account to sign in and start creating presentations instantly — no separate API key required
- Custom Templates & Themes — Create unlimited presentation designs with HTML and Tailwind CSS
- AI Template Generation — Create presentation templates from existing Powerpoint documents.
- Flexible Generation — Build presentations from prompts or uploaded documents
- Export Ready — Save as PowerPoint (PPTX) and PDF with professional formatting
- Built-In MCP Server — Generate presentations over Model Context Protocol
- Bring Your Own Key — Use your own API keys for OpenAI, Google Gemini, Anthropic Claude, or any compatible provider. Only pay for what you use, no hidden fees or subscriptions.
- Ollama Integration — Run open-source models locally with full privacy
- OpenAI API Compatible — Connect to any OpenAI-compatible endpoint with your own models
- Multi-Provider Support — Mix and match text and image generation providers
- Versatile Image Generation — Choose from DALL-E 3, Gemini Flash, Pexels, or Pixabay
- Rich Media Support — Icons, charts, and custom graphics for professional presentations
- Runs Locally — All processing happens on your device, no cloud dependencies
- API Deployment — Host as your own API service for your team
- Fully Open-Source — Apache 2.0 licensed, inspect, modify, and contribute
- Docker Ready — One-command deployment with GPU support for local models
- Electron Desktop App — Run Presenton as a native desktop application on Windows, macOS, and Linux (no browser required)
- Sign in with ChatGPT — Use your free or paid ChatGPT account to sign in and start creating presentations instantly — no separate API key required
## Presenton Cloud
#
<a href="https://presenton.ai" target="_blank" align="center">
<img src="readme_assets/cloud-banner.png" height="350" alt="Presenton Logo" />
</a>
### ⚡ Running Presenton
## Running Presenton
<p>
You can run Presenton in two ways:
<strong>Docker</strong> for a one-command setup without installing a local dev
stack, or the <strong>Electron desktop app</strong> for a native app
experience (ideal for development or offline use).
</p>
You can run Presenton in two ways: **Docker** for a one-command setup without installing a local dev stack, or the **Electron desktop app** for a native app experience (ideal for development or offline use).
**Option 1: Electron (Desktop App)**
### Option 1: Docker
<p>
Run Presenton as a native desktop application. LLM and image provider
(API keys, etc.) can be configured in the app. The same environment variables
used for Docker apply when running the bundled backend.
</p>
#### 1. Start Presenton
<p>
<strong>Prerequisites:</strong> Node.js (LTS), npm, Python 3.11, and
<a href="https://docs.astral.sh/uv/">uv</a>
(for the Electron FastAPI backend in
<code>electron/servers/fastapi</code>).
</p>
##### Linux/MacOS (Bash/Zsh Shell):
- Setup (First Time)
<pre><code class="language-bash">cd electron
npm run setup:env</code></pre>
This installs Node dependencies, runs <code>uv sync</code> in the FastAPI
server, and installs Next.js dependencies.
```bash
docker run -it --name presenton -p 5000:80 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
- Run in Development
<pre><code class="language-bash">npm run dev</code></pre>
<p>
This compiles TypeScript and starts Electron. The backend and UI run locally
inside the desktop window.
</p>
##### Windows (PowerShell):
- Build Distributable (Optional)
To create installers for Windows, macOS, or Linux:
<pre><code class="language-bash">npm run build:all
npm run dist</code></pre>
<p>
Output files are written to <code>electron/dist</code>
(or as configured in your <code>electron-builder</code> settings).
</p>
```bash
docker run -it --name presenton -p 5000:80 -v "${PWD}\app_data:/app_data" ghcr.io/presenton/presenton:latest
```
**Option 2: Docker**
#### 2. Open Presenton
- Start Presenton
Linux/MacOS (Bash/Zsh Shell):
<pre><code class="language-bash">docker run -it --name presenton -p 5000:80 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
Windows (PowerShell):
<pre><code class="language-bash">docker run -it --name presenton -p 5000:80 -v "${PWD}\app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
Open http://localhost:5000 on browser of your choice to use Presenton.
- Open Presenton
<p>
Open <a href="http://localhost:5000">http://localhost:5000</a> in the browser
of your choice to use Presenton.
</p>
<blockquote>
<p>
<strong>Note:</strong> You can replace <code>5000</code> with any other port
number of your choice to run Presenton on a different port number.
</p>
</blockquote>
> **Note: You can replace 5000 with any other port number of your choice to run Presenton on a different port number.**
#
#### (Optional) Enable Codex Auth — Sign in with ChatGPT
If you want to sign in with your free or paid ChatGPT account, also expose port `1455` for Codex auth support:
##### Linux/MacOS:
```bash
docker run -it --name presenton -p 5000:80 -p 1455:1455 -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
##### Windows (PowerShell):
```bash
docker run -it --name presenton -p 5000:80 -p 1455:1455 -v "${PWD}\app_data:/app_data" ghcr.io/presenton/presenton:latest
```
### Option 2: Electron (Desktop App)
Run Presenton as a native desktop application. LLM and image provider (API keys, etc.) can be configured in the app; the same environment variables used for Docker apply when running the bundled backend.
**Prerequisites:** Node.js (LTS), npm, Python 3.11, and [uv](https://docs.astral.sh/uv/) (for the Electron FastAPI backend in `electron/servers/fastapi`).
**Setup (first time):**
```bash
cd electron
npm run setup:env
```
This installs Node dependencies, runs `uv sync` in the FastAPI server, and installs Next.js dependencies.
**Run in development:**
```bash
npm run dev
```
This compiles TypeScript and starts Electron; the backend and UI run locally in the desktop window.
**Build distributable (optional):**
To create installers for Windows, macOS, or Linux:
```bash
npm run build:all
npm run dist
```
Outputs are written to `electron/dist` (or as per your electron-builder config).
## Deployment Configurations
### ⚙️ Deployment Configurations
These settings apply to both Docker and the Electron app's backend. You may want to directly provide your API KEYS as environment variables and keep them hidden. You can set these environment variables to achieve it.
- **CAN_CHANGE_KEYS=[true/false]**: Set this to **false** if you want to keep API Keys hidden and make them unmodifiable.
- **LLM=[openai/google/anthropic/ollama/custom]**: Select **LLM** of your choice.
- **OPENAI_API_KEY=[Your OpenAI API Key]**: Provide this if **LLM** is set to **openai**
- **OPENAI_MODEL=[OpenAI Model ID]**: Provide this if **LLM** is set to **openai** (default: "gpt-4.1")
- **GOOGLE_API_KEY=[Your Google API Key]**: Provide this if **LLM** is set to **google**
- **GOOGLE_MODEL=[Google Model ID]**: Provide this if **LLM** is set to **google** (default: "models/gemini-2.0-flash")
- **ANTHROPIC_API_KEY=[Your Anthropic API Key]**: Provide this if **LLM** is set to **anthropic**
- **ANTHROPIC_MODEL=[Anthropic Model ID]**: Provide this if **LLM** is set to **anthropic** (default: "claude-3-5-sonnet-20241022")
- **OLLAMA_URL=[Custom Ollama URL]**: Provide this if you want to custom Ollama URL and **LLM** is set to **ollama**
- **OLLAMA_MODEL=[Ollama Model ID]**: Provide this if **LLM** is set to **ollama**
- **CUSTOM_LLM_URL=[Custom OpenAI Compatible URL]**: Provide this if **LLM** is set to **custom**
- **CUSTOM_LLM_API_KEY=[Custom OpenAI Compatible API KEY]**: Provide this if **LLM** is set to **custom**
- **CUSTOM_MODEL=[Custom Model ID]**: Provide this if **LLM** is set to **custom**
- **TOOL_CALLS=[Enable/Disable Tool Calls on Custom LLM]**: If **true**, **LLM** will use Tool Call instead of Json Schema for Structured Output.
- **DISABLE_THINKING=[Enable/Disable Thinking on Custom LLM]**: If **true**, Thinking will be disabled.
- **WEB_GROUNDING=[Enable/Disable Web Search for OpenAI, Google And Anthropic]**: If **true**, LLM will be able to search web for better results.
- CAN_CHANGE_KEYS=[true/false]: Set this to **false** if you want to keep API Keys hidden and make them unmodifiable.
- LLM=[openai/google/anthropic/ollama/custom]: Select **LLM** of your choice.
- OPENAI_API_KEY=[Your OpenAI API Key]: Provide this if **LLM** is set to **openai**
- OPENAI_MODEL=[OpenAI Model ID]: Provide this if **LLM** is set to **openai** (default: "gpt-4.1")
- GOOGLE_API_KEY=[Your Google API Key]: Provide this if **LLM** is set to **google**
- GOOGLE_MODEL=[Google Model ID]: Provide this if **LLM** is set to **google** (default: "models/gemini-2.0-flash")
- ANTHROPIC_API_KEY=[Your Anthropic API Key]: Provide this if **LLM** is set to **anthropic**
- ANTHROPIC_MODEL=[Anthropic Model ID]: Provide this if **LLM** is set to **anthropic** (default: "claude-3-5-sonnet-20241022")
- OLLAMA_URL=[Custom Ollama URL]: Provide this if you want to custom Ollama URL and **LLM** is set to **ollama**
- OLLAMA_MODEL=[Ollama Model ID]: Provide this if **LLM** is set to **ollama**
- CUSTOM_LLM_URL=[Custom OpenAI Compatible URL]: Provide this if **LLM** is set to **custom**
- CUSTOM_LLM_API_KEY=[Custom OpenAI Compatible API KEY]: Provide this if **LLM** is set to **custom**
- CUSTOM_MODEL=[Custom Model ID]: Provide this if **LLM** is set to **custom**
- TOOL_CALLS=[Enable/Disable Tool Calls on Custom LLM]: If **true**, **LLM** will use Tool Call instead of Json Schema for Structured Output.
- DISABLE_THINKING=[Enable/Disable Thinking on Custom LLM]: If **true**, Thinking will be disabled.
- WEB_GROUNDING=[Enable/Disable Web Search for OpenAI, Google And Anthropic]: If **true**, LLM will be able to search web for better results.
You can also set the following environment variables to customize the image generation provider and API keys:
- **DISABLE_IMAGE_GENERATION**: If **true**, Image Generation will be disabled for slides.
- **IMAGE_PROVIDER=[dall-e-3/gpt-image-1.5/gemini_flash/nanobanana_pro/pexels/pixabay/comfyui]**: Select the image provider of your choice.
- DISABLE_IMAGE_GENERATION: If **true**, Image Generation will be disabled for slides.
- IMAGE_PROVIDER=[dall-e-3/gpt-image-1.5/gemini_flash/nanobanana_pro/pexels/pixabay/comfyui]: Select the image provider of your choice.
- Required if **DISABLE_IMAGE_GENERATION** is not set to **true**.
- **OPENAI_API_KEY=[Your OpenAI API Key]**: Required if using **dall-e-3** or **gpt-image-1.5** as the image provider.
- **DALL_E_3_QUALITY=[standard/hd]**: Optional quality setting for **dall-e-3** (default: `standard`).
- **GPT_IMAGE_1_5_QUALITY=[low/medium/high]**: Optional quality setting for **gpt-image-1.5** (default: `medium`).
- **GOOGLE_API_KEY=[Your Google API Key]**: Required if using **gemini_flash** or **nanobanana_pro** as the image provider.
- **PEXELS_API_KEY=[Your Pexels API Key]**: Required if using **pexels** as the image provider.
- **PIXABAY_API_KEY=[Your Pixabay API Key]**: Required if using **pixabay** as the image provider.
- **COMFYUI_URL=[Your ComfyUI server URL]** and **COMFYUI_WORKFLOW=[Workflow JSON]**: Required if using **comfyui** to route prompts to a self-hosted ComfyUI workflow.
- OPENAI_API_KEY=[Your OpenAI API Key]: Required if using **dall-e-3** or **gpt-image-1.5** as the image provider.
- DALL_E_3_QUALITY=[standard/hd]: Optional quality setting for **dall-e-3** (default: `standard`).
- GPT_IMAGE_1_5_QUALITY=[low/medium/high]: Optional quality setting for **gpt-image-1.5** (default: `medium`).
- GOOGLE_API_KEY=[Your Google API Key]: Required if using **gemini_flash** or **nanobanana_pro** as the image provider.
- PEXELS_API_KEY=[Your Pexels API Key]: Required if using **pexels** as the image provider.
- PIXABAY_API_KEY=[Your Pixabay API Key]: Required if using **pixabay** as the image provider.
- COMFYUI_URL=[Your ComfyUI server URL] and COMFYUI_WORKFLOW=[Workflow JSON]: Required if using **comfyui** to route prompts to a self-hosted ComfyUI workflow.
You can disable anonymous telemetry using the following environment variable:
- **DISABLE_ANONYMOUS_TELEMETRY=[true/false]**: Set this to **true** to disable anonymous telemetry.
- DISABLE_ANONYMOUS_TELEMETRY=[true/false]: Set this to **true** to disable anonymous telemetry.
> **Note:** You can freely choose both the LLM (text generation) and the image provider. Supported image providers: **dall-e-3**, **gpt-image-1.5** (OpenAI), **gemini_flash**, **nanobanana_pro** (Google), **pexels**, **pixabay**, and **comfyui** (self-hosted).
> Note: You can freely choose both the LLM (text generation) and the image provider. Supported image providers: **dall-e-3**, **gpt-image-1.5** (OpenAI), **gemini_flash**, **nanobanana_pro** (Google), **pexels**, **pixabay**, and **comfyui** (self-hosted).
### Using OpenAI
<br>
<br>
```bash
docker run -it --name presenton -p 5000:80 -e LLM="openai" -e OPENAI_API_KEY="******" -e IMAGE_PROVIDER="dall-e-3" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
**Docker Run Examples by Provider**
- Using OpenAI
<pre><code class="language-bash">docker run -it --name presenton -p 5000:80 -e LLM="openai" -e OPENAI_API_KEY="******" -e IMAGE_PROVIDER="dall-e-3" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
### Using Google
- Using Google
<pre><code class="language-bash">docker run -it --name presenton -p 5000:80 -e LLM="google" -e GOOGLE_API_KEY="******" -e IMAGE_PROVIDER="gemini_flash" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
```bash
docker run -it --name presenton -p 5000:80 -e LLM="google" -e GOOGLE_API_KEY="******" -e IMAGE_PROVIDER="gemini_flash" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
- Using Ollama
<pre><code class="language-bash">docker run -it --name presenton -p 5000:80 -e LLM="ollama" -e OLLAMA_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="*******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
### Using Ollama
- Using Anthropic
<pre><code class="language-bash">docker run -it --name presenton -p 5000:80 -e LLM="anthropic" -e ANTHROPIC_API_KEY="******" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
```bash
docker run -it --name presenton -p 5000:80 -e LLM="ollama" -e OLLAMA_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="*******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
- Using OpenAI Compatible API
<pre><code class="language-bash">docker run -it -p 5000:80 -e CAN_CHANGE_KEYS="false" -e LLM="custom" -e CUSTOM_LLM_URL="http://*****" -e CUSTOM_LLM_API_KEY="*****" -e CUSTOM_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="********" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
### Using Anthropic
- Running Presenton with GPU Support
To use GPU acceleration with Ollama models, you need to install and configure the NVIDIA Container Toolkit. This allows Docker containers to access your NVIDIA GPU.
Once the NVIDIA Container Toolkit is installed and configured, you can run Presenton with GPU support by adding the `--gpus=all` flag:
<pre><code class="language-bash">docker run -it --name presenton --gpus=all -p 5000:80 -e LLM="ollama" -e OLLAMA_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="*******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest</code></pre>
```bash
docker run -it --name presenton -p 5000:80 -e LLM="anthropic" -e ANTHROPIC_API_KEY="******" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
#
### Using OpenAI Compatible API
### ✨ Generate Presentation via API
```bash
docker run -it -p 5000:80 -e CAN_CHANGE_KEYS="false" -e LLM="custom" -e CUSTOM_LLM_URL="http://*****" -e CUSTOM_LLM_API_KEY="*****" -e CUSTOM_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="********" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
#### Running Presenton with GPU Support
To use GPU acceleration with Ollama models, you need to install and configure the NVIDIA Container Toolkit. This allows Docker containers to access your NVIDIA GPU.
**Generate Presentation**
Once the NVIDIA Container Toolkit is installed and configured, you can run Presenton with GPU support by adding the `--gpus=all` flag:
<p>
<strong>Endpoint:</strong> <code>/api/v1/ppt/presentation/generate</code><br>
<strong>Method:</strong> <code>POST</code><br>
<strong>Content-Type:</strong> <code>application/json</code>
</p>
```bash
docker run -it --name presenton --gpus=all -p 5000:80 -e LLM="ollama" -e OLLAMA_MODEL="llama3.2:3b" -e IMAGE_PROVIDER="pexels" -e PEXELS_API_KEY="*******" -e CAN_CHANGE_KEYS="false" -v "./app_data:/app_data" ghcr.io/presenton/presenton:latest
```
> **Note:** GPU acceleration significantly improves the performance of Ollama models, especially for larger models. Make sure you have sufficient GPU memory for your chosen model.
## Generate Presentation over API
**Request Body**
### Generate Presentation
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Required</th>
<th>Description</th>
</tr>
</thead>
<tbody>
Endpoint: `/api/v1/ppt/presentation/generate`
<tr>
<td><code>content</code></td>
<td>string</td>
<td>Yes</td>
<td>Main content used to generate the presentation.</td>
</tr>
Method: `POST`
<tr>
<td><code>slides_markdown</code></td>
<td>string[] | null</td>
<td>No</td>
<td>Provide custom slide markdown instead of auto-generation.</td>
</tr>
Content-Type: `application/json`
<tr>
<td><code>instructions</code></td>
<td>string | null</td>
<td>No</td>
<td>Additional generation instructions.</td>
</tr>
#### Request Body
<tr>
<td><code>tone</code></td>
<td>string</td>
<td>No</td>
<td>
Text tone (default: <code>"default"</code>).
Options: <code>default</code>, <code>casual</code>, <code>professional</code>,
<code>funny</code>, <code>educational</code>, <code>sales_pitch</code>
</td>
</tr>
| Parameter | Type | Required | Description |
| ------------------------- | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| content | string | Yes | The content for generating the presentation |
| slides_markdown | string[] \| null | No | The markdown for the slides |
| instructions | string \| null | No | The instruction for generating the presentation |
| tone | string | No | The tone to use for the text (default: "default"). Available options: "default", "casual", "professional", "funny", "educational", "sales_pitch" |
| verbosity | string | No | How verbose the text should be (default: "standard"). Available options: "concise", "standard", "text-heavy" |
| web_search | boolean | No | Whether to enable web search (default: false) |
| n_slides | integer | No | Number of slides to generate (default: 8) |
| language | string | No | Language for the presentation (default: "English") |
| template | string | No | Template to use for the presentation (default: "general") |
| include_table_of_contents | boolean | No | Whether to include a table of contents (default: false) |
| include_title_slide | boolean | No | Whether to include a title slide (default: true) |
| files | string[] \| null | No | Files to use for the presentation. Use /api/v1/ppt/files/upload to upload files |
| export_as | string | No | Export format (default: "pptx"). Available options: "pptx", "pdf" |
<tr>
<td><code>verbosity</code></td>
<td>string</td>
<td>No</td>
<td>
Content density (default: <code>"standard"</code>).
Options: <code>concise</code>, <code>standard</code>, <code>text-heavy</code>
</td>
</tr>
#### Response
<tr>
<td><code>web_search</code></td>
<td>boolean</td>
<td>No</td>
<td>Enable web search grounding (default: <code>false</code>).</td>
</tr>
```json
{
<tr>
<td><code>n_slides</code></td>
<td>integer</td>
<td>No</td>
<td>Number of slides to generate (default: <code>8</code>).</td>
</tr>
<tr>
<td><code>language</code></td>
<td>string</td>
<td>No</td>
<td>Presentation language (default: <code>"English"</code>).</td>
</tr>
<tr>
<td><code>template</code></td>
<td>string</td>
<td>No</td>
<td>Template name (default: <code>"general"</code>).</td>
</tr>
<tr>
<td><code>include_table_of_contents</code></td>
<td>boolean</td>
<td>No</td>
<td>Include table of contents slide (default: <code>false</code>).</td>
</tr>
<tr>
<td><code>include_title_slide</code></td>
<td>boolean</td>
<td>No</td>
<td>Include title slide (default: <code>true</code>).</td>
</tr>
<tr>
<td><code>files</code></td>
<td>string[] | null</td>
<td>No</td>
<td>
Files to use in generation.
Upload first via <code>/api/v1/ppt/files/upload</code>.
</td>
</tr>
<tr>
<td><code>export_as</code></td>
<td>string</td>
<td>No</td>
<td>
Export format (default: <code>"pptx"</code>).
Options: <code>pptx</code>, <code>pdf</code>
</td>
</tr>
</tbody>
</table>
**Response**
<pre><code class="language-json">{
"presentation_id": "string",
"path": "string",
"edit_path": "string"
}
```
}</code></pre>
#### Example Request
```bash
curl -X POST http://localhost:5000/api/v1/ppt/presentation/generate \
**Example Request**
<pre><code class="language-bash">curl -X POST http://localhost:5000/api/v1/ppt/presentation/generate \
-H "Content-Type: application/json" \
-d '{
"content": "Introduction to Machine Learning",
@ -265,71 +410,81 @@ curl -X POST http://localhost:5000/api/v1/ppt/presentation/generate \
"language": "English",
"template": "general",
"export_as": "pptx"
}'
```
}'</code></pre>
#### Example Response
```json
{
**Example Response**
<pre><code class="language-json">{
"presentation_id": "d3000f96-096c-4768-b67b-e99aed029b57",
"path": "/app_data/d3000f96-096c-4768-b67b-e99aed029b57/Introduction_to_Machine_Learning.pptx",
"edit_path": "/presentation?id=d3000f96-096c-4768-b67b-e99aed029b57"
}
```
}</code></pre>
> **Note:** Make sure to prepend your server's root URL to the path and edit_path fields in the response to construct valid links.
<blockquote>
<strong>Note:</strong>
Prepend your servers root URL to <code>path</code> and
<code>edit_path</code> to construct valid links.
</blockquote>
For detailed info checkout [API documentation](https://docs.presenton.ai/using-presenton-api).
**Documentation & Tutorials**
### API Tutorials
<ul>
<li>
<a href="https://docs.presenton.ai/using-presenton-api">
Full API Documentation
</a>
</li>
<li>
<a href="https://docs.presenton.ai/tutorial/generate-presentation-over-api">
Generate Presentations via API in 5 Minutes
</a>
</li>
<li>
<a href="https://docs.presenton.ai/tutorial/generate-presentation-from-csv">
Create Presentations from CSV using AI
</a>
</li>
<li>
<a href="https://docs.presenton.ai/tutorial/create-data-reports-using-ai">
Create Data Reports Using AI
</a>
</li>
</ul>
- [Generate Presentations via API in 5 minutes](https://docs.presenton.ai/tutorial/generate-presentation-over-api)
- [Create Presentations from CSV using AI](https://docs.presenton.ai/tutorial/generate-presentation-from-csv)
- [Create Data Reports Using AI](https://docs.presenton.ai/tutorial/create-data-reports-using-ai)
#
## Roadmap
### 🚀 Roadmap
- [x] Support for custom HTML templates by developers
- [x] Support for accessing custom templates over API
- [x] Implement MCP server
- [ ] Ability for users to change system prompt
- [x] Support external SQL database
Track the public roadmap on GitHub Projects: [https://github.com/orgs/presenton/projects/2](https://github.com/orgs/presenton/projects/2)
## UI Features
#
### 1. Add prompt, select number of slides and language
### 📺 Latest YouTube Videos
![Demo](readme_assets/images/prompting.png)
### 2. Select theme
<p align="left">
<a href="https://youtu.be/vvCj23ySjLg">
<img src="https://ytcards.demolab.com/?id=vvCj23ySjLg&title=Tired+of+Generic+AI+Slides%3F+Use+Your+Existing+Presentations+as+Templates+with+Presenton%21&lang=en&background_color=%230d1117&title_color=%23ffffff&stats_color=%23dedede&max_title_lines=2&width=250&border_radius=5" />
</a>
![Demo](readme_assets/images/select-theme.png)
<a href="https://youtu.be/rqr2J2ci0DI">
<img src="https://ytcards.demolab.com/?id=rqr2J2ci0DI&title=How+to+Build+an+AI+Agent+That+Creates+Company+Pitch+Decks+(Python,+OpenAI,+Presenton)&lang=en&background_color=%230d1117&title_color=%23ffffff&stats_color=%23dedede&max_title_lines=2&width=250&border_radius=5" />
</a>
### 3. Review and edit outline
<a href="https://youtu.be/grKoA3u1CMk">
<img src="https://ytcards.demolab.com/?id=grKoA3u1CMk&title=Generate+AI+Presentations+via+API+in+5+Minutes+%7C+Open-Source+Tutorial&lang=en&background_color=%230d1117&title_color=%23ffffff&stats_color=%23dedede&max_title_lines=2&width=250&border_radius=5" />
</a>
![Demo](readme_assets/images/outline.png)
<a href="https://youtu.be/L25NSkZj7nk">
<img src="https://ytcards.demolab.com/?id=L25NSkZj7nk&title=Full+Setup+Guide%3A+Presenton+-+Your+Self-Hosted,+Open-Source+AI+Presentation+Generator&lang=en&background_color=%230d1117&title_color=%23ffffff&stats_color=%23dedede&max_title_lines=2&width=250&border_radius=5" />
</a>
</p>
### 4. Select theme
![Demo](readme_assets/images/select-theme.png)
### 5. Present on app
![Demo](readme_assets/images/present.png)
### 6. Change theme
![Demo](readme_assets/images/change-theme.png)
### 7. Export presentation as PDF and PPTX
![Demo](readme_assets/images/export-presentation.png)
## Community
[Discord](https://discord.gg/9ZsKKxudNE)
## License
Apache 2.0
<p align="left">
<a href="https://www.youtube.com/@presentonai?sub_confirmation=1">
<img src="https://img.shields.io/badge/Subscribe-6C47FF?style=for-the-badge&logo=cloud&logoColor=white" />
</a>
</p>