Measure first: log input and output tokens per request from ChatResponse.Usage and chart cost per feature and per tenant; set Azure Cost Management budgets and alerts on the Azure OpenAI / Foundry resource so spend never surprises you. Then reduce:
ChatOptions.MaxOutputTokens, and cache repeated answers with Microsoft.Extensions.AI's UseDistributedCache() on the ChatClientBuilder (it wraps an ASP.NET Core IDistributedCache such as Redis; exact-match only, so it helps for identical prompts).Re-run your evaluation set after each change, because a cost cut that silently lowers quality is a false saving.
Checks whether they can turn token knowledge into concrete cost controls and measure them.
Green flags
Red flags
Last updated 23 Nov 2026.