HPE hybrid AI platform cuts token costs 30‑50% by measuring cost per merged pull request
A developer‑focused AI agent does far more than answer a single prompt. It plans, writes code, runs tests and iterates, often consuming ten to fifty times more tokens than a basic chat interaction. Because many pricing models charge per token, the most valuable workflows can also become the most costly. Recent examples include Uber, which reportedly exhausted its entire 2026 AI budget by April after expanding its use of Claude Code, and GitHub Copilot’s shift from flat‑rate pricing to metered credits. Gartner forecasts that AI‑coding token costs will exceed average developer salaries by 2028.
The article argues that token counts are an imperfect metric for value, proposing cost per merged pull request as a more meaningful measure. This metric divides total AI‑assisted development cost by the number of changes that pass review and are merged, while also tracking rework and defects to ensure quality is not sacrificed. If the cost per merged pull request falls as AI usage rises, developers are converting higher consumption into useful software.
A suggested approach is to match the model to the task. High‑cost, frontier models or on‑premises flagship models can be reserved for complex planning and novel reasoning, while routine work such as code generation, test creation and refactoring can be routed to open‑weight models operated internally. A gateway can direct requests based on task complexity, data sensitivity, cost and latency, allowing premium inference to be applied only when justified.
Ownership of inference capacity changes the economics. With rented inference, each call adds to the bill; with owned capacity, most costs are fixed upfront, making additional calls cheaper as usage grows. Owned capacity also keeps proprietary code inside the enterprise, limiting external exposure to only approved planning prompts. HPE’s hybrid AI platform, which routes routine workloads from more than 150 internal applications to on‑premises open‑weight models, reportedly reduced token costs by 30‑50 percent. The company tracks cost per active developer and cost per merged pull request to assess the impact of moving to owned capacity.
The piece concludes that most enterprises will adopt a hybrid model—using frontier APIs for demanding or intermittent tasks and owned capacity for repeatable volume—governed by a gateway that protects code sovereignty. As AI‑assisted development expands, the choice lies between higher variable‑cost bills and greater software output on owned infrastructure. Companies that succeed will build operating models where increased AI use improves economics rather than merely inflating costs.
Read the original at MIT Tech Review