Skip to content

NextFrontierBuilds/deck-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PitchDeck Genius

AI-powered pitch deck generator with photorealistic images.

🌐 pitchdeckgenius.com

Features

  • 🎨 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

How It Works

  1. Describe your startup — One paragraph is all we need
  2. AI plans your deck — 12 slides, perfectly structured
  3. DALL-E generates images — Photorealistic, brand-colored
  4. Download your PDF — Investor-ready in minutes

Quick Start

Local Development

# 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

Deploy to Railway

  1. Create new project on Railway
  2. Add PostgreSQL database
  3. Connect this repo
  4. Set environment variables:
    • OPENAI_API_KEY
    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
    • S3_BUCKET
    • SECRET_KEY
  5. Deploy!

API Endpoints

Auth

POST /api/auth/register  - Create account
POST /api/auth/login     - Get access token
GET  /api/auth/me        - Get current user

Decks

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

Create a 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"
    }
  }'

Architecture

Mobile App → FastAPI Backend → OpenAI (DALL-E + GPT) → S3 → PDF
  1. One LLM call (GPT-4o-mini) generates slide content + image prompts
  2. DALL-E 3 generates photorealistic images
  3. Playwright renders HTML templates to PDF
  4. S3 stores images and final PDF

Cost per Deck

Component Cost
GPT-4o-mini (planning) ~$0.02
DALL-E 3 (12 images) ~$0.96
S3 storage ~$0.01
Total ~$1.00

Tech Stack

  • FastAPI - API framework
  • PostgreSQL - Database
  • OpenAI - GPT-4o-mini + DALL-E 3
  • Playwright - PDF generation
  • Jinja2 - HTML templating
  • S3 - File storage

License

MIT


Built by Next Frontier

About

PitchDeck Genius — AI-powered pitch deck generator with photorealistic DALL-E images. FastAPI, Playwright, S3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors