Deep diveProvider guide
Context caching
Implicit caching is on by default for Gemini 2.5 and newer. Put large, common content at the start of the prompt, send requests with a similar prefix close together, and read usage.total_cached_tokens to confirm hits.
Dossiers
- Googlethis guide's dossier