Backend 632 installs

Gemini API Development Skill

by google-gemini/gemini-skills

Use this skill when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio,…

Skill content

Build applications with Google's Gemini models, supporting multimodal content, function calling, and structured outputs across Python, JavaScript, Go, and Java.

- Access current Gemini 3 models (Pro, Flash, Pro Image) with 1M token context; legacy Gemini 2.x and 1.5 models are deprecated

- Supports text generation, image/audio/video understanding, function calling, structured JSON output, code execution, context caching, and embeddings

- Official SDKs available: google-genai (Python), @google/genai (JavaScript/TypeScript), google.golang.org/genai (Go), and Maven/Gradle for Java

- Use v1beta REST API discovery spec as source of truth for request/response schemas; fetch documentation index at ai.google.dev/gemini-api/docs/llms.txt

- For real-time bidirectional audio/video streaming, use the separate Gemini Live API skill

Gemini API Development Skill

Critical Rules (Always Apply)

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

Current Models (Use These)

- gemini-3.5-flash: 1M tokens, fast, balanced performance, multimodal

- gemini-3.1-pro-preview: 1M tokens, complex reasoning, coding, research

- gemini-3.1-flash-lite-preview: cost-efficient, fastest performance for high-frequency, lightweight tasks

- gemini-3-pro-image-preview: 65k / 32k tokens, image generation and editing

- gemini-3.1-flash-image-preview: 65k / 32k tokens, image generation and editing

- gemini-2.5-pro: 1M tokens, complex reasoning, coding, research

- gemini-2.5-flash: 1M tokens, fast, balanced performance, multimodal

- gemma-4-31b-it: Gemma 4 dense model, 31B parameters

- gemma-4-26b-a4b-it: Gemma 4 MoE model, 26B total with 4B active parameters