AI Text Content Generator

AI Text Content Generator · v1.0

AI Text Content Generator Documentation

Overview

AI-powered content generation platform using GPT-4 and Claude. Generate blogs, marketing copy, product descriptions, emails, and more with multiple AI providers. Built with Django 5.2+ and PyTorch.

Demo Mode vs Full Version

The live demo at ai.djangozen.com/content-generator/ runs in Demo Mode without any API keys configured. All generated content in the demo is pre-generated sample text, not real AI output.

After purchasing the full version:

  1. Add your OpenAI API key () and/or Anthropic API key () to the file
  2. Restart the server to enable real AI-powered content generation
  3. Content will be generated live by GPT-4, GPT-4o-mini, or Claude based on your selection

Where to get API keys:
- OpenAI: platform.openai.com - Create an account and generate an API key under API Keys
- Anthropic: console.anthropic.com - Sign up and create an API key in Settings

Quick Start

Requirements

  • Python 3.10+
  • PostgreSQL (recommended) or SQLite
  • OpenAI API key and/or Anthropic API key

Installation

# Clone and setup
git clone <your-repo>
cd ai-text-content-generator
python -m venv venv
source venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Configure environment
cp .env.example .env
# Add your API keys to .env

# Run migrations
python manage.py migrate

# Create superuser
python manage.py createsuperuser

# Start server
python manage.py runserver

Docker Setup

docker-compose up -d

Features

1. Multi-Model Content Generation

Generate content using:
- GPT-4 / GPT-4o-mini: OpenAI models for versatile content
- Claude: Anthropic models for nuanced, long-form content

Switch between models per generation or set a default in settings.

2. Content Types

Supported content types:
- Blog posts and articles
- Marketing copy and ad text
- Product descriptions
- Email templates
- Social media posts
- Technical documentation
- Creative writing
- SEO-optimized content

3. Tone and Style Controls

Customize output with:
- Tone: Professional, casual, friendly, authoritative, humorous
- Length: Short (100 words), medium (300 words), long (800+ words)
- Language: Multi-language output support
- Custom instructions: Add specific guidelines per generation

4. Content Analytics

Track your content generation:
- Generation trends over time
- Model performance comparison
- Content type breakdown
- Token usage and cost tracking

5. Generation History

Full history of all generated content:
- Search and filter by type, model, date
- Copy, edit, or regenerate past content
- Export to PDF, DOCX, or Markdown

API Documentation

REST API with JWT authentication:

POST /api/v1/auth/token/        # Get JWT token
POST /api/v1/generate/          # Generate content
GET  /api/v1/history/           # Generation history
GET  /api/v1/analytics/         # Usage analytics
GET  /api/v1/templates/         # Content templates
PUT  /api/v1/settings/          # Update settings

Generate Content Example

curl -X POST https://your-domain/api/v1/generate/ \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "content_type": "blog_post",
    "topic": "Benefits of AI in recruitment",
    "tone": "professional",
    "length": "medium",
    "model": "gpt-4"
  }'

Configuration

Environment Variables

Variable Description Default
SECRET_KEY Django secret key auto-generated
DEBUG Debug mode True
DATABASE_URL PostgreSQL URL sqlite:///db.sqlite3
OPENAI_API_KEY OpenAI API key required
ANTHROPIC_API_KEY Anthropic API key optional
DEFAULT_MODEL Default AI model gpt-4o-mini

API Key Setup

  1. OpenAI: Get your key at platform.openai.com
  2. Anthropic: Get your key at console.anthropic.com

Add keys to your .env file or configure in the Settings page.

Live Preview

Visit ai.djangozen.com/content-generator/ to see screenshots and feature overview.

Support

Info

Product: AI Text Content Generator

Type: AI Application

Version: 1.0

Updated: Mar 11, 2026


All Documentation