BRK247 · Breakout

Token economics: Get more from your production AI budget

  • Wednesday 18 November
  • 46 min
  • Catalogue level: (200) Intermediate
  • Our depth rating: 300
  • Worth watching: 2/3

Speakers: Chris Hoder, Kosti Vasilakakis, SukYeon Jung, Alex Tyrrell

Watch on Microsoft’s site from 04:48

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

The session shows how to see, optimize and control token spend in Microsoft Foundry. Kosti Vasilakakis demos the estate-wide cost view in the Manage tab, drilling from project cost to traces (finding zero prompt-cache reuse), automatic Insights, Evaluations with Model Router and Optimizations that produce a roughly 90% cheaper agent configuration. Chris Hoder walks through four cost levers: model choice with custom evals, cache-friendly prompts, matching workloads to tiers (Standard, Priority, Provisioned, Batch, Flex, data zones) and PTU base load with automatic spillover at about 70% sizing. Wolters Kluwer and Enhans describe their practices, including 90%+ prefix cache hits and routing about 90% of execution to cheaper models. The session ends with a demo of budget controls in dollars or tokens with audit, alert or block actions.

Best for: Platform engineers and AI developers running production agents on Microsoft Foundry who need to diagnose and cut token costs and cap spend.

Session timeline by chapter

New material starts at 04:48. After speaker introductions and a Foundry recap, the first demo of the estate-wide cost view in the Manage tab starts here.

Where to skip: Skip to 04:48; the demo block 04:48–17:39 (cost view, traces, Insights, Optimizations) and the budget controls at 43:28 are the core. The four levers at 26:55–37:07 are useful technical guidance on caching, tiers and PTU spillover; the Wolters Kluwer caching details at 22:31 are worth a look, while 17:39–22:31 and the Enhans story at 37:07 can be skipped.

