Access billing balance & costs via Admin API

Hey everyone,

Has anyone else run into this? I’ve been trying to build a tool that lets me check my OpenAI credit balance programmatically — but even with an Admin key, the billing endpoints return 403/401.

It feels like a missing piece for anyone building AI-native products. My agent should be able to tell me my balance on demand.

What I’d love to see:

  • GET /v1/organization/billing/balance via Admin key
  • Daily cost breakdown per model (in dollars, not just tokens)
  • Low-balance webhook alerts

Is this planned? Anyone found a workaround?

Thanks :slight_smile:

Daily spend is available through the Costs API, including billed line-item breakdowns: https://developers.openai.com/api/reference/python/resources/admin/subresources/organization/subresources/usage/methods/costs. We haven’t verified the balance endpoint or low-balance webhooks you asked for. We’ll pass those requests along; no timeline to share yet.