Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesGemini Cookbook: Based on Google Materials
Get started free

Online course, Engineering, Gemini

Gemini Cookbook: 8 Lessons Based on Google Materials

8 lessons of 20–25 minutes, about 3 hours in total: Python code from the Cookbook, a task and a 3-question quiz in each.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

A grid of numbers where code has marked the primesLesson 1, 25 minFirst Steps with the Gemini API
  • Intermediatelevel
  • 3 h 12 min8 lessons, 8 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Create a google-genai client, make a call through the Interactions API, set a system instruction, count tokens and ask a question about an image
  • Pass Python functions as tools, turn on automatic function calling in a chat and write a manual call loop
  • Transcribe audio with timestamps: upload an MP3 through the File API, pass bytes inline, read a YouTube video by URL
  • Upload files with client.files.upload, read metadata, delete them and pass direct HTTPS URLs
  • Cache a large document using the Apollo 11 transcript, manage the TTL and read usage_metadata
  • Turn on code execution, read the executable_code and code_execution_result parts and build charts from a CSV
  • Embed text, images and audio, set the output dimensionality and find similar texts by cosine similarity
  • Connect to the Live API with client.aio.live.connect and gemini-3.8-live, get spoken responses with a transcript, save them as WAV and talk to the model through a microphone

What the Gemini Cookbook is and what the course adds

The Gemini Cookbook is Google's official repository of Python notebooks: quickstarts for single Gemini API features and examples of whole projects. The course walks through eight quickstarts on the google-genai SDK: the first request, function calling, audio, the File API, context caching, code execution, embeddings and the Live API. 8 lessons of 20–25 minutes, about 3 hours.

Pricing and what's free →
01
Free lesson

First Steps with the Gemini API

Installing google-genai, genai.Client(), picking a model and the first Interactions API call to gemini-3.8-flash, system instructions, conversations via previous_interaction_id, token counting, thinking_level in place of temperature and a question about an image. In the task you write a CLI script that takes an image and a question, counts tokens with count_tokens, answers as a concise technical expert and asks a follow-up with previous_interaction_id.

Open the lesson →

Lessons

First steps → function calling → audio → File API → context caching → code execution → embeddings → Live API. Each module is one notebook from the Gemini Cookbook. The first two lessons are free.

Module 1 · 1 lesson · 25 min

Getting Started with Google GenAI SDK

Install the new Google GenAI SDK, initialize a client, send text and multimodal prompts, set system instructions, count tokens and configure generation parameters.

1First Steps with the Gemini APIfree25 minInstall google-genai SDK, create a client, make your first generate_content call, explore system instructions, count_tokens, temperature parameters, and multimodal image input.
Module 2 · 1 lesson · 25 min

Function Calling

Connect Python functions as model tools, explore automatic and manual calling modes, inspect chat history with FunctionCall/FunctionResponse, and understand FunctionDeclaration schemas.

2Function Calling in the Gemini APIfree25 minPass functions as tools, enable automatic_function_calling in ChatSession, inspect FunctionCall/FunctionResponse history, and implement a manual calling loop.
Module 3 · 1 lesson · 25 min

Working with Audio

Upload audio files via the File API, work with inline audio, request transcripts with timestamps, and analyze YouTube videos.

3Audio in the Gemini API25 minUpload MP3 via File API, pass audio inline via types.Part.from_bytes, get transcripts with timestamps, and analyze YouTube videos through file_uri.
Module 4 · 1 lesson · 22 min

File API

Upload and manage files via the Gemini File API: images, text, code, GCS objects, multi-file batch uploads, and direct HTTPS URLs.

Who it is for

  • Python developers who want to try each Gemini API feature on working code quickly
  • Anyone moving old code from google-generativeai to the new google-genai SDK
  • Learners who prefer Google examples with a task and a check after each one
  • Teams choosing between function calling, code execution, caching and the Live API for their task

