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. | | 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 |