LogoAI Meme Generator Docs
LogoAI Meme Generator Docs
HomepageAI Meme Generator Guide
X (Twitter)

AI Meme Generator Guide

A complete guide to AI Meme Generator — the AI-powered platform for creating hilarious, shareable memes in seconds.

What is AI Meme Generator?

AI Meme Generator is an AI-powered meme creation platform that lets you generate hilarious, shareable memes from text descriptions or images. No design experience required — just describe what you want and let AI do the work.

Quick Start

Prerequisites

  • Node.js 18+
  • pnpm (recommended)
  • PostgreSQL database

Installation

git clone https://github.com/zhangst23/ai-meme-generator.git
cd ai-meme-generator
pnpm install

Environment Setup

Copy the example environment file and fill in your values:

cp env.example .env.local

Key environment variables:

# Database
DATABASE_URL=postgresql://user:password@localhost:5432/ai-meme-generator

# Auth
BETTER_AUTH_SECRET=your-secret-key
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret

# Stripe
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...

# Email
RESEND_API_KEY=re_...

# AI (Kie API for image generation)
KIE_API_KEY=your-kie-api-key
NEXT_PUBLIC_KIE_MODEL=z-image

Database Setup

Generate and run migrations:

pnpm db:generate
pnpm db:migrate

Start Development

pnpm dev

Visit http://localhost:3000 to see your app.

Key Features

AI Meme Generation

Generate memes from text or images:

  • Text to Meme: Describe any meme in natural language
  • Image to Meme: Upload images to create hilarious memes
  • Smart Templates: Automatically optimized for every platform
  • Viral-ready Styles: Generate memes that are ready to share

Multi-format Export

Export your creations in any format:

  • PNG — High-quality with transparency support
  • JPG — Optimized for web and social media
  • WebP — Modern format with better compression

Use Cases

Memes for every platform and purpose:

  • Social Media — Perfect for Instagram, Twitter/X, Reddit, TikTok
  • Messaging Apps — Shareable memes for WhatsApp, Telegram, Discord
  • Marketing Campaigns — Humorous memes for brand engagement
  • Community Building — Relatable content for online communities
  • Personal Enjoyment — Funny memes for friends and family

Credit System

Flexible usage-based billing:

  • Monthly credit refresh for subscribers
  • Registration bonus credits
  • Credit packages for additional generations
  • Usage tracking with transaction history

Supported Use Cases

  • Social Media — Viral memes for every platform
  • Marketing & Branding — Humorous content for brand awareness
  • Small Business — Relatable memes without hiring a designer
  • Content Creators — Funny memes and channel art
  • Community Building — Shareable content for engagement
  • Personal Fun — Hilarious memes for any occasion

Common Tasks

Adding a New Page

  1. Create a new file in src/app/[locale]/(marketing)/
  2. Add the route to src/routes.ts
  3. Add navigation links in src/config/navbar-config.tsx

Deploying to Production

pnpm build

The app is ready for deployment on Vercel, Docker, or any Node.js hosting platform.

Learn More

  • Configuration Guide — Customize the platform for your needs
  • API Reference — Explore available endpoints and actions

Table of Contents

What is AI Meme Generator?
Quick Start
Prerequisites
Installation
Environment Setup
Database Setup
Start Development
Key Features
AI Meme Generation
Multi-format Export
Use Cases
Credit System
Supported Use Cases
Common Tasks
Adding a New Page
Deploying to Production
Learn More