Skip to content

Latest commit

 

History

History
156 lines (114 loc) · 5.77 KB

sample-report.md

File metadata and controls

156 lines (114 loc) · 5.77 KB

Claude Code Usage Analysis Report

Analysis Period: 2026-07-01 to 2026-07-21 (21 days) Report Generated: 2026-08-02 23:05:10

Executive Summary

  • Total Cost: $250.25
  • Total Tokens: 533,035,939
  • Total Input Tokens: 72,146
  • Total Output Tokens: 288,186
  • Cache Creation Tokens: 23,807,770
  • Cache Read Tokens: 508,867,837
  • Overall Cache Efficiency: 95.47%

Per-Request Token Statistics

Analysis of token usage across individual requests:

Token Type Count Mean Median P75 P95 Max
Input Tokens 42 1,717 1,591 2,453 2,881 2,999
Output Tokens 42 6,861 6,772 8,982 11,191 11,292
Cache Write 42 566,851 570,686 699,347 834,179 865,158
Cache Read 42 12,115,900 12,141,949 15,851,705 17,084,611 17,774,590
Total Tokens 42 12,691,331 12,747,823 16,349,711 17,509,834 18,361,623

Estimated Usage Per Minute (8-hour workday)

  • Mean Usage: 52,880 tokens per minute at $0.02 per minute, i.e. a daily spend of $11.92 for 25,382,663 total tokens.
    • Per minute: 7 input, 28 output, 2,361 cache create, 50,482 cache read.
  • Median Usage: 53,622 tokens per minute at $0.02 per minute, i.e. a daily spend of $11.87 for 25,738,709 total tokens.
    • Per minute: 6 input, 28 output, 2,411 cache create, 51,188 cache read.
  • P95 Usage: 70,434 tokens per minute at $0.03 per minute, i.e. a daily spend of $15.25 for 33,808,622 total tokens.
    • Per minute: 10 input, 43 output, 3,175 cache create, 68,199 cache read.

Model Usage Patterns

Model Combinations Used:

  • haiku-4-5 + opus-4-8: 21 days

Daily Cost Analysis

Total Daily Cost

Metric Mean Median P95 Min Max
Total Cost $11.92 $11.87 $15.25 $8.21 $15.77

Daily Cost Breakdown by Token Type

Token Type Mean Median P95 Total % of Total
Input Tokens $0.01 $0.01 $0.02 $0.21 0.08%
Output Tokens $0.19 $0.17 $0.32 $4.06 1.62%
Cache Creation $4.44 $4.66 $5.92 $93.26 37.27%
Cache Read $7.27 $7.46 $9.74 $152.72 61.03%

Daily Token Usage Statistics

Token Type Mean Median P95 Min Max
Input Tokens 3,435 3,342 4,899 1,403 5,045
Output Tokens 13,723 13,455 20,694 7,392 21,471
Cache Creation 1,133,703 1,157,641 1,524,400 621,021 1,553,078
Cache Read 24,231,801 24,570,334 32,735,970 13,649,012 33,003,449
Total Tokens 25,382,663 25,738,709 33,808,622 14,784,440 34,360,257

Cache Efficiency Analysis

Cache efficiency is calculated as: (Cache Read Tokens / Total Tokens) x 100

Metric Mean Median P95 Min Max
Cache Efficiency 95.31% 95.72% 97.32% 92.32% 97.37%

Model-Specific Analysis

opus-4-8

Days Used: 21 Cache Efficiency: 95.19%

Pricing (per million tokens):

  • Input: $5.00
  • Output: $25.00
  • Cache Creation: $6.25
  • Cache Read: $0.50

Cost Breakdown by Token Type

Cost Type Mean Median P95 Total % of Model Cost
Input Tokens $0.01 $0.01 $0.01 $0.17 0.08%
Output Tokens $0.16 $0.14 $0.27 $3.27 1.56%
Cache Creation $3.78 $3.70 $5.20 $79.38 37.78%
Cache Read $6.06 $6.04 $8.55 $127.29 60.58%
TOTAL $10.01 $10.32 $13.39 $210.11 100.00%

Token Statistics

Token Type Mean Median P95 Total
Input 1,591 1,655 2,819 33,425
Output 6,228 5,432 10,935 130,808
Cache Create 604,804 591,476 832,323 12,700,885
Cache Read 12,122,886 12,073,292 17,094,157 254,580,622
Total 12,735,511 12,803,706 17,446,333 267,445,740

haiku-4-5

Days Used: 21 Cache Efficiency: 95.74%

Pricing (per million tokens):

  • Input: $1.00
  • Output: $5.00
  • Cache Creation: $1.25
  • Cache Read: $0.10

Cost Breakdown by Token Type

Cost Type Mean Median P95 Total % of Model Cost
Input Tokens $0.00 $0.00 $0.00 $0.04 0.10%
Output Tokens $0.04 $0.04 $0.06 $0.79 1.96%
Cache Creation $0.66 $0.61 $1.04 $13.88 34.59%
Cache Read $1.21 $1.22 $1.69 $25.43 63.35%
TOTAL $1.91 $1.85 $2.55 $40.14 100.00%

Token Statistics

Token Type Mean Median P95 Total
Input 1,843 1,527 2,884 38,721
Output 7,494 7,514 11,195 157,378
Cache Create 528,899 487,330 834,277 11,106,885
Cache Read 12,108,915 12,210,606 16,903,251 254,287,215
Total 12,647,152 12,691,941 17,513,177 265,590,199

Key Insights

  1. Daily Cost Composition: Your average daily cost of $11.92 breaks down as:

    • Input tokens: $0.01 (0.08%)
    • Output tokens: $0.19 (1.62%)
    • Cache creation: $4.44 (37.27%)
    • Cache reads: $7.27 (61.03%)
  2. Cost Variability: With a P95 of $15.25, your highest usage days cost approximately 1.3x the average.

  3. Cache Utilization: Your average cache efficiency of 95.31% is excellent, significantly reducing processing costs.

  4. Primary Model: opus-4-8 accounts for $210.11 (83.96%) of total costs.

  5. Monthly Projection: Based on average daily cost, projected monthly cost is approximately $357.49.