DAGet the newsletter
Business

Cheaper AI model for simple tasks sharply cut the bill in LangChain test

LangChain let a router choose between three AI models in its coding agent Open SWE. The median cost per thread fell 64 percent, with no demonstrable decline in results.

October 2, 2026, 06:21Updated 14 OctoberAI-generated from the sources listed, with automated source checks.

AI-generated image

Not every task requires the most expensive AI model. That is the starting point for an experiment by the software company LangChain, which tested a so-called router in its open source coding agent Open SWE. Engineers use the agent through Slack and a web interface to ask questions about codebases and request code changes.

How the router worked

The router is an AI model that reads the first message in a conversation and picks one of three tiers: fast (GLM-5.3-Flash), balanced (GPT-5.6 Sol) or performance (GPT-6 Astra). The choice applies to the whole conversation and is not changed along the way.

The experiment ran from September 16 to 22, 2026, and split 973 threads between a routed group and a control group. The control group always used GPT-6 Astra with low reasoning effort.

In the routed group, 56 percent of threads went to the balanced tier, 34 percent to the fast tier and 10 percent to the performance tier.

Lower cost, same results

The median cost per thread was $0.94 with routing, compared with $2.61 in the control group, a drop of 64 percent. The average cost fell 42 percent.

At the same time, 29.2 percent of the routed threads produced a merged pull request (a code proposal that has been approved and added to the project), versus 27.3 percent in the control group. The difference is not statistically significant, so it may just as well be down to chance. The share of threads in which a pull request was opened was 38.9 versus 39.6 percent, again not a significant difference.

LangChain writes that many tasks do not require frontier intelligence, and that the router delivered large savings with no measurable change in quality.

Caveats

The outlet Remio stresses that the experiment does not show that routing improves code quality. It only shows that significantly less model capacity was used without a demonstrated drop in quality. That a pull request is merged also says nothing about whether it required extra human work or contained small errors.

The experiment was run on internal traffic from LangChain's own engineers, so the results do not necessarily apply to other teams. The router also cannot switch models if a task turns out to be harder than expected.

A separate LangChain experiment from August, involving 145 multistep tasks, produced a 74 percent lower cost, but accuracy was 6 percentage points below the expensive Claude Opus 4.8 model on its own. That test also found that routing adds latency and causes large swings in cost from run to run.

Updated 14 October 2026: The article has been rewritten from additional sources.

Read also

Next storyOpenWorks: OpenAI pays local experts to help small businessesRead on
Back to the front page