Calculation
Cost = input tokens × input rate + output tokens × output rate + cached tokens × cached rate. Output tokens usually cost more than input, and cached input less. A token is not a fixed number of words.
Token pricing is a pricing model for AI language models in which usage is charged per token, a small unit of text or other content that the model processes or generates, usually quoted per million tokens. Input tokens, output tokens and cached input tokens are typically priced at different rates.
Cost = input tokens × input rate + output tokens × output rate + cached tokens × cached rate. Output tokens usually cost more than input, and cached input less. A token is not a fixed number of words.

October 13, 2026
Understand input tokens, output tokens, prompt caching, and the billing decisions behind an AI service.
Previous term
TM ForumNext term
Usage-Based Billing