Skip to documentation
DEVELOPER DOCS / HASHBIDXMODEL ACCESS. ONE INTEGRATION.

Tenant usage

Usage summary

Usage and charges bucketed by hour or day; without start, the window reaches back 30 days from end, which defaults to today (UTC). The response is wrapped in a {code, data, message} envelope; the fields below live under data.

GET/v1/usage/summary

Key request parameters

ParameterTypeDescription
bucketstringday | hour. Defaults to day.
startdateInclusive start, YYYY-MM-DD; defaults to 30 days before end
enddateInclusive end, YYYY-MM-DD; defaults to today (UTC)
model_iduuidOptional model UUID filter

Key response parameters

ParameterTypeDescription
bucketstringday or hour
startdateEffective start date
enddateEffective end date
bucketsBucket[]Per-window stats
buckets[].window_startdatetimeISO 8601 UTC
buckets[].model_iduuidPresent when filtering by model
buckets[].request_countintegerNumber of requests in this window
buckets[].total_tokensintegerTotal tokens
buckets[].tenant_chargedecimal stringTotal charge in this window
buckets[].currencystringISO 4217

Integration examples

Replace the API key and model ID in these examples with your values.

cURL
cURL
curl "https://hashbidx.ai/v1/usage/summary?bucket=day&start=2026-09-01&end=2026-09-22" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Python
Python
import httpx

resp = httpx.get(
    "https://hashbidx.ai/v1/usage/summary",
    params={"bucket": "day", "start": "2026-09-01", "end": "2026-09-22"},
    headers={"Authorization": "Bearer <YOUR_API_KEY>"},
)
resp.raise_for_status()
print(resp.json())
Node.js
Node.js
const params = new URLSearchParams({
  bucket: "day",
  start: "2026-09-01",
  end: "2026-09-22",
});
const resp = await fetch(`https://hashbidx.ai/v1/usage/summary?${params}`, {
  headers: { Authorization: "Bearer <YOUR_API_KEY>" },
});
console.log(await resp.json());
Go
Go
req, _ := http.NewRequest("GET",
  "https://hashbidx.ai/v1/usage/summary?bucket=day&start=2026-09-01&end=2026-09-22", nil)
req.Header.Set("Authorization", "Bearer <YOUR_API_KEY>")
resp, err := http.DefaultClient.Do(req)
Rust
Rust
let resp = reqwest::Client::new()
    .get("https://hashbidx.ai/v1/usage/summary")
    .query(&[("bucket","day"),("start","2026-09-01"),("end","2026-09-22")])
    .bearer_auth("<YOUR_API_KEY>")
    .send().await?;

If the response includes X-Request-Id, include it when troubleshooting an issue.

All API endpoints
BUILD WITH HASHBIDX

Find your model. Make your first call.

Models & pricing