Skip to content

Vercel AI Gateway 凭证#

¥Vercel AI Gateway credentials

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

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

¥Chat Vercel AI Gateway

先决条件#

¥Prerequisites

创建 Vercel 账户。

¥Create a Vercel account.

支持的身份验证方法#

¥Supported authentication methods

  • API 密钥

¥API key

  • OIDC 令牌

¥OIDC token

相关资源#

¥Related resources

请参阅 Vercel AI Gateway 文档,了解更多关于服务的信息。

¥Refer to the Vercel AI Gateway documentation for more information about the service.

使用 API 密钥#

¥Using API key

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • API 密钥

¥An API Key

生成 API 密钥:

¥To generate your API Key:

  1. 登录 Vercel创建账户

¥Login to Vercel or create an account. 2. 前往 Vercel 控制面板,选择 AI Gateway 标签页。

¥Go to the Vercel dashboard and select the AI Gateway tab. 3. 在左侧边栏中选择 API 密钥。

¥Select API keys on the left side bar. 4. 选择“添加密钥”,然后在对话框中选择“创建密钥”。

¥Select Add key and proceed with Create key from the Dialog. 5. 复制你的密钥并将其作为 API 密钥添加到 n8n 中。

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

使用 OIDC 令牌#

¥Using OIDC token

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • OIDC 令牌

¥An OIDC token

生成 OIDC 令牌:

¥To generate your OIDC token:

  1. 在本地开发中,使用 vc link 命令将你的应用链接到 Vercel 项目。

¥In local development, link your application to a Vercel project with the vc link command. 2. 运行 vercel env pull 命令以从 Vercel 获取环境变量。

¥Run the vercel env pull command to pull the environment variables from Vercel. 3. 复制你的令牌并将其作为 OIDC TOKEN 添加到 n8n 中。

¥Copy your token and add it as the OIDC TOKEN in n8n.