Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesGemini API & Google AI
Get started free

Online course, Engineering, Gemini

Gemini API & Google AI: A Developer Course from the First Request to the Live API

14 lessons of 20–28 minutes, about 6 hours in total: Python code, a task and a 4-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.

An editing timeline: video frames, an audio track and the text answerLesson 1, 25 minYour First Gemini API Call
  • Intermediatelevel
  • 6 h 5 min14 lessons, 5 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Make a first call through the Interactions API, read the response (status, steps, output_text, usage) and handle errors and safety blocks
  • Choose a model by task and budget: a cheap chat, a 200-page PDF, classifying 100,000 records
  • Set system_instruction, thinking_level, max_output_tokens, stop_sequences and safety_settings, and get JSON via response_format with a schema
  • Extract text and tables from images, passing them inline and through the File API
  • Summarize a YouTube video by section with timestamps and transcribe audio
  • Manage files in the File API: upload, wait for ACTIVE, clean up old files
  • Connect functions through function calling: AUTO, ANY and NONE modes, parallel calls, automatic and manual loops
  • Turn on Search grounding and show the answer's sources from the grounding metadata
  • Compute statistics on a CSV with code execution and read the generated code and its result separately
  • Stream responses to the client over SSE with FastAPI or Express and count tokens after the stream
  • Cache a large document with a TTL and compare token usage with and without the cache
  • Build a voice assistant on the Live API: microphone in as 16 kHz PCM, response out at 24 kHz, end of turn and interruptions

What the Gemini API course covers

The course teaches you to build Gemini into a product through the API in Python: the first request and model choice, generation settings and JSON output, images, audio and video, the File API, function calling, Search grounding, code execution, streaming, context caching, the Live API for voice, and choosing between AI Studio and Gemini Enterprise Agent Platform (formerly Vertex AI). 14 lessons, about 6 hours in total.

Pricing and what's free →
01
Free lesson

Your First Gemini API Call

A key from Google AI Studio, the Google GenAI SDK and a first client.interactions.create call to gemini-3.8-flash, then the response: status, steps, output_text and usage. In the task you make a call, continue the conversation with previous_interaction_id and catch an error with try/except. The lesson was updated on Nov 9, 2026 and uses google-genai and the Interactions API.

Open the lesson →

Lessons

Getting started → multimodal input → function calling, grounding and code execution → production: streaming, caching, Live API → Agent Platform (formerly Vertex AI) and the Google AI ecosystem. The first two lessons are free.

Module 1 · 3 lessons · 1 h 12 min

Getting Started with Gemini API

API key, SDK install, your first generateContent call, model selection, and core generation parameters.

1Your First Gemini API Callfree25 minGet an API key in AI Studio, install google-generativeai, make your first generate_content call, and parse the response structure.2Gemini Model Lineup and Choosing for the Taskfree25 minGemini 4 Argon, 3.8 Flash, 3.5 Flash-Lite and 3.1 Pro preview: context, price, thinking level, Free tier and the model lifecycle. How to pick a model for the task and budget.3Generation Parameters and System Instructions22 minsystem_instruction, temperature, top_p, top_k, max_output_tokens, stop_sequences, and safety_settings via generation_config.
Module 2 · 3 lessons · 1 h 21 min

Multimodal Capabilities

Vision, audio, and video as input: inline base64, File API, image reasoning, transcription, and video understanding.

4Vision: Images as Input28 minPassing images inline (base64) and via the File API, multiple images, image reasoning, OCR.5Audio and Video: Transcription and Understanding28 minAudio transcription, video understanding (analyzing an hour-long clip/YouTube), working with timecodes and frames.

Who it is for

  • Developers building Gemini into their product or an internal service
  • Backend engineers working in Python: all course code is Python, and two lessons add a JavaScript version
  • Teams that need multimodal input: document recognition, call transcription, video summaries
  • Anyone choosing between an AI Studio key and enterprise Agent Platform (formerly Vertex AI) with IAM and data residency

