Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesGemini Cookbook: Based on Google MaterialsContext Caching: Cache Large Documents
A grid of numbers where code has marked the primesClaude Code terminal: the claude -p command with Read and Edit allowedRetries after a 429 error: each pause is twice as long, then success
Course

Gemini Cookbook: Based on Google Materials

Module 1 · Getting Started with Google GenAI SDK
01First Steps with the Gemini API
Module 2 · Function Calling
02Function Calling in the Gemini API
Module 3 · Working with Audio
03Audio in the Gemini API
Module 4 · File API
04File API: Uploading and Using Files
Module 5 · Context Caching
05Context Caching: Cache Large Documents
Module 6 · Code Execution
06Code Execution: Python Inside Gemini
Module 7 · Embeddings
07Embeddings: Vector Representations in Gemini
Module 8 · Live API
08Live API: Real-Time Multimodal Sessions
Gemini Cookbook: Based on Google Materials · Lesson 5

Context Caching: Cache Large Documents

Upload the Apollo 11 transcript, create an explicit cache on gemini-3.8-flash with client.caches (v1beta, Gemini 3 and 2.5 only), manage TTL, use the cache in generate_content and multi-turn chat, and read usage_metadata. Then cover implicit caching in the Interactions API and Gemini 4 Hydrogen and calculate the cost.

25 min readUpdated Dec 2, 20263 questions in quizReady prompt included
🔒

Full lesson access

Context Caching: Cache Large Documents opens after free sign-up: 7 days of full access to every course, no card needed.

Start 7-day free trial
Then Pro: $9/mo or $79/yr

View plans →

One trial lesson is open without sign-up: what a large language model is →

In this lesson
Why CachingUpload a File and Create an Explicit CacheManaging TTLUsing the Cache in RequestsMulti-Turn Chat with CacheMonitoring Token UsageDeleting the CacheImplicit Caching: Interactions API and Gemini 4What It CostsPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free