Giter VIP home page Giter VIP logo

nodejs-openai-image's Introduction

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.

nodejs-openai-image's People

Contributors

bradtraversy avatar kallyas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-openai-image's Issues

Port 5000 OSX is in use

Just wanted to leave a note that port 5000 by default on my mac Ventura 13.0.1 had port 5000 in use. After some googling I found it to be the AIRPLAY receiver service for sending media / image etc to your mac.

It's easy to change the port or to disable airplay but for anyone facing that issue on an npm start on a mac that is most likely the case.

Thanks, @bradtraversy for the awesome repo. checking it out meow.

Error: "invalid_api_key"

I generate my new API key from Here But when i send a request to postman I receive "invalid_api_key" from my terminal and get a response from postman { "success": false, "error": "Image could not be generated!" }

Can you tell me what the heck is this :(

Request Keeps lagging

I sent a POST request to http://localhost:5000/openai/generateimage but nothing happens, it keeps running until it eventually times out. My network connection is ok. I checked the network status on the request and it's pending.

Can anyone help with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.