9d33b6aad674

latestOpenAPI 3.0.0Proprietary2026-08-062711471.0 MB
Billing

Get credit consumption history

Returns daily credit consumption broken down by AI model. Optionally filter with start_date and end_date (ISO dates).

get/public/v1/billing/credits/history

Query parameters

start_datestring nullable
Example:2026-05-01
end_datestring nullable
Example:2026-05-31

Response

Credit history grouped by date and model

Example response

{
  "results": [
    {
      "date": "2026-05-12",
      "aiModelId": 1,
      "model": "gpt-4o",
      "modelName": "GPT-4o",
      "analyticsColor": "example",
      "totalCredits": 42.5,
      "messageCount": 120
    }
  ]
}