cd /news/ai-infrastructure/sample-gcloud-commands-for-setting-b… · home › topics › ai-infrastructure › article
[ARTICLE · art-143866] src=gist.github.com ↗ pub= topic=ai-infrastructure verified=true sentiment=· neutral

Sample gcloud commands for setting BigQuery Gen AI quota / limits

A developer published a set of gcloud commands for adjusting BigQuery's generative AI token quotas, covering daily input and output token limits both per project and per user. The snippets use `gcloud quotas preferences update` with quota IDs such as GenAiInputTokensPerDay and GenAiOutputTokensPerUserPerDay, showing the default values of 200B and 150B input tokens and 20B and 15B output tokens respectively.

by read1 min views1 publishedOct 1, 2026

| | # Replace YOUR_PROJECT_ID with your Google Cloud project ID and | | | # update each --preferred-value from its default to your target daily limit. | | | # 1. Daily input tokens per project (Default: 200B) | | | gcloud quotas preferences update custom-GenAiInputTokensPerDay \ |

|  | --project=YOUR_PROJECT_ID \ | 
|  | --service=bigquery.googleapis.com \ | 
|  | --quota-id=GenAiInputTokensPerDay \ | 
|  | --preferred-value=200000000000 \ | 
|  | --allow-high-percentage-quota-decrease \ | 
|  | --allow-missing | 
|  | # 2. Daily input tokens per user (Default: 150B) | 

| | gcloud quotas preferences update custom-GenAiInputTokensPerUserPerDay \ |

|  | --project=YOUR_PROJECT_ID \ | 
|  | --service=bigquery.googleapis.com \ | 
|  | --quota-id=GenAiInputTokensPerUserPerDay \ | 
|  | --preferred-value=150000000000 \ | 
|  | --allow-high-percentage-quota-decrease \ | 
|  | --allow-missing | 
|  | # 3. Daily output tokens per project (Default: 20B) | 

| | gcloud quotas preferences update custom-GenAiOutputTokensPerDay \ |

|  | --project=YOUR_PROJECT_ID \ | 
|  | --service=bigquery.googleapis.com \ | 
|  | --quota-id=GenAiOutputTokensPerDay \ | 
|  | --preferred-value=20000000000 \ | 
|  | --allow-high-percentage-quota-decrease \ | 
|  | --allow-missing | 
|  | # 4. Daily output tokens per user (Default: 15B) | 

| | gcloud quotas preferences update custom-GenAiOutputTokensPerUserPerDay \ |

|  | --project=YOUR_PROJECT_ID \ | 
|  | --service=bigquery.googleapis.com \ | 
|  | --quota-id=GenAiOutputTokensPerUserPerDay \ | 
|  | --preferred-value=15000000000 \ | 
|  | --allow-high-percentage-quota-decrease \ | 
|  | --allow-missing |
── more in #ai-infrastructure 4 stories · sorted by recency
miren.dev · · #ai-infrastructure
Miren
── more on @google cloud 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sample-gcloud-comman…] indexed:0 read:1min 2026-10-01 · —