google-gemini/cookbook
Learning ResourcesLearn AIOfficial Gemini API tutorials and runnable notebooks for developers learning prompting, multimodal input, agents, media generation and grounding.
What It Covers
This is Google's official collection of Jupyter notebooks for learning and using the Gemini API. It is organized into Quick Starts that introduce individual features step by step and Examples that combine several features into practical use cases README. Topics include the core Get Started flow, thinking levels, text-to-speech and voice design, the Live API for streaming audio and video, live translation, transcription, image and video generation, music generation, grounding with Google Search and Maps, file search, code execution, and an Agents API quickstarts directory.
It is aimed at developers who want working, editable examples rather than prose-only documentation. The API reference itself lives at the Gemini API docs site API documentation.
Quick Start
You need a Google account and a Gemini API key created in Google AI Studio API key. The recommended path is:
- Open the Authentication notebook to configure API key access Authentication.
- Open the Get Started notebook, which covers basic prompting and multimodal input Get Started.
- Run the cells in Colab or a local Jupyter environment; most notebooks have a Colab button for one-click launch, for example the Get Started notebook Run Get Started in Colab.
From there, pick notebooks for the feature you need, such as the Thinking guide for reasoning levels Thinking, Live API for streaming Live API, or File Search for hosted retrieval File Search.
Constraints and Requirements
Using the notebooks requires a valid API key; free and paid tiers exist, and the README notes that some models such as Gemini 4 Hydrogen are available on both tiers README. Model availability, quotas, and pricing are governed by the Gemini API, so notebooks that reference specific model names may need updating as models change. The Live API, video generation, music, and voice features depend on the corresponding API endpoints being enabled for your account. The repository is Apache-2.0 licensed. Enterprise use via Vertex AI is covered in a separate Google Cloud repository README.
HotRepo's take
This is a large, actively maintained reference repository (over 18k stars) whose value is in the breadth of runnable examples: from the core prompting notebook to newer items like the Decisions API and Genie 4 quickstarts Genie 4, Decisions API. Because it is official and versioned alongside the API, it is a better starting point for learning Gemini behavior than most third-party tutorials, but readers should verify that notebook code matches the current API version they target.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
Hacker News
You might also like
- google-gemini/gemini-api-cliA Go CLI that lets coding agents and shell scripts call Gemini models, generate media, analyze files, and run managed agents.
- google-gemini/gemini-skillsAgent skills that teach coding assistants current Gemini API, SDK, and Live API practices.
- google-gemini/gemini-cliA terminal coding agent from Google that reads code, edits files and runs commands using Gemini models.
- Shubhamsaboo/awesome-llm-appsA collection of runnable AI agent, RAG and agent-skill examples for developers learning to build LLM applications.
- patchy631/ai-engineering-hubHands-on tutorials and runnable projects for building with LLMs, RAG pipelines, agents, and MCP integrations.