Skip to content

Google Gemini (PaLM) 凭据(Google Gemini(PaLM) credentials)#

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

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

先决条件(Prerequisites)#

支持的身份验证方法(Supported authentication methods)#

  • Gemini (PaLM) API 密钥

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

🌐 Refer to Google's Gemini API documentation for more information about the service.

View n8n's Advanced AI documentation.

使用 Gemini (PaLM) API 密钥(Using Gemini(PaLM) API key)#

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • API Host URL:PaLM 和 Gemini 都使用默认的 https://generativelanguage.googleapis.com
  • API 密钥:在 Google AI Studio 中创建一个密钥。

不支持自定义主机

相关节点尚不支持 API 主机的自定义主机或代理,必须使用 https://generativelanguage.googleapis.com

创建 API 密钥:

🌐 To create an API key:

  1. 请前往 Google AI Studio 的 API 密钥页面:https://aistudio.google.com/apikey
  2. 选择 创建 API 密钥
  3. 你可以选择是在新项目中创建 API 密钥,还是搜索现有的 Google Cloud 项目以在现有项目中创建 API 密钥
  4. 复制生成的 API 密钥,并将其添加到你的 n8n 凭据中。