LibreAI / Dev Tools / cookbook
// devtools · google-gemini/cookbook

cookbook

Google's official Gemini API cookbook - examples, guides and end-to-end demos

★ 17.8k stars⑂ 2.8k forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

cookbook is an open-source dev tools project by google-gemini (google-gemini/cookbook on GitHub). It has 17,815 GitHub stars and 2,795 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 7 October 2026.

GitHub stars
17,815
Forks
2,795
License
Apache-2.0
Last updated on GitHub
7 October 2026
Category
Dev Tools
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Get a Gemini API key

    Create a key in Google AI Studio - the notebooks authenticate with it.

  2. Clone the cookbook

    Get the repository so you can open the notebooks locally or in Colab.

  3. Pick a quick start

    Start with the Quick Starts section for the core API patterns.

  4. Run your first notebook

    Execute a quick start end to end, then move to an example matching your use case.

// features

Why people love it

Quick starts

Short, focused notebooks that teach the core Gemini API patterns fast.

Practical examples

Use-case notebooks covering real tasks across text, image, audio and code.

End-to-end demos

Complete demo applications that show full products built on the API.

Official SDKs

Examples use Google's official Gemini SDKs, so patterns transfer directly to production code.

Always current

Maintained by Google alongside the API, with a What's New section tracking additions.

Help and community links

The README routes you to support channels when you get stuck.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/google-gemini/cookbook.git
    cd cookbook
  2. Open a quick start

    Clone the repo and open a notebook from the Quick Starts section in Jupyter or Colab.

    # Open a notebook from the '1. Quick Starts' section and run it top to bottom
  3. Authenticate

    Set your Gemini API key as the notebooks instruct, then run the cells.

    # export your Gemini API key as shown in the quick start notebook
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains this project?

It is maintained by Google (the Gemini team) on GitHub.

Is it free to use?

Yes - the cookbook is Apache-2.0 licensed and free. Calling the Gemini API itself uses Google's pricing, which includes a free tier for many models.

Does it need a paid API key?

Yes - the notebooks call the Gemini API, so you need a Gemini API key; Google AI Studio issues keys with a free tier to start.

How does it compare to alternatives?

Compared with third-party tutorials, this is the official, Google-maintained source, updated with the API; compared with the API reference docs, it teaches by runnable example.

How do I get started?

Clone the repo, grab a free API key from Google AI Studio, and run a Quick Start notebook.

// keep exploring

Similar tools

Dev Tools

unitree_sdk2

Unitree's official C++ SDK v2 for programming its robots, with CMake examples and installable library.

★ 1.4k starsBSD-3-Clause
View guide →
Dev Tools

mcporter

Call MCP servers from TypeScript or the CLI — MCP tools disguised as a simple TypeScript API.

★ 5.1k starsMIT
View guide →
Dev Tools

judge0

Judge0 is a robust, scalable, open-source online code execution system with a simple HTTP API

★ 4.5k starsGPL-3.0
View guide →
Dev Tools

open-terminal

Open Terminal — a computer you can curl: a sandboxed terminal API for AI agents, from Open WebUI.

★ 3.3k starsMIT
View guide →
Dev Tools

ClaudeBar

Menu-bar tracker for your AI coding quotas — Claude, Codex, Gemini and more.

★ 1.5k starsCustom
View guide →
Dev Tools

aiohttp-swagger

Auto-generate Swagger docs for your aiohttp Python API.

★ 187 starsNOASSERTION
View guide →
// alternatives

Alternatives in Dev Tools

The most-starred other Dev Tools projects in the LibreAI catalogue — the realistic shortlist if cookbook is not the right fit.

Get cookbook

Free and open — grab the source, star the repo, and start creating.