Pixelor.ai is a Python Full-Stack Generative project built with FastAPI (Backend) and Next.js (Frontend). Unlike traditional AI image generation methods that require powerful GPUs and expensive hardware, Pixelor.ai takes a smart approach by leveraging web automation & scraping to generate images using existing AI platforms.
🔹 Frontend: Next.js (React), Tailwind CSS, ShadCN, Framer Motion 🔹 Backend: FastAPI, Selenium, Undetected ChromeDriver 🔹 Automation: Scrapes images from an AI model/vendor using smart automation (bypassing hardware limitations)
Since high-end GPUs required for Stable Diffusion and other AI models were unavailable to me, I decided to take a smart workaround by scraping AI-generated images instead of directly generating them. This allows users to access AI-powered images without requiring any expensive hardware.
- Next.js - React Framework for SSR & SSG
- Framer Motion - UI animations
- Tailwind CSS - Responsive styling
- ShadCN - Modern UI components
- FastAPI - Fast & async API framework
- Selenium - Web automation for image scraping
- Undetected ChromeDriver - Bypassing bot detection
- JSON for session management (cookies handling)
- The user enters a text prompt in the frontend.
- The request is sent to the FastAPI backend.
- The backend automates a web browser using Selenium to log in and enter the prompt on an AI image-generation platform.
- The script extracts the generated image URL and returns it to the frontend.
- The frontend displays the AI-generated image with an option to download it.
- Python 3.12+
- Node.js 21+
I am currently using Python - v3.12.9 and Next.JS - v15.1
git clone https://github.com/Gitkakkar1597/Pixelor.ai
cd pixelor.ai
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
Inside the backend directory, create a .env file and add your ChatGPT credentials:-
EMAIL=your_email@example.com
PASSWORD=your_secure_password
cd frontend
npm install # or yarn install
npm run dev # Starts frontend on localhost:3000
Feel free to contribute! If you have ideas or improvements, create a pull request or open an issue.
👨💻 Developed by SIDDHARTH KAKKAR