- Clone the repository to your local machine
git clone https://github.com/whatjackhasmade/dalle-node.git
- Install the dependencies
npm install
- Clone
.env.example
to.env
and fill with your Bearer token
- Go to https://openai.com/dall-e-2/
- Create a OpenAI Account
- Go to https://labs.openai.com/
- Open the Network Tab in Developer Tools
- Type a prompt and press "Generate"
- Look for fetch to https://labs.openai.com/api/labs/tasks
- In the request header look for authorization then get the Bearer Token
- Create an array of lyrics in
src/const/lyrics/{song-name}.ts
- Update the imported lyrics in
src/index.ts
, by default we are usingsrc/const/lyrics/riders-on-the-storm.ts
- Run
npm run dev
to generate the images