How to Evaluate Coding Model Cost-Effectiveness After API Price Increases
When major model APIs raise prices, leaderboard scores rarely match real coding work. This article shows how to compare models on one fixed task—a Kyle-style trading simulation game—using the same prompt and scoring output quality, token use, cache hits, reasoning depth, and iteration count, then turns those measurements into a reusable selection method.
1. Why cost-effectiveness has to be measured on your own workload
Major large-model APIs have recently gone through a clear round of price changes, and the cost of some flagship models has roughly doubled. For engineers and small teams that rely heavily on models for day-to-day development, that shows up directly on the bill. It also brings back an old question: under the new price structure, which model is actually the better value?
Public leaderboards and vendor claims each have their own angle, and benchmark scores often diverge from real workloads. The more reliable approach is to design a task close to your own daily work, run several models under identical inputs, and score them together on output quality, token consumption, cache hits, and iteration count. This article walks through that method with one concrete case.
2. The evaluation task: a “market controller” mini-game
2.1 Why this task
The task was chosen against a few design principles:
- Broad coverage. It involves front-end rendering, state management, real-time animation, and trading-logic modeling, so it exercises several model capabilities at once.
- Results you can see. Whether the game is playable, and whether the price action looks plausible, is obvious at a glance. That avoids the “high score, no feel” problem of pure benchmarks.
- Moderate complexity. A single run typically consumes millions of tokens and costs somewhere from a fraction of a dollar to a few dollars, which is cheap enough for a small side-by-side comparison.
The task is a trading simulation in which the user plays a large participant (an informed trader) alongside retail bots that follow a classic market-microstructure model. That model comes from a foundational 1985 paper on price discovery and liquidity. Its core idea is that an informed trader’s order flow leaks information through the market maker’s pricing rule, and prices gradually converge toward fundamental value. That makes it a good way to generate prices with internal logic rather than pure white noise.
2.2 The original prompt
To keep the comparison fair, every model received the same initial instruction, in one shot, with no multi-turn steering:
Design like a game and allow me to be the controller of thestock market and manipulate a bunch of retail investors thatfollow Kyle-style trading with different params, or purelywhite-noise traders.
The instruction is short and specifies only three things: make it a game, make the user the controlling side, and make the opponents bot traders with different parameters. That kind of open prompt is exactly where capability gaps show up. A stronger model will fill in the game loop, round goals, and visualization panels on its own; a weaker one will stop at a half-finished prototype.
As a reference point, one overseas flagship model also received a second iteration that added turn-based objectives:
- Push the price above a strike before the close (bang the close).
- Accumulate below VWAP.
- Distribute a large order without cracking the price.
Those three goals turn a sandbox into a game with a win condition, and they also serve as the reference for judging one-shot quality across models.
3. Quality criteria and cost accounting
3.1 Quality
- Requirement fidelity. Does the result actually implement “user controls the market + bot counterparties”?
- Emergent design. Does the model add useful extras on its own, such as round goals, candlestick charts, a position panel, or bot profiles?
- Playability. Is interaction smooth, are the numbers reasonable, and are there obvious logic holes?
- One-shot success. Can a single prompt produce something you can deploy, or does it need repeated fixes?
3.2 Cost
Unit price alone is not the cost:
- Total tokens. On a complex task, millions of tokens are often the main cost driver.
- Cache hit rate. In multi-turn work, context prefixes repeat heavily. Differences in cache hits can change the real bill by several times.
- Reasoning-depth tier. Reasoning models often offer several depth settings. Higher tiers can improve quality but raise cost sharply, so you need the quality–cost knee, not the maximum by default.
- Iteration count. If one model finishes in one pass and another needs three repair rounds, total cost has to be summed across rounds.
4. Side-by-side results
The test covered several China-based flagship and reasoning models. All of them were run through an agent coding tool (Agent Harness) at the highest reasoning setting, on the trading game above.
Overall observations:
- Flagship general models. One pass was enough to reach a fully playable result. Page structure, the trading panel, and bot behavior were all in reasonable shape. Usage was on the order of millions of tokens, and a relatively high cache hit rate kept the actual cost at only a few cents.
- Lightweight fast variants. They respond quickly and have a low unit price, but a single pass was a bit weaker on numerical modeling and on a complete game loop. They fit exploration better than final delivery.
- Reasoning models at the highest thinking tier. With depth turned all the way up, quality matched or slightly exceeded the flagships, but token use was clearly higher and has to be weighed against that gain.
- The overseas flagship used as a control. Two iterations cost on the order of ten dollars. Quality was genuinely strong, but under the new prices that gap is already hard to ignore. Midway through, it also refused to keep upgrading features on “potential risk” grounds, while every China-based model in the test finished in one pass.
The cost-effectiveness takeaway can be reduced to a simple formula:
Value = one-shot success rate × output quality / (tokens used × unit price × iteration count)
On this task, the China-based flagship models that combined strong cache hits with a one-pass result led on that formula. The sample is a single task, so the ranking is only a reference—but the method is general.
5. A reusable way to choose models
Based on this run, a few suggestions for developers facing higher prices:
- Build your own benchmark set. Pick three to five medium-complexity tasks close to daily work. When prices change or a new model appears, run the same set. That is more reliable than any public leaderboard.
- Include cache hit rate in the cost model. In agent workflows, multi-turn context is highly repetitive. Ignoring cache differences badly distorts the estimate.
- Split models by task stage. Use a fast, cheap tier for prototypes and a flagship tier for final delivery. Set reasoning depth from task difficulty instead of always maxing it out.
- Treat mid-task refusal as a hidden cost. A model that refuses to answer or to continue iterating wastes work already paid for. Completion continuity belongs in the selection criteria.
- China-based models are already credible substitutes. On a real engineering task, a set of China-based flagships was competitive on both quality and cost. A price-increase cycle is a good time to reassess the stack.
Appendix: The informed-trader model behind the task
The evaluation task draws on foundational 1985 work in market microstructure. That model splits participants into three groups: informed traders (who know the asset’s true value), noise traders (who submit random orders), and a market maker (who sets prices from order flow). The market maker watches the direction and size of net order flow, infers that informed traders may be present, and adjusts quotes. Prices therefore absorb private information over time. The framework explains why prices can reflect information and why large orders move the market. It is a theoretical basis for thinking about liquidity, bid–ask spreads, and price impact. Driving the game’s bots with it gives the price series statistical features of a real market, which is part of what makes the benchmark task useful.
One last point: there is no absolute winner on cost-effectiveness, only a relative answer for your task distribution. Spending a small amount to run your own benchmark is more useful than arguing on social media about which model is “the best.”
