Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The cache sample used for the cost comparison

The dashboard screenshots expose the input-cache-hit, input-cache-miss, and output split for three selected days:

Combined, those samples contain:

Token categorySample tokensSample share
Input cache hits2,225,207,68098.6602%
Input cache misses23,305,8481.0333%
Output6,911,5040.3064%
Total2,255,425,032100%

Scaling that exact mix to 14 billion tokens gives:

Token categoryNormalised millions of tokens
Input cache hits13,812.433168 MTok
Input cache misses / cache writes144.665359 MTok
Output42.901473 MTok
Total14,000 MTok

The cost formula is:

cost =
    cache-hit MTok × cache-hit price
  + cache-miss MTok × miss/write price
  + output MTok × output price

This calculation includes all three categories. It does not price 14 billion tokens as though they were all cheap cache hits.