# Mubit + Neon AI Gateway: an agent that cuts its own frontier-model tokens by 73%

DevFeed: [Mubit + Neon AI Gateway: an agent that cuts its own frontier-model tokens by 73%](<https://devfeed.tech/articles/mubit-neon-ai-gateway-an-agent-that-cuts-its-own-frontier-model-tokens-by-73-132646.md>)

Original publisher: [Read original article](<https://neon.com/blog/mubit-neon-ai-gateway>)

Author: Carlota Soto

Published: 2026-11-12T09:00:00Z

Content type: article

Language: en

Sources: [Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Frontier AI](<https://devfeed.tech/topics/frontier-ai.md>), [Frontier Model](<https://devfeed.tech/topics/frontier-model.md>), [Model Routing](<https://devfeed.tech/topics/model-routing.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Agent Harness](<https://devfeed.tech/topics/agent-harness.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-gateway](<https://devfeed.tech/tags/ai-gateway.md>), [community](<https://devfeed.tech/tags/community.md>), [frontier-model](<https://devfeed.tech/tags/frontier-model.md>), [model](<https://devfeed.tech/tags/model.md>), [neon](<https://devfeed.tech/tags/neon.md>), [product](<https://devfeed.tech/tags/product.md>), [tokens](<https://devfeed.tech/tags/tokens.md>)

## AI overview

In the described data analyst agent benchmark, routing routine calls through Mubit cut gpt-5.5 token use by 73% and response time by 40% without losing accuracy, with a tuned model handling about two thirds of calls. Mubit groups similar calls, trains a small model after at least 25 good replies, and gates it through held-out exams and shadow, canary, and promotion stages; it checks quality after promotion and falls back to Neon AI Gateway if quality drops. The tuned model handles tasks such as listing tables, reading definitions, and formatting answers, while gpt-5.5 retains SQL generation: the small model matched its results on routine steps but achieved the same SQL result only 8-10% of the time. Verified-run lessons capture schema mappings, SQL, and pitfalls, and are tied to a schema version; on changed-schema benchmark runs, gpt-5.5 alone got 7 of 30 right, compared with 14 using lessons. These are results from the template's benchmark, not a general performance guarantee. The agent runs on Neon; Mubit trains and serves the tuned model on its infrastructure.

## Source excerpt

Mubit is middleware for AI agents. It sits between your agent and the model with a one-line endpoint change, learns from every call, and moves recurring steps to small models tuned on your own traffic, while the frontier model keeps the hard ones. There's nothing extra to host...