Get Model Breakdown
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
Get Model Breakdown
Retrieve a per-model cost and usage breakdown for the authenticated user. This endpoint provides detailed consumption statistics for every model you’ve used, including request counts, token usage, and total cost.Documentation Index
Fetch the complete documentation index at: https://docs.electronhub.ai/llms.txt
Use this file to discover all available pages before exploring further.
Response
Returns an object containing:- total_consumption — Your total API spend across all models
- models — A map of model IDs to their usage statistics
- last_updated — ISO timestamp of the last usage update
Model Fields
Each model entry in themodels object contains:
- requests — Total number of requests made to this model
- input_tokens — Total input tokens consumed
- output_tokens — Total output tokens generated
- total_cost — Total cost in credits for this model
- owned_by — The provider/owner of the model (e.g.
openai,anthropic,google,deepseek)
Example Response
Code Examples
Use Cases
- Cost Analysis — Identify which models consume the most credits
- Usage Optimization — Find underused or overused models to optimize spending
- Provider Breakdown — See spending distribution across providers (OpenAI, Anthropic, Google, etc.)
- Budget Planning — Track per-model costs to forecast weekly credit consumption
- Model Comparison — Compare token efficiency across different models
Authorizations
Enter your API key (starts with 'ek-')
Response
200 - application/json
Success
Total API spend across all models (in credits/USD)
Example:
12.847
Map of model IDs to their usage statistics
Example:
{
"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"
}
}ISO timestamp of the last usage update
Example:
"2026-03-02T15:30:00Z"
