- Organization total spend limit: The combined spend of every user and API token in your Organization, across all Workspaces.
- Per-User spend limit and Per-API Token spend limit: The default limit for each user and each API token that doesn’t have a limit of its own.
- Spend limit overrides: A limit for one specific user or API token. An override replaces the default for that user or API token.
LabsThe Per-User spend limit, Per-API Token spend limit, and Spend limit overrides are in Labs. Contact your account team to enable them. The Organization total spend limit is available without Labs.
What counts toward a limit
A spend limit measures Astro AI spend. This total is the sum of both billable line items:- Model Chargeback
- Intelligence fee
Prerequisites
- The Organization Owner or Organization Billing Admin role.
- AI features enabled for your Organization. See Toggle AI features for your Organization. When AI features are disabled, the AI usage and limits page isn’t available.
Open the AI usage and limits page
- In the Astro UI, click Organization Settings.
- In the AI section, click AI usage and limits.
Set the Organization total spend limit
- On the AI usage and limits page, click the edit button next to Organization total spend limit.
- Enter a monthly limit in US dollars.
- Click Save.
Set default limits for users and API tokens
The Per-User spend limit applies to every user that doesn’t have an override. The Per-API Token spend limit applies to every API token that doesn’t have an override. The two defaults are independent. For example, you can set a limit for users and no limit for API tokens.- On the AI usage and limits page, click the edit button next to Per-User spend limit or Per-API Token spend limit.
- Enter a monthly limit in US dollars. The maximum is $100,000.
- Click Save.
Set a spend limit override
An override sets a limit for one user or API token. It can be higher or lower than the default, and it replaces the default for that user or API token.- On the AI usage and limits page, click Spend limit overrides.
- Click the Users tab or the API Tokens tab. To find a specific user or API token, use the search field.
- In the Limit (Billing Cycle) column, click the limit for the user or API token.
- Enter a monthly limit in US dollars. The maximum is $100,000.
- Click Save.
- The override, if the user or API token has one.
- The default, followed by (User default) or (API Token default), if no override exists.
- No limit, if no override or default exists.
What happens when a limit is reached
The Organization total spend limit applies to every surface that uses Astro AI, including:- Otto in the Astro UI and the Astro CLI.
- AI-powered authoring in the Astro IDE.
- Otto code review and investigations.
Spend limits are soft limits. Astro can take a few minutes to detect that a user, an API token, or the Organization has reached a limit. Requests that run during this time can finish, so total spend can go slightly above a limit.
Astro doesn’t send a warning or email before a limit is reached. The AI usage and limits page shows a limit status only for the Organization total spend limit: whether current spend is above or below the limit. The page doesn’t show a status for per-user or per-API token limits.