Skip to content

Google Gemini (PaLM) 凭据#

¥Google Gemini(PaLM) credentials

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

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

¥Embeddings Google Gemini

¥Google Gemini Chat Model

¥Embeddings Google PaLM

先决条件#

¥Prerequisites

¥Create a Google Cloud account.

¥Create a Google Cloud Platform project.

支持的身份验证方法#

¥Supported authentication methods

  • Gemini (PaLM) API 密钥

¥Gemini(PaLM) API key

相关资源#

¥Related resources

有关服务的更多信息,请参阅 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 主机 URL:PaLM 和 Gemini 都使用默认的 https://generativelanguage.googleapis.com 实例。

¥The API Host URL: Both PaLM and Gemini use the default https://generativelanguage.googleapis.com.

¥An API Key: Create a key in Google AI Studio.

Custom hosts not supported

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

¥The related nodes don't yet support custom hosts or proxies for the API host and must use https://generativelanguage.googleapis.com.

创建 API 密钥:

¥To create an API key:

  1. 前往 Google AI Studio 中的 API 密钥页面:https://aistudio.google.com/apikey

¥Go to the API Key page in Google AI Studio: https://aistudio.google.com/apikey. 2. 选择“创建 API 密钥”。

¥Select Create API Key. 3. 你可以选择是在新项目中创建 API 密钥,还是搜索现有的 Google Cloud 项目并在现有项目中创建 API 密钥。

¥You can choose whether to Create API key in new project or search for an existing Google Cloud project to Create API key in existing project. 4. 复制生成的 API 密钥,并将其添加到你的 n8n 凭据中。

¥Copy the generated API key and add it to your n8n credential.