How the lessons work

  1. A 20–25-minute lessonOne quickstart walked through: Python code from the Cookbook on the google-genai SDK and an explanation of every step.
  2. A hands-on task in every lessonFor example, a chatbot with three tools (weather, currency conversion and tax) tested on one message that needs all three, or a utility that uploads a folder of Python files through the File API, looks for bugs and deletes the files after the answer. AI checks your solution and explains the result (after sign-up).
  3. Ready-made prompt and common mistakesMistakes from practice: a synchronous client instead of client.aio for the Live API, a cache created for one model and called with another, a function without a docstring that the model cannot match to a request.
  4. 3-question quiz and AI tutorThe quiz checks the lesson; the AI tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.

See how a certificate is checked
Sample

Sources behind the course

The lesson code comes from the google-gemini/cookbook repository (Apache 2.0 license); as of Nov 9, 2026 it has about 17.9K stars and was last updated on Nov 9, 2026. The google-genai SDK used in the course is the one Google recommends today.

What has changed since the course came out in May 2026: the First Steps and Live API lessons were updated on Nov 9, 2026. The first uses the Interactions API with gemini-3.8-flash, and the second uses gemini-3.8-live in place of gemini-live-2.5-flash-preview, which was shut down on Dec 9, 2025. gemini-2.5-flash in the other lessons is open only to users who have used it before, and Google recommends Gemini 3.8 Flash or 3.5 Flash-Lite for new projects. gemini-embedding-2 no longer accepts task_type: you put the task at the start of the text, for example "task: classification | query: …"; task_type still works on gemini-embedding-001. The default size is 3072 dimensions, and Google recommends 768, 1536 or 3072.

Since June 2026 the main interface is the Interactions API; the generate_content calls in the lessons not yet updated are legacy and fully supported, and explicit caching (CachedContent) works through them on Gemini 3 and 2.5 models. The File API keeps files for 48 hours, up to 2 GB per file and 20 GB per project. Code execution runs Python only, up to 30 seconds per run.

  • Gemini Cookbook on GitHub (google-gemini/cookbook)
  • Gemini API — models
  • Gemini API — deprecations and shutdown dates
  • Gemini API — Interactions API
  • Gemini API — embeddings
  • Gemini API — context caching
  • Gemini API — File API
  • Gemini API — code execution

What's free and what it costs

  • The first two lessons, first steps and function calling, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 8 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • Gemini API calls run on your own key: Google has a free tier with limits, and the paid tier is billed by Google.

Gemini Cookbook course: questions

What is the Gemini Cookbook?+

Google's official google-gemini/cookbook repository on GitHub, under the Apache 2.0 license. The quickstarts folder holds short notebooks on single Gemini API features, and the examples folder holds whole projects. The code is Python, and you need a key from Google AI Studio to run it.

How is the course different from the Cookbook itself?+

The Cookbook is a large collection with no learning order. The course picks eight quickstarts for typical product tasks, explains the code step by step and adds a hands-on task with an AI check, a quiz, a ready-made prompt and a review of common mistakes to each.

Which SDK does it use, and does the code suit new projects?+

The course uses google-genai, the SDK Google recommends today; the old google-generativeai was deprecated on Nov 30, 2025. The First Steps and Live API lessons already use gemini-3.8-flash and gemini-3.8-live; in the other lessons, switch the model to gemini-3.8-flash or gemini-3.5-flash-lite for a new project. Google ships new features in the Interactions API: the first lesson is built on it, and it has its own Cookbook notebook.

How does function calling work in Gemini?+

You give the model function descriptions, it returns a function name and arguments, your code runs the call and sends the result back. In the Python SDK you can pass the function itself with a docstring and type hints: the SDK builds the schema and runs the loop automatically. The lesson shows both the automatic and the manual version.

When do I need context caching?+

When many requests hit one large document or a long instruction. Implicit caching is on by default for 2.5 and newer models, from 4,096 tokens of shared prompt prefix on Gemini 3.8 and 3.6 Flash. An explicit cache with a TTL also bills for storage, so for 1–2 requests it usually does not pay off.

