XNews

Agent Task Cost Formula: Total Tokens × Per‑Token Price × Cache Ratio Defines Model Selection

In agent‑stage tasks, per‑token cost is misleading because agents loop through multiple rounds with tool calls and code execution. The true cost formula is: total token consumption × cost per token × cache hit ratio. This shift from per‑token thinking to per‑task calculation guides model selection for agent applications, where rounds and total token volume matter more than unit price.

Source posts