Skip to content

jefftrojan/my-dalle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My-dall-e

This is a simple project that showcases the use of ReactJS, NodeJS, and OpenAI's DALL-E API to replicate a DALL-E like image generator.

Requirements

To run this project, you will need:

Node.js installed on your machine OpenAI API key

Installation

  1. Clone the repository:
git clone /~https://github.com/jefftrojan/my-dalle.git
  1. Navigate to the project directory:
cd my-dalle

  1. Install the project dependencies:
npm install
  1. Create a .env file in the root directory and add the following environment variables:
OPENAI_API_KEY=<your_api_key>
  1. Run the project
npm start

Usage

Visit http://localhost:3000/ in your browser to view the application. You can deploy the application if you want to

Enter a prompt for the image you want to generate in the input field.

Click on the "Generate Image" button.

The generated image will be displayed on the screen.

Limitations

The DALL-E API is still in the beta version and may not always work as expected. The free tier of OpenAI's API has a limit of 5,000 requests per month, after which you will be charged. This project is for educational purposes only and should not be used for commercial purposes.

Credits

This project was created by Jeff Trojan. It was built using ReactJS, NodeJS, and OpenAI's DALL-E API.