Get the remaining credits via the API
OpenAI Developer Community
May 11, 2026
ms-code:
> is this not working right now ?
Not working ever.
You cannot call the APIs used internally for the platform site’s web interface with an API key, nor without the caller being a web browser.
Observe the URL you found nowhere in the API documentation and the error message saying you are not authorized with that authentication method.
Discussion in the ATmosphere