Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gemini-api-integration

Skill by sickn33

Guides AI agents through integrating the Google Gemini API into Node.js, Python, or browser projects. It covers model selection, multimodal inputs, streaming, function calling, and production practices.

  • Score 81
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gemini-api-integration

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/gemini-api-integration ~/.claude/skills/gemini-api-integration

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gemini-api-integration in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The gemini-api-integration skill guides AI agents through integrating the Google Gemini API into applications. It covers model selection, text generation, multimodal inputs, streaming, function calling, and failure handling. The source uses the Google GenAI SDK, named as @google/genai for JavaScript and google-genai for Python.

The guide asks the agent to keep API keys on the server, pin SDK versions, and check model availability and pricing in official documentation before choosing a model. Function calls proposed by the model are treated as untrusted and must be validated before dispatch. It is aimed at developers adding Gemini to Node.js, Python, or browser projects. The source states that its examples are unexecuted integration templates.

Written from the project's SKILL.md and checked against it.

What it can do

  • Model selectionHelps choose a Gemini model after checking availability, deprecations, pricing and feature support.
  • Server-side generationShows how to call generateContent from Node.js or Python with a key read from the environment.
  • Streaming responsesUses streaming interfaces and handles partial output, cancellation and blocked responses.
  • Multimodal inputsGuides sending text with image, audio or video, including MIME type and retention checks.
  • Function callingValidates model tool calls against an allowlist and schema before running them.
  • Chat history handlingPreserves conversation turns and function-call identifiers, and uses system instruction fields.
  • Failure handlingInspects structured errors and retries only transient failures with bounded backoff.

What you need

  • Google Gemini API key
  • Node.js with @google/genai or Python with google-genai
  • Access to a Gemini model on the account

Try asking

  • Set up a Node.js script that calls Gemini with a streamed response
  • Add function calling to my Gemini chat with an allowlist of tools
  • Show me how to send an image with a text prompt to Gemini in Python

Good to know

  • Examples are unexecuted templates and do not confirm account access or production readiness
  • SDK syntax, model availability, quotas and pricing change over time
  • Older @google/generative-ai and google-generativeai APIs are not covered as current guidance
  • Gemini API keys must not be shipped in browser code

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/gemini-api-integration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to gemini-api-integration

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

gemini-api-integration: common questions

Which Gemini SDK does this skill use?

The source uses the Google GenAI SDK, @google/genai for JavaScript and google-genai for Python. It says the older generative-ai packages are not current setup guidance.

Should the Gemini API key go in browser code?

No. The source says never to ship a long-lived key in browser code and recommends a secret manager or protected environment.

Are the code examples tested?

The source says they are unexecuted integration templates. It recommends running a small non-sensitive prompt against a test project first.

How do I install gemini-api-integration?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gemini-api-integration free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is gemini-api-integration safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to gemini-api-integration?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

gemini-api-integration Install

Add to stack

Loading.