Your First Gemini API Call
Get an API key in AI Studio, install the Google GenAI SDK (google-genai), make your first Interactions API call to gemini-3.8-flash, and parse the response: status, steps, output_text, usage.
ENМатеріали курсів поки англійською. Інтерфейс, ШІ-наставник і перевірка завдань — українською.
Key and tier
Create a key in Google AI Studio: for a new user AI Studio sets up a project and key automatically, and Create API key adds more. Put the key in the GEMINI_API_KEY environment variable. Since May 28, 2026, new keys created in AI Studio are auth keys bound to a service account, and the API rejects requests from unrestricted standard keys.
Never keep the key in your repo, and never call Gemini directly from a browser or mobile app: a key in client-side code is easy to extract. Let your backend make the calls.
What each tier gives you:
| Tier | How to get it | What matters |
|---|---|---|
| Free | an active project | access to some models; your requests are used to improve Google products |
| Tier 1 | link a billing account (usually with a prepayment of at least $5) | requests are not used to improve products, higher limits |
| Tier 2 | $100 paid and 3 days since the first payment | higher limits again |
| Tier 3 | $1,000 paid and 30 days | the highest limits |
Limits apply per project, and daily limits reset at midnight Pacific time. Gemini 4 Argon and Gemini 3.1 Pro Preview are unavailable on the Free tier.
Далі урок відкривається після безкоштовної реєстрації
Реєстрація через email або Google відкриває перші два уроки кожного курсу назавжди і 7 днів повного доступу до всього каталогу. Картка не потрібна.


