← All questions
Inference & ServingMedium· Cost Modeling· Throughput· Infrastructure

Finance wants a single number for cost per query before...

Cost per query is not a constant; it is an infrastructure spend amortized over throughput. A strong answer avoids multiplying simple per-token API prices by average token counts. Instead, it requires asking for the production batch size or queries-per-second (QPS) to calculate the actual cost, then provides a detailed breakdown of costs at that specific operating point.

Code playground (Python)