Token Usage & Cost

You might say

My API bill blew up this month. What am I actually paying for?

The cumulative model tokens in a task and the price calculated from the model’s rate cardSystem rules, chat history, files, tool results, and model output all use tokens across a multi-turn task. Cost also depends on the model and separate input, output, and cached-token prices; external tools may have their own fees.
Further reading