Skip to content

whatjackhasmade/dalle-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  1. Clone the repository to your local machine git clone https://github.com/whatjackhasmade/dalle-node.git
  2. Install the dependencies npm install
  3. Clone .env.example to .env and fill with your Bearer token

Getting a Bearer Token

  1. Go to https://openai.com/dall-e-2/
  2. Create a OpenAI Account
  3. Go to https://labs.openai.com/
  4. Open the Network Tab in Developer Tools
  5. Type a prompt and press "Generate"
  6. Look for fetch to https://labs.openai.com/api/labs/tasks
  7. In the request header look for authorization then get the Bearer Token

Generate images

  1. Create an array of lyrics in src/const/lyrics/{song-name}.ts
  2. Update the imported lyrics in src/index.ts, by default we are using src/const/lyrics/riders-on-the-storm.ts
  3. Run npm run dev to generate the images

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published