> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Gemini

> How to set up the Google Gemini connector, plus the actions and events that are available.

![Google Gemini](https://stackone-logos.com/api/gemini/filled/svg)

v4.0.1[See changelog](https://docs.stackone.com/connectors/googlegemini/changelog.md)

[37 actions](#actions) · [10 events](#events) · 2 auth methods

AI

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [API Key · Connector Profile](https://docs.stackone.com/connectors/googlegemini/guides/connector-profile/api-key.md)
>
> No app registration required. The key gives access as its Google Cloud project, not on behalf of a user.

> [card] [OAuth 2.0 · Connector Profile](https://docs.stackone.com/connectors/googlegemini/guides/connector-profile/oauth-2-0.md)
>
> Delegated access on behalf of the signed-in Google user, using an OAuth client in a Google Cloud project.

Optionally, configure receiving Events for Google Gemini into StackOne.

> [card] [Webhooks setup](https://docs.stackone.com/connectors/googlegemini/guides/webhook-setup.md)

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [API Key · Link Account](https://docs.stackone.com/connectors/googlegemini/guides/link-account/api-key.md)

> [card] [OAuth 2.0 · Link Account](https://docs.stackone.com/connectors/googlegemini/guides/link-account/oauth-2-0.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

Authentication type

Select all
|
Clear

API Key

OAuth 2.0

No auth methods found

Scopes

Select all
|
Clear

https\://​www\.googleapis.com/auth/cloud-platform

https\://​www\.googleapis.com/auth/devstorage.read\_only

https\://​www\.googleapis.com/auth/generative-language.retriever

https\://​www\.googleapis.com/auth/generative-language.retriever.readonly

No scopes found

37 actions

ActionDescriptionRequired scopes

Create Cached Content`googlegemini_create_cached_content`

Cache content for reuse across multiple requests

`https://​www.googleapis.com/auth/generative-language.retriever``https://​www.googleapis.com/auth/devstorage.read_only`

Get Cached Content`googlegemini_get_cached_content`

Retrieve cached content details and status

`https://​www.googleapis.com/auth/generative-language.retriever.readonly``https://​www.googleapis.com/auth/devstorage.read_only`

List Cached Contents`googlegemini_list_cached_contents`

List all cached content resources

`https://​www.googleapis.com/auth/generative-language.retriever.readonly``https://​www.googleapis.com/auth/devstorage.read_only`

Update Cached Content`googlegemini_update_cached_content`

Partially update cached content properties (extend TTL) — uses PATCH, not full replace

`https://​www.googleapis.com/auth/generative-language.retriever``https://​www.googleapis.com/auth/devstorage.read_only`

Delete Cached Content`googlegemini_delete_cached_content`

Delete a cached content resource

`https://​www.googleapis.com/auth/generative-language.retriever``https://​www.googleapis.com/auth/devstorage.read_only`

Generate Content`googlegemini_generate_content`

Generate text content from a prompt using a Gemini model

`https://​www.googleapis.com/auth/generative-language.retriever`

Stream Generate Content`googlegemini_stream_generate_content`

Stream generated content in real-time using Server-Sent Events

`https://​www.googleapis.com/auth/generative-language.retriever`

Batch Embed Contents`googlegemini_batch_embed_contents`

Generate embeddings for multiple items in a single synchronous call

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Embed Content`googlegemini_embed_content`

Generate high-quality embedding vectors for text or multimodal content using Gemini embedding models

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Async Batch Embed Content`googlegemini_async_batch_embed_content`

Enqueue large batches of embedding requests for cost-effective asynchronous processing

`https://​www.googleapis.com/auth/generative-language.retriever`

Get File`googlegemini_get_file`

Get metadata about an uploaded file

`https://​www.googleapis.com/auth/generative-language.retriever.readonly``https://​www.googleapis.com/auth/devstorage.read_only`

List Files`googlegemini_list_files`

List all uploaded files

`https://​www.googleapis.com/auth/generative-language.retriever.readonly``https://​www.googleapis.com/auth/devstorage.read_only`

Register File`googlegemini_register_file`

Register Google Cloud Storage objects as Gemini files without uploading

`https://​www.googleapis.com/auth/generative-language.retriever``https://​www.googleapis.com/auth/devstorage.read_only`

Delete File`googlegemini_delete_file`

Delete an uploaded file

`https://​www.googleapis.com/auth/generative-language.retriever``https://​www.googleapis.com/auth/devstorage.read_only`

Generate Image`googlegemini_generate_image`

Generate images using Imagen 4 models (paid account required)

`https://​www.googleapis.com/auth/generative-language.retriever`

List Models`googlegemini_list_models`

List all available Gemini models

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Get Model`googlegemini_get_model`

Get details about a specific Gemini model

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Get Operation Status`googlegemini_get_operation`

Get status of a long-running operation (batch, video generation, etc.)

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Cancel Operation`googlegemini_cancel_operation`

Cancel a long-running operation

`https://​www.googleapis.com/auth/generative-language.retriever`

List Operations`googlegemini_list_operations`

List all long-running operations

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Count Tokens`googlegemini_count_tokens`

Count tokens in a prompt without generating content

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Generate Video`googlegemini_generate_video`

Generate videos using Veo models (paid account or quota required)

`https://​www.googleapis.com/auth/generative-language.retriever`

Create File Search Store`googlegemini_create_file_search_store`

Create an empty file search store for document indexing and retrieval

`https://​www.googleapis.com/auth/generative-language.retriever`

List File Search Stores`googlegemini_list_file_search_stores`

List all file search stores

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Get File Search Store`googlegemini_get_file_search_store`

Get details of a specific file search store

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Delete File Search Store`googlegemini_delete_file_search_store`

Delete a file search store

`https://​www.googleapis.com/auth/generative-language.retriever`

Import File To Search Store`googlegemini_import_file_to_search_store`

Import a file from the Files API into a file search store for semantic search

`https://​www.googleapis.com/auth/generative-language.retriever``https://​www.googleapis.com/auth/devstorage.read_only`

List File Search Store Documents`googlegemini_list_file_search_store_documents`

List all documents in a file search store

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Get File Search Store Document`googlegemini_get_file_search_store_document`

Get details of a specific document within a file search store

`https://​www.googleapis.com/auth/generative-language.retriever.readonly`

Delete File Search Store Document`googlegemini_delete_file_search_store_document`

Delete a specific document from a file search store

`https://​www.googleapis.com/auth/generative-language.retriever`

List Webhooks`googlegemini_list_webhooks`

List all webhooks registered on the project.

`https://​www.googleapis.com/auth/cloud-platform`

Get Webhook`googlegemini_get_webhook`

Get a single webhook by id.

`https://​www.googleapis.com/auth/cloud-platform`

Ping Webhook`googlegemini_ping_webhook`

Send a test delivery to a webhook's endpoint.

`https://​www.googleapis.com/auth/cloud-platform`

Create Webhook`googlegemini_create_webhook`

Register a webhook on the project.

`https://​www.googleapis.com/auth/cloud-platform`

Update Webhook`googlegemini_update_webhook`

Update a webhook's endpoint, event list, or display name.

`https://​www.googleapis.com/auth/cloud-platform`

Rotate Webhook Signing Secret`googlegemini_rotate_webhook_signing_secret`

Issue a new signing secret for a webhook.

`https://​www.googleapis.com/auth/cloud-platform`

Delete Webhook`googlegemini_delete_webhook`

Delete a webhook from the project.

`https://​www.googleapis.com/auth/cloud-platform`

## Events

Tags

Select all
|
Clear

Batch

Interactions

Video

Webhooks

No tags found

10 events

EventDescriptionTags

Active Check`googlegemini_active_check`

Responds 200 OK to ping deliveries and any event type without a registered handler.

Webhooks

Batch Succeeded`googlegemini_webhook_batch_succeeded`

Fired when a batch job finishes processing successfully.

Batch

Batch Failed`googlegemini_webhook_batch_failed`

Fired when a batch job terminates with a system or validation error.

Batch

Batch Expired`googlegemini_webhook_batch_expired`

Fired when a batch job is not processed within its 24-hour window.

Batch

Batch Cancelled`googlegemini_webhook_batch_cancelled`

Fired when a batch job is cancelled by the user.

Batch

Interaction Completed`googlegemini_webhook_interaction_completed`

Fired when a long-running interaction finishes successfully.

Interactions

Interaction Failed`googlegemini_webhook_interaction_failed`

Fired when a long-running interaction terminates with an error.

Interactions

Interaction Requires Action`googlegemini_webhook_interaction_requires_action`

Fired when a background interaction pauses and waits for a function call result.

Interactions

Interaction Cancelled`googlegemini_webhook_interaction_cancelled`

Fired when a long-running interaction is cancelled.

Interactions

Video Generated`googlegemini_webhook_video_generated`

Fired when a Veo video generation job finishes and the file is ready.

Video


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.