Agent Test: Switching Models Cuts 70% of Costs
qubridInc · reddit · 2026-07-11
The author shared an internal research agent test: a single task typically requires 40–60 LLM calls, and the cost per task exceeded $1 when using GPT-4o.
After switching most "routing/extraction" calls to open-source models, they ran the same evaluation suite (about 300 runs per model). Conclusions include:
- Kimi K2.7 performed the best in tool calls, with normal parallel calls, high schema compliance, and almost no need for extra defensive parsing.
- GLM 5.2 showed stable performance in long-context scenarios stuffed with 60–80k tokens.
- Qwen 3.7 occasionally returned tool args as string JSON, which could be mitigated by retries.
- For deeply nested schemas with many optional fields, all OSS models underperformed compared to 4o; flattening the schema is recommended.
- Latency fluctuations across different providers for the same model can be larger than differences between models. Evaluations should test specific endpoints rather than just relying on leaderboards.
- DeepSeek V4-Pro had average tool-calling performance in their setup and was not selected.
The final setup is: Kimi for tool steps, GLM for synthesis/generation, and GPT-4o only for the final user-facing answers; this reduced the cost per task from roughly $1.10 to $0.35.
More from coding & agent
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- 105 hidden bugs, 2 repos: DeepSeek V4.1 Flash fixes 24 at $1.80 vs Opus 5's 27 at $51.33 — ChartsJournalX · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11