First Steps with the Gemini API
Install the google-genai SDK, pick a model (3.8 Flash, 3.5 Flash-Lite or 4 Argon), make your first Interactions API call, and cover system instructions, conversations via previous_interaction_id, token counting, thinking_level and the retirement of temperature, top_p and top_k, multimodal input and handling blocked requests.
ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.
Installation and Client Initialization
pip install -U 'google-genai>=2.3.0'
The Interactions API is available in google-genai 2.3.0 and later. The latest Python SDK release is v3.0.0 (November 6, 2026). In a real project, pin the version in requirements so the next SDK update does not break your code.
from google import genai
client = genai.Client() # reads the key from GEMINI_API_KEY
MODEL_ID = "gemini-3.8-flash"
Далі урок відкривається після безкоштовної реєстрації
Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.


