The Image Generator is a Node.js application that generates images using the OpenAI API. It allows you to create custom images by leveraging the power of OpenAI's image generation capabilities.
-
Clone the repository:
git clone https://github.com/milliorn/image-generator.git
-
Install the required dependencies. The application uses the following libraries:
- dotenv
- express
- openai
- sweetalert2
You can install the dependencies by running the following command:
npm install
-
Set up your environment variables. Create a
.env
file in the root directory and add your OpenAI API key. For example:OPENAI_API_KEY=your-api-key
-
Start the application:
npm start
-
Open your browser and navigate to http://localhost:3000 to access the Image Generator.
Contributions are welcome! If you have any ideas, bug fixes, or improvements, feel free to create an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
https://github.com/openai/openai-node
https://beta.openai.com/docs/guides/images/usage
https://beta.openai.com/docs/guides/images/error-handling