OpenAI
Nominally cheaper models inflate enterprise spending by failing basic tasks and triggering costly human escalations, making cost per completed task the only viable efficiency metric.
AI-assisted summary of Stop Overpaying for Intelligence | DevDay 2026 — original source. Check the original for full context.
Source published:
Key ideas
- Focusing strictly on list prices per token is a trap; cheaper token models often end up more expensive per completed task due to rambling, retries, and high human escalation costs. (0:13)
- Pairing lighter models like Luna with high reasoning effort ('Luna-maxing') frequently outperforms older or competing frontier models at a fraction of the operating cost. (7:44)
- Four primary levers beyond model selection dramatically cut spend: prompt caching (up to 90% discount), programmatic tool calling, reasoning effort tuning, and the Batch API (50% discount). (8:47)
- OpenAI introduced explicit breakpoints, explicit-only caching mode, and a Diagnostics API to debug cache misses and lock in deterministic hit rates across dynamic workflows. (18:43)
Detailed notes
## Background Published by OpenAI on YouTube on October 7, 2026, this DevDay presentation features AI deployment engineers sharing architectural strategies to slash API expenditures without compromising performance. According to the video description, the session covers measuring cost per completed task, tuning model selection and reasoning effort, and leveraging prompt caching, Programmatic Tool Calling, and the Batch API.
## TL;DR OpenAI deployment engineers Mandeep and Sapto warn that developers frequently fall into the trap of evaluating models based on raw cost per token rather than total cost per completed task, where weaker models can drive up costs through token bloat and human escalations. The panel advocates plotting setups along the Pareto frontier of accuracy versus expense, highlighting practices like 'Luna-maxing' to achieve frontier-level performance at lower tiers. To optimize further, they detail four concrete levers: prompt caching with explicit breakpoints and diagnostics, Programmatic Tool Calling to filter data before LLM ingestion, dynamic reasoning effort tuning, and asynchronous Batch API processing. Teams are encouraged to adopt a disciplined evaluation playbook that isolates single variables against production datasets to maximize efficiency.
## Atmosphere & style The session has the brisk, pragmatic energy of an open-air developer masterclass, blending conversational warmth with rigorous systems engineering advice. Host Arti facilitates a dynamic exchange between Mandeep and Sapto, whose rapport is grounded in relatable real-world engineering headaches—such as personal travel chatbot failures—rather than theoretical vendor pitching. It feels engaging and actionable, inviting the audience to trade superficial pricing comparisons for empirical benchmarking discipline.
## Bulletin - [00:13](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=13s) Focusing strictly on list prices per token is a trap; cheaper token models often end up more expensive per completed task due to rambling, retries, and high human escalation costs. - [07:44](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=464s) Pairing lighter models like Luna with high reasoning effort ('Luna-maxing') frequently outperforms older or competing frontier models at a fraction of the operating cost. - [08:47](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=527s) Four primary levers beyond model selection dramatically cut spend: prompt caching (up to 90% discount), programmatic tool calling, reasoning effort tuning, and the Batch API (50% discount). - [18:43](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1123s) OpenAI introduced explicit breakpoints, explicit-only caching mode, and a Diagnostics API to debug cache misses and lock in deterministic hit rates across dynamic workflows.
## Key takeaways - [00:13](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=13s) Developers frequently overpay for AI by evaluating raw token list prices rather than measuring true cost per completed task, which includes token volume and costly human fallbacks. - [00:13](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=13s) Customer implementations show capability drives token efficiency: Perplexity achieved 9% higher accuracy at half the cost with 6 Astra, and Notion cut cost per task by 50% transitioning to 5.6 Sol. - [04:47](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=287s) Model selection should start by defining crisp task boundaries and a target accuracy threshold, then finding the lowest-cost configuration along the Pareto frontier. - [07:44](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=464s) 'Luna-maxing'—running lightweight models with boosted reasoning effort—enables deploying Luna for 80% to 90% of developer workflows while only escalating edge cases to frontier models. - [08:47](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=527s) Prompt caching provides up to a 90% discount on input tokens by reusing pre-processed attention states for static prefixes like instructions, documentation, and few-shot examples. - [10:19](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=619s) Programmatic tool calling offloads intermediate API orchestration to lightweight code, preventing raw, noisy data round-trips from bloating the LLM context window. - [10:19](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=619s) Adopting programmatic tool calling allowed Clio to cut prompt tokens by 38% across multi-step document analysis workflows with zero loss in output quality. - [12:55](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=775s) Reasoning effort should be actively tuned independently of output length, dialing compute down for routine tasks and reserving extra reasoning tokens for high-leverage edge cases. - [12:55](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=775s) The OpenAI Batch API delivers a 50% cost discount for latency-tolerant, high-volume workloads processed asynchronously within a 24-hour window. - [16:41](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1001s) Keeping static prompt content at the prefix is essential for maximizing automatic cache hit rates; Blitzy increased cache reuse from 24% to 90%, slashing total costs by 87%. - [18:43](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1123s) Explicit breakpoints and explicit-only mode give developers deterministic control to dictate exact cache boundaries before variable user inputs. - [20:02](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1202s) Modern caching architecture allows developers to modify reasoning effort and update allowed tools mid-thread without invalidating or busting existing cached prefixes. - [20:02](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1202s) A new web admin dashboard tracks organization-wide cache hit rates, while a Diagnostics API compares query payloads to pinpoint the exact token boundary causing cache misses. - [21:20](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1280s) Engineering teams should iteratively test single variables against representative evaluation datasets to systematically advance their position along the accuracy-cost Pareto frontier.
## Detailed walkthrough ### [00:13](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=13s) The Metric Trap: Cost per Token vs. Cost per Task
Opening the DevDay outdoor stage session, host Arti welcomes attendees to a panel discussion with two members of OpenAI's AI deployment engineering team—Mandeep and Sapto—focused on how developers can dramatically optimize AI operational costs without sacrificing output quality. Arti identifies the single biggest mistake engineering teams make at the outset: focusing on the wrong metric. Most developers fixate on the raw list prices published on model pricing pages—the upfront cost of input and output tokens. Mandeep, who leads OpenAI's Applied AI Engineering team in San Francisco, explains that this surface-level view is deeply misleading: "A model that is cheap on cost per token basis may not be the cheapest model on cost per task basis."
```mermaid flowchart TD accTitle: Cost per Task Breakdown accDescr: Diagram illustrating how total task cost combines token consumption and human escalation expenses. subgraph Input ["Task Request"] REQ["User Request"] end
subgraph Evaluation ["Model Execution"] CHEAP["Cheaper Token Model"] FRONTIER["Frontier / Right-Sized Model"] end
subgraph Resolution ["Final Task Cost"] FAIL["High Token Usage / Failure"] --> ESC["Human Agent Escalation"] SUCCESS["Token-Efficient Direct Completion"] ESC --> TOTAL_HIGH["Higher Cost per Task (Tokens + Labor)"] SUCCESS --> TOTAL_LOW["Lower Cost per Task"] end
REQ --> CHEAP REQ --> FRONTIER CHEAP --> FAIL FRONTIER --> SUCCESS ```
Mandeep highlights two primary reasons a nominally cheaper model ends up driving overall expenditures higher. First, a less capable model often burns far more tokens—either rambling, generating redundant reasoning steps, or requiring multiple round-trip retries—to reach an acceptable answer. Second, and more costly, a weaker model frequently fails to complete the objective altogether, triggering expensive human fallbacks. Mandeep illustrates this with a personal travel mishap from the previous week. After his flight to New York City was canceled, he attempted to rebook via an airline customer support chatbot. Despite having "a soft spot for customer support chatbots" because his team helps build them, he found the bot incapable of understanding his basic constraint—that he refused to take a red-eye flight. Frustrated, he had to demand a human agent, who finally routed him through Houston in time for his team offsite. While the airline's underlying model might have cost fractions of a cent per token, the true cost of that task was the API tokens plus the expensive human labor required to finish the booking.
Real-world deployments from OpenAI customers underscore the impact of token efficiency and capability over unit token cost: - **Perplexity**: Reported on their research benchmarks that 6 Astra achieved 9% higher accuracy at half the overall cost compared to their previous model, because it required far fewer tokens to resolve queries. - **Notion**: Transitioned internal systems from 5.5 to 5.6 Sol, reporting improved accuracy alongside a 50% reduction in cost per task.
---
[04:47](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=287s) Right-Sizing Models Along the Pareto Frontier
When counseling businesses on model selection, Mandeep emphasizes that teams should never start by picking an arbitrary checkpoint. Instead, engineering must start by crisply specifying the task and defining a concrete accuracy threshold. In the airline chatbot scenario, an organization might establish an explicit service-level target such as resolving 80% of routine incoming traveler inquiries entirely autonomously. With GPT Live paired with 6.0 as a delegate model, for example, the airline could have settled the schedule conflict without ever involving a human representative.
To evaluate which setup best satisfies product requirements, Mandeep introduces the framework of the Pareto frontier. Developers should evaluate model candidates, prompt harnesses, and operational configurations by plotting accuracy against total cost. By testing varying configurations systematically against an evaluation dataset, teams can pinpoint the exact setup that clears their accuracy threshold at the absolute lowest cost per task.
- **Simple and Structured Tasks**: For classification, lightweight routing, or structured field extraction from documents, developers should begin testing smaller, highly efficient models early in the process. - **Complex Reasoning Tasks**: For ambiguous planning, high-stakes synthetic reasoning, or complex tool orchestration, teams should start at the frontier with 6 Astra, mapping downward along the frontier to see if a smaller model can hold the target accuracy bar.
---
[07:44](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=464s) The Power of "Luna-Maxing"
Addressing a question from Arti on what teams should do when a model's fitness isn't obvious upfront, Mandeep brings up a popular engineering practice known as "Luna-maxing." Many enterprise customers assume they must rely on massive frontier models for high-quality developer and production workflows. However, teams are frequently astonished to discover that running a lightweight model like Luna with its reasoning effort set to "high" or "extra high" frequently outperforms older, larger generation models and competing models while maintaining a fraction of their operating cost.
Rather than treating small models merely as rudimentary routers, numerous OpenAI customers now deploy Luna as the primary default engine for 80% to 90% of internal developer coding workflows. They configure their systems to escalate only to larger frontier models like 6 Astra or 6.1 Sol when an edge case genuinely requires deeper reasoning intelligence. Mandeep urges builders not to underestimate smaller models before benchmarking them thoroughly with boosted reasoning effort. Arti adds that the newly announced Decisions API similarly expands options for resolving straightforward decisions efficiently.
---
[08:47](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=527s) Four Levers Beyond the Model: Prompt Caching
Selecting the base model family is only the first step in cost governance. Sapto points out that identical models running the same core task can produce wildly divergent bills depending on how input data is structured, how context is passed, and how output generation is constrained. He outlines four distinct architectural levers developers can pull to curb spend while strictly preserving quality: 1. **Prompt caching** 2. **Programmatic Tool Calling** 3. **Reasoning effort tuning** 4. **Batch or Flex API processing**
Diving into the first lever, Sapto focuses on prompt caching, explaining that the most immediate savings come from eliminating redundant token processing across repeated prompt contexts. In a standard corporate customer support assistant, every single user turn typically re-sends extensive blocks of static knowledge—such as internal policy manuals, standard operating procedures, and company documentation. Instead of running full compute across these shared tokens on every incoming request, prompt caching reuses the pre-processed state of static prefix data across calls, restricting active token costs solely to the unique, novel user text and generated completions.
[10:19](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=619s) Lever 2: Programmatic Tool Calling
Sapto poses a real-world scenario to the audience: imagine an online ordering system where an agent processes incoming orders and needs to check whether there is sufficient stock available to fulfill them. Normally, the agent calls multiple tools, inspects what is missing versus what is arriving, and feeds all intermediate raw data back to the LLM reasoning engine. Sapto asks the crowd whether the model really needs to read, parse, and compare all of those raw tool outputs itself. Seeing heads shake in disagreement across the room, he confirms that it does not—and that this insight forms the core of the second major cost optimization lever: **programmatic tool calling**.
```mermaid flowchart TD accTitle: Programmatic Tool Calling Architecture accDescr: Diagram showing how a lightweight execution program coordinates tools and passes only a packaged report to the LLM.
subgraph LLM_Layer["LLM Decision Engine"] LLM["LLM Agent"] end
subgraph Execution_Layer["Programmatic Layer (Code)"] Program["Lightweight Program / Script"] T1["Inventory Tool"] T2["Shipment Tracking"] T3["Order DB"] end
LLM -->|"Dispatches execution task"| Program Program -->|"Calls"| T1 Program -->|"Calls"| T2 Program -->|"Calls"| T3 T1 -->|"Raw data"| Program T2 -->|"Raw data"| Program T3 -->|"Raw data"| Program Program -->|"Aggregated, packaged report"| LLM ```
Instead of sending every raw intermediary API payload across multiple round-trips into the context window, the model triggers a small program. That script orchestrates the required tool calls, calibrates and combines the responses, and returns a single, concise packaged report back to the LLM for final judgment. This setup avoids bloating the context window with intermediate noise and slashes the number of repetitive model invocations required by multi-step workflows.
To illustrate the real-world financial and performance impact, Sapto highlights **Clio**, an AI-powered legal software company that provides cloud management platforms to law firms: - **38% prompt token reduction:** Clio achieved a 38% decrease in prompt tokens across their multi-step document analysis workflows by adopting programmatic tool calling. - **Zero quality loss:** The savings came purely from changing how the application coordinates data with the model, without degrading output accuracy.
---
[12:55](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=775s) Levers 3 & 4: Reasoning Effort and Batch/Flex Processing
Turning to the third lever, Sapto addresses **reasoning effort**, urging developers to treat it as an active knob to test rather than a static configuration. Crucially, reasoning effort is distinct from generated output length: even a short, concise answer can require deep, token-heavy internal reasoning.
For routine routing or straightforward classification tasks, the baseline recommendation is to dial reasoning effort down to a lower tier and validate whether output quality holds via evals. Extra reasoning tokens should be reserved for difficult, highly differentiated tasks where the added compute genuinely moves the needle. Because model architectures evolve rapidly, developers should systematically test one parameter change at a time rather than guessing.
The fourth lever is the **Batch API** (or Flex processing), which centers on latency tolerance: "How much are you willing to wait?" When processing non-urgent, high-volume workloads such as analyzing thousands of asynchronous documents: - **24-hour turnaround window:** OpenAI Batch API processes requests asynchronously within 24 hours. - **50% discount:** Token costs are slashed by 50% compared to standard synchronous API pricing.
Sapto emphasizes that optimizing AI applications requires moving beyond the simple question of *"Which model family should I use?"* Developers must also ask, *"How much work am I going to make the model do?"* The ultimate goal is not chasing token minimization in a vacuum, but achieving a successful task outcome while balancing low cost and acceptable latency.
---
[15:29](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=929s) The Four Optimization Levers Summarized
Mandeep steps in to synthesize the four core mechanisms discussed so far, underscoring their cumulative impact on production unit economics:
1. **Prompt Caching:** Delivers up to a 90% discount on cached input token costs, making it the single largest potential price reducer in high-frequency applications. 2. **Programmatic Tool Calling:** Offloads data filtering, aggregation, and repetitive execution logic to code, preventing intermediary clutter from entering the model's context window. 3. **Reasoning Effort Tuning:** Allows granular control over model thinking time. Mandeep highlights a critical API milestone introduced with Astra: developers can now dynamically modify the reasoning effort parameter without invalidating or busting the prompt cache. 4. **Batch / Flex API:** Cuts pricing in half (50% off) for latency-tolerant, non-real-time workloads.
---
[16:41](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1001s) Deep Dive: Maximizing Prompt Cache Hit Rates
Mandeep pivots the conversation back to prompt caching, asking Sapto to unpack common developer mistakes and best practices for maximizing cache hit rates. When Sapto asks the audience how many are already using prompt caching, Mandeep quips, *"It's all of us. It's enabled by default."*
Despite automatic enablement, many teams leave substantial savings on the table because of poor prompt layout. OpenAI's primary design rule is: **keep the static beginning of your prompt strictly consistent.** By placing persistent system prompts, static few-shot examples, and shared tool definitions at the prefix of the prompt, the platform reuses the preprocessed attention states of that shared prefix. Only dynamic, variable user information placed at the end needs to be freshly computed, resulting in immediate drops in both latency and billing.
To demonstrate the upside of intentional cache structuring, Sapto shares results from **Blitzy**, an AI-powered software development platform: - Transitioned from a single structured output call to an iterative tool-calling loop. - **Cache reuse surged from 24% to 90%**. - Across thousands of production queries, Blitzy achieved **8.5× fewer prompt tokens** and **87% lower costs** compared to their previous baseline, while handling **2.2× more context**.
---
[18:43](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1123s) Explicit Breakpoints and Explicit-Only Mode
Mandeep raises a common real-world hurdle: keeping prompt prefixes identical is easy in theory, but in practice, prompt structures frequently shift across disparate user tasks and dynamic templates.
Sapto explains that earlier model families relied entirely on automatic caching heuristics based on fixed token intervals; developers could align their prompt prefixes, but they had no direct way to dictate boundary cutoffs. With the latest model generations, OpenAI introduced **explicit breakpoints**.
An explicit breakpoint functions as a developer-defined directive telling the system: *"Cache up to this exact point."* For example, in an agentic coding workflow with extensive, persistent system guidelines followed by rapidly changing tasks, an engineer can place an explicit breakpoint directly after the stable instructions and right before the dynamic user input. This guarantees that the core instructions hit the cache every time, regardless of varying input lengths downstream. For teams requiring strict, deterministic billing boundaries, the API also includes an **explicit-only mode**, enabling applications to specify precisely which designated chunks are eligible for caching.
[20:02](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1202s) Prompt Caching Flexibility and Observability Tools
Selective caching is essential for real-world efficiency because developers should never cache volatile content that changes frequently and will not be reused across requests. Sapto highlights a major advancement in caching architecture: developers now have the ability to dynamically adjust reasoning effort within an ongoing conversation without invalidating the cache prefix. Arti jumps in to underscore an existing, underappreciated feature—developers can also swap or update the tools passed to the model (such as specifying them via `allowed_tools` or other parameter controls) without breaking the cache. Together, these controls grant engineering teams immense architectural flexibility to tweak reasoning depth and toolsets on the fly while preserving high cache hit rates.
OpenAI has paired these caching capabilities with dedicated observability tooling to help teams actively audit and debug their token savings. A dedicated prompt caching dashboard is available on the admin web portal, allowing teams to monitor, measure, and track cache hit rates across all production applications. Additionally, a new Diagnostics API accepts two queries and pinpoints the exact boundary where a cache miss occurred, eliminating the guesswork from prompt restructuring and turning prompt caching into an easily actionable cost-optimization lever.
- **Dynamic reasoning without cache invalidation**: Reasoning effort can be adjusted mid-thread without busting the cached context. - **Cache-safe tool definitions**: Modifying available tools via parameters like allowed tools preserves existing cached prefixes. - **Admin caching dashboard**: Provides visibility into organization-wide cache hit rates across distinct application endpoints. - **Diagnostics API**: Compares two prompt payloads and isolates the precise token position causing a cache miss.
```mermaid flowchart TD accTitle: Diagnostics and Cache Optimization Flow accDescr: Flow showing how the Diagnostics API identifies prompt mismatches to protect cache hits while varying reasoning and tools.
subgraph Inputs ["Prompt Requests"] Q1["Baseline Prompt Prefix"] Q2["Modified Prompt / Follow-up"] end
subgraph CachingEngine ["Cache-Preserving Modifications"] RE["Adjust Reasoning Effort"] TL["Update Allowed Tools"] end
subgraph Observability ["Observability & Debugging"] Diag["Diagnostics API (Detects Miss Point)"] Dash["Admin Dashboard (Tracks Hit Rates)"] end
Q1 --> CachingEngine Q2 --> CachingEngine CachingEngine --> Diag Diag --> Dash ```
---
[21:20](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1280s) Core Levers and the Practical Evaluation Playbook
Arti summarizes the session's overarching framework for eliminating unnecessary spend: developers must abandon naive token list prices and instead optimize for total "cost per completed task." By locating configurations on the Pareto frontier of accuracy versus cost, teams can balance performance and expense using key tactical levers: prompt caching, Programmatic Tool Calling, dialed-in reasoning effort, and the Batch API.
Turning to practical implementation, Arti asks Mandeep and Sapto for their parting guidance on what developers should immediately do when returning to their codebases. Mandeep outlines a structured, metrics-driven testing workflow:
1. **Establish task boundaries and requirements**: Clearly define the exact task and establish the baseline accuracy threshold required by the business or use case. 2. **Assemble representative evals**: Curate an evaluation dataset that accurately mirrors production usage patterns. 3. **Explore configuration permutations**: Systematically test candidate models across diverse reasoning effort levels, prompt variations, and prompt caching harnesses. 4. **Plot the Pareto frontier**: Graph accuracy against cost to identify the optimal configuration harness that satisfies business accuracy requirements at minimal spend.
Sapto closes with an essential rule of discipline for ongoing iteration: isolate and test a single variable or improvement at a time. Once a concrete gain is verified, lock that setting in and continue to run evaluations continuously as models, prompts, and application requirements evolve.
## Notable quotes > [00:13](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=13s) A model that is cheap on cost per token basis may not be the cheapest model on cost per task basis. — Mandeep
> [00:13](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=13s) a soft spot for customer support chatbots — Mandeep
> [12:55](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=775s) How much are you willing to wait? — Sapto
> [12:55](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=775s) Which model family should I use? — Sapto
> [12:55](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=775s) How much work am I going to make the model do? — Sapto
> [16:41](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1001s) It's all of us. It's enabled by default. — Mandeep
> [16:41](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1001s) keep the static beginning of your prompt strictly consistent.
> [18:43](https://www.youtube.com/watch?v=_nmlHbSB8kM&t=1123s) Cache up to this exact point. — Sapto
## Mentioned OpenAI, Arti, Mandeep, Sapto, Perplexity, 6 Astra, Notion, 5.5, 5.6 Sol, GPT Live, 6.0, Luna, 6.1 Sol, Decisions API, Clio, Batch API, Flex API, Blitzy, Diagnostics API
## Video description Cut AI costs while preserving quality. Learn to measure cost per completed task, choose models and reasoning effort, and use prompt caching, Programmatic Tool Calling, and the Batch API.
[Source](https://www.youtube.com/watch?v=_nmlHbSB8kM)