Engineering brief

The Real AI Cost Lever Is Cost Per Task, Not Token Price

OpenAI3 min read · saves 20 min

At a glance

The brief is enough

Relevance
Practical value
Radar
Time horizon
Now
Warnings
  • Vendor pitch

OpenAI says cost per task, not token price, should drive AI model choices; one customer cut prompt tokens 38% by coding around tool calls, another cut cost 87% with cache discipline. The operational catch: every saving needs evals.

AI cost management shifts from picking the cheapest model to measuring cost per completed task and tuning workflow.

Watch if you are choosing or upgrading a model for a production AI workflow and own its budget.

Summary

The core metric. OpenAI's applied AI team argues that per-token list prices mislead budget decisions. The metric that matters is cost per completed task, including human intervention when it fails. A canceled flight example makes the point: a cheap per-token chatbot could not rebook a passenger, so the real cost included an agent's time. Perplexity reported 9% more accurate results at half the cost with Astra, and Notion reported better accuracy at half the cost per task on migration.

Right-sizing models. Start by defining the task and the accuracy threshold the business expects, then build a representative eval set. Test models, reasoning settings, prompts and harnesses, and plot accuracy against cost. A smaller model often wins: Luna at high or extra-high reasoning beats larger older models, and OpenAI says customers use it for 80 to 90% of workflows. The catch is that this holds only when the eval set reflects production usage.

Four levers. Beyond the model, the panel lists prompt caching, programmatic tool calling, reasoning effort, and batch or flex processing. Prompt caching can cut cached input costs by up to 90%. Programmatic tool calling moves intermediate result processing out of the model and into code; legal software company Clio reported 38% fewer prompt tokens in multi-step document analysis with no quality loss. Batch processing offers roughly 50% lower pricing for a 24-hour window. Each changes latency or determinism; the tradeoffs are real.

Cache discipline. Prompt caching is automatic, but teams rarely design prompts to use it. Keep the start of the prompt stable; newer model families support explicit breakpoints for stable sections and explicit-only caching for frequently changing ones. OpenAI added a caching dashboard and a diagnostics API for finding misses. Blitzy, an AI software company, improved cache reuse from 24% to 90% by moving to Luna's tool calling loop, reporting 8.5x fewer output tokens, 87% cheaper cost versus GPT-5.4 Mini, 2.2x more context.

The trade-offs. Savings depend on organizational discipline. Lower reasoning effort can degrade quality, so evals must run iteratively. Batch saves money only when immediate responses are not needed. Programmatic tool calling keeps context out of the model, but moves judgment into code that must be maintained. All the customer percentages come from OpenAI's own engagements, so they are directional evidence, not independent benchmarks.

The takeaway. The useful signal for engineering leaders is that AI cost is largely a workflow design problem; model selection is only part of it. Instrument cost per completed task, define accuracy thresholds, and treat caching, tool orchestration and reasoning effort as budget levers. Validate any migration with internal evals before trusting vendor-reported savings.

My take

Cost per task is the right frame, and most teams still manage AI spend by token price. The part OpenAI underplays is how much engineering work the fix requires. Defining what counts as a completed task, building representative evals, instrumenting human fallback, and tuning prompts, caches and tool calls is real work. I'd be careful treating customer percentages from a vendor keynote as your numbers. Those savings come from teams that already had measurement in place. For everyone else, the first step is cheaper: log every task, classify success, count human interventions. Then the levers have somewhere to land.

What to do with this

  1. Instrument one production AI workflow to measure cost per completed task, including human fallback, before changing models.
  2. Add prompt caching design with a stable prefix or explicit breakpoints, then track cache hit rate in the vendor dashboard.
  3. Run a Pareto eval comparing models, reasoning effort and tool-calling patterns on a representative task set.

Watch the video

This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.

Related breakdowns

Get TL;DW

Too Long; Didn't Watch.

A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.

Free. Weekly. No hype.

Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.