DinoHimaj / NodeJS-OpenAI-Image-Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Rename the example.env file to .env.

Generate an API KEY at OpenAI and add it to 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.

I deployed this website with Heroku. You can check it out here

About


Languages

Language:CSS 51.9%Language:JavaScript 30.8%Language:HTML 17.1%Language:Shell 0.3%