AI-powered pitch deck generator with photorealistic images.
- 🎨 6 professional templates (gradient-fade, split-right, split-left, spotlight, bold-centered, apple-keynote)
- 🖼️ Photorealistic AI-generated images (DALL-E 3)
- 📄 High-quality PDF export
- 🔐 JWT authentication
- 💳 Credit-based usage
- 📱 Mobile-first API
- Describe your startup — One paragraph is all we need
- AI plans your deck — 12 slides, perfectly structured
- DALL-E generates images — Photorealistic, brand-colored
- Download your PDF — Investor-ready in minutes
# Clone
git clone https://github.com/NextFrontierBuilds/deck-api.git
cd deck-api
# Create virtual environment
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
# Install dependencies
pip install -r requirements.txt
# Install Playwright browsers
playwright install chromium
# Copy environment variables
cp .env.example .env
# Edit .env with your API keys
# Run
uvicorn app.main:app --reload- Create new project on Railway
- Add PostgreSQL database
- Connect this repo
- Set environment variables:
OPENAI_API_KEYAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYS3_BUCKETSECRET_KEY
- Deploy!
POST /api/auth/register - Create account
POST /api/auth/login - Get access token
GET /api/auth/me - Get current user
GET /api/decks/templates - List available templates
GET /api/decks - List user's decks
POST /api/decks - Create & generate new deck
GET /api/decks/{id} - Get deck status & details
DELETE /api/decks/{id} - Delete deck
curl -X POST "https://api.pitchdeckgenius.com/api/decks" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Startup Pitch",
"description": "We are building an AI-powered platform that helps developers create pitch decks in minutes. Our target market is early-stage startups and indie hackers.",
"template": "gradient-fade",
"brand_colors": {
"primary": "#6366F1",
"background": "#0F0F0F"
}
}'Mobile App → FastAPI Backend → OpenAI (DALL-E + GPT) → S3 → PDF
- One LLM call (GPT-4o-mini) generates slide content + image prompts
- DALL-E 3 generates photorealistic images
- Playwright renders HTML templates to PDF
- S3 stores images and final PDF
| Component | Cost |
|---|---|
| GPT-4o-mini (planning) | ~$0.02 |
| DALL-E 3 (12 images) | ~$0.96 |
| S3 storage | ~$0.01 |
| Total | ~$1.00 |
- FastAPI - API framework
- PostgreSQL - Database
- OpenAI - GPT-4o-mini + DALL-E 3
- Playwright - PDF generation
- Jinja2 - HTML templating
- S3 - File storage
MIT
Built by Next Frontier