google-gemini-api-knowledge-patch

google-gemini-api-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 13 tokens per session (2,500 once invoked), scanned A, original, MIT.

A technical reference for integrating Google's Gemini artificial-intelligence models through its API. It covers model changes, streamed interactions, tool calls, structured JSON output, media generation, SDKs, limits and billing.

In plain words
What is it for?
Use it when migrating Gemini integrations, adding tool calling or background work, returning validated JSON, handling images or other media, or investigating rate limits and billing.
Why use it?
It helps avoid errors caused by changing API schemas, model endpoints, streaming behavior, quotas and payment rules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it when migrating Gemini integrations, adding tool calling or background work, returning validated JSON, handling images or other media, or investigating rate limits and billing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Nevaberry/nevaberry-plugins --skill google-gemini-api-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-gemini-api-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch/github.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-gemini-api-knowledge-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/google-gemini-api-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,500 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02500
Opus 5.5 $0.00005 $0.01000
Sonnet 5.5 $0.00003 $0.00500
Haiku 4.5 $0.00001 $0.00250

Measured today against content hash f0901f92f74e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

google-gemini-api-knowledge-patch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/knowledge-patch/patches-claude/google-gemini-api-knowledge-patch/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Gemini API Knowledge Patch

Load this skill when migrating Gemini API integrations, selecting model endpoints, implementing Interactions streams or tool calls, generating structured or media outputs, or diagnosing quota and billing behavior.

Reference index

Reference Topics
Models, media, and lifecycle Model migrations, thinking, files, images, video, embeddings, Live audio, transcription, music, grounding, agents, robotics
Interactions API Schema migration, typed steps, history, SSE, output formats, background work, webhooks, logs
Function calling and signatures Tool declarations, choice, results, streaming calls, MCP, signature replay
Structured outputs JSON Schema, recursive schemas, tool combinations, streamed JSON, Python, JavaScript, Java
Gen AI SDK migration SDK availability, Java dependency, Go field types and streams, JavaScript schemas, Python images and caching
Limits and billing Tiers, spend caps, Prepay, Postpay, rate limits, batch quotas, pricing

Breaking request and configuration changes

Remove candidate_count when migrating to a 3-series model; these models do not support it. For gemini-3.6-flash and gemini-3.5-flash-lite, remove temperature, top_p, and top_k: these releases ignore them, and future model generations reject them with HTTP 400.

For those two releases and future models, a last non-empty model turn causes HTTP 400. Remove the trailing prefill and constrain output with an Interactions system_instruction.

For gemini-3.8-flash, replace thinking_budget with generation_config.thinking_level: low, medium (default), or high. Requests using minimal need a different level.

For gemini-3.6-flash, use thinking_level set to medium or high. For gemini-3.5-flash-lite, keep minimal for high-volume extraction or routing; use medium or high for multi-step tool workflows.

Read the full file on GitHub · 200 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 200 lines · 13 tokens per session scan A f0901f92f74e

Subscribe to this mod's changes

google-gemini-api-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 2,500 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

google-gemini-api-knowledge-patch compared with skills from other repositories

google-gemini-api-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-gemini-api-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA13Claude Code
gws-modelarmor-create-templatefakoli/fakoli-pluginsSkill43d agoMITA18Claude Code
gws-modelarmor-sanitize-promptfakoli/fakoli-pluginsSkill43d agoMITA24Claude Code
gws-modelarmorfakoli/fakoli-pluginsSkill43d agoMITA16Claude Code
ai-ml-developmenttravisjneuman/.claudeSkill115todayMITA43Claude Code
memobasemaximskorohod/memobaseSkill2323d agoMITA25Claude Code, Codex
effect-patterns-building-data-pipelinesPaulJPhilp/EffectPatternsSkill8075mo agoMITA31Claude Code