How to set a monthly spending limit
Choose how much pay-as-you-go can spend each month
Written by Brian Hollis
August 22, 2026
Updated October 16, 2026
How to set a monthly spending limit
Open Pay As You Go in your dashboard, enter a monthly limit from $1 to $100,000, and save it. When pay-as-you-go charges reach that amount, further requests that would use your balance return 402 ER0177.
Where do you set the pay-as-you-go spending limit?
Find the Monthly spending limit card on the Pay As You Go page. Enter an amount in US dollars and click Save limit. The card also shows your spending so far, such as “$12.40 of $50.00 used this month (25%)”.
Only the workspace owner can change the limit. It applies across all the owner’s workspaces because they share the same balance. Admins, members, and viewers do not see this control.
You can set a limit from $1 to $100,000. An empty or zero value means no limit: pay-as-you-go requests can continue until the balance runs out. Other amounts outside the accepted range are rejected.

What happens when the spending limit is reached?
The next request that would charge your balance returns HTTP 402 with code ER0177:
{
"status": "not_ok",
"errors": [
{
"status": 402,
"code": "ER0177",
"message": "Monthly pay-as-you-go spending limit reached."
}
]
}
The rejected request costs nothing. SSE sends ER0177 as an event: error. WebSocket sends an error frame and closes with code 4006.
ER0177 means you have reached your chosen spending limit. ER0176 (“You have no points on your account”) means you have no plan credits or funds left. See what happens when you run out of requests.
Does the spending limit affect my plan quota?
No. Your plan credits remain available even after you reach the pay-as-you-go limit. The limit applies only to requests charged to your balance at $0.01 each, after your plan credits run out.
See What is Pay As You Go? for the order in which credits and funds are used.
When does the spending counter reset?
Spending is counted by calendar month in UTC. At the start of a new month, your spending count returns to zero and requests can resume. Your chosen limit stays in place.
To resume before then, raise or remove the limit in the dashboard.
How do you watch your spend and get warned early?
The dashboard and API help you track the amount left:
- At 80%: you receive an “Approaching spending limit” dashboard notification and email.
- At 100%: you receive a “Spending limit reached” notification and email. Requests charged to your balance stop until next month or until you raise the limit.
- On API responses:
x-budget-remainingshows how many cents you can still spend. This header appears whenever a limit is set.
You can turn email alerts on or off in dashboard notification settings.
Common Questions
How do I remove the spending limit?
Select Remove limit under the Monthly spending limit card on Pay As You Go. Requests can then use your balance until it runs out. You can set a new limit at any time.
Why can’t I change the spending limit?
Only the workspace owner can change it. If you are an admin, member, or viewer, ask the owner to update the limit.
Does the limit cap how much I can top up?
No. It limits monthly spending from your balance, rather than the amount you can add or hold. You can keep a larger balance while setting a lower monthly limit, from $1 to $100,000.
What’s the difference between hitting the limit and running out of balance?
At the spending limit, requests return 402 ER0177. You may still have funds; raise the limit or wait for next month to use them.
With no balance or plan credits left, requests return 402 ER0176. Add funds or wait for your quota to renew. Rejected requests cost nothing in both cases.