OpenRouter Finds CAG More Accurate but RAG Cheaper at Scale
OpenRouter compared RAG and CAG using the same 40 questions against product catalogs of about 9K, 66K and 330K tokens, with tests run through its API on November 8, 2026. CAG answered more questions correctly at every tested size, including 31 of 40 on GPT-6 Luna with the largest 3,000-product catalog, versus 9 for plain RAG and 17 for hybrid RAG. RAG remained substantially cheaper on large catalogs, while CAG’s cost on DeepSeek V4.1 Flash depended on request routing; neither method counted reliably across the whole catalog.
The results show a practical accuracy-cost tradeoff for document-grounded AI systems: CAG can improve accuracy when the full corpus fits in the context window, while hybrid RAG is cheaper for large or changing collections and tool-based querying performs better for dataset-wide counts.
RAG vs CAG: We Measured Accuracy and Cost at 3 Sizes
OpenRouter ·12/2/2026


If you are building a chatbot or search tool that answers questions from your own documents, you have two main ways to give the model those documents. Retrieval-augmented generation (RAG) searches your documents for each question and sends the model only the few pieces that look relevant. Cache-augmented generation (CAG) sends the model all of your documents with every question and uses prompt caching to keep that affordable. That is the choice in RAG vs CAG.