whatisgithub

What is cookbook?

google-gemini/cookbook — explained in plain English

Analysis updated 2026-06-24

17,212Jupyter NotebookAudience · developerComplexity · 2/5Setup · easy

In one sentence

Official collection of runnable Jupyter notebook tutorials for Google's Gemini AI API covering text, image, audio, video, and real-time interaction, open any notebook in Colab with one click.

Mindmap

mindmap
  root((gemini cookbook))
    Quick Starts
      Get Started
      Webhooks
      Batch mode
      LiveAPI
    Modalities
      Text
      Image generation
      Video generation
      Music generation
    Grounding
      Google Search
      File Search
      YouTube
    Tech stack
      Python
      Jupyter Notebook
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Get a working starting point for building an app that grounds Gemini answers in your own documents using File Search.

USE CASE 2

Experiment with Gemini's LiveAPI for real-time multimodal interaction without reading the full reference docs.

USE CASE 3

Run a batch mode example to send many Gemini requests at a discount rate.

USE CASE 4

Learn how to generate images or music using the Gemini Nano-Banana or Lyria models.

What is it built with?

PythonJupyter NotebookGoogle Colab

How does it compare?

google-gemini/cookbookstefan-jansen/machine-learning-for-tradingufund-me/qbot
Stars17,21217,32217,322
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultyeasyhardhard
Complexity2/54/54/5
Audiencedeveloperdatadata

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Each notebook has a Colab button so you can run it in the browser with no local setup needed.

License not mentioned in the explanation.

So what is it?

This repository is the official cookbook for Google's Gemini API. The Gemini API is a service that lets developers send text, images, audio, video and other inputs to Google's Gemini family of AI models and get answers back. The cookbook does not contain the API itself, it is a collection of hands-on tutorials and runnable examples that show how to use each feature in practice. The full reference documentation lives at ai.google.dev. The material is organised into two main sections. Quick Starts are step-by-step guides covering one feature at a time, from the basic Get Started introduction through to specific capabilities like Webhooks for notifications about long-running jobs, Inference tiers for trading off speed against cost, File Search for grounding answers in your own documents, Grounding with Google Search, YouTube, URLs or Google Maps, Batch mode for sending many non-urgent requests at a discount, and the multimodal LiveAPI for real-time interaction. Examples then show how to combine several features into complete use cases. Recent additions cover the Nano-Banana 2 and Nano-Banana Pro image generation models, the Lyria 3 music generation model, the Veo 3.1 video generation model, a text-to-speech guide, and Gemini Robotics-ER 1.5 for spatial reasoning. Everything is delivered as Jupyter notebooks, with a Colab button on each one so you can open and run it in the browser. Someone would use this if they want a working starting point for building on top of Gemini, or to learn how a particular feature behaves without reading the full reference docs first. The tech stack is Python in Jupyter notebooks. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Using the Google Gemini API, write Python code that takes a YouTube URL and answers questions about the video content.
Prompt 2
Show me how to use Gemini's batch mode to process 100 text prompts at a discounted rate.
Prompt 3
Give me a working example of grounding Gemini answers in my own uploaded documents using the File Search feature.
Prompt 4
How do I use the Gemini LiveAPI for a real-time voice conversation in Python?
Prompt 5
Write code using the Gemini API to generate an image from a text prompt using the Nano-Banana model.

Frequently asked questions

What is cookbook?

Official collection of runnable Jupyter notebook tutorials for Google's Gemini AI API covering text, image, audio, video, and real-time interaction, open any notebook in Colab with one click.

What language is cookbook written in?

Mainly Jupyter Notebook. The stack also includes Python, Jupyter Notebook, Google Colab.

What license does cookbook use?

License not mentioned in the explanation.

How hard is cookbook to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is cookbook for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.