#vercel-ai-sdk

Code editor showing an AI SDK 7 result object with usage tokens aggregated across multiple agent steps

AI SDK 7 Changed usage. Your Token Counts Are Now Wrong

If a project upgraded to AI SDK 7 and its per-request token costs suddenly look higher than before, nothing is actually costing more. result.usage used to report only the final step's tokens. In AI

Tue Sep 29 2026 · 6 min read · 0 views

AI