Account
Get credits
Your organization's prepaid credit: total_credits, the credit it has added, and total_usage, what it has spent, in US dollars. Zeros before any credit.
Request
curl https://api.llm.buzz/api/v1/credits \
-H "Authorization: Bearer $LLM_BUZZ_MANAGEMENT_KEY"Response
{
"data": {
"total_credits": 25,
"total_usage": 3.25
}
}{
"error": {
"code": 401,
"message": "Missing Authentication header",
"metadata": {
"error_type": "authentication",
"gateway_code": "missing_authentication"
}
}
}{
"error": {
"code": 403,
"message": "Only management keys can perform this operation; use a management key, created on the console Keys page",
"metadata": {
"error_type": "permission_denied",
"gateway_code": "management_key_required"
}
}
}Authorization
A management key, created on the console's Keys page, as Authorization: Bearer KEY. The samples read it from $LLM_BUZZ_MANAGEMENT_KEY; an inference key gets 403 management_key_required.
Response 200
The credit, as {"data": ...}.
Errors
401No
Authorizationheader (missing_authentication), or the key is unknown, expired, revoked or disabled (invalid_key).403An inference key called a route that takes a management key. Create one on the console's Keys page.