Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 674 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 674 Bytes

OpenAI Image Generator

This is a simple image generator built with Node.js and Express that uses OpenAI's Dall-E models to generate images.

Usage

Create a new file inside the project and name it .env and the add the following into it

PORT = 5000
OPENAI_API_KEY = 'ADD_YOUR_KEY_HERE'

Generate an API KEY at OpenAI and replace it with ADD_YOUR_KEY_HERE in the .env file.

Install the dependencies

npm install

Run server

npm start

Visit http://localhost:5000 in your browser.

The endpoint is at POST http://localhost:5000/openai/generateimage.