Skip to content

GET /api/v1/metering/costs/summary

Status: GA Access: token required API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

Costs Summary

Cost + tokens + brave aggregated by day / contract / model / provider.

Auth: Authorization: Bearer <token> required

Terminal window
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/metering/costs/summary" \
-H "Authorization: Bearer <token>"

The contract carries no example for this response; schema: array of CostSummaryRow. Field-level shape: interactive explorer.

array of CostSummaryRow — Successful Response

FieldTypeDescription
brave_callsintegerWeb-search API calls billed to this bucket.
cost_micro_usdinteger
keystring
runsinteger
total_tokensinteger
ParameterInRequiredTypeDefaultConstraintsDescription
group_byqueryno"day" | "contract" | "model" | "provider""day"day, contract, model, provider
ai_company_idquerynointeger | null——
fromquerynostring | null—date-time
toquerynostring | null—date-time
CodeMeaningBody
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.