API referenceGenerated
Cost Timeseries
Per-minute cost + token totals over the last N minutes — drives the real-time spending chart.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Query Parameters
minutes?Minutes
Range
1 <= value <= 1440Default
30Response Body
application/json
application/json
curl -X GET "https://example.com/costs/timeseries"[ { "bucket": "2019-08-24T14:15:22Z", "estimated_cost_usd": "string", "calls": 0, "total_tokens": 0 }]{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}