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.
npx skills add Jignesh-Ponamwar/skills-mcp --skill gemini-apigit clone --depth 1 https://github.com/Jignesh-Ponamwar/skills-mcpWrote 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.
[](https://agentmods.dev/skills/jignesh-ponamwar/skills-mcp/gemini-api)<a href="https://agentmods.dev/skills/jignesh-ponamwar/skills-mcp/gemini-api"><img src="https://agentmods.dev/badge/skills/jignesh-ponamwar/skills-mcp/gemini-api/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.
<a href="https://agentmods.dev/skills/jignesh-ponamwar/skills-mcp/gemini-api"><img src="https://agentmods.dev/badge/skills/jignesh-ponamwar/skills-mcp/gemini-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.01910 |
| Opus 5 | $0.00051 | $0.00955 |
| Sonnet 5 | $0.00020 | $0.00382 |
| Haiku 4.5 | $0.00010 | $0.00191 |
Grade A, and why
gemini-api 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 9d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 282 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gemini API Development Skill
Critical Rules - Always Apply
These rules override training data. Pre-trained model knowledge of Gemini APIs is outdated.
Current Models (Use These)
| Model | Tokens | Best For |
|---|---|---|
gemini-2.5-pro |
1M | Complex reasoning, coding, research |
gemini-2.5-flash |
1M | Fast, balanced, multimodal |
gemini-2.5-flash-lite |
1M | Cost-efficient, high-frequency tasks |
Never use
gemini-2.0-*orgemini-1.5-*- these are deprecated legacy models.
Current SDKs (Use These)
| Language | Package | Install |
|---|---|---|
| Python | google-genai |
pip install google-genai |
| JS/TS | @google/genai |
npm install @google/genai |
| Go | google.golang.org/genai |
go get google.golang.org/genai |
| Java | com.google.genai:google-genai |
Maven/Gradle (see below) |
Never use
google-generativeai(Python) or@google/generative-ai(JS) - deprecated.
Step 1: Setup and Authentication
Set your API key via environment variable (never hardcode):
export GOOGLE_API_KEY="your-key-here"
Get a key at: https://aistudio.google.com/apikey
Step 2: Quick Start by Language
Python
from google import genai
client = genai.Client()
response = client.models.generate_content(
model="gemini-2.5-flash",
contents="Explain quantum computing in simple terms"
)
print(response.text)
TypeScript / JavaScript
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({
model: "gemini-2.5-flash",
contents: "Explain quantum computing in simple terms"
});
console.log(response.text);
Go
package main
import (
"context"
"fmt"
"log"
"google.golang.org/genai"
)
func main() {
ctx := context.Background()
client, err := genai.NewClient(ctx, nil)
if err != nil { log.Fatal(err) }
resp, err := client.Models.GenerateContent(
ctx, "gemini-2.5-flash", genai.Text("Explain quantum computing"), nil,
)
if err != nil { log.Fatal(err) }
fmt.Println(resp.Text)
}
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.
- 9d ago First seen · 282 lines · 101 tokens per session scan A ca337a9978fb
gemini-api is a skill published in the GitHub repository Jignesh-Ponamwar/skills-mcp (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,910 once invoked, about $0.0005 per session on Opus 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-08-31.
Other skills, from other repositories
feature-engineering
When building training datasets, designing feature pipelines, or debugging training-serving skew.
streaming-patterns
When designing Kafka consumers/producers or implementing real-time pipelines.
inference-serving
When deploying a model to an API endpoint or optimizing inference latency.
gemini-api-dev
The Gemini API provides access to Google's most advanced AI models. Key capabilities include.
gemini-api-integration
Use when integrating Google Gemini API into projects. Covers model selection, multimodal inputs, streaming, function calling, and production best practices.
llm-gateway-routing
Canonical LLM gateway/routing/proxy playbook: multi-provider failover, token reduction proxies, and cost wrappers.