Google Gemini API

Guide to the Google Gemini API using the current @google/genai SDK v1.27+, not the deprecated @google/generative-ai (sunset November 2025). Covers text generation, streaming, multimodal input (images, video, audio, PDFs), function calling including parallel and compositional calls, system instructions, multi-turn chat, thinking mode, generation parameters, context caching, built-in code execution, grounding with Google Search, error handling and rate limits, plus accurate 2025 model facts (Gemini 2.5 Pro, Flash and Flash-Lite with 1M input tokens, not 2M). Use when integrating Gemini, building multimodal or chat applications, deploying Gemini calls to Cloudflare Workers, migrating off @google/generative-ai, or debugging model not found, context window, function calling, or multimodal format errors. Embeddings live in the google-gemini- embeddings skill.

jackspace Updated

File contents

jackspace/ClaudeSkillz/tree/main/skills/google-gemini-api commit b1f07787b6

Frequently asked questions

npx skillmds@latest add jackspace/google-gemini-api