How the lessons work

  1. A 20–28-minute lessonAn explanation with working Python code; the lessons on the first call and streaming add a JavaScript version.
  2. A hands-on task in every lessonFor example, an extract(text) function that returns name, email and company as JSON and leaves the fields empty when the text has no such data, or comparing an answer about the USD/EUR rate with and without Search grounding. AI checks your solution and explains the result (after sign-up).
  3. Ready-made prompt and common mistakesMistakes that break production: reading output_text without checking status, querying a video while the file is still PROCESSING, a missing function_response, Live API output played back at 16 kHz instead of 24 kHz.
  4. 4-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

What has changed in the Gemini API since the course came out

The course was published in May 2026, and the Gemini API has changed a lot since then. On Nov 9, 2026 six lessons were rewritten for the Google GenAI SDK (google-genai for Python, @google/genai for JavaScript) and the Interactions API: the first call, the model lineup, generation settings, context caching, Agent Platform and the Google AI ecosystem. The Live API lesson also uses google-genai. The other seven lessons use the google-generativeai library: Google deprecated it on Nov 30, 2025, and new features ship only in the Google GenAI SDK. The lessons not yet updated still use old models: gemini-2.0-flash was shut down on Jun 1, 2026, and gemini-3.8-live replaces the experimental gemini-2.0-flash-exp in the Live API lesson. Gemini 1.5 models are no longer in the docs, so the audio and video lesson's 1.5 Pro figures (a 2M-token window) describe the previous generation.

For new projects Google recommends Gemini 3.8 Flash or 3.5 Flash-Lite: a 1,048,576-token window and up to 65,536 output tokens. The flagship Gemini 4 Argon is paid tier only. Since June 2026 the main interface is the Interactions API; Google calls the generateContent API used in the lessons not yet updated legacy and still fully supports it. temperature, top_p and top_k were deprecated on Jul 21, 2026, and thinking_level replaces thinking_budget.

The rest holds: the Live API takes 16 kHz PCM and returns 24 kHz, with gemini-3.8-live as the default model; 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. Implicit caching is on by default for 2.5 and newer models (from 4,096 tokens on Gemini 3.8 and 3.6 Flash), explicit caching works through generateContent on Gemini 3 and 2.5 models, and Gemini 4 Argon does not support it. Vertex AI was renamed Gemini Enterprise Agent Platform on Apr 22, 2026. Dates and prices checked on Nov 9, 2026.

  • Gemini API — models
  • Gemini API — deprecations and shutdown dates
  • Gemini API — libraries and migrating to google-genai
  • Gemini API — Interactions API
  • Gemini API — pricing
  • Gemini API — Live API
  • Gemini API — File API

What's free and what it costs

  • The first two lessons, your first call and the model lineup, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 14 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 API course: questions

How much does the Gemini API cost?+

Google has a free tier: Gemini 3.8 Flash and 3.5 Flash-Lite are free within its limits, and request data is used to improve Google products. On the paid tier 3.8 Flash costs $0.75 per 1M input tokens and $3.75 per 1M output tokens through Dec 31, 2026, then $1.50 and $7.50 from Jan 1, 2027; 3.5 Flash-Lite costs $0.30 and $2.50. The Batch API is 50% cheaper, and the paid tier needs a $5 minimum prepayment. Prices as of Nov 9, 2026.

How do I get a Gemini API key and make a first request?+

Google AI Studio creates a project and a key for new users automatically. Put the key in GEMINI_API_KEY, run pip install -U google-genai (or npm install @google/genai) and call gemini-3.8-flash. The first free lesson uses google-genai and the Interactions API and walks through the response structure (status, steps, output_text, usage) and error handling.

Which Gemini model should I choose in 2026?+

For new projects Google recommends Gemini 3.8 Flash (its strongest Flash model, for agents and complex work) or 3.5 Flash-Lite (fast and cheap, for high volume). Gemini 4 Argon is the flagship reasoning model, paid tier only. The 2.5 models are open only to users who have used them before. The model lineup lesson shows how to choose by your own scenarios and cost.

