Google Gemini

Integrate your application with the Google Gemini API

🚀 Quickstart

Connect to Google Gemini with Tenklo and see data flow in 2 minutes.

Create the integration

In Tenklo (free signup), go to Integrations -> Configure New Integration -> Google Gemini.

Authorize Google Gemini

Go to Connections -> Add Test Connection -> Authorize, then enter your Google Gemini API key. Later, you'll let your users do the same directly from your app.

Call the Google Gemini API

Let's make your first request to the Google Gemini API (list models). Replace the placeholders below with your API key, integration ID, and connection ID:

curl "https://api.tenklo.dev/proxy/v1beta/models" \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"

Or fetch credentials with the Node SDK or API.

✅ You're connected! Check the Logs tab in Tenklo to inspect requests.

Implement Tenklo in your app

Follow our Auth implementation guide to integrate Tenklo in your app.

📚 Google Gemini Integration Guides

Tenklo maintained guides for common use cases.

Official docs: Google Gemini API docs

🧩 Pre-built syncs & actions for Google Gemini

Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.

Others

Function nameDescriptionTypeSource code
batch-embed-contentsGenerate embeddings for multiple text contents in a single request.Action🔗 Github
count-tokensCount tokens for a given request without generating a response.Action🔗 Github
delete-fileDelete an uploaded file from the Gemini Files API.Action🔗 Github
embed-contentGenerate a single embedding vector for text content.Action🔗 Github
generate-contentGenerate content using a Gemini model with optional system instructions, tools, and generation config.Action🔗 Github
get-fileRetrieve metadata for a specific uploaded file.Action🔗 Github
get-modelRetrieve a specific Gemini model by name.Action🔗 Github
list-cached-contentsList cached content entries (context cache) with pagination.Action🔗 Github
list-filesList files uploaded to the Gemini Files API.Action🔗 Github
list-modelsList available Gemini models with pagination.Action🔗 Github
cached-contentsSync cached content entries (context cache)Sync🔗 Github
modelsSync available Gemini modelsSync🔗 Github

On this page