Skip to main content

Google Gemini Connector

Google Gemini Google Gemini is an offering of advanced AI models developed by Google's DeepMind. Use the component to generate chats, images, and videos.

Connections

Google Gemini API

Connect to Google Generative AI (Gemini) using an API key.

Navigate to Google AI Studio and generate an API key. Enter the key value into the connection configuration of the integration.

InputCommentsDefault
API KeyYour Google AI Studio API key. Generate API keys here.

Vertex AI API

Connect to Google Generative AI (Gemini) using Vertex AI.

In order to Authenticate using Vertex:

  1. A Service Account is needed. One may be created in the Google Cloud Platform GCP Console from the IAM & Admin section.
    1. From the Service Account, use the Email value as the Client Email input value in the connection configuration.
  2. Add the following roles to the Service Account:
    1. Vertex AI User or Vertex AI Administrator
    2. Storage Object Viewer
  3. Once a Service Account is created, you will need to generate a Service Account Key
    1. Select the Service Account's options, navigate to the Key tab, and select Add Key to create a new key.
    2. After creating the key, you will be able to download a JSON file that contains the key information. This key contains sensible data and should be used with caution.
    3. Use the key downloaded in the previous step as the Private Key input value in the connection configuration.
  4. The top section of the console will show the current project. Select this to display all projects and *Project IDs**.
  5. Regions will be listed here or by navigating to Vertex AI Dashboard from the console.
  6. Enable the Vertex API by navigating to the Library section of APIs & Services. Search 'Vertex' and select enable for the Vertex AI API.
InputCommentsDefault
Project IDYour Google Cloud project ID.
RegionThe region to use for API requests. Get your region here.
Client EmailThe email address of the client you would like to connect to.
Private KeyThe private key of the client you would like to connect to.

Actions

Conversation

Sends a message to the chat. Optionally, historical messages can be provided to continue the chat.

InputCommentsDefault
PromptThe prompt you want to ask to the model.
Chat HistoryJSON string containing the chat history, you can use this parameter to give the model a context of the conversation.
Model NameThe name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision').
TemperatureControls randomness in the output. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more focused and deterministic.
Max Output TokensMaximum number of tokens to generate in the response.
Top KLimits token selection to the K most likely next tokens.
Top PLimits token selection to tokens with cumulative probability less than P.
Safety SettingsJSON string defining safety settings for content generation.
Extra ParametersExtra parameters to pass to the API.
ConnectionSelect a Google Gemini connection.

Delete File

Deletes a file from the service.

InputCommentsDefault
File NameThe name of the file to delete.
ConnectionSelect a Google Gemini connection.

Generate Image

Generates an image using the Google Generative AI (Gemini) model.

InputCommentsDefault
Model NameThe name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision').
PromptText prompt that typically describes the images to output.
Number of ImagesNumber of images to generate.
LanguageLanguage of the generated content.
Aspect RatioAspect ratio of the generated media.
Extra ParametersExtra parameters to pass to the API.
ConnectionSelect a Google Gemini connection.

Generate Video

Generates a video using the Google Generative AI (Gemini) model.

InputCommentsDefault
Model NameThe name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision').
PromptText prompt that typically describes the video to output.
FPSFPS of the generated video.
Number of VideosNumber of videos to generate.
Person GenerationWhether allow to generate person videos, and restrict to specific ages.
ResolutionResolution of the generated video.
Aspect RatioAspect ratio of the generated media.
Duration SecondsDuration of the clip for video generation in seconds.
Extra ParametersExtra parameters to pass to the API.
ConnectionSelect a Google Gemini connection.

Get File

Retrieves the file information from the service.

InputCommentsDefault
File NameThe name of the file to get.
ConnectionSelect a Google Gemini connection.

Get Model Info

Retrieves detailed information about a specific model from the Google Generative AI API.

InputCommentsDefault
ConnectionSelect a Google Gemini connection.
Model NameThe name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision').

List Files

Lists all current project files from the service.

InputCommentsDefault
Fetch AllIf true, fetch all items.false
Page SizeThe number of items to return per page.
Page TokenThe page token to return.
ConnectionSelect a Google Gemini connection.

List Models

Retrieves a list of available models from the Google Generative AI API.

InputCommentsDefault
Fetch AllIf true, fetch all items.false
Page SizeThe number of items to return per page.
Page TokenThe page token to return.
FilterThe filter to apply to the list.
Extra ParametersExtra parameters to pass to the API.
ConnectionSelect a Google Gemini connection.

Send Prompt

Send a prompt to the chat and provides a response.

InputCommentsDefault
PromptThe text prompt to generate a response for.
Model NameThe name of the model to get information about (e.g., 'gemini-pro', 'gemini-pro-vision').
TemperatureControls randomness in the output. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more focused and deterministic.
Max Output TokensMaximum number of tokens to generate in the response.
Top KLimits token selection to the K most likely next tokens.
Top PLimits token selection to tokens with cumulative probability less than P.
Safety SettingsJSON string defining safety settings for content generation.
Extra ParametersExtra parameters to pass to the API.
ConnectionSelect a Google Gemini connection.

Upload File

Uploads a file asynchronously to the Gemini API.

InputCommentsDefault
FileThe file to upload.
File NameThe name of the file to get.
Display NameThe display name of the file.
ConnectionSelect a Google Gemini connection.