Google AI for Developers · Official tutorial

Gemini API: Getting started

Make a first Gemini API call and explore text, multimodal input, tools and structured output.

Free learning material02 · Build applications
Open official resource

What you will study

  1. 01API setup
  2. 02Multimodal prompts
  3. 03Tools and structured output
MASTERLEARN

Read the study guide

This Masterlearn guide explains the key ideas and gives you an independent practice task. Open the official resource for the provider’s full lessons and videos; sign-in may be required.

Content reviewed:
01

API setup

Follow the current official quickstart to obtain a key and install the supported SDK. Keep the key outside source code and confirm one minimal request before adding features.

02

Multimodal prompts

For multimodal input, state what to examine and how the answer should be structured. Compare a text-only request with the same request plus an image.

03

Tools and structured output

Structured output defines a response shape; it does not prove the values are correct. Validate the fields and test malformed or incomplete input.

Practice assignment

Extract three named fields from a sample document into structured output, then verify every field against the document.

Completion checklist

  • Explain the three topics in your own words.
  • Complete the assignment and keep the output or design notes.
  • Test an edge case and record one limitation.