What experience do I need?+

The course in short

level
Intermediate
For whom
For developers
Task
Code and products
Tool
Gemini
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Intermediate, Claude

Design with Claude: from idea to design system

7 lessons: how to give Claude design tasks, build a DESIGN.md with tokens and components, generate screens in Stitch and code from Figma over MCP.

3 h 12 min, 7 lessonsCertificate
Intermediate, Claude

Claude Code & Agentic Development

10 lessons on Claude Code in real projects: CLAUDE.md, slash commands, task plans, git and PRs, test-first debugging, MCP servers, VS Code, JetBrains and CI.

4 h 10 min, 10 lessonsCertificate
Intermediate, Claude

Claude API from A to Z

16 Claude API lessons with TypeScript code: Messages API, model choice, prompting, tool use, streaming, batches, prompt caching, vision, production.

6 h 28 min, 16 lessonsCertificate
Intermediate

AI Coding: Claude Code, Codex, Cursor, Windsurf

A one-hour course on choosing and using AI coding tools: Claude Code, Codex, Cursor, Windsurf, TDD with AI, plan-based refactoring and a team AI policy.

1 h 5 min, 4 lessonsCertificate

Keep going

Gemini API & Google AI: the full 14-lesson course →Lesson: Gemini function calling (tool calling) →Gemini in Practice: 8 advanced projects →OpenAI Cookbook: Based on OpenAI Materials →RAG & Vector Databases in Python →Tool Use in Claude: function calling at Anthropic →

Run your first Gemini quickstart

The first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.

Sign up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
4File API: Uploading and Using Files22 minUpload files via client.files.upload, retrieve metadata, use them in generate_content, register GCS objects, and pass direct HTTPS URLs via types.Part.from_uri.
Module 5 · 1 lesson · 25 min

Context Caching

Cache large documents for repeated use: create CachedContent, manage TTL, use the cache in generate_content and chat, monitor token counts.

5Context Caching: Cache Large Documents25 minUpload the Apollo 11 transcript, create a CachedContent with system instruction, manage TTL, use the cache in generate_content and multi-turn chat, read usage_metadata.
Module 6 · 1 lesson · 20 min

Code Execution

Enable the Python code execution tool, work with files via File I/O, use code execution in chat and multimodal scenarios.

6Code Execution: Python Inside Gemini20 minEnable ToolCodeExecution, parse responses with executable_code and code_execution_result parts, upload CSV via File API for data analysis, and use code execution in chat and with images.
Module 7 · 1 lesson · 25 min

Embeddings

Generate text and multimodal embeddings, control dimensionality, compute semantic similarity, and build a simple RAG system with task_type.

7Embeddings: Vector Representations in Gemini25 minCall embed_content for text, images, and audio; control output_dimensionality; compute cosine similarity between sentences; build an FAQ search system with task_type=RETRIEVAL_DOCUMENT.
Module 8 · 1 lesson · 25 min

Live API

Real-time voice and multimodal sessions over WebSocket: text-to-text, text-to-audio, async AudioLoop, session management, and stream handling.

8Live API: Real-Time Multimodal Sessions25 minConnect via client.aio.live.connect, implement text-to-text and text-to-audio sessions, build an AudioLoop with async send/recv, control response_modalities, and save audio to WAV.
Certificate
Your name
for the course
Gemini Cookbook: Based on Google Materials
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE

Python at the level of functions, async and pip. Some LLM API experience helps, and the first lesson starts from installing the SDK and the first request. For a broader Gemini API course with vision, grounding and Agent Platform (formerly Vertex AI), start with Gemini API & Google AI.

How long is the course and what does it cost?+

8 lessons of 20–25 minutes, about 3 hours in total, with a certificate with a verification code after all lessons. The first two lessons are always free, sign-up gives 7 days of full access with no card, then Pro is $9 a month or $79 a year. API calls are billed by Google separately.