Agent skill · Backend & API

gemini-api-integration

Use when integrating Google Gemini API into projects. Covers model selection, multimodal inputs, streaming, function calling, and production best practices.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill gemini-api-integration --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/ai-llm/gemini-api-integration/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Gemini API Integration ## Overview This skill guides AI agents through integrating Google Gemini API into applications — from basic text generation to advanced multimodal, function calling, and streaming use cases. It covers the full Gemini SDK lifecycle with production-grade patterns. ## When to Use This Skill - Use when setting up Gemini API for the first time in a Node.js, Python, or browser project - Use when implementing multimodal inputs (text + image/audio/video) - Use when adding streaming responses to improve perceived latency - Use when implementing function calling / tool use with Gemini - Use when optimizing model selection (Flash vs Pro vs Ultra) for cost and performance - Use when debugging Gemini API errors, rate limits, or quota issues ## Step-by-Step Guide ### 1. Installation & Setup **Node.js / TypeScript:** ```bash npm install @google/generative-ai ``` **Python:** ```bash pip install google-generativeai ``` Set your API key securely: ```bash export GEMINI_API_KEY="your-api-key-here" ``` ### 2. Basic Text Generation **Node.js:** ```javascript import { GoogleGenerativeAI } from "@google/generative-ai"; const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_K

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Step-by-Step Guide
  4. 1. Installation & Setup
  5. 2. Basic Text Generation
  6. 3. Streaming Responses
  7. 4. Multimodal Input (Text + Image)
  8. 5. Function Calling / Tool Use
  9. 6. Multi-turn Chat
  10. 7. Model Selection Guide
  11. Best Practices
  12. Error Handling
  13. Troubleshooting
Ships with 1 file
  • metadata.json
Commands it runs
npm install @google/generative-ai
pip install google-generativeai
export GEMINI_API_KEY="your-api-key-here"
More from claude-skill-registry
All skills →
About this skill
What does the gemini-api-integration skill do?

Use when integrating Google Gemini API into projects. Covers model selection, multimodal inputs, streaming, function calling, and production best practices.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill gemini-api-integration --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going