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

  1. Create distinct approved project scopes and credentials for each environment. Keep production credentials out of development configuration.
  2. Configure available budget alerts, access and rate limits. Verify whether a budget is an alert or an enforced spending cap.
  3. 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

Official guidance

OpenAI documentation