Control your API costs with automated spending limits and proactive usage alerts when approaching budget thresholds.
Set a spending limit in 3 steps:
Requirements: Paid tier account with organization owner permissions.
Spend limits automatically protect your budget by blocking API access when you reach your monthly cap. The limit applies organization-wide across all API keys, so usage from any team member or application counts toward the same shared limit. If you hit your set limit, API calls from any key in your organization will return a 400 with code blocked_api_access
. Usage alerts notify you via email before you hit the limit, giving you time to adjust usage or increase your budget.
This feature offers:
⚠️ Important: There's a 10-15 minute delay in spend tracking. This means you might exceed your limit by a small amount during high usage periods.
Navigate to Settings → Billing → Limits and click Add Limit.
Example Monthly Spending Limit: $500
Your API requests will be blocked when you reach $500 in monthly usage. The limit resets automatically on the 1st of each month.
Set up email notifications before you hit your limit: Alert at $250 (50% of limit) Alert at $375 (75% of limit) Alert at $450 (90% of limit)
To add an alert:
Alerts appear as visual markers on your spending progress bar on Groq Console Limits page under Billing.
All spending alerts and limit notifications are sent from [email protected] to your billing email addresses.
Update billing emails:
Pro tip: Add multiple team members to billing emails so important notifications don't get missed.
Start conservative: Set your first limit 20-30% above your expected monthly usage to account for variability.
Monitor patterns: Review your usage for 2-3 months, then adjust limits based on actual consumption patterns.
Leave buffer room: Don't set limits exactly at your expected usage—unexpected spikes can block critical API access.
Use multiple thresholds: Set alerts at 50%, 75%, and 90% of your limit to get progressive warnings.
Check your account tier: Spending limits are only available on paid plans, not free tier accounts.
Verify permissions: You need organization owner permissions to manage spending limits.
Feature availability: Contact us via [email protected] if you're on a paid tier but don't see the spending limits feature.
Verify email addresses: Check that your billing emails are correct in Settings → Billing → Manage.
Check spam folders: Billing alerts might be filtered by your email provider.
Test notifications: Set a low-dollar test alert to verify email delivery is working.
Check your spending status: The limits page shows your current spend against your limit.
Increase your limit: You can raise your spending limit at any time to restore immediate access if you've hit your spend limit. You can also remove it to unblock your API access immediately.
Wait for reset: If you've hit your limit, API access will restore on the 1st of the next month.
Q: Can I set different limits for different API endpoints or API keys?
A: No, spending limits are organization-wide and apply to your total monthly usage across all API endpoints and all API keys in your organization. All team members and applications using your organization's API keys share the same spending limit.Q: What happens to in-flight requests when I hit my limit?
A: In-flight requests complete normally, but new requests are blocked immediately.Q: Can I set weekly or daily spending limits?
A: Currently, only monthly limits are supported. Limits reset on the 1st of each month.Q: How accurate is the spending tracking?
A: Spending is tracked in near real-time with a 10-15 minute delay. The delay prevents brief usage spikes from prematurely triggering limits.Q: Can I temporarily disable my spending limit?
A: Yes, you can edit or remove your spending limit at any time from the limits page.Need help? Contact our support team at [email protected] with details about your configuration and any error messages.