Vercel AI Gateway 凭证(Vercel AI Gateway credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
创建一个 Vercel 账户。
🌐 Create a Vercel account.
支持的身份验证方法(Supported authentication methods)#
- API 密钥
- OIDC 令牌
相关资源(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 密钥
生成 API 密钥:
🌐 To generate your API Key:
- 登录 Vercel 或 创建账户。
- 前往 Vercel 仪表板并选择 AI 网关 标签。
- 在左侧边栏选择 API 密钥。
- 选择 添加密钥,然后在对话框中继续选择 创建密钥。
- 复制你的密钥,并将其作为 API 密钥 添加到 n8n 中。
使用 OIDC 令牌(Using OIDC token)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- 一个 OIDC 令牌
生成 OIDC 令牌:
🌐 To generate your OIDC token:
- 在本地开发中,使用
vc link命令将你的应用链接到 Vercel 项目。 - 运行
vercel env pull命令以从 Vercel 获取环境变量。 - 复制你的令牌,并将其作为 OIDC TOKEN 添加到 n8n 中。