Steps

Jump to phase

Phase 2 — API Keys/Set quota limits and usage budgets
9 / 23
Phase 2 — API Keys·All Levels10 minJust Updated · May 31

Set quota limits and usage budgets

Set spending limits to prevent unexpected charges. Even with the free tier, it's good practice.

As of May 2026, the free tier allows 1,500 requests/day for Gemini 2.0 Flash. Exceeding this without billing enabled will return 429 errors.

Instructions

  1. 1Go to Google Cloud Console → APIs & Services → Quotas
  2. 2Search for "Generative Language API" in the quota filter
  3. 3Click on the API to see all quota dimensions
  4. 4Set "Requests per day" to a safe limit for your expected usage
  5. 5Go to Billing → Budgets & alerts → Create budget
  6. 6Set a monthly budget (e.g. $10) and email alerts at 50%, 90%, 100%
Gemini 2.0 Flash pricing (May 2026)
{
  "gemini-2.0-flash": {
    "input": "$0.10 per 1M tokens",
    "output": "$0.40 per 1M tokens",
    "free_tier": "1,500 req/day | 1M tokens/day",
    "context_window": "1,048,576 tokens"
  }
}

AI Guide — Find This in the Real App

Overlay
Quotas & Limits

In Cloud Console, navigate to APIs & Services → Quotas to find and edit your Gemini API rate limits

aistudio.google.com🔒
Tutorial replica
Google AI Studio
Settings
General
API Keys
Billing
Notifications

General Settings

Google Cloud Project
API usage is billed to this project
my-ai-app-2026proj-4a8b2c
API Quotas
Requests per day limit
Set limits here
Gemini 2.0 Flash1,500 / day (free)
Billing Status
Free trial — $187.40 remaining
Active
Tutorial replica — not functional

Step Notes

As of May 2026, the free tier allows 1,500 requests/day for Gemini 2.0 Flash. Exceeding this without billing enabled will return 429 errors.

Cost Estimate
$0.10 / 1M input tokens
Gemini 2.0 Flash
Free: 1,500 req/day
Who this step is for
Both beginners and developers need to complete this step.
Content Freshness
Recently updated
Last checked: May 31