# Google Gemini integration

> Google's Gemini API for text, image, audio, and video generation, plus embeddings and token counting.

- Authentication: apiKey

## Tools (32)

- **Batch Embed Contents**: Generate multiple text embeddings in a single request. Uses the same model for every entry.
- **Cancel Batch**: Cancel a running batch job before it completes.
- **Count Tokens**: Count how many tokens a given prompt or full request would consume before sending it.
- **Create Batch**: Kick off a batch generateContent job (up to 24h turnaround at ~50% cost of interactive calls).
- **Create Cached Content**: Cache a large context (system instructions, documents, tools) for reuse in subsequent generateContent calls at lower cost.
- **Create File Search Store**: Create a File Search store — a managed vector index used with the file_search tool in generateContent.
- **Delete Batch**: Delete a batch job record and its stored results.
- **Delete Cached Content**: Delete a cached content entry to free tokens and stop future charges tied to it.
- **Delete Document from File Search Store**: Remove a specific document from a File Search store.
- **Delete File**: Permanently delete an uploaded file before its 48-hour auto-expiration.
- **Delete File Search Store**: Delete a File Search store and all its indexed documents.
- **Embed Content**: Generate a single text embedding vector using a Gemini embedding model.
- **Generate Content**: Generate text (or multimodal output) from a prompt using a Gemini model. Core chat/completion endpoint.
- **Generate Image**: Generate an image from a text prompt using a Nano Banana image model. Reuses the generateContent endpoint.
- **Generate Speech**: Generate speech audio from text using a Gemini TTS model. Reuses the generateContent endpoint.
- **Generate Video**: Start a Veo video generation job from a text prompt. Returns a long-running operation to poll.
- **Get Batch**: Poll the status of a batch job and retrieve results when complete.
- **Get Cached Content**: Get metadata for a specific cached content entry.
- **Get File**: Get metadata for a specific uploaded file — including processing state.
- **Get File Search Store**: Get metadata for a specific File Search store.
- **Get Model**: Get metadata for a specific Gemini or Veo model — token limits, supported methods, default sampling params.
- **Get Operation**: Poll the status of a long-running operation (Veo video generation). Returns the finished video when done.
- **Import File to Search Store**: Import a file (already uploaded via Files API) into a File Search store — chunks, embeds, and indexes it.
- **List Batches**: List batch jobs owned by the calling API key.
- **List Cached Contents**: List cached-content entries owned by the calling API key.
- **List Documents in File Search Store**: List documents indexed in a File Search store.
- **List Files**: List files previously uploaded to the Files API by the calling API key.
- **List File Search Stores**: List File Search stores owned by the calling API key.
- **List Models**: List the Gemini and Veo models available to the calling API key, with capabilities and token limits.
- **Stream Generate Content**: Same as Generate Content but streams partial candidate chunks as they're produced.
- **Update Cached Content**: Extend the TTL/expiration of an existing cached content entry.
- **Upload File**: Upload media (image, PDF, audio, video) to the Files API for use in subsequent generateContent calls.

## Related prompts

- [Turn new Google Drive contracts into Notion risk briefs with Gemini](https://www.generalinput.com/prompts/turn-new-google-drive-contracts-into-notion-risk-briefs-with-gemini.md)
- [Auto-digest your support inbox to Slack with Gemini](https://www.generalinput.com/prompts/auto-digest-your-support-inbox-to-slack-with-gemini.md)
- [Turn Airtable product briefs into Nano Banana mockups](https://www.generalinput.com/prompts/turn-airtable-product-briefs-into-nano-banana-mockups.md)
- [Hourly invoice extraction from Google Drive to Sheets with Gemini](https://www.generalinput.com/prompts/hourly-invoice-extraction-from-google-drive-to-sheets-with-gemini.md)

Connect Google Gemini in General Input: https://www.generalinput.com/apps/google-gemini