How To Integrate Open AI’s ML Models in Your JS Projects

Create your own Jarvis, GitHub Copilot, DALLE-2…well, anything you can think of.

Valerie
Dare To Be Better

--

It takes years to train a decent Machine Learning Model. Computers are not as smart as we might think so they take their sweet time while learning to find the difference between cats and dogs.

But luckily, you don’t have to spend years collecting cute cat and dog pictures to train your own ML model. Instead, you can take advantage of existing models, trained by hundreds of people. These models are pretty savvy already: some of them can write a poem, some write code, and some draw beautiful pictures.

The model I wanted to focus on today is GPT-3. Some even call it a humanoid in the making, that’s how smart this model is. In a nutshell, it takes a prompt and gives you real text as an output. The model can create anything from a tweet to an entire poem or a short story. Recently, I had fun integrating it into one of my Next.js projects, so I learned a few neat tricks that I wanted to share today.

💡 Hint: Please note that this is not a beginner-friendly, step-by-step guide. I assume you already know JavaScript and use Next.js or Node.js in your project. If you need a step-by-step tutorial, I included a link below!

--

--

Valerie
Dare To Be Better

Self-taught software engineer, mom, avid reader, and artist writing about coding, creativity, and everything in between. ✨