cURL
curl --request GET \ --url https://forge.gloo.ai/api/v1/cost \ --header 'Authorization: Bearer <token>'
{ "data": [ { "bucketStart": 123, "totalInputTokens": 123, "totalOutputTokens": 123, "totalThinkingTokens": 123, "totalTokens": 123, "totalCost": 123, "eventCount": 123, "runCount": 123, "successCount": 123, "failureCount": 123, "avgCostPerEvent": 123 } ], "meta": { "requestId": "<string>", "hasMore": true, "nextCursor": "<string>" } }
API key from /api/v1/keys. Pass as Authorization: Bearer <key>.
Authorization: Bearer <key>
Aggregation bucket size
hourly
daily
weekly
monthly
Start timestamp in milliseconds
End timestamp in milliseconds
Filter by interface ID (must match caller identity)
Cost data
Show child attributes