curl --request GET \
--url https://aquila.attaxr.com/api/budget/provider-quota \
--cookie better-auth.session_token=const options = {method: 'GET', headers: {cookie: 'better-auth.session_token='}};
fetch('https://aquila.attaxr.com/api/budget/provider-quota', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/budget/provider-quota"
headers = {"cookie": "better-auth.session_token="}
response = requests.get(url, headers=headers)
print(response.text){
"error": "<string>"
}Get provider-side plan quota
Live usage per AI provider, read from each provider’s own official usage endpoint where one exists: Z.ai’s monitor endpoint (the credit windows the plan enforces — the rolling 5-hour session window, monthly and weekly limits), Anthropic’s Admin-API usage report for today so far with the full input/output/cached token split (needs an admin API key; a standard workspace key reads key-not-supported), and OpenRouter’s per-key usage when the openai-compatible base URL is the OpenRouter gateway. Providers without a per-user usage API report unavailable with a reason — no usage figure is ever fabricated; the Budget page’s charts still show the usage events recorded from model calls.
curl --request GET \
--url https://aquila.attaxr.com/api/budget/provider-quota \
--cookie better-auth.session_token=const options = {method: 'GET', headers: {cookie: 'better-auth.session_token='}};
fetch('https://aquila.attaxr.com/api/budget/provider-quota', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/budget/provider-quota"
headers = {"cookie": "better-auth.session_token="}
response = requests.get(url, headers=headers)
print(response.text){
"error": "<string>"
}Authorizations
Browser session cookie set by Better Auth sign-in.
Response
One snapshot per supported provider — usage windows or the reason none are available.

