错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Overview of the OpenAI APIs

  • Tom Auger,
  • Emma Saroyan

摘要

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.