Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Neon 10 min read Research mediumAdept

Comparing token economics across 42 AI models

A synthetic workload of 100 support tickets (20 scenarios × 5 tone variants) was run through 42 models via Neon AI Gateway, with responses graded on seven checks including JSON validity, correct classification and escalation, and policy compliance. GPT-5 Nano had the lowest cost per usable response and finished in about 3 minutes. GPT-5.5 Pro cost about $8.34 and took 57 minutes, GPT-5.3 Codex had the highest pass rate at 82%, and Llama 3.1 8B was fastest but passed only 34%. Catalog price alone misleads, because token volume and failure rate drive the real cost per unit of work. A projection of one 1M-token agent task per engineer per day shows roughly an 86× spend gap between moderately cheap and moderately expensive models. The harness uses one Neon branch per model, created with --no-compute, plus a Python runner, Postgres result tables, a Next.js report and a scheduled GitHub Actions workflow.

Assumes: LLM API pricing basicsJSON structured output

Related posts

  • Dollars per token considered harmful

    Modal easyNovice

    Teams self-hosting LLM inference should reason in dollars per request, not dollars per token, because per-token pricing reflects the economics of API providers selling inference as a service rather than applications serving users. Requests are the unit users care about and the unit that can be split across replicas. Latency targets come from per-request time-to-first-token and inter-token latency, replica counts come from requests per second and per-replica concurrency, and cost is dollars per second per replica times replicas. Framing cost per request lets engineering weigh it directly against conversion, lifetime value and revenue.

  • Open Models have crossed a threshold

    LangChain mediumAdept

    Open-weight models GLM-5 and MiniMax M2.7 now score close to closed frontier models on core agent tasks in LangChain's Deep Agents eval suite. GLM-5 reached 0.64 correctness, MiniMax M2.7 0.57, and Claude Opus 4.6 0.68, across 138 tests covering file ops, tool use, retrieval, memory and summarization. The open models are far cheaper and faster: about $12/day versus $250/day for 10M output tokens, and 0.65s versus 2.56s latency. The eval metrics are defined (correctness, solve rate, step and tool-call ratios), and switching Deep Agents to an open model is a one-line change, with the harness adapting context management and model identity to each model.

  • How Shopify turns open models into task experts

    Shopify Engineering hardMaster

    Shopify's Sidekick keeps a frontier model for merchant conversation and planning but offloads token-heavy subagent work, such as GraphQL query generation, to open models it post-trains and self-hosts. Each model is built through a loop: a rubric and an LLM judge tuned with GEPA/ACE to match human agreement, an optimized frontier agent as the baseline, open-model selection, early inference benchmarking with AIPerf, nightly self-healing that converts failed conversations into training data via critic hints, and post-training with Megatron Bridge. For GraphQL, Nemotron 3.5 Lightning went from 37.7 to 74.5 on the judge after six loops and about 61,000 healed examples, beating the frontier model's 73. It also cut median latency from 6.50s to 0.87s and serving cost by about 90%, and Blackwell GPUs made both training and serving cheaper.

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

    Neon mediumAdept

    Mubit, a proxy placed in front of Neon AI Gateway, records an agent's model calls, groups recurring calls into tasks, and fine-tunes a small open-weight model once a task has at least 25 good replies. The tuned model must pass a held-out exam, then moves through shadow, canary and promotion stages, and is demoted if sampled quality drops. It also stores verified lessons tied to schema versions. On 20 CL-bench questions run against a Postgres analyst agent, gpt-5.5 input tokens fell 73% (21.7k to 5.9k per question) and latency fell 40% with roughly equal accuracy. SQL generation stayed on the frontier model because the small model matched only 8-10% of the time, and lessons doubled correct runs after a schema change. The template runs on Neon Functions with an outbox-style lesson queue and uses Neon branches to test before and after a migration.

  • Model Routing Is Simple. Until It Isn’t.

    Hugging Face easyNovice

    LLM model routing in agentic systems is a systems optimization problem, not a classification one. On 417 AppWorld tasks with a CodeAct agent, Claude Sonnet 4.6 cost $0.19/task versus GPT-4.1's $0.37 despite higher list prices and about 3x more steps, because cheap cache reads dominate agent workloads. Task difficulty is often invisible at routing time and competes with latency, compliance and reliability constraints, and latency depends on serving conditions and routing granularity. IBM's optimization-based router traces a cost-accuracy frontier: one configuration reached 84% accuracy with 21% lower cost and 9% lower latency than Opus alone, at about 6 ms and 2 kB overhead per task.

The quest for software engineering knowledge.

Look:
Layout: