OpenAI has a great quickstart template to help build applications using their APIs. Their APIs have been used for pretty much everything at this point, like generating marketing copy, procedural games, and even code.
Their template uses Next.js on both the frontend and backend, utilizing Next.js Serverless API