A single SQL query over a large table can fire millions of LLM calls, and until now the only warning was the bill. Since October 14, 2026, BigQuery has generally available (GA) token quotas for its generative AI functions: a preventive brake, per project and per user, for anyone putting AI.GENERATE or AI.CLASSIFY in their queries.
What changes
Quotas are managed through IAM's quota system and apply to AI.GENERATE, AI.GENERATE_TABLE, AI.GENERATE_TEXT (alias ML.GENERATE_TEXT), AI.CLASSIFY, AI.IF, AI.SCORE and AI.AGG. They don't cover AI.GENERATE_EMBEDDING or AI.EMBED, which use different and much cheaper models. There are four daily, global quotas (summed across regions), with these defaults:
| Quota | Scope | Default |
|---|---|---|
| AI input tokens per day | project | 200 billion |
| AI input tokens per day per user | project and user | 150 billion |
| AI output tokens per day | project | 20 billion |
| AI output tokens per day per user | project and user | 15 billion |
Output tokens include reasoning tokens, just as on the Gemini bill.
Why it beats a billing cap
Cloud Billing spending caps are in dollars and, according to the article, aren't enforced instantly, so you can overspend before they kick in. Token quotas are preventive and AI-specific, and the per-user split keeps one analyst's experiment from eating the whole project's budget.
To size them, the article works through an example with Gemini 3.1 Flash-Lite and BigQuery's 50% batch discount ($0.125 per million input tokens and $0.75 per million output tokens): at a 100:1 input-to-output ratio, $100 a day buys about 754 million input tokens and 7.54 million output tokens per day. Before setting anything, AI.COUNT_TOKENS gives a lower bound on input tokens (it doesn't count output, the instructions each function adds, or non-text inputs).
How to configure them
They're edited under IAM & Admin → Quotas & System Limits, filtering by BigQuery API. Lowering a quota takes effect immediately with no approval; raising one is requested on the same screen. You need roles such as Quota Administrator (roles/servicemanagement.quotaAdmin) or Service Usage Admin, and you can automate them with the Cloud Quotas API, gcloud and Terraform.
A sensible order:
- Estimate usage with
AI.COUNT_TOKENSand work out a daily budget. - Start with the per-user quotas and bring project quotas down to a realistic value.
- Set an alert on usage from the quotas page.
- Give embeddings, which aren't covered, their own control.
The catch: running out doesn't always fail the query
If the quota is already exhausted when the query starts, it fails up front with QuotaExceeded. But if it runs out midway, BigQuery stops sending new model calls and the outcome depends on the function: those with max_error_ratio (such as AI.IF) return partial results as long as unprocessed rows stay within the ratio, and general-purpose ones (such as AI.GENERATE) finish successfully, leaving skipped rows empty with the error in their status field.
A pipeline that doesn't check status can write empty rows and call the job done. If you turn on quotas, add that check in the same change.