Skip to content

OpenAI 凭证#

¥OpenAI credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

¥Chat OpenAI

¥Embeddings OpenAI

先决条件#

¥Prerequisites

创建 OpenAI 账户

¥Create an OpenAI account.

支持的身份验证方法#

¥Supported authentication methods

  • API 密钥

¥API key

相关资源#

¥Related resources

有关服务的更多信息,请参阅 OpenAI API 文档

¥Refer to OpenAI's API documentation for more information about the service.

使用 API 密钥#

¥Using API key

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • API 密钥

¥An API Key

  • 组织 ID:如果你属于多个组织,则必需;否则,请留空。

¥An Organization ID: Required if you belong to multiple organizations; otherwise, leave this blank.

生成 API 密钥:

¥To generate your API Key:

  1. 登录你的 OpenAI 账户或 create 账户。

¥Login to your OpenAI account or create an account. 2. 打开 API 密钥 页面。

¥Open your API keys page. 3. 选择“创建新密钥”以创建 API 密钥,你可以选择为密钥命名。

¥Select Create new secret key to create an API key, optionally naming the key. 4. 复制你的密钥并将其作为 API 密钥添加到 n8n 中。

¥Copy your key and add it as the API Key in n8n.

更多信息,请参阅 API 快速入门:账户设置文档

¥Refer to the API Quickstart Account Setup documentation for more information.

要查找你的组织 ID:

¥To find your Organization ID:

  1. 前往你的 组织设置 页面。

¥Go to your Organization Settings page. 2. 复制你的组织 ID 并将其作为组织 ID 添加到 n8n 中。

¥Copy your Organization ID and add it as the Organization ID in n8n.

有关更多信息,请参阅 设置组织。请注意,使用组织 ID 发出的 API 请求将计入​​组织的订阅配额。

¥Refer to Setting up your organization for more information. Note that API requests made using an Organization ID will count toward the organization's subscription quota.