Will the course code run?+

Six lessons were updated on Nov 9, 2026 and use google-genai and the Interactions API with gemini-3.8-flash and gemini-4-argon: the first call, the model lineup, generation settings, context caching, Agent Platform and the ecosystem. In the other lessons, replace gemini-2.0-flash and the 1.5 models, which Google has shut down or removed from the docs, and move the code from google-generativeai to google-genai. The concepts carry over as they are: function calling, grounding, code execution, the File API, the Live API. Ready-made examples on the new SDK are in the Gemini Cookbook course.

How is the Gemini API in AI Studio different from Agent Platform (formerly Vertex AI)?+

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 Cookbook: Based on Google Materials →Lesson: Gemini context caching for large documents →Gemini in Practice: 8 projects from the Google team →Gemini in Google Docs, Gmail and Gemini Notebook (formerly NotebookLM) →Claude API from A to Z →OpenAI API from A to Z →

Make your first Gemini API request

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
6
File API: Upload, Limits, Lifecycle
25 min
upload_file / list_files / delete_file, supported MIME types, size limits, ephemeral files (48h).
Module 3 · 3 lessons · 1 h 18 min

Advanced Generation Features

Function calling, Google Search grounding, and built-in code execution — extending the model with external capabilities.

7Function Calling: Tools for the Model30 minFunction declarations, AUTO/ANY/NONE modes via ToolConfig, parallel calls, the multi-turn tool-use loop.8Search Grounding: Answers Backed by Google26 minGoogle Search grounding, grounding_metadata, source attribution, when it actually helps.9Code Execution: The Built-in Interpreter22 minBuilt-in Python sandbox, math/data tasks, reading executable_code and code_execution_result.
Module 4 · 3 lessons · 1 h 20 min

Production Patterns

Streaming, context caching, and the Live API — what real apps under load need.

10Streaming Responses22 minstream=True / streamGenerateContent, chunk handling, usage aggregation, streaming together with function calls.11Context Caching: Saving on Repeated Context28 mincreate/list/delete CachedContent, savings on large repeated prefixes, choosing TTL, when caching is justified.12Live API: Realtime Voice and Video30 minLive API over WebSocket, audio formats (16k in / 24k out PCM), session management, turn-taking, interruptions.
Module 5 · 2 lessons · 54 min

Enterprise & Ecosystem

Vertex AI for enterprise and the broader Google AI ecosystem: SDKs, Gemma, embeddings.

13Vertex AI: Enterprise Deployment of Gemini28 minGemini Developer API vs. Gemini Enterprise Agent Platform (formerly Vertex AI): one google-genai SDK, Application Default Credentials without JSON keys, data residency, VPC Service Controls, the platform's agent services.14The Google AI Ecosystem: SDKs, Gemma, Embeddings26 minAI Studio (Playground and Build mode), one Google GenAI SDK for AI Studio and Agent Platform, Gemma 4 open models, gemini-embedding-2 embeddings and File search, agents and developer tools.
Certificate
Your name
for the course
Gemini API & Google AI
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
  • Gemini API — context caching
  • Google Cloud — Gemini Enterprise Agent Platform release notes
  • The Gemini models are the same; access and infrastructure differ. AI Studio gives you a key in a minute and suits prototypes. Gemini Enterprise Agent Platform (the name of Vertex AI since Apr 22, 2026) is for companies that need IAM, service accounts, data residency and audit. A course lesson shows the same function in both versions.

    How is this different from Gemini Cookbook and Gemini in Practice?+

    Gemini API & Google AI is the broadest course: 14 lessons from the first request to the Live API and Agent Platform. Gemini Cookbook is 8 short lessons based on Google materials with the new google-genai SDK. Gemini in Practice is 8 advanced projects from the Google team: agents, PDF data extraction, embedding search.

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

    14 lessons of 20–28 minutes, about 6 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.