v1

latestOpenAPI 3.0.1MIT2026-07-26236440.2 KB
User

Get Model Breakdown

Retrieve a per-model cost and usage breakdown for the authenticated user, including request counts, token usage, total cost, and provider information for every model used.

get/user/models

Response

Success

total_consumptionnumber required

Total API spend across all models (in credits/USD)

modelsobject required

Map of model IDs to their usage statistics

last_updatedstring date-time nullable

ISO timestamp of the last usage update

Example response

{
  "total_consumption": 12.847,
  "models": {
    "gpt-4o": {
      "requests": 342,
      "input_tokens": 128450,
      "output_tokens": 67230,
      "total_cost": 4.215,
      "owned_by": "openai"
    },
    "claude-sonnet-4-20250514": {
      "requests": 156,
      "input_tokens": 89200,
      "output_tokens": 45100,
      "total_cost": 3.628,
      "owned_by": "anthropic"
    }
  },
  "last_updated": "2026-03-02T15:30:00Z"
}