Get API key
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.

GET/api/v1/credits
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
  }
}

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.

Keys and limits

Response 200

The credit, as {"data": ...}.

Errors

  • 401

    No Authorization header (missing_authentication), or the key is unknown, expired, revoked or disabled (invalid_key).

  • 403

    An inference key called a route that takes a management key. Create one on the console's Keys page.

Every error code

Docs