Skip to content

Web Application that uses Node.js and OpenAI to Generate Images

Notifications You must be signed in to change notification settings

NaviRocker/OpenAI-Image-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c08a687 · Feb 11, 2023

History

6 Commits
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023
Feb 11, 2023

Repository files navigation

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.

About

Web Application that uses Node.js and OpenAI to Generate Images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published