AI Help
How do I set separate AI API budgets for development and production?
Separate development and production into provider projects or equivalent scopes and monitor their budgets and usage independently.
Steps to follow
- Create distinct approved project scopes and credentials for each environment. Keep production credentials out of development configuration.
- Configure available budget alerts, access and rate limits. Verify whether a budget is an alert or an enforced spending cap.
- Add application-side limits when a hard operational ceiling is required and reconcile usage regularly.
Example in practice
Illustrative example. A staging load test uses development credentials so its usage can be identified without consuming untracked production budget.
Related AI help
- How do I measure time to first token versus total response time in a streaming AI app?
- How do I delete uploaded files from an AI API project after processing?