Chapters (14)

  1. 00:06 Recap Depth 100 · Novelty 0/3

    Speaker introductions, why token economics matters and a Microsoft Foundry overview

    Kosti Vasilakakis introduces co-presenter Chris Hoder and the customer speakers from Wolters Kluwer and Enhans, and frames the session around understanding, optimizing and controlling AI budgets. He outlines what developers, platform teams and finance teams each ask about token spend. He then recaps Microsoft Foundry as the platform to build, run and improve agents, with a large model catalogue, the IQ context layers (Work IQ, Foundry IQ, Fabric IQ) and tools for connecting to business systems.

  2. 04:48 Demo Depth 200 · Novelty 2/3

    Why agents inflate token bills, and the estate-wide cost view in the Foundry Manage tab

    Kosti explains that despite better price-performance, bills grow because agents reason, call tools, run longer and run in parallel. Using a Woodgrove Bank fraud scenario, he shows the Foundry Manage tab, which aggregates projects, agents and models across subscriptions and resource groups for users with the right permissions. The view shows KPIs such as agent runs, token consumption and estimated cost, flags assets with the highest error rate, latency or growth, and a cost dashboard gives spend over time, a month-end forecast and agent-versus-model cost breakdown.

  3. 09:01 Demo Depth 300 · Novelty 2/3

    Drilling from project cost to traces: finding zero prompt-cache reuse

    From the fleet view Kosti drills into the fraud-risk project with three agents, its cost and monthly forecast, and spots that the fraud case review agent rose from about 5 to about 20 cents per run. He jumps to the agent's traces, which show cost, duration and tokens per session and can be filtered by version or success. Opening a version 2 trace tree and the call metadata reveals an expensive GPT-6 Sol model with zero cache reuse, caused by putting the datetime at the top of the prompt.

  4. 12:26 Demo Depth 300 · Novelty 2/3

    Insights: automatically generated cost, latency and error findings with proposed fixes

    Because inspecting traces one by one does not scale, Kosti presents the Insights capability that automatically analyses traces and generates insights for latency, errors and cost. Opening an insight shows which traces were analysed and what was found; in the demo it identified 13 linked traces using the same policy and carrying context irrelevant to the agent. Each insight includes a proposed fix that can be applied to improve the agent.

  5. 14:08 Demo Depth 300 · Novelty 2/3

    Evaluations and Optimizations: picking cheaper models and auto-tuning agent config

    Kosti uses Evaluations to compare six models for the agent; Model Router in cost mode matches GPT-6 Sol's accuracy while cutting spend by about 90%. He then shows Optimizations, which searches configurations against an objective such as reducing cost, using selected models plus a customer dataset and custom rubric. The resulting candidate is about 90% cheaper with a slightly better average score, and a side-by-side diff shows the switch from Sol to Luna, prompt reordering to raise cache hits and a shorter prompt, ready to deploy.

  6. 17:39 Customer story Depth 100 · Novelty 1/3

    Wolters Kluwer: expert-in-the-loop agents in CCH Axcess and UpToDate Expert AI

    Alex Tyrrell introduces Wolters Kluwer, its professional segments and two AI products. CCH Axcess is an agentic tax and accounting platform where agents run workflow tasks and professionals verify critical steps, integrated into APIs and the desktop product rather than bolted on. UpToDate Expert AI supports clinical decisions at the point of care, built on evidence reviewed by thousands of clinicians, with a focus on trust.

  7. 22:31 Customer story Depth 300 · Novelty 1/3

    Wolters Kluwer Expert AI internals: PTUs filled with evals and 90%+ prefix cache hits

    Alex describes the Expert AI harness (MCP, tools, grounding, RAG) and the central role of evals. Scaling on Microsoft Foundry, they bought PTUs early and filled low-utilization periods with continuous evaluation runs. Moving from a chatty multi-agent design, they focused on prefix caching as the biggest lever, put plans and decision trees into a compressed prefix and hill-climbed on evals (including GEPA) to reach better than 90% cache hit rates across solutions.

  8. 26:55 Deep dive Depth 300 · Novelty 1/3

    Four cost levers; lever 1: choosing the right model per step with custom evals

    Chris Hoder returns to the Woodgrove example and introduces four levers: model choice, caching, demand shaping and scaling. For model choice he stresses defining what good looks like with evaluations, using pre-built evaluators but usually custom ones; Woodgrove uses four custom criteria and 50 cases from a senior analyst. He contrasts the expensive GPT-6 Sol with Model Router, configurable to exclude models, and the cheaper GPT-6 Luna whose quality dropped, arguing that model and prompt must be optimized together.

  9. 29:39 Deep dive Depth 300 · Novelty 1/3

    Levers 2 and 3: cache-friendly prompts and matching workloads to tiers (Flex, Batch, PTU)

    Lever 2 puts stable content first: fixing prompt order in the Woodgrove case reaches about a 60% cache match and cuts input cost from about $17 to $6 for 50 cases, always re-checked against evals. Lever 3 maps workloads to offerings: Standard as the default, Priority and Provisioned for low latency, Batch and Flex for non-critical work at 50% savings, and Global, Data Zone (US, Europe, APAC) or Regional processing at increasing premium. Chris shows orchestrator code that tags workloads and routes background rescoring to Flex, with the response reporting which tier served the call.

  10. 33:46 Deep dive Depth 300 · Novelty 1/3

    Lever 4: PTU base load with automatic spillover and ~70/30 sizing

    Chris explains how throttling at scale raises tail latency through retries. The recommended architecture reserves PTU for base load (guaranteed throughput, latency SLA, hourly billing) and automatically spills overflow to pay-per-token Standard or Priority, which the service handles. Sizing PTU for roughly 70% of traffic avoids throttling without idle capacity; fallow PTU time at weekends can be used by routing Flex work to PTU and failing over to Flex. He wraps up the four levers before handing over.

  11. 37:07 Customer story Depth 200 · Novelty 1/3

    Enhans: missing context layer and Foundry-based evaluation shortening release cycles

    SukYeon Jung presents Enhans, which builds an agent OS that unifies CRM, ERP and database data into a semantic layer for agents, working with 50+ enterprise customers. He argues AI projects stall at POC due to a missing context layer, citing a study where only 14 of 95 real tasks succeeded. Enhans engineers define right and wrong answers with customers, which become Foundry tests run across models and agent versions, which they say shortened release and evaluation cycles.

  12. 40:04 Customer story Depth 200 · Novelty 1/3

    Enhans token-cutting stack: routing, caching, ontology context and feedback loop

    Enhans splits work into planning, orchestration and execution, sending about 10% to frontier models and about 90% of repetitive execution to cheaper or open models such as GLM or GPT Luna. They cache stable context, give agents upfront context about what to do and which tools to call to avoid repeated end-to-end scans, and use Microsoft Foundry for routing, caching and the feedback loop. Combined, they claim about 38x better performance per token, illustrated by a manufacturer's cost ontology running on Azure Kubernetes Service in the customer's tenant that moved from a two-year POC to production.

  13. 43:28 New Depth 200 · Novelty 2/3

    Foundry budget controls: dollar or token budgets from resource down to session, audit or block

    Kosti shows newly launched budget controls in Microsoft Foundry. Budgets can be scoped to a Foundry resource, project, model, agent or a single session, defined in dollars or tokens, reset daily, weekly or monthly, and set to audit, alert or block when reached. He shows existing budgets, one scheduled to start on January 1, and an agent budget applied to the whole agent or per session, where calls from the playground or API return a budget-exceeded error naming the enforcing control.

  14. 45:29 Closing Depth 100 · Novelty 0/3

    Wrap-up: see, optimize and control token spend; request for feedback

    Kosti recaps the session: visibility across the estate, fixing and optimizing spend, customer lessons, and cost controls he says were launched the day before. He thanks the audience and customers and asks for product feedback.

