Build An AI Image Generator With OpenAI & Node.js
In this project, we will use OpenAI and the DALL-E model to create a web app that will generate images from scratch based on the entered text.
💻 Code:
https://github.com/bradtraversy/nodejs-openai-image
📄OpenAI Docs:
https://beta.openai.com/
⭐ All Courses:
https://traversymedia.com
💖 Show Support
Patreon: https://www.patreon.com/traversymedia
PayPal: https://paypal.me/traversymedia
👇 Follow Traversy Media On Social Media:
Twitter: https://twitter.com/traversymedia
Instagram: https://www.instagram.com/traversymedia
Linkedin: https://www.linkedin.com/in/bradtraversy
Timestamps:
0:00 – Intro
2:00 – Setup & Install Dependencies
3:33 – Express Server & ENV Variables
6:03 – Route & Controller
9:58 – OpenAI Library Request/Response
15:17 – Request Body Data
19:34 – Frontend Setup
24:00 – Form Event Listener
26:38 – GenerateImageRequest() Function
31:45 – Display Image in DOM
33:20 – Using The App & Outro
source