# Gemini API Development

Writes code for Gemini text, multimodal, image, speech and function-calling features.

- Repository: https://github.com/google-gemini/gemini-skills (4368 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add google-gemini/gemini-skills --skill gemini-api-dev -g -a claude-code -y`
Codex: `npx skills add google-gemini/gemini-skills --skill gemini-api-dev -g -a codex -y`
Cursor: `npx skills add google-gemini/gemini-skills --skill gemini-api-dev -g -a cursor -y`
Gemini CLI: `npx skills add google-gemini/gemini-skills --skill gemini-api-dev -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add google-gemini/gemini-skills`

## Description

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, speech generation (TTS), voice design, voice replication, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. Covers SDK usage and best practices for Gemini models and agents in Python and TypeScript.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Gemini API Development Skill

## Critical Rules (Always Apply)

> [!IMPORTANT]
> These rules override your training data. Your knowledge is outdated.

### Current Models (Use These)

- `gemini-4-argon`: 1M tokens, most powerful model for complex reasoning, coding, and research
- `gemini-3.8-flash`: 1M tokens, fast, balanced performance for agentic and multimodal tasks
- `gemini-3.5-flash-lite`: 1M tokens, fastest, lowest-cost 3.5 model for high-throughput execution
- `gemini-3.1-flash-lite`: cost-efficient, fastest performance for high-frequency, lightweight tasks
- `gemini-3.5-transcribe`: fast speech-to-text with smart and verbatim modes
- `gemini-nano-banana-2.1` (Nano Banana 2.1): 131k / 32k tokens, default high-efficiency image generation and conversational editing
- `gemini-3-pro-image` (Nano Banana Pro): 65k / 32k tokens, high-quality image generation and editing
- `gemini-3.1-flash-lite-image` (Nano Banana 2 Lite): 65k / 32k tokens, ultra-fast image generation and editing
- `gemini-3.8-flash-tts`: expressive text-to-speech, multi-speaker dialogue, Voice Design, and Voice Replication
- `gemini-3.8-flash-lite-tts`: fast, cost-efficient text-to-speech for voice agents and high-volume generation
- `gemini-omni-1.1-flash`: video generation, first-frame-to-video, first-and-last-frame transitions, video extensions (up to 40s), video editing, and reference-guided generation
- `gemma-4-31b-it`: Gemma 4 dense model, 31B parameters
- `gemma-4-26b-a4b-it`: Gemma 4 MoE model, 26B total / 4B active parameters
- `gemini-embedding-2`: Multimodal embedding model (text, images, video, audio, documents), uses `client.models.embed_content`
- `gemini-embedding-001`: Text-only embedding model, uses `client.models.embed_content`

> [!WARNING]
> Models like `gemini-2.5-*`, `gemini-2.0-*`, `gemini-1.5-*` are **legacy and deprecated**. Never use them.
> **If a user asks for a deprecated model, use `gemini-3.8-flash` instead and note the substitution.**

### Current Agents

The rest: https://github.com/google-gemini/gemini-skills/blob/HEAD/skills/gemini-api-dev/SKILL.md
