Google’s Gemini API, served as a stack of notebooks
The official hands-on curriculum for Google's Gemini API, delivered as executable notebooks.

What it does
This is Google’s official cookbook for the Gemini API: a repository of Jupyter notebooks organized into quickstarts for individual features and broader examples that wire multiple capabilities together. It covers the full breadth of Gemini offerings—text generation, image and video synthesis, music composition, live multimodal streaming, agent frameworks, and even robotics spatial reasoning—each presented as a runnable, Colab-backed tutorial.
The interesting bit
Instead of static documentation, every major API feature gets an executable narrative. Whether you are comparing inference pricing tiers, setting up webhooks for async batch jobs, or grounding a model in Google Maps data, there is a notebook for it. The repo treats the API like a curriculum rather than a reference manual.
Key highlights
- Covers Gemini 3.5 Flash, Veo 3.1 video generation, Lyria 3 music generation, and Nano-Banana 2 native image generation
- Includes operational features like the Batch API (source claims up to 90% discount for non-time-sensitive workloads), webhooks for async operations, and Priority/Flex inference tiers
- Dedicated notebooks for agents (the “Antigravity agent”), LiveAPI multimodal streaming, File Search hosted RAG, and Gemini Robotics-ER 1.5 spatial reasoning
- Separates “Quick Starts” (feature-specific tutorials) from “Examples” (practical use cases combining multiple features)
- Designed to run in Colab; prerequisites are limited to a Google account and an API key from Google AI Studio
Verdict
Worth bookmarking if you want a guided, interactive tour of Gemini’s expanding API surface before building your own integrations. Skip it if you are looking for production SDKs or reusable framework code—this is documentation you can execute, not a library.
Frequently asked
- What is google-gemini/cookbook?
- The official hands-on curriculum for Google's Gemini API, delivered as executable notebooks.
- Is cookbook open source?
- Yes — google-gemini/cookbook is open source, released under the Apache-2.0 license.
- What language is cookbook written in?
- google-gemini/cookbook is primarily written in Jupyter Notebook.
- How popular is cookbook?
- google-gemini/cookbook has 17.6k stars on GitHub.
- Where can I find cookbook?
- google-gemini/cookbook is on GitHub at https://github.com/google-gemini/cookbook.