The tool looks for these columns by name: model, input tokens, cached input tokens, cache writes, output tokens, cost and request count. You can change any choice in the row of menus above the results. Rows are added up per model.
Each model name is matched to the UplinkSwitch catalog, first exactly, then without a provider prefix such as openai/, a date suffix or -latest. So gpt-4o-2024-08-06 is priced as gpt-4o.
OpenAI counts cached tokens inside its input tokens. The tool subtracts them, so they are not counted twice. Anthropic's export keeps them apart, and the tool leaves them apart.
Each line costs uncached input at the input rate, plus cached input at the cached rate, plus cache writes at the input rate, plus output at the output rate, all per million tokens. A model with no cached rate charges cached tokens at the input rate.
The first total is what you paid, when the export has a cost column. Without one, the tool prices the same tokens at the developer's list price and labels the total "At list price". The second total uses our price for the same tokens.