Issue in fetching OpenAI API usage, billing cost, and credit balance programmatically for backend monitoring
OpenAI Developer Community
April 28, 2026
Hi everyone,
I’m trying to fetch OpenAI API usage, billing cost, and credit balance programmatically for backend monitoring.
I tried calling the below endpoints. GET /v1/usage GET /v1/dashboard/billing/usage GET /v1/dashboard/billing/credit_grants GET /v1/dashboard/billing/subscription
But did not get any response from these endpoints.
Discussion in the ATmosphere