amirlogic / openai-api-boilerplate

Prompt ChatGPT and Image generator from the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenAI API Boilerplate

Prompt ChatGPT and Image generator from the command line

You need to have an OpenAI account and generate an API key

After cloning this repo:

  1. Create .env file: $ touch .env
  2. Edit .env file and set OPENAI_API_KEY with your API key

Usage:

$ npm run chat $ npm run image

About

Prompt ChatGPT and Image generator from the command line


Languages

Language:JavaScript 100.0%