Most AI image tools are complex or pay-walled. Prompt 2 Paint changes that.
A full-stack MERN application that generates stunning images from natural language prompts β fast, free, and frictionless.
const prompt2paint = {
input: "A sunset over cyberpunk Tokyo",
output: "πΌοΈ AI-generated masterpiece",
stack: ["React", "Node.js", "Express", "MongoDB"],
api: "AI Image Generation",
deployedOn: "Vercel",
status: "π’ Live"
};
async function createArt(prompt) {
const image = await ai.generate(prompt);
return image; // β¨ Magic happens here
}| Feature | Description | |
|---|---|---|
| πΌοΈ | Text-to-Image Generation | Type any prompt and watch AI bring it to life |
| β‘ | Blazing Fast | Optimized API calls for rapid image rendering |
| π | Secure Backend | Environment-based API key authentication |
| βΏ | Accessible Design | Mobile-friendly, responsive across all devices |
| π¨ | Clean UI | Minimal, intuitive interface β zero learning curve |
| π | Production Ready | Deployed live with CI/CD pipeline |
| Highlight | |
|---|---|
| β | End-to-end MERN stack implementation |
| β‘ | Optimized API calls for faster image generation |
| π¨ | Clean UI with pixel-perfect responsive design |
| π | Secure environment-based configuration management |
| π | Deployed live with production-grade architecture |
- Node.js
>=16 - MongoDB instance
- AI API key
# Clone the repository
git clone https://github.com/Anas-Sd/Prompt_2_Paint.git
# Navigate to the project
cd Prompt_2_Paint
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Add your API keys to .env
# Start development server
npm run devπ Click to expand API docs
| Parameter | Type | Description |
|---|---|---|
user_token |
string |
Required. Your API key for auth |
| Body Field | Type | Description |
|---|---|---|
title |
string |
Required. Your text prompt |
ποΈ Click to expand file structure
Prompt_2_Paint/
βββ π public/
βββ π assets/
βββ π src/
β βββ π components/
β βββ π pages/
β βββ π context/
βββ π tailwind.config.js
βββ π postcss.config.js
βββ π package.json
βββ π README.md
Contributions are welcome! Here's how:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for details.