December 2026 Summaries

9 posts from OpenRouter

Filter
Month: Year:
Post Summaries Back to Blog
A test of six text-to-SQL models on a synthetic shop database found that agents generally wrote valid queries, while incorrect answers mostly stemmed from data quirks that the schema did not reveal, such as cents-based prices and inconsistent country codes. Across completed runs on 22 questions, accuracy rose from 95% with the schema alone to 99% after adding five concise notes about units, statuses, timestamps, country values, and order totals. Several models performed similarly with notes, making cost and speed more useful differentiators in this small test; the authors recommend evaluating models on known-answer questions from your own database. They also stress using read-only database access to prevent writes, since checks on query text can be bypassed, and applying separate database controls to restrict sensitive reads.
Dec 03, 2026 1,843 words in the original blog post.
An OpenRouter test compared vector RAG, hybrid RAG, and an agent using two MCP tools on a product catalog, with two models answering questions about product details, linked products, counts, and extremes. On the 3,000-item catalog, MCP answered all 40 questions after a server-side fix, while hybrid RAG answered 16 and vector RAG 8 or 9; RAG struggled with exact SKU matching, multi-step lookups, and whole-catalog queries. The MCP agent made more model calls and used more input tokens, but its measured cost was comparable to or below hybrid RAG, and it was faster in this test. The authors stress that results depended on tools tailored to the questions and on handling models’ optional arguments reliably. They recommend MCP for structured, live data and exact queries, hybrid RAG for unstructured text and identifiers, and combining them when agents need to search text repeatedly; they also caution teams to evaluate their own questions across the models they intend to use.
Dec 03, 2026 2,196 words in the original blog post.
OpenRouter says many Chinese open-weight models, including DeepSeek, Kimi, GLM, and MiniMax, can be served by providers outside China, so prompt location depends on the provider handling a request rather than the model’s developer. Its November 2026 endpoint data shows multiple non-China ZDR options for these models, while the two listed Qwen3.8 models are served only by Alibaba and have no ZDR endpoints. Users can restrict routing with approved-provider, ZDR, and data-collection settings; regional routing on Business and Enterprise plans can keep shared-endpoint inference within the US or EU and fails closed when no eligible endpoint is available. Workspace guardrails can enforce provider, region, and strict-ZDR rules across a team. The article also cautions that provider location data is self-reported, Safety Retention endpoints may retain data for abuse prevention, BYOK deployments require separate region checks, and providers may differ in price and model precision.
Dec 03, 2026 2,502 words in the original blog post.
As of November 16, 2026, the median list price among 354 paid text models on OpenRouter was $0.41 per million input tokens and $1.93 per million output tokens, while prices weighted by token usage were lower at $0.09 and $0.50. Actual costs vary with tokenization, provider and service tier, caching, and reasoning, which is billed as output; tests found that models could use substantially different token counts for the same text, and one reasoning run exhausted its token budget without producing a reply. In a support-ticket test, caching reduced some repeat-request costs, while lower reasoning effort and cheaper routing or flex tiers also reduced estimated costs in separate comparisons. The article recommends measuring representative requests and checking reported usage costs, since list prices alone do not predict a bill.
Dec 02, 2026 2,300 words in the original blog post.
Agent tracing combines spans from an agent’s own code with OpenRouter Broadcast’s model-generation and provider-attempt spans, linking tool calls, model calls, retries, timing, and run outcomes into one OpenTelemetry trace. The article explains how to instrument agent lifecycle hooks, pass trace and parent-span IDs with each request, and use Privacy Mode to omit prompts, replies, and error text while retaining operational data; it cautions that stop sequences and custom trace metadata remain exposed. In 27 order-support runs, all 98 model calls matched a generation span with matching cost, while the agent’s spans revealed incorrect tool arguments and outputs, and OpenRouter’s spans identified providers, retries, failures, and provider wait times. Together, the traces helped distinguish agent-side delays from provider latency and showed details that either system alone could not provide.
Dec 02, 2026 2,366 words in the original blog post.
OpenRouter compared retrieval-augmented generation (RAG) with cache-augmented generation (CAG) using 40 questions about synthetic product catalogs of 80, 600, and 3,000 items, tested once on each of two models. CAG was more accurate at every size, especially on questions requiring information from multiple product pages, while hybrid RAG—which combines semantic and keyword search—handled exact SKU lookups better than embedding-only RAG. Neither approach reliably answered questions requiring counts across the entire catalog; a model equipped with tools to query the data answered all such questions in the test. RAG costs remained roughly flat as catalogs grew, whereas CAG costs increased with prompt length and, on DeepSeek, were also affected by provider routing and cache misses; using a consistent session ID improved cache reuse and reduced costs. The findings suggest CAG for small, stable document collections, hybrid RAG for large or frequently changing collections, and direct data-query tools for aggregate questions, with results interpreted cautiously because the catalog was synthetic and each setup was run only once.
Dec 02, 2026 2,910 words in the original blog post.
A 40-step coding-agent replay found that token costs depend not only on prompt size but also on whether providers can reuse cached input. Keeping the prompt prefix unchanged and using a consistent session ID preserved 95% cache hits; adding a changing timestamp to the system prompt eliminated them and raised the measured cost from $0.084 to $0.658 per session. Capping each tool result once reduced cost further, to $0.054, while repeatedly editing older results reduced token volume but broke caching and cost $0.263. Chunked compaction reduced the final prompt from 260K to 63K tokens and retained 85% cached input, though its cost was slightly higher than one-time capping; repeatedly summarizing earlier summaries was associated with a sharp accuracy drop in a single test. The article also recommends using lower reasoning effort for routine steps and monitoring prompt tokens, cached tokens, and cost to identify where an agent’s usage can be improved.
Dec 01, 2026 2,375 words in the original blog post.
OpenRouter’s tests of five roughly 1M-token models found that long sessions can impair tasks requiring information to be combined across the history, even when the prompt fits: accuracy on counting failed test runs dropped from 67% at about 20K tokens to 27% at about 600K, while questions about individual facts remained consistently correct. Simply removing older turns sharply reduced accuracy, whereas chunked summaries that preserved key details improved results and reduced average prompt size from 605K to 112K tokens and request cost from $0.224 to $0.041. The authors note the experiment used a small number of synthetic sessions, and recommend compacting histories early, preserving important rules and facts in persistent state, and tracking counts or other cumulative information explicitly rather than relying on the model to reconstruct it.
Dec 01, 2026 2,434 words in the original blog post.
An agent harness is the software surrounding an AI model that manages its conversation loop, tools, context, permissions, limits, and saved sessions. It assembles requests, checks and executes permitted tool calls, returns results to the model, and decides whether the task should continue or stop; its design can affect both what the agent can do and how much it costs. In a small test, sending 44 tool definitions instead of four raised Haiku’s median session cost from $0.00082 to $0.00277 without caching, while caching brought the 44-tool median to $0.00071. The article distinguishes a harness from frameworks and SDKs, which can help organize or implement parts of the loop, and explains that OpenRouter routes model requests while harness developers or users configure execution and safety policies. It recommends starting with only the tools needed for a task and checking that the agent completes it within its approval and spending limits.
Dec 01, 2026 2,607 words in the original blog post.