A modern web application that provides access to various AI agents for content generation, image creation, code generation, and more. Built with Next.js, Express, and various AI models.
- Content Writer: Generate high-quality, engaging content for various purposes
- Code Generator: Create production-ready code with explanations and best practices
- Flux Image Generator: Create stunning AI-generated images from text descriptions
- Recraft Image Generator: Generate images with customizable styles using Recraft AI
- Background Remover: Remove backgrounds from images with high precision
- Image Enlarger: Upscale images by 2x or 4x while maintaining quality
- Text to Audio: Convert text to natural-sounding speech using Kokoro voice model
- Image Caption: Generate accurate descriptions of images using AI
- Next.js 14
- React
- TypeScript
- Tailwind CSS
- Lucide React (icons)
- React Markdown
- Express.js
- Node.js
- OpenAI API
- Replicate API
- Node.js 18+ installed
- OpenAI API key
- Replicate API token
- Clone the repository:
git clone https://github.com/yourusername/ai-agent.git
cd ai-agent
- Install dependencies for both frontend and backend:
# Install frontend dependencies
npm install
# Install backend dependencies
cd backend
npm install
- Set up environment variables:
# In the backend directory
cp .env.example .env
Edit .env
and add your API keys:
OPENAI_API_KEY
: Your OpenAI API keyREPLICATE_API_TOKEN
: Your Replicate API token
- Start the backend server:
cd backend
npm start
The server will run on http://localhost:3001
- In a new terminal, start the frontend:
# From the root directory
npm run dev
The application will be available at http://localhost:3000
-
Content Writer
- Generate blog posts, articles, and marketing content
- Adjustable tone and style
- Customizable word count
-
Flux Image Generator
- Create images from text descriptions
- Multiple art styles available
- Customizable aspect ratios
-
Code Generator
- Support for multiple programming languages
- Different code types (functions, classes, APIs)
- Optional test generation
-
Text to Audio
- Convert text to natural speech
- Multiple voices available
- Adjustable speech speed
-
Image Caption
- Generate detailed image descriptions
- Custom analysis prompts
- Natural language output
-
Background Remover
- Clean background removal
- Supports various image formats
- High-precision output
-
Image Enlarger
- 2x and 4x upscaling
- Maintains image quality
- AI-powered enhancement
-
Recraft Image Generator
- Multiple artistic styles
- Various size options
- Professional-quality output
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for their powerful language models
- Replicate for their diverse AI model marketplace
- The open-source community for various tools and libraries used in this project