This project utilizes the OpenAI API and dallE2 to generate images based on user prompts.
- Clone the repository:
git clone ...
cd dalle2
npm install
- Set up your OpenAI API key:
Create a file named .env in the root directory. Add your OpenAI API key to the .env file:
OPENAI_API_KEY=your-api-key
- Usage
To generate images based on a prompt, run the following command:
- Example
a baby black cat playing with a ball