Announcements (4)

  • 07:23 not stated Microsoft Foundry

    Foundry estate-wide cost and operations view (Manage tab)

    Shows agents, models and projects across subscriptions and resource groups with cost, error rate, latency and growth KPIs plus a cost dashboard with forecast.

    Speaker’s quote (at 07:23)
    „So we created this space where you can see within the manage, if you have of course the right permissions to see, you see across subscriptions“
  • 12:26 not stated Microsoft Foundry

    Insights in Microsoft Foundry

    Automatically analyses agent traces and generates insights on cost, latency and errors with a proposed fix.

    Speaker’s quote (at 12:26)
    „for this reason, we actually built a capability called Insights, which we'll give it a minute, the video will go to“
  • 15:10 not stated Microsoft Foundry

    Optimizations in Microsoft Foundry

    Automatically generates optimized agent configuration candidates (model, prompt) for an objective such as reducing cost, using your dataset and rubric, with a transparent diff.

    Speaker’s quote (at 15:10)
    „optimizations is a capability that we automatically optimize for different objectives. In this case, I select reduce cost“
  • 43:28 not stated Microsoft Foundry

    Budget controls in Microsoft Foundry

    Lets you set dollar or token budgets on a Foundry resource, project, model, agent or session with daily, weekly or monthly reset and audit, alert or block enforcement.

    Speaker’s quote (at 43:28)
    „I just want to show you some new capabilities that we've launched in Foundry, where not only you're able to see, analyze, and improve your spend“

Demos (5)

  • 06:25 Not stated Microsoft Foundry

    A platform lead at Woodgrove Bank gets an overview of what all agents and models across the estate cost and which are growing fastest.

    Steps (6)
    1. Open the Manage tab in Microsoft Foundry.
    2. Review the estate across subscriptions, resource groups and projects (here 5 projects, 11 agents, 17 models).
    3. Check the summary KPIs: agent runs, token consumption and estimated cost for the time frame.
    4. Review which assets have the highest error rate, highest latency and fastest growth versus the previous period.
    5. Open the cost dashboard to see spend over time, the month-end forecast and the split between agent cost and direct model cost.
    6. Segment cost per project, per agent and per model to find what costs most and grows fastest.

    Prerequisites: Permissions to view the relevant subscriptions and resource groups; agents and models deployed in Foundry.

  • 09:29 Not stated Microsoft Foundry

    A developer or admin investigates why one agent's cost per run quadrupled after a new version was deployed.

    Steps (7)
    1. In the cost dashboard, click the fraud-risk project to open its project-level cost view.
    2. Review cost and month-end forecast for the project's three agents.
    3. Identify the fraud case review agent whose cost per run rose from about 5 to about 20 cents.
    4. Open the traces of that agent to see cost, duration and tokens per session.
    5. Filter traces by version 2 (deployed last week) and open one trace.
    6. Inspect the trace tree of tool invocations and reasoning steps.
    7. Select a model call and check the metadata panel, which shows zero cache reuse.

    Prerequisites: Agents with tracing in Foundry; permissions to the project.

  • 13:38 Not stated Microsoft Foundry

    A developer lets Foundry find cost problems across many traces instead of inspecting them manually.

    Steps (4)
    1. Open the Insights tab for the agent.
    2. Review the automatically generated insights for latency, errors and cost.
    3. Open a cost insight to see which traces it analysed and what it found (13 linked traces using the same policy with unnecessary context).
    4. Read the proposed fix at the bottom and apply it to improve the agent.

    Prerequisites: Agent traces collected in Foundry.

  • 14:38 Not stated Microsoft Foundry

    A developer finds an equally good but cheaper configuration for the fraud agent and deploys it.

    Steps (7)
    1. Open Evaluations for the agent and select several models to compare (GPT-6 Sol, Model Router cost mode, DeepSeek, GPT OSS and others).
    2. Compare accuracy score and cost; note Model Router cost mode matches accuracy at about 90% lower spend.
    3. Open Optimizations and select the objective 'reduce cost'.
    4. Select the candidate models, your own dataset and a rubric defining what good looks like.
    5. Run the optimization and review the candidates by cost and average score.
    6. Open a candidate to compare the current configuration (left) with the optimized one (right): smaller model, reusable prompt parts moved up, shortened prompt.
    7. Deploy the optimized agent version.

    Prerequisites: An agent in Foundry, an evaluation dataset and a rubric (built-in or custom).

  • 44:27 Not stated Microsoft Foundry

    An admin caps spend for a project or agent so that exceeding the budget is audited or blocked.

    Steps (6)
    1. Open the budget controls area in Foundry and review existing budgets.
    2. Create a budget and choose the scope: Foundry resource, project, model, agent or session.
    3. Define the budget in dollars or tokens and the reset period (daily, weekly, monthly); optionally schedule a start date (e.g. January 1).
    4. Choose what happens when it is reached: audit, alert or block.
    5. For an agent, apply the budget to the whole agent or per session.
    6. Invoke the agent from the playground or API; once exceeded, the call returns budget exceeded with the enforcing control.

Watch on Microsoft’s site: BRK247