Skip to content

Latest commit

 

History

History
97 lines (60 loc) · 3.22 KB

README.md

File metadata and controls

97 lines (60 loc) · 3.22 KB

image ai-image 👨

😄 Please follow the Link below for the wonderful experience

This Web app that uses Node.js and OpenAI to generate automated images through SEO. Also is a simple image generator built with Node.js and Express that uses OpenAI's Dall-E models to generate images. This App is a replicate from the actual API on OpenAI image auto-generator and some modifications was add by me. 🙂

The MG Musty Image AI is an OpenAI application that enable users to generate images by just typing into the search engine box by describing whatever image they want and the AI immediately generates a similar or replicate image.

Generations

The image generations endpoint allows you to create an original image given a text prompt. Generated images can have a size of 256x256, 512x512, or 1024x1024 pixels. Smaller sizes are faster to generate. You can request 1-10 images at a time using the generate key parameter. The more detailed the description, the more likely you are to get the result that you or your end user want.

Caution

The Image generation does not allow erotic or pornographic search, it is censored and have firewall regulations against such items.

Front-End Sampling

screencapture-localhost-5000-2022-12-15-13_25_22

Exhibition

screencapture-localhost-5000-2022-12-13-20_01_53

Usage

Generate an API KEY at OpenAI and add it to the .env file.

  • Download (if you don`t have Node-Js from the website to your computer)
download node-js
  • Install the dependencies
npm install
  • Run commands (install package.son)
npm init -y
  • Install (express and openai environment)
npm i express openai dotenv
  • To keep server running (no need for update)
npm -D nodemon
  • Then edit your package.json file.

  • To start the server run

npm run dev
  • OR Run server
npm start

Create an OpenAI API-KEY

  • Create a file Example.env for the OpenAi API you have to follow;

You have to go to OpenAI and create an account, after creating the account go to settings and check for key-creation and then you can copy your key and paste it at the API-Key in the env file.

But when pushing it to github, you need to remove the key, cause is a secret key, which automatically OpenAI will dictate that your key is on public site and they will automatically disable the key, you have to create another one for the application to render.

But on your local computer is safe and if you are to deploy the application on a hosting site, you need to put it in an environment variable where is not make visible for the third party to see. That's all you need to do.

GoTo Browser paste

localhost:5000

📝 Author

Mustapha Aliyu Galadima