Skip to content

OpenAI's GPT-3 model to generate an image with vanilla JavaScript and Node.js.

Notifications You must be signed in to change notification settings

AmalShalabi/openAI-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project demonstrates how to use OpenAI's GPT-3 model to generate an image with vanilla JavaScript and Node.js. You can try out a demo of this project Demo

Prerequisites

Node.js A OpenAI API key (sign up for one here) Installation Clone this repository: git clone https://github.com/AmalShalabi/openAI-image.git Navigate to the project directory: cd ai_image- Install the dependencies: npm install

Usage

Create a .env file in the project root and add your OpenAI API key: OPENAI_API_KEY=your-api-key-here

Run the script: node index.js

Note:

The OpenAI API has rate limits, so if you run into any issues, try waiting a few minutes before trying again.

About

OpenAI's GPT-3 model to generate an image with vanilla JavaScript and Node.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published