Overview of the OpenAI APIs
摘要
So far, we have explored two of OpenAI’s flagship AI tools: ChatGPT and DALL-E. Both of these tools can be accessed via a web interface that resembles a chat application. But what if we want to integrate chat and image generation in our own web applications? Fortunately, OpenAI offers this capability through an Application Programming Interface (API). In this chapter, we will introduce the OpenAI APIs, explain how they work, and how to set them up. We will then demonstrate how to use the OpenAI APIs in practice by creating a Next.js web app using OpenAI Node.js library to interact with the chat and image generation APIs.