Applications of Foundation Models

Four FMs meet an application's quality, latency, and context-length requirements and have identical output costs. For repeated requests, 90% of input tokens qualify for cache hits; the listed prices are per million input tokens, with no additional cache charges. Which FM minimizes input cost?

Show the answer

Correct answerD. Model B: $1.00 uncached; $0.10 cached

AWhy not this: Its effective input cost is $0.44 per million tokens, exceeding the lowest available cost.

BWhy not this: Its effective input cost is $0.60 per million tokens; the lowest uncached price does not guarantee the lowest total cost.

CWhy not this: Its effective input cost is $0.34 per million tokens, exceeding the lowest available cost.

DWhy this is right: Its effective input cost is $0.19 per million tokens because most tokens receive the cache-hit discount.

Model B has the lowest weighted input cost: 0.10 × $1.00 + 0.90 × $0.10 = $0.19 per million tokens. Model A has the lowest uncached price, but its effective cost remains $0.60; Models C and D cost $0.44 and $0.34.