ai-content-generator

AI-Powered Content Generator

A Laravel-based platform that generates content using AI. Users can input a prompt, select tone, language, and word count, then get AI-generated content instantly. Supports both OpenAI GPT API and a local fallback generator.

Features

Installation

  1. Clone the repository:
git clone https://github.com/makdia/ai-content-generator.git
cd content-generator
  1. Install PHP dependencies:
composer install
  1. Install Node.js dependencies:
npm install
  1. Compile assets:
npm run dev
  1. Copy .env.example to .env and configure:
cp .env.example .env
php artisan key:generate
  1. Run migrations:
php artisan migrate
  1. Serve the application:
php artisan serve  

Usage

  1. Navigate to http://localhost:8000

  2. Enter your prompt in the input field.

  3. Click Generate to create AI-generated content.

Environment Variables

Update your .env file with:

OPENAI_API_KEY=your_api_key_here

Example

Input:  "Write a product description for a smart fitness watch"
Output: "Stay ahead of your fitness goals with our sleek Smart Fitness Watch – track your heart rate, steps, and sleep patterns with precision..."

🎥 Demo

Demo Screenshot

👉 Watch Full Demo Video