npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@leolin310148/n8n-nodes-gemini-ai-studio

v0.2.2

Published

n8n community node for the Google Gemini API via direct AI Studio REST calls.

Readme

n8n-nodes-gemini-ai-studio

n8n community node for the Google Gemini API, designed around the current AI Studio REST API instead of a bundled SDK. It keeps runtime dependencies at zero: requests go directly to https://generativelanguage.googleapis.com and the API key is stored only in n8n credentials.

Features

| Resource | Operations | | --- | --- | | Content | Generate Content, Stream Generate Content | | Cached Content | Create, Get, List, Update, Delete | | Token | Count Tokens | | Embedding | Embed Content, Batch Embed Contents | | File | Upload, Get, List, Delete | | Model | List, Get |

The node includes structured fields for common settings such as system instruction, temperature, response MIME type, thinking config, safety settings, tools, function declarations, and embeddings dimensionality. Content generation supports simple text, inline binary data, Files API fileData URIs, and raw JSON for newly released Gemini API fields.

The node also exposes n8n AI connections:

  • Language Model output when Resource is Content
  • Embeddings output when Resource is Embedding

Use these outputs to connect Gemini AI Studio directly to n8n AI Agent, Chain, or Vector Store nodes.

Credentials

Create a Google Generative AI API credential:

  • API Key: key from Google AI Studio
  • Base URL: defaults to https://generativelanguage.googleapis.com
  • API Version: defaults to v1beta

The credential sends the key as the X-goog-api-key header. Do not hard-code API keys in workflows or source files.

Example

The provided curl example maps to:

  • Resource: Content
  • Operation: Generate Content
  • Model: gemini-flash-latest
  • Input Mode: Simple Text
  • Prompt: Explain how AI works in a few words

The request body generated by the node is:

{
  "contents": [
    {
      "parts": [
        {
          "text": "Explain how AI works in a few words"
        }
      ]
    }
  ]
}

To send multimodal input in simple mode, add Multimodal Parts and choose either an input binary property for Gemini inlineData or a Files API URI for Gemini fileData.

Build & install locally

npm install
npm run build

mkdir -p ~/.n8n/custom
npm link
cd ~/.n8n/custom
npm link @leolin310148/n8n-nodes-gemini-ai-studio

n8n start

Then add a Gemini AI Studio node in n8n.