AI Studio is a cutting-edge web application that transforms text descriptions into stunning visual artwork using advanced AI technology. Built with the MERN stack, it offers a professional, user-friendly interface for creating, managing, and downloading AI-generated images.
- π¨ AI-Powered Image Generation - Transform text prompts into high-quality images
- π Multiple Art Styles - Choose from 8+ artistic styles (Realistic, Anime, 3D, Watercolor, etc.)
- π Secure Authentication - JWT-based user authentication system
- π³ Credit-Based System - Flexible pricing with starter credits
- π± Responsive Design - Works perfectly on desktop, tablet, and mobile
- π Complete History - Track and manage all your generated images
- β¬οΈ High-Quality Downloads - Download images in multiple resolutions
- π Modern UI/UX - Professional dark theme with smooth animations
- React 18 - Modern UI library with hooks
- Vite - Lightning-fast build tool
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Smooth animations and transitions
- Axios - HTTP client for API calls
- React Router DOM - Client-side routing
- React Toastify - Beautiful notifications
- Node.js - JavaScript runtime
- Express.js - Web application framework
- MongoDB - NoSQL database
- Mongoose - MongoDB object modeling
- JWT - JSON Web Token authentication
- bcryptjs - Password hashing
- ClipDrop API - AI image generation service
- Node.js (v16 or higher)
- MongoDB database
- ClipDrop API key
-
Clone the repository
git clone https://github.com/utkxrsh13/Text_to_Image.git cd Text_to_Image
-
Setup Backend
cd server npm install
-
Setup Frontend
cd ../client npm install
-
Environment Configuration
Create
.env
file in the server directory:MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret_key CLIPDROP_API=your_clipdrop_api_key PORT=8000
Create
.env
file in the client directory:VITE_BACKEND_URL=http://localhost:8000
-
Start the Application
Backend (Terminal 1):
cd server npm start
Frontend (Terminal 2):
cd client npm run dev
-
Open your browser
- Frontend:
http://localhost:5173
- Backend API:
http://localhost:8000
- Frontend:
- Create an account or sign in
- Get 5 free credits to start
- Navigate to the generation page
- Choose your preferred art style
- Enter a descriptive prompt
- Click generate and wait for the magic!
- View all generated images in History
- Download high-resolution versions
- Copy prompts for reuse
- Track your credit usage
- Visit the pricing page
- Choose from flexible plans
- Get more credits and premium features
Style | Description | Best For |
---|---|---|
Realistic | Photographic quality images | Portraits, landscapes |
Anime | Japanese animation style | Characters, fantasy art |
Pixel Art | Retro 8-bit graphics | Game assets, nostalgic art |
3D | Three-dimensional rendered art | Modern designs, products |
Watercolor | Traditional watercolor painting | Soft, artistic scenes |
Oil Painting | Classic oil painting technique | Fine art, portraits |
Sketch | Hand-drawn pencil sketches | Concepts, quick art |
Digital Art | Modern digital artwork | Versatile, contemporary |
Plan | Credits | Price | Best For |
---|---|---|---|
Starter | 100 | $9/month | Casual users |
Pro β | 500 | $19/month | Regular creators |
Enterprise | 2000 | $49/month | Professional use |
Text_to_Image/
βββ client/ # Frontend React application
β βββ public/ # Static assets
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Main application pages
β β βββ context/ # Global state management
β β βββ assets/ # Images and static files
β β βββ index.css # Global styles
βββ server/ # Backend Node.js application
β βββ config/ # Database configuration
β βββ controllers/ # Route handlers
β βββ middlewares/ # Custom middleware
β βββ models/ # Database schemas
β βββ routes/ # API routes
β βββ server.js # Main server file
βββ README.md
POST /api/users/register
- User registrationPOST /api/users/login
- User loginGET /api/users/credits
- Get user credits
POST /api/image/generate-image
- Generate new imageGET /api/users/history
- Get user's generation history
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Commit your changes
git commit -m 'Add some amazing feature'
- Push to the branch
git push origin feature/amazing-feature
- Open a Pull Request
- Follow the existing code style
- Write meaningful commit messages
- Add tests for new features
- Update documentation as needed
Found a bug or have a feature request?
- π Report a Bug
- β¨ Request a Feature
- π¬ Join Discussions
- Image editing tools
- Social sharing features
- Favorites system
- Batch generation
- Mobile app (React Native)
- Custom AI model training
- Marketplace for AI art
- API for developers
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this project helpful, please consider:
- β Starring the repository
- π΄ Forking for your own use
- π’ Sharing with others
- π Contributing to improve it
Made with β€οΈ by Utkarsh
Transform your imagination into visual reality with AI Studio