API
Key balance and usage
Check how much of a key's budget is used and how much remains.
Request
curl https://api.llm-hub.dev/v1/key/info \
-H "Authorization: Bearer $LLMHUB_API_KEY"{
"object": "key.balance",
"key": "sk-...",
"budgetUsd": 25,
"usedUsd": 0.77,
"remainingUsd": 24.23,
"budgetDuration": "lifetime",
"models": ["gpt-5.6-sol", "..."]
}GET /v1/key/balance returns the same data. Per-request token usage is in the usage field of every response.
Last updated
