Generative AI for Web Development book cover

Generative AI for Web Development

Building Web Applications Powered by OpenAI APIs and Next.js

Explore the world of Generative AI and understand why it matters. This book is divided into two parts, introducing tools such as ChatGPT, DALL-E, and shows you how to use them to build AI-powered web apps.

Written by Tom Auger and Emma Saroyan, this practical guide demonstrates how to build a series of web apps with Next.js that showcase how to use the OpenAI APIs - including a Story/Poetry generator, a language learning app, and a blog site with a custom Chatbot widget.

Buy the book

What you will learn

  • Learn how to use and integrate Generative AI into web applications with real-world examples
  • Understand the legal, ethical, and security concerns with using Generative AI in web development
  • Explore how to utilize ChatGPT, DALL-E and OpenAI APIs to generate code for your web projects
  • Build three complete web applications with Next.js and OpenAI APIs
  • Get insights into alternative models beyond OpenAI

Source Code

All source code examples from the book are available on GitHub:

  • Magic Carpets Website - A Next.js web app generated with ChatGPT and DALL-E
  • Content Generator - Using OpenAI Chat API and Image API
  • Story Generator - Create stories and poetry with AI illustrations
  • Language Learning App - AI-powered quizzes for language learning
  • Interactive Blog - Blog with an AI chat widget for content questions
View Repository

Corrections and feedback

We maintain a list of corrections for the book as they are identified.

Please send any corrections you find to genaiforwebdev [at] tomauger [dot] am.