How much do AI tokens cost?
Providers normally publish rates per million tokens. A request can combine standard input, cached reads, cache writes, model output and separately billed tools. Long-context thresholds may change the price for every token in the request. For that reason, a single blended “price per token” can be misleading.
How do you calculate LLM API cost?
standard input tokens / 1,000,000 × input rate + cached tokens / 1,000,000 × cache rate + output tokens / 1,000,000 × output rate + tool and modality charges = total
PiSkill uses unrounded decimal arithmetic internally and rounds only for presentation. Provider billing systems and taxes may differ.