https://github.com/shuvra-matrix/dall-e-2-clone--mern-
live demo
https://github.com/shuvra-matrix/dall-e-2-clone--mern-
dalle dalle2 mern-stack nodejs openai react
Last synced: 6 months ago
JSON representation
live demo
- Host: GitHub
- URL: https://github.com/shuvra-matrix/dall-e-2-clone--mern-
- Owner: shuvra-matrix
- Created: 2023-08-10T02:13:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T04:32:40.000Z (over 1 year ago)
- Last Synced: 2025-03-30T04:11:19.222Z (7 months ago)
- Topics: dalle, dalle2, mern-stack, nodejs, openai, react
- Language: JavaScript
- Homepage: https://dalle2ai.netlify.app/
- Size: 780 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DALL-E 2 Clone - Text-to-Image Generation Web App
DALL-E 2 is a cutting-edge web application that harnesses the power of AI to generate images from text descriptions. Inspired by Stable Defusion 2.1, this app allows users to unleash their creativity by converting textual ideas into stunning visual artwork.

## Live Demo
[https://dalle2ai.netlify.app/](https://dalle2ai.netlify.app/)
## Features
- **Text-to-Image Generation:** Input a text description, and DALL-E 2 will generate an image that matches your description.
- **Hugging Face API Integration:** Utilizes the Hugging Face API to power the image generation process with the Stable Defusion 2.1 model.
## Technologies Used
- **Backend:** Developed with Node.js
- **Frontend:** Built using React.js
- **Database:** MongoDB for data storage
- **External API:** OpenAI API via RapidAPI## Installation
To run DALL-E 2 locally, follow these steps:
1. Clone the DALL-E 2 repository to your local machine:
```bash
git clone https://github.com/shuvra-matrix/DALL-E-2-Clone--MERN-.git
```
2. Navigate to the server folder and install the dependencies by running:```bash
cd server
npm install```
3. Set up the environment variables:
```bash
export MONGO_USER=
export MONGO_PASS=
export API_KEY=```
4. Start the server by running:
````bash
npm start```
> The server will run on port 3030.
5. Open a new terminal, navigate to the public folder and install the dependencies:
```bash
cd ../public
npm install```
6. Set up the environment variable for the frontend:
```bash
export REACT_APP_API_KEY=
```
7. Start the frontend by running:
```bash
npm start```
> The frontend will run on port 3000.
1. Open your web browser and access DALL-E 2 Clone by entering `http://localhost:3000` in the address bar.
## Usage
1. Input a text description in the provided field.
2. Click the "Generate" button, and DALL-E 2 will create an image based on your description.
3. Save and share your generated images to inspire and amaze others!
4. If you don't remember any prompt then click surprise me and generate.
## Model Transition
Previously, I used Open AI DALL-E 2 model. Due to some API-related issues, we have transitioned to the Stable Defusion 2.1 model. This change ensures a more stable and reliable experience for our users.
## Thank You, HuggingFace and StabilityAi
I want to express our gratitude to HuggingFace and Stabilityai for their groundbreaking research and for providing access to the incredible Stable Diffusion v2-1 Model through their HuggingFace Inference API. This project would not have been possible without Stabilityai contributions to the field of artificial intelligence.
## Disclaimer
Please note: DALL-E 2 is intended for entertainment and creative purposes. It should not be used to create misleading or harmful content. Users are responsible for the content they generate and share. Respect copyright and use the app responsibly within legal boundaries.
The images generated by DALL-E 2 are the result of AI algorithms and may not always reflect real-world accuracy. Always exercise critical judgment when using the generated images, and remember that they are artistic interpretations.