<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>liteLLM Blog</title>
        <link>https://docs.litellm.ai/blog</link>
        <description>liteLLM Blog</description>
        <lastBuildDate>Thu, 01 Oct 2026 19:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <item>
            <title><![CDATA[How we cut peak database write latency during LiteLLM upgrades by 99%]]></title>
            <link>https://docs.litellm.ai/blog/database-index-latency</link>
            <guid>https://docs.litellm.ai/blog/database-index-latency</guid>
            <pubDate>Thu, 01 Oct 2026 19:00:00 GMT</pubDate>
            <description><![CDATA[From 1,859.8 ms to 19 ms: how changing the way LiteLLM builds spend-log indexes reduced peak insert latency by 99% in a local upgrade benchmark.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="Spend-log writes queue behind an index build, then flow alongside it. Peak insert latency falls from 1,859.8 ms to 19 ms in a local benchmark with 3 million rows." src="https://docs.litellm.ai/assets/images/cover-0fc0a0bdbdfd42a5a1c318569b92b6b4.gif" width="1800" height="900" class="img_ev3q"></p>
<p>Adding an index should make your database faster. During LiteLLM upgrades, ours was blocking spend-log writes.</p>
<p>This week, we changed how those indexes are built. In a local upgrade benchmark with <strong>3 million spend-log rows</strong>, the slowest observed insert dropped from <strong>1,859.8 ms to 19 ms</strong>: a <strong>99% reduction</strong>.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-an-index-was-blocking-writes">Why an index was blocking writes<a href="https://docs.litellm.ai/blog/database-index-latency#why-an-index-was-blocking-writes" class="hash-link" aria-label="Direct link to Why an index was blocking writes" title="Direct link to Why an index was blocking writes">​</a></h2>
<p>An upgrade migration ran <code>CREATE INDEX</code> on the spend-log table. PostgreSQL blocked new writes while it built the index. With millions of rows, that meant new spend logs had to wait.</p>
<p>Switching to <code>CREATE INDEX CONCURRENTLY</code> alone did not solve it for partitioned databases. PostgreSQL does not support that statement on a partitioned parent, so the migration failed and could keep upgraded pods from starting.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="build-indexes-while-writes-continue">Build indexes while writes continue<a href="https://docs.litellm.ai/blog/database-index-latency#build-indexes-while-writes-continue" class="hash-link" aria-label="Direct link to Build indexes while writes continue" title="Direct link to Build indexes while writes continue">​</a></h2>
<p>We moved these index builds out of schema migrations and into a dedicated builder. It uses <code>CREATE INDEX CONCURRENTLY</code> for ordinary tables. For partitioned tables, it builds each partition's index concurrently, then attaches it to the parent index. Valid existing indexes are reused.</p>
<p>We also fixed a remaining stall on partitioned databases. Creating the parent index and attaching a partition index still need locks. A long-running transaction could leave the index operation waiting, with spend-log writes queued behind it.</p>
<p>Both steps now use a <strong>200 ms lock timeout</strong> and back off between retries. If the lock stays busy, the builder leaves the remaining work for the next build. In a separate PostgreSQL 16 test with a 10-second blocker, the slowest insert during partition attachment fell from <strong>9.946 seconds to 197 ms</strong>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-we-measured-the-99-reduction">How we measured the 99% reduction<a href="https://docs.litellm.ai/blog/database-index-latency#how-we-measured-the-99-reduction" class="hash-link" aria-label="Direct link to How we measured the 99% reduction" title="Direct link to How we measured the 99% reduction">​</a></h2>
<p>The original benchmark used PostgreSQL 14.24 and the same <strong>3-million-row, unpartitioned spend-log table</strong> before and after, with an insert attempted every 50 ms during the upgrade. The updated run completed <strong>382 inserts with zero errors</strong>. A sampler checking every 100 ms observed no spend-log inserts waiting on a database lock.</p>
<p>The 1,859.8 ms and 19 ms figures are the slowest observed inserts during index creation in those runs.</p>
<p>See the changes: <a href="https://github.com/BerriAI/litellm/pull/43948" target="_blank" rel="noopener noreferrer">concurrent index builds</a> and <a href="https://github.com/BerriAI/litellm/pull/44109" target="_blank" rel="noopener noreferrer">bounded lock waits for partitioned databases</a>.</p>]]></content:encoded>
            <category>performance</category>
            <category>postgres</category>
            <category>proxy</category>
            <category>engineering</category>
            <category>ai-gateway</category>
        </item>
        <item>
            <title><![CDATA[Launching LiteLLM Lens]]></title>
            <link>https://docs.litellm.ai/blog/litellm-lens-launch</link>
            <guid>https://docs.litellm.ai/blog/litellm-lens-launch</guid>
            <pubDate>Thu, 01 Oct 2026 09:00:00 GMT</pubDate>
            <description><![CDATA[LiteLLM Lens turns the traces flowing through your gateway into findings your agents can act on. Built for agent swarms generating 200K+ traces.]]></description>
            <content:encoded><![CDATA[
<!-- -->
<canvas class="stars_UdGB" aria-hidden="true"></canvas><section class="scroller_JrbL" data-stage="0"><div class="hero_kD2X"><div class="date_OxJY">October 1, 2026</div><h1 class="headline_XV85">LiteLLM Lens</h1><div class="stage_ZUnN"><div class="lens-hero field__LJY"><style>
.lens-hero { --bg: #ffffff; --fg: #12142b; --muted: #6b6f8c; --faint: rgba(18,20,43,0.075); --gate: #0017b7;
  position: relative; width: 100%; aspect-ratio: 16 / 8.2; margin: 0.5rem 0 2rem; }
[data-theme=&#x27;dark&#x27;] .lens-hero { --bg: #1b1b1d; --fg: #eceefe; --muted: #9296b8; --faint: rgba(236,238,254,0.07); --gate: #7085ff; }
.lens-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lens-hero .tag { position: absolute; font-family: var(--ifm-font-family-monospace); font-size: 12px; line-height: 1.35;
  color: var(--muted); background: color-mix(in srgb, var(--bg) 84%, transparent); padding: 3px 6px; border-radius: 3px;
  white-space: nowrap; pointer-events: none; }
.lens-hero .tag b { display: block; color: var(--fg); font-weight: 500; }
.lens-hero .tag.blue b { color: var(--gate); }
.lens-hero .t-swarm { left: 0; top: 0; }
.lens-hero .t-gate { left: 46%; top: 16%; transform: translateX(-50%); text-align: center; }
.lens-hero .t-out { right: 0; top: 22%; text-align: right; }
.lens-hero .t-loop { left: 71.5%; bottom: 2%; transform: translateX(-50%); text-align: center; }
.lens-hero .t-run { left: 71.5%; top: 60%; transform: translateX(-50%); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .lens-hero .tag { font-size: 10px; } .lens-hero .t-out, .lens-hero .t-swarm { display: none; } }
</style><canvas aria-label="Agent swarms converge into the LiteLLM gateway, leave as one trace, and Lens loops insight back into the gateway"></canvas><div hidden=""></div></div><div class="label_JkSJ lSwarm_dMuD"><b>Agent swarms</b>200K+ traces from every agent</div><div class="label_JkSJ lGate_sDiZ"><b>LiteLLM gateway</b>every call, one chokepoint</div><div class="label_JkSJ lLens_fxhH"><b>Lens</b>insight flows back to your agents</div></div><p class="tagline_J8XG">The gateway that helps your agents improve</p></div></section><ol class="toc_a57f"><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#the-agentic-swarm-developer"><span>[<!-- -->1<!-- -->]</span><span class="dots_Kkn3" aria-hidden="true"></span><span>The agentic swarm developer</span></a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#the-problem"><span>[<!-- -->2<!-- -->]</span><span class="dots_Kkn3" aria-hidden="true"></span><span>The problem</span></a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#our-solution"><span>[<!-- -->3<!-- -->]</span><span class="dots_Kkn3" aria-hidden="true"></span><span>Our solution</span></a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#launch-partners"><span>[<!-- -->4<!-- -->]</span><span class="dots_Kkn3" aria-hidden="true"></span><span>Launch partners</span></a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#get-started"><span>[<!-- -->5<!-- -->]</span><span class="dots_Kkn3" aria-hidden="true"></span><span>Get started</span></a></li></ol>
<div class="page_YtqF immersiveByline_XkdX"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-10-01T09:00:00.000Z">Oct 1, 2026</time></span><div class="authors_hW1g"><span class="author_ZRh2"><a href="https://www.linkedin.com/in/reffajnaahsi/" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><img src="https://pbs.twimg.com/profile_images/1613813310264340481/lz54oEiB_400x400.jpg" alt="" class="avatar_Sim6"></a><span><a href="https://www.linkedin.com/in/reffajnaahsi/" target="_blank" rel="noopener noreferrer" class="authorLink_BPAX"><b>Ishaan Jaffer</b></a><small>CTO, LiteLLM</small></span></span><span class="author_ZRh2"><a href="https://www.linkedin.com/in/moe-khalil-73a2371a1/" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><img src="https://docs.litellm.ai/img/authors/moe.jpg" alt="" class="avatar_Sim6"></a><span><a href="https://www.linkedin.com/in/moe-khalil-73a2371a1/" target="_blank" rel="noopener noreferrer" class="authorLink_BPAX"><b>Moe Khalil</b></a><small>Product Engineer, LiteLLM</small></span></span><span class="author_ZRh2"><a href="https://www.linkedin.com/in/tinchi-lo/" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><img src="https://docs.litellm.ai/img/authors/tin.png" alt="" class="avatar_Sim6"></a><span><a href="https://www.linkedin.com/in/tinchi-lo/" target="_blank" rel="noopener noreferrer" class="authorLink_BPAX"><b>Tin Lo</b></a><small>Founding AI Product Engineer, LiteLLM</small></span></span><span class="author_ZRh2"><a href="https://www.linkedin.com/in/yujong1ee/" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><img src="https://avatars.githubusercontent.com/u/61503739?v=4" alt="" class="avatar_Sim6"></a><span><a href="https://www.linkedin.com/in/yujong1ee/" target="_blank" rel="noopener noreferrer" class="authorLink_BPAX"><b>Yujong Lee</b></a><small>Senior SWE, LiteLLM</small></span></span></div></div></div>
<canvas class="rails_pW1p" aria-hidden="true"></canvas><nav class="sideNav_O1u7 sideNavShown_sova" aria-label="On this page"><div class="sideNavTitle_Sc9z">On this page</div><ol><li class="sideNavActive_GHNx"><a href="https://docs.litellm.ai/blog/litellm-lens-launch#the-agentic-swarm-developer"><span>[<!-- -->1<!-- -->]</span>The agentic swarm developer</a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#the-problem"><span>[<!-- -->2<!-- -->]</span>The problem</a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#our-solution"><span>[<!-- -->3<!-- -->]</span>Our solution</a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#launch-partners"><span>[<!-- -->4<!-- -->]</span>Launch partners</a></li><li><a href="https://docs.litellm.ai/blog/litellm-lens-launch#get-started"><span>[<!-- -->5<!-- -->]</span>Get started</a></li></ol></nav>
<p>Today we're launching LiteLLM Lens</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-agentic-swarm-developer">The agentic swarm developer<a href="https://docs.litellm.ai/blog/litellm-lens-launch#the-agentic-swarm-developer" class="hash-link" aria-label="Direct link to The agentic swarm developer" title="Direct link to The agentic swarm developer">​</a></h2>
<p>We're building for a future where developers run agentic swarms: hundreds of agents working in parallel, each one making LLM and tool calls, together generating 200K+ traces</p>
<p>LiteLLM is already the chokepoint for 100% of your enterprise's AI traffic, so every one of those calls already flows through the gateway</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-problem">The problem<a href="https://docs.litellm.ai/blog/litellm-lens-launch#the-problem" class="hash-link" aria-label="Direct link to The problem" title="Direct link to The problem">​</a></h2>
<p>Nobody can read 200K traces by hand. When a swarm gets something wrong, the evidence is spread across thousands of runs, and you can't tell what's working, what's failing, or how your agents should improve</p>
<p>Tracing platforms make it harder. Your data sits in someone else's system behind rate limits, so you can't point Codex or Claude Code at it to dig in</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="our-solution">Our solution<a href="https://docs.litellm.ai/blog/litellm-lens-launch#our-solution" class="hash-link" aria-label="Direct link to Our solution" title="Direct link to Our solution">​</a></h2>
<p>We believe the next era of the gateway is using the data flowing through it to help your agents improve. Lens does two things</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="making-sense-of-200k-traces">Making sense of 200K+ traces<a href="https://docs.litellm.ai/blog/litellm-lens-launch#making-sense-of-200k-traces" class="hash-link" aria-label="Direct link to Making sense of 200K+ traces" title="Direct link to Making sense of 200K+ traces">​</a></h3>
<p>Lens uses AI agents to review your traces for you. You describe what a good run looks like. Lens investigates the runs, groups similar problems, and links every finding back to the original trace step</p>
<p><img decoding="async" loading="lazy" alt="A finding showing what happened, what to do next, and links to the supporting runs." src="https://docs.litellm.ai/assets/images/finding-detail-96c62adcac80ef5ace90f751d006ca21.png" width="1600" height="1894" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="agent-first-tracing-apis">Agent-first tracing APIs<a href="https://docs.litellm.ai/blog/litellm-lens-launch#agent-first-tracing-apis" class="hash-link" aria-label="Direct link to Agent-first tracing APIs" title="Direct link to Agent-first tracing APIs">​</a></h3>
<p>Own your infra. Traces land in ClickHouse that you run, next to the LiteLLM gateway you already deploy. Query them with simple SQL, or let Codex and Claude Code analyze them through the tracing API without tracing-platform rate limits</p>
<p><img decoding="async" loading="lazy" alt="An agent trace with its step tree, timeline, and selected step input and output." src="https://docs.litellm.ai/assets/images/trace-detail-3ee9b4ac2888c82485bf3d302d16f345.png" width="3090" height="1810" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="launch-partners">Launch partners<a href="https://docs.litellm.ai/blog/litellm-lens-launch#launch-partners" class="hash-link" aria-label="Direct link to Launch partners" title="Direct link to Launch partners">​</a></h2>
<p>Lens was built and designed with our launch partners</p>
<figure class="partner_l72O"><a class="partnerName_y_dL" href="https://www.mindfort.ai/" target="_blank" rel="noopener noreferrer"><img src="https://docs.litellm.ai/img/blog/litellm_lens_launch/partners/mindfort.svg" alt="">MindFort</a><blockquote class="partnerQuote_uLiW"><p>“<!-- -->We built the world's first fully autonomous security swarm. MindFort uses thousands of agents that work together to find real, exploitable vulnerabilities live on target, then safely build and roll out patches, continuously.</p><p>We use Lens to power our internal applied AI research and production engineering, letting us analyze hundreds of thousands of agent interactions at scale while maintaining complete data sovereignty.<!-- -->”</p></blockquote><figcaption class="partnerAuthor_lTmr">Akul Gupta, Co-founder &amp; CTO, MindFort</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Get started<a href="https://docs.litellm.ai/blog/litellm-lens-launch#get-started" class="hash-link" aria-label="Direct link to Get started" title="Direct link to Get started">​</a></h2>
<p>The era of self-improving agents is here. <a href="https://forms.gle/3GC1Ner4vjthGWi18" target="_blank" rel="noopener noreferrer">Sign up for early access</a>, or follow the <a href="https://docs.litellm.ai/docs/proxy/lens">Lens docs</a> to deploy it on your own LiteLLM gateway today</p>]]></content:encoded>
            <author>yujong@berri.ai (Yujong Lee)</author>
            <category>lens</category>
            <category>agent-tracing</category>
        </item>
        <item>
            <title><![CDATA[How we cut LiteLLM's Redis round trips per request by 64%]]></title>
            <link>https://docs.litellm.ai/blog/redis-request-pipelines</link>
            <guid>https://docs.litellm.ai/blog/redis-request-pipelines</guid>
            <pubDate>Thu, 01 Oct 2026 09:00:00 GMT</pubDate>
            <description><![CDATA[A governed request to the LiteLLM AI Gateway waited on Redis 22 times. It now waits 8 times: one pipeline per Redis backend before the model call, one after.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM&amp;#39;s 22 Redis round trips merge into 8, a 64% reduction per request" src="https://docs.litellm.ai/assets/images/cover-be0674413e2f2820663db4946cc50660.gif" width="1620" height="900" class="img_ev3q"></p>
<p>This week, we cut the number of times a request to the LiteLLM proxy waits on Redis from <strong>22 to 8</strong>.</p>
<p>A request from a key with a budget, in a team with a budget and TPM/RPM limits, against a model group with usage-based routing and a Redis response cache, made 22 Redis round trips: 12 before the model was called and 10 after. The same request, with the same checks and the same writes, now makes <strong>5 before and 3 after</strong>.</p>
<!-- -->
<figure class="figure_o7gF"><div class="results_i98j"><div class="resultHeading_AJ8r"><p class="eyebrow_Mh6p">Redis round trips per request</p><span class="improvement_HD15">14 fewer Redis round trips per request</span></div><div class="timing_hjbg"><div class="beforeTime_BXMO"><span class="timeLabel_VchS">Before</span><span class="timeValue_Hhx_">22<span class="timeUnit_JhNW"> <!-- -->round trips</span></span></div><svg class="timingArrow_f6mt" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><div class="afterTime_RTF3"><span class="timeLabel_VchS">After</span><span class="timeValue_Hhx_">8<span class="timeUnit_JhNW"> <!-- -->round trips</span></span></div></div><table class="metrics_z24J" aria-label="Redis round trips: Redis round trips before and after"><thead><tr><th scope="col">Redis round trips</th><th scope="col">Before</th><th scope="col">After</th></tr></thead><tbody><tr><th scope="row">Before the model call</th><td>12</td><td>5</td></tr><tr><th scope="row">After the model call</th><td>10</td><td>3</td></tr><tr><th scope="row">Streaming request</th><td>24</td><td>8</td></tr><tr><th scope="row">Response-cache hit</th><td>18</td><td>7</td></tr><tr><th scope="row">Once-a-minute auth refresh</th><td>46</td><td>16</td></tr></tbody></table></div><figcaption class="caption_dHe4">One /v1/chat/completions request · key, team and end-user budgets · TPM and RPM limits · usage-based routing · response cache</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-it-was-slow">Why it was slow<a href="https://docs.litellm.ai/blog/redis-request-pipelines#why-it-was-slow" class="hash-link" aria-label="Direct link to Why it was slow" title="Direct link to Why it was slow">​</a></h2>
<p>Seven parts of the proxy talk to Redis on a request: auth, spend counters, budget reservation, the rate limiter, the router, the response cache, and the post-call accounting. Each one read what it needed, decided, wrote, and returned before the next one started. The rate limiter alone ran three Lua scripts one after another. Budget reservation re-read the spend counters auth had just read, then sent one increment per entity.</p>
<p>Of the 22 round trips, <strong>5 carried information a decision depended on</strong>: the identity rows, the spend counters, the rate-limit scripts, the routing state and the response-cache lookup. The other 17 were re-reads of values already in hand, write-backs, and counter updates nothing waited for. Redis was never the bottleneck. The cost was waiting for the answer, 22 times in a row, on every request.</p>
<figure class="figure_o7gF"><div class="timeline_i6NJ"><div class="lane_NPTW"><div class="laneLabel_BapR"><div class="laneHeading_TQPa"><span class="laneName_H0Ib">Before</span><span class="laneTotal_W63K"><strong>22</strong> round trips</span></div><span class="laneCount_FoG8">12 before the model call, 10 after</span></div><ol class="trips_XZy4" aria-label="Before Redis round trips"><li class="trip_z37Z" data-owner="identity"><span class="tripOp__LZi">MGET</span><span class="tripDetail_G2ag">team, membership</span></li><li class="trip_z37Z" data-owner="identity"><span class="tripOp__LZi">SET</span><span class="tripDetail_G2ag">write back</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">MGET</span><span class="tripDetail_G2ag">spend counters</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">MGET</span><span class="tripDetail_G2ag">same counters</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">INCR</span><span class="tripDetail_G2ag">reserve key</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">INCR</span><span class="tripDetail_G2ag">reserve team</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">INCR</span><span class="tripDetail_G2ag">reserve end user</span></li><li class="trip_z37Z" data-owner="limits"><span class="tripOp__LZi">EVALSHA</span><span class="tripDetail_G2ag">RPM check</span></li><li class="trip_z37Z" data-owner="limits"><span class="tripOp__LZi">EVALSHA</span><span class="tripDetail_G2ag">key TPM</span></li><li class="trip_z37Z" data-owner="limits"><span class="tripOp__LZi">EVALSHA</span><span class="tripDetail_G2ag">team TPM</span></li><li class="trip_z37Z" data-owner="routing"><span class="tripOp__LZi">MGET</span><span class="tripDetail_G2ag">cooldowns, usage</span></li><li class="trip_z37Z" data-owner="cache"><span class="tripOp__LZi">GET</span><span class="tripDetail_G2ag">response cache</span></li><li class="provider_hv1C">model call</li><li class="trip_z37Z" data-owner="cache"><span class="tripOp__LZi">SET</span><span class="tripDetail_G2ag">response cache</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">MGET</span><span class="tripDetail_G2ag">spend counters</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">INCR</span><span class="tripDetail_G2ag">settle reservation</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">MGET</span><span class="tripDetail_G2ag">same counters</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">INCR</span><span class="tripDetail_G2ag">other counters</span></li><li class="trip_z37Z" data-owner="routing"><span class="tripOp__LZi">INCR</span><span class="tripDetail_G2ag">deployment TPM</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">GET</span><span class="tripDetail_G2ag">user spend</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">GET</span><span class="tripDetail_G2ag">tag spend</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">GET</span><span class="tripDetail_G2ag">tag spend</span></li><li class="trip_z37Z" data-owner="limits"><span class="tripOp__LZi">EVALSHA</span><span class="tripDetail_G2ag">token usage</span></li></ol></div><div class="lane_NPTW laneAfter_TJIT"><div class="laneLabel_BapR"><div class="laneHeading_TQPa"><span class="laneName_H0Ib">After</span><span class="laneTotal_W63K"><strong>8</strong> round trips</span></div><span class="laneCount_FoG8">5 before the model call, 3 after</span></div><ol class="trips_XZy4" aria-label="After Redis round trips"><li class="trip_z37Z" data-owner="mixed"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">identity MGET + spend MGET</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">reserve key, team, end user</span></li><li class="trip_z37Z" data-owner="mixed"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">identity write back + routing MGET + RPM check</span></li><li class="trip_z37Z" data-owner="limits"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">key TPM + team TPM</span></li><li class="trip_z37Z" data-owner="cache"><span class="tripOp__LZi">GET</span><span class="tripDetail_G2ag">response cache</span></li><li class="provider_hv1C">model call</li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">spend counters</span></li><li class="trip_z37Z" data-owner="spend"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">user, tag spend</span></li><li class="trip_z37Z" data-owner="mixed"><span class="tripOp__LZi">PIPELINE</span><span class="tripDetail_G2ag">cache SET + 8 counter INCRs + deployment TPM + token usage</span></li></ol></div><div class="legend_voeT"><span class="legendItem__oOh"><span class="swatch_CmIJ" data-owner="identity"></span>Identity</span><span class="legendItem__oOh"><span class="swatch_CmIJ" data-owner="spend"></span>Spend and budgets</span><span class="legendItem__oOh"><span class="swatch_CmIJ" data-owner="limits"></span>Rate limits</span><span class="legendItem__oOh"><span class="swatch_CmIJ" data-owner="routing"></span>Routing</span><span class="legendItem__oOh"><span class="swatch_CmIJ" data-owner="cache"></span>Response cache</span><span class="legendItem__oOh"><span class="swatch_CmIJ" data-owner="mixed"></span>Shared pipeline</span></div></div><figcaption class="caption_dHe4">Every box is one wait on Redis. Same request, same checks, same writes.</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-we-changed">What we changed<a href="https://docs.litellm.ai/blog/redis-request-pipelines#what-we-changed" class="hash-link" aria-label="Direct link to What we changed" title="Direct link to What we changed">​</a></h2>
<p><strong>Every request now owns one Redis batch per backend.</strong> Auth, the spend check, the rate limiter and the router declare their reads and scripts on it and get a handle back. The first time anyone awaits a handle, everything declared so far leaves as one pipeline, and every caller reads its own reply. The checks themselves did not move: budget rejects still happen in the budget code, rate-limit rejects in the rate limiter, in the same order as before.</p>
<figure class="figure_o7gF"><div class="flows_JY6Y"><div class="flow_Q9fj"><div><span class="flowLabel_TGsz">Before</span><p class="flowTitle_CU0V">Each subsystem reads, decides and writes before the next one starts</p></div><ol class="stages_D30Q" aria-label="Before request flow"><li class="stage_SFcE"><span class="stageLabel_Zqp1">Auth</span><span class="stageDetail_IpN3">Read identity rows, write them back, read the spend counters</span></li><li class="stage_SFcE"><svg class="flowArrow_hk3f" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_Zqp1">Budgets</span><span class="stageDetail_IpN3">Read the same spend counters again, then reserve with three increments</span></li><li class="stage_SFcE"><svg class="flowArrow_hk3f" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_Zqp1">Rate limits</span><span class="stageDetail_IpN3">Run the RPM script, then the key TPM script, then the team TPM script</span></li><li class="stage_SFcE"><svg class="flowArrow_hk3f" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_Zqp1">Routing and cache</span><span class="stageDetail_IpN3">Read cooldowns and usage, pick a deployment, read the response cache</span></li></ol></div><div class="flow_Q9fj after_xC4k"><div><span class="flowLabel_TGsz">After</span><p class="flowTitle_CU0V">Declare, flush once, decide</p></div><ol class="stages_D30Q" aria-label="After request flow"><li class="stage_SFcE"><span class="stageLabel_Zqp1">Declare</span><span class="stageDetail_IpN3">Auth, budgets, rate limits and routing queue their reads and scripts on the request batch and get a handle each</span></li><li class="stage_SFcE"><svg class="flowArrow_hk3f" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_Zqp1">Flush</span><span class="stageDetail_IpN3">The first await sends everything queued as one pipeline per Redis backend; every command gets its own reply</span></li><li class="stage_SFcE"><svg class="flowArrow_hk3f" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_Zqp1">Decide</span><span class="stageDetail_IpN3">Each subsystem reads its reply and runs the same checks in the same order; a failed command fails only its owner</span></li><li class="stage_SFcE"><svg class="flowArrow_hk3f" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_Zqp1">Settle</span><span class="stageDetail_IpN3">After the model call, writes collect in a post-call batch and leave in one pipeline once the callbacks finish</span></li></ol></div></div><figcaption class="caption_dHe4">Only the I/O scheduling changed. Every check still runs in the module that owns it.</figcaption></figure>
<p>After the model responds, nothing waits on the writes, so they collect in a post-call batch: the response-cache write, the spend increments, the deployment usage counter and the rate limiter's token script. They leave in one pipeline when the success or failure callbacks finish. A one-second deadline flushes the batch if no callback closes it, and shutdown drains whatever is still pending, so a pod restart does not lose accounting.</p>
<p>Each command in a pipeline gets its own reply. A Lua script that is not loaded fails only its owner, which falls back to a direct call exactly as it did before. A pipeline that fails as a whole looks to every owner like Redis being unreachable, which they already handle. Redis Cluster clients keep making direct calls, since a cluster pipeline fans out per node. Requests that touch two Redis backends get one pipeline per backend, and the proxy and router caches share a pipeline when they point at the same server.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="redis-round-trips-per-request-22--8">Redis round trips per request: 22 → 8<a href="https://docs.litellm.ai/blog/redis-request-pipelines#redis-round-trips-per-request-22--8" class="hash-link" aria-label="Direct link to Redis round trips per request: 22 → 8" title="Direct link to Redis round trips per request: 22 → 8">​</a></h2>
<p>The same harness ran every endpoint shape the proxy governs the same way, with and without streaming, with usage-based and simple-shuffle routing, and with a response-cache hit. <code>/v1/responses</code> keeps one extra round trip on each side because its native handler still makes two synchronous cache calls from a worker thread.</p>
<figure class="figure_o7gF"><table class="metrics_z24J" aria-label="Request: Redis round trips before and after"><thead><tr><th scope="col">Request</th><th scope="col">Before</th><th scope="col">After</th></tr></thead><tbody><tr><th scope="row"><code>/v1/chat/completions</code></th><td>22</td><td>8</td></tr><tr><th scope="row"><code>/v1/chat/completions</code><span class="requestVariant_Xf1E">streaming</span></th><td>24</td><td>8</td></tr><tr><th scope="row"><code>/v1/chat/completions</code><span class="requestVariant_Xf1E">simple-shuffle routing</span></th><td>22</td><td>8</td></tr><tr><th scope="row"><code>/v1/messages</code></th><td>21</td><td>8</td></tr><tr><th scope="row"><code>/v1/responses</code></th><td>26</td><td>9</td></tr><tr><th scope="row"><code>/v1/chat/completions</code><span class="requestVariant_Xf1E">response-cache hit</span></th><td>18</td><td>7</td></tr></tbody></table></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="auth-refresh-requests-46--16-redis-round-trips">Auth refresh requests: 46 → 16 Redis round trips<a href="https://docs.litellm.ai/blog/redis-request-pipelines#auth-refresh-requests-46--16-redis-round-trips" class="hash-link" aria-label="Direct link to Auth refresh requests: 46 → 16 Redis round trips" title="Direct link to Auth refresh requests: 46 → 16 Redis round trips">​</a></h2>
<p>Auth keeps its management objects, the key, the end user, the team and the model-access registry, in memory for 60 seconds. On the first request after they expire, the proxy refreshed each one from Redis and then Postgres one call at a time: 16 serial Redis trips before routing started, the end user, the key and the registry each read twice, and the team alias deleted with a synchronous call on the event loop. That request cost 46 round trips instead of 22, once a minute for every active key.</p>
<p>The same request now reads whatever memory is missing with one MGET on the request pipeline, reads the team, and sends the write-backs and the alias delete as one pipeline behind it. The refresh is 3 trips, and the request as a whole went from <strong>46 to 16 round trips</strong> for chat and from 40 to 14 for <code>/v1/messages</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-we-measured">How we measured<a href="https://docs.litellm.ai/blog/redis-request-pipelines#how-we-measured" class="hash-link" aria-label="Direct link to How we measured" title="Direct link to How we measured">​</a></h2>
<p>We measured both versions on the same local proxy, from the commit before this work (<code>27c110cb</code>) to main with all five changes in it (<code>13d004fc</code>): Redis 6.0 and Postgres 14, mock deployments so the count does not depend on a provider, and a tracer that logs every Redis call and every pipeline flush with its caller. A pipeline or a Lua script counts as one round trip. Every sample was preceded by a warm-up request 12 seconds earlier, and the harness idles for 65 seconds every three samples so the 60-second cache expiry never lands inside a sample. For the refresh case, the harness sent a warm-up request, waited 65 seconds and traced the next one. All requests returned HTTP 200 in both arms.</p>
<p>See the changes: <a href="https://github.com/BerriAI/litellm/pull/43320" target="_blank" rel="noopener noreferrer">routing reads</a>, <a href="https://github.com/BerriAI/litellm/pull/43369" target="_blank" rel="noopener noreferrer">spend counters</a>, <a href="https://github.com/BerriAI/litellm/pull/43407" target="_blank" rel="noopener noreferrer">the pre-call pipeline</a>, <a href="https://github.com/BerriAI/litellm/pull/43779" target="_blank" rel="noopener noreferrer">the post-call pipeline</a> and <a href="https://github.com/BerriAI/litellm/pull/43776" target="_blank" rel="noopener noreferrer">the auth refresh</a>.</p>]]></content:encoded>
            <category>performance</category>
            <category>redis</category>
            <category>proxy</category>
            <category>engineering</category>
            <category>ai-gateway</category>
        </item>
        <item>
            <title><![CDATA[How we made the LiteLLM Usage page 120x faster]]></title>
            <link>https://docs.litellm.ai/blog/usage-page-bounded-loading</link>
            <guid>https://docs.litellm.ai/blog/usage-page-bounded-loading</guid>
            <pubDate>Wed, 30 Sep 2026 09:00:00 GMT</pubDate>
            <description><![CDATA[From six minutes to 3.2 seconds: how moving aggregation into Postgres made LiteLLM's Usage page roughly 120x faster in our benchmark.]]></description>
            <content:encoded><![CDATA[<p>This week, we made the LiteLLM Usage page roughly 120x faster.</p>
<p>With 5,000 API keys, our Usage page took <strong>over six minutes</strong> to show 30 days of totals. We redesigned how it loads data and brought that down to <strong>3.2 seconds</strong> in our benchmark. That's roughly <strong>120x faster</strong>.</p>
<!-- -->
<figure class="figure_K3lX"><div class="results_oF6b"><div class="resultHeading_hwA2"><p class="eyebrow_xoZB">Time to usage totals</p><span class="improvement_YvyX">120×<!-- --> faster in this benchmark</span></div><div class="timing_Itsf"><div class="beforeTime_sGle"><span class="timeLabel_VIR9">Before</span><span class="timeValue_N9Nm">386<span class="timeUnit_TctC">s</span></span></div><svg class="timingArrow_eqSJ" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><div class="afterTime_L9fR"><span class="timeLabel_VIR9">After</span><span class="timeValue_N9Nm">3.2<span class="timeUnit_TctC">s</span></span></div></div><table class="metrics_XaDM"><thead><tr><th scope="col">30-day page load</th><th scope="col">Before</th><th scope="col">After</th></tr></thead><tbody><tr><th scope="row">Usage requests</th><td>315</td><td>6</td></tr><tr><th scope="row">Data transferred</th><td>1.3 GB</td><td>17 MB</td></tr><tr><th scope="row">Peak browser heap</th><td>2.0 GB</td><td>72 MB</td></tr></tbody></table></div><figcaption class="caption_lv0v">30-day Usage view · 5,000 API keys · same database</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-it-was-slow">Why it was slow<a href="https://docs.litellm.ai/blog/usage-page-bounded-loading#why-it-was-slow" class="hash-link" aria-label="Direct link to Why it was slow" title="Direct link to Why it was slow">​</a></h2>
<p>The browser downloaded every key's daily usage, 1,000 rows at a time, then calculated totals and rankings in JavaScript.</p>
<p>More keys and more history meant more requests, more data, and more work in the browser. Our 30-day test needed <strong>315 requests and 1.3 GB of data</strong> before the totals appeared.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-we-changed">What we changed<a href="https://docs.litellm.ai/blog/usage-page-bounded-loading#what-we-changed" class="hash-link" aria-label="Direct link to What we changed" title="Direct link to What we changed">​</a></h2>
<p><strong>Postgres now does the aggregation.</strong> The page receives calculated totals and usage breakdowns, instead of downloading every key's history to calculate them.</p>
<figure class="figure_K3lX"><div class="flows_I_1r"><div class="flow_ynXR"><div><span class="flowLabel_yBPG">Before</span><p class="flowTitle_xFtv">Download, then calculate</p></div><ol class="stages_gvrw" aria-label="Before data flow"><li class="stage_nVmF"><span class="stageLabel_VCxT">Database</span><span class="stageDetail_JmZ2">Daily rows for every key</span></li><li class="stage_nVmF"><svg class="flowArrow_bpTK" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_VCxT">Transfer</span><span class="stageDetail_JmZ2">Page through the results</span></li><li class="stage_nVmF"><svg class="flowArrow_bpTK" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_VCxT">Browser</span><span class="stageDetail_JmZ2">Sum totals and sort keys</span></li></ol></div><div class="flow_ynXR after_ZODV"><div><span class="flowLabel_yBPG">After</span><p class="flowTitle_xFtv">Calculate, then download</p></div><ol class="stages_gvrw" aria-label="After data flow"><li class="stage_nVmF"><span class="stageLabel_VCxT">Database</span><span class="stageDetail_JmZ2">Aggregate across all keys</span></li><li class="stage_nVmF"><svg class="flowArrow_bpTK" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_VCxT">Transfer</span><span class="stageDetail_JmZ2">Totals and usage breakdowns</span></li><li class="stage_nVmF"><svg class="flowArrow_bpTK" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 12h15m-6-6 6 6-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="stageLabel_VCxT">Browser</span><span class="stageDetail_JmZ2">Display the results</span></li></ol></div></div><figcaption class="caption_lv0v">Aggregate in the database. Send less to the browser.</figcaption></figure>
<p>Totals still include <strong>all keys</strong> in the selected range. The key list loads 50 keys at a time as you scroll, and a key's daily charts load when you expand it, so the browser never holds every key's history. Search and CSV export run in Postgres too, so you can still find any virtual key and export complete usage data.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-results-hold-up-over-longer-ranges">The results hold up over longer ranges<a href="https://docs.litellm.ai/blog/usage-page-bounded-loading#the-results-hold-up-over-longer-ranges" class="hash-link" aria-label="Direct link to The results hold up over longer ranges" title="Direct link to The results hold up over longer ranges">​</a></h2>
<p>For 90 days of usage, time to totals fell from <strong>about 34 minutes to 10 seconds</strong>. The same redesign covers the User, Agent, Team, Tag, Organization, and Customer usage views.</p>
<p>We tested both designs against the same Postgres database: <strong>5,000 API keys and 4.9 million daily rows across 91 days</strong>. Both used production UI builds. New timings are medians of five runs with a cold browser cache; old timings come from runs allowed to finish beyond our 90-second cutoff. These measurements track time to visible totals. We later reran the final code side by side with the version we first measured, on a separate machine, and time to totals matched within 2%.</p>
<p><img decoding="async" loading="lazy" alt="LiteLLM Usage page Key Activity tab showing complete 30-day totals for 5,000 keys, with the key list loading below." src="https://docs.litellm.ai/assets/images/after_usage_30d-4b65413c1e34262c6db066a3aaebcb9a.png" width="1600" height="1000" class="img_ev3q"></p>
<p>See the changes: <a href="https://github.com/BerriAI/litellm/pull/43398" target="_blank" rel="noopener noreferrer">database queries</a>, <a href="https://github.com/BerriAI/litellm/pull/43408" target="_blank" rel="noopener noreferrer">API routes</a>, and <a href="https://github.com/BerriAI/litellm/pull/43409" target="_blank" rel="noopener noreferrer">Admin UI</a>. We're making it faster to see where your LLM spend is going, even as your deployment grows.</p>]]></content:encoded>
            <category>performance</category>
            <category>admin-ui</category>
            <category>postgres</category>
            <category>engineering</category>
            <category>ai-gateway</category>
        </item>
        <item>
            <title><![CDATA[Day 0 Support: GPT-6.1 Sol]]></title>
            <link>https://docs.litellm.ai/blog/gpt_6_1_sol</link>
            <guid>https://docs.litellm.ai/blog/gpt_6_1_sol</guid>
            <pubDate>Tue, 29 Sep 2026 12:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for GPT-6.1 Sol on LiteLLM, with cached input at half GPT-6 Sol's price.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x GPT-6.1 Sol" src="https://docs.litellm.ai/assets/images/litellm_gpt_6_1_sol_announcement-c8521af0e74fa2c208af7ad7b2e494a9.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM now supports <a href="https://openai.com/index/introducing-gpt-6-1-sol/" target="_blank" rel="noopener noreferrer">GPT-6.1 Sol</a>. Route traffic to it through the LiteLLM AI Gateway with the same config you use for every other OpenAI model.</p>
<!-- -->
<p>GPT-6.1 Sol is an upgrade to GPT-6 Sol at the same $2 input and $10 output per 1M tokens, with cached input cut in half to $0.10. Per OpenAI, it matches GPT-6 Astra on DeepSWE v1.1 at roughly a fifth of the cost, and on Terminal-Bench Science it averages $5.47 a task against $23.21 for Opus 5.5.</p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p><strong>No image upgrade needed.</strong> Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/43738" target="_blank" rel="noopener noreferrer">PR #43738</a>; hit <strong>Reload Model Cost Map</strong> in the Admin UI (or <code>POST /reload/model_cost_map</code>) to pull it, on <code>v1.76.0</code> and above.</p></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/gpt_6_1_sol#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">LiteLLM Proxy</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">LiteLLM Python SDK</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gpt</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">6.1</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sol</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> openai/gpt</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">6.1</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sol</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/OPENAI_API_KEY</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e OPENAI_API_KEY=$OPENAI_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:main-latest \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div><p><strong>3. Test it</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl -X POST "http://0.0.0.0:4000/chat/completions" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Content-Type: application/json" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "gpt-6.1-sol",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "messages": [</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      {"role": "user", "content": "Write a Python function to check if a number is prime."}</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    ],</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "reasoning_effort": "high"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#CF222E">from</span><span class="token plain"> litellm </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> completion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> completion</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"openai/gpt-6.1-sol"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    messages</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"role"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"user"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"content"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Write a Python function to check if a number is prime."</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    reasoning_effort</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"high"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">print</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">choices</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#005CC5">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">message</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">content</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="pricing">Pricing<a href="https://docs.litellm.ai/blog/gpt_6_1_sol#pricing" class="hash-link" aria-label="Direct link to Pricing" title="Direct link to Pricing">​</a></h2>
<p>Per 1M tokens (USD), short context (≤272K tokens) / long context (&gt;272K tokens).</p>
<table><thead><tr><th>Model</th><th>Input</th><th>Cached input</th><th>Cache write</th><th>Output</th></tr></thead><tbody><tr><td><code>gpt-6.1-sol</code></td><td>$2.00 / $4.00</td><td>$0.10 / $0.20</td><td>$2.50 / $5.00</td><td>$10.00 / $15.00</td></tr></tbody></table>
<p>Batch and Flex run at half these rates and Fast mode at double; LiteLLM tracks all of them from the same cost map row.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="notes">Notes<a href="https://docs.litellm.ai/blog/gpt_6_1_sol#notes" class="hash-link" aria-label="Direct link to Notes" title="Direct link to Notes">​</a></h2>
<p>OpenAI serves tool calling for this model on the Responses API only. LiteLLM bridges a <code>/chat/completions</code> request with tools to <code>/v1/responses</code> for you, so existing tool-calling code keeps working.</p>
<p>Reasoning effort runs <code>low</code> to <code>max</code>, defaulting to <code>medium</code>. Unlike GPT-6 Sol, <code>none</code> is not supported, so <code>temperature</code> is not available on this model.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gpt_6_1_sol#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running GPT-6.1 Sol through LiteLLM and hitting something unexpected? Share it on <a href="https://github.com/BerriAI/litellm/discussions/43742" target="_blank" rel="noopener noreferrer">GitHub discussion #43742</a>.</p>]]></content:encoded>
            <category>openai</category>
            <category>gpt-6</category>
            <category>gpt-6.1-sol</category>
            <category>completion</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[Learn the LiteLLM gateway with a guided course]]></title>
            <link>https://docs.litellm.ai/blog/litellm-gateway-course</link>
            <guid>https://docs.litellm.ai/blog/litellm-gateway-course</guid>
            <pubDate>Mon, 28 Sep 2026 17:00:00 GMT</pubDate>
            <description><![CDATA[Follow a request through the LiteLLM gateway, Router, and SDK. A guided course for teams deploying the gateway and contributors making code changes.]]></description>
            <content:encoded><![CDATA[<img src="https://docs.litellm.ai/assets/ideal-img/hero.2356978.1280.png" alt="Learn the LiteLLM gateway at litellm.ai/course. Follow a request through gateway access checks, Router deployment selection, and SDK provider translation." class="themedComponent_mlkZ themedComponent--light_NVdE" style="width:100%"><img src="https://docs.litellm.ai/assets/ideal-img/hero-dark.b5f1ab5.1280.png" alt="Learn the LiteLLM gateway at litellm.ai/course. Follow a request through gateway access checks, Router deployment selection, and SDK provider translation." class="themedComponent_mlkZ themedComponent--dark_xIcU" style="width:100%">
<p>The <a href="https://litellm.ai/course" target="_blank" rel="noopener noreferrer">LiteLLM gateway course</a> walks you through how the gateway, Router, and SDK work together. We built it for developers and platform teams deploying LiteLLM, and contributors who want to understand the code before opening a pull request.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="start-with-one-request">Start with one request<a href="https://docs.litellm.ai/blog/litellm-gateway-course#start-with-one-request" class="hash-link" aria-label="Direct link to Start with one request" title="Direct link to Start with one request">​</a></h2>
<p>The first lessons follow a support app that sends a question to a model called <code>support-chat</code>. The gateway checks the caller's access. The Router chooses a deployment. The SDK translates the call into the provider's format.</p>
<p>Later lessons build on that same app. You add access rules, compare routing choices, follow retries and fallbacks, and see how costs and logs are recorded.</p>
<p>In <a href="https://litellm.ai/course#/lesson/request-lifetime" target="_blank" rel="noopener noreferrer">Follow one request</a>, you can switch between an allowed request, a denied model, and a blocked answer. Select a scenario to see which steps run and where the request stops.</p>
<p><img decoding="async" loading="lazy" alt="Request flow with Answer blocked selected. The provider generates an answer before a response check blocks delivery." src="https://docs.litellm.ai/assets/images/request-stops-1b5b1195ee9d9b0362c4bd7757914121.png" width="738" height="390" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="understand-the-deployment-you-run">Understand the deployment you run<a href="https://docs.litellm.ai/blog/litellm-gateway-course#understand-the-deployment-you-run" class="hash-link" aria-label="Direct link to Understand the deployment you run" title="Direct link to Understand the deployment you run">​</a></h2>
<p>For platform teams, the lessons cover everyday decisions: how to give a team access to models, set a budget, choose fallbacks, and investigate a failed request.</p>
<p>The operations chapters explain how gateway workers, Redis, and PostgreSQL fit together. Other chapters cover streaming, caching, tools, and agents.</p>
<p>Use the <a href="https://docs.litellm.ai/docs/proxy/prod" target="_blank" rel="noopener noreferrer">production guide</a> alongside the course when you configure your deployment.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="find-where-a-code-change-belongs">Find where a code change belongs<a href="https://docs.litellm.ai/blog/litellm-gateway-course#find-where-a-code-change-belongs" class="hash-link" aria-label="Direct link to Find where a code change belongs" title="Direct link to Find where a code change belongs">​</a></h2>
<p>For contributors, the course helps you find where a change belongs. A provider request in the wrong format points toward an SDK adapter. An unexpected deployment choice points toward the Router. A permission error starts with the gateway's access checks.</p>
<p>The lessons include <strong>Why this exists</strong> and <strong>Where the code lives</strong> sections. Open them to read the reason for a behavior and follow links to the relevant implementation, documentation, or tests.</p>
<p>The final chapter follows a change across the system, from a dashboard field to permissions, stored data, and the settings loaded by gateway workers. It shows you how to trace the behavior and choose what to test. The <a href="https://docs.litellm.ai/docs/extras/contributing_code" target="_blank" rel="noopener noreferrer">contribution guide</a> covers repository setup and the pull request process.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="take-the-course">Take the course<a href="https://docs.litellm.ai/blog/litellm-gateway-course#take-the-course" class="hash-link" aria-label="Direct link to Take the course" title="Direct link to Take the course">​</a></h2>
<p>The course has 83 lessons in 15 chapters. Follow the lessons in order, or use the sidebar to return to a topic. Your progress is saved in your browser. No login is required.</p>
<p><strong><a href="https://litellm.ai/course" target="_blank" rel="noopener noreferrer">Start the LiteLLM gateway course →</a></strong></p>]]></content:encoded>
            <category>proxy</category>
            <category>product</category>
        </item>
        <item>
            <title><![CDATA[Day 0 Support: Claude Sonnet 5.5]]></title>
            <link>https://docs.litellm.ai/blog/claude_sonnet_5_5</link>
            <guid>https://docs.litellm.ai/blog/claude_sonnet_5_5</guid>
            <pubDate>Mon, 28 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for Claude Sonnet 5.5 on the LiteLLM AI Gateway. Use it across Anthropic, Bedrock, Gemini Enterprise Agent Platform, and Azure.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Claude Sonnet 5.5" src="https://docs.litellm.ai/assets/images/litellm_claude_sonnet_5_5_announcement-b67ee287e6ead46c827ffe8e4184caf5.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM now supports <a href="https://www.anthropic.com/claude-sonnet-5-5" target="_blank" rel="noopener noreferrer">Claude Sonnet 5.5</a> on Day 0. Use it across Anthropic, Bedrock, Gemini Enterprise Agent Platform, and Azure through the LiteLLM AI Gateway, with spend, rate limits, and logging in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-sonnet-55">What's new in Sonnet 5.5<a href="https://docs.litellm.ai/blog/claude_sonnet_5_5#whats-new-in-sonnet-55" class="hash-link" aria-label="Direct link to What's new in Sonnet 5.5" title="Direct link to What's new in Sonnet 5.5">​</a></h2>
<ul>
<li><strong>Same price as Sonnet 5:</strong> $2 / MTok input, $10 / MTok output, $0.20 / MTok cache reads</li>
<li><strong>30%+ faster</strong>, and up to 30% less per task, per Anthropic</li>
<li><strong>70.6% on Terminal-Bench 4.0</strong>, up from Sonnet 5's 10.3%</li>
<li><strong>1M-token context</strong>, up to 128K output tokens</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="enabling-sonnet-55">Enabling Sonnet 5.5<a href="https://docs.litellm.ai/blog/claude_sonnet_5_5#enabling-sonnet-55" class="hash-link" aria-label="Direct link to Enabling Sonnet 5.5" title="Direct link to Enabling Sonnet 5.5">​</a></h2>
<p>Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/43586" target="_blank" rel="noopener noreferrer">PR #43586</a>. No upgrade needed: open <strong>Price Data</strong> under <strong>Models + Endpoints</strong> in the UI and click <strong>Reload Price Data</strong> (or <code>POST /reload/model_cost_map</code>), on <code>v1.76.0</code> and above.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/claude_sonnet_5_5#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">Anthropic</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Bedrock</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Gemini Enterprise Agent Platform</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Azure</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> anthropic/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/ANTHROPIC_API_KEY</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> bedrock/anthropic.claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">aws_access_key_id</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AWS_ACCESS_KEY_ID</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">aws_secret_access_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AWS_SECRET_ACCESS_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">aws_region_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> us</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">east</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">1</span><br></span></code></pre></div></div><div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p>For cross-region routing, use a regional inference profile such as <code>bedrock/converse/us.anthropic.claude-sonnet-5-5</code>. Regional profiles carry a 10% premium and <code>global.</code> stays at base price; LiteLLM tracks each variant.</p></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> vertex_ai/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">vertex_project</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/VERTEX_PROJECT</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">vertex_location</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> global</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e VERTEX_PROJECT=$VERTEX_PROJECT \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/credentials.json:/app/credentials.json \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> azure_ai/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AZURE_AI_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_base</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AZURE_AI_API_BASE  </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># https://&lt;resource&gt;.services.ai.azure.com</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AZURE_AI_API_KEY=$AZURE_AI_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AZURE_AI_API_BASE=$AZURE_AI_API_BASE \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div></div></div>
<p><strong>3. Test it!</strong></p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl --location 'http://0.0.0.0:4000/chat/completions' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--header 'Content-Type: application/json' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--header 'Authorization: Bearer $LITELLM_KEY' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--data '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "model": "claude-sonnet-5-5",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "messages": [</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "role": "user",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "content": "what llm are you"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    }</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}'</span><br></span></code></pre></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="worth-knowing">Worth knowing<a href="https://docs.litellm.ai/blog/claude_sonnet_5_5#worth-knowing" class="hash-link" aria-label="Direct link to Worth knowing" title="Direct link to Worth knowing">​</a></h2>
<p><strong>Forced tool use returns a 400.</strong> Use <code>tool_choice: "auto"</code> and say in the prompt when the tool applies.</p>
<p><strong><code>thinking: {"type": "disabled"}</code> returns a 400.</strong> Anthropic's replacement is <code>between_tools</code>; see their <a href="https://platform.claude.com/docs/en/models/sonnet-5-5/migration-guide" target="_blank" rel="noopener noreferrer">migration guide</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/claude_sonnet_5_5#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running Claude Sonnet 5.5 through LiteLLM and hitting something unexpected? Share it on <a href="https://github.com/BerriAI/litellm/discussions/43590" target="_blank" rel="noopener noreferrer">GitHub discussion #43590</a>.</p>]]></content:encoded>
            <category>anthropic</category>
            <category>claude</category>
            <category>sonnet 5.5</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[Introducing the LiteLLM ROI Calculator]]></title>
            <link>https://docs.litellm.ai/blog/litellm-roi-calculator</link>
            <guid>https://docs.litellm.ai/blog/litellm-roi-calculator</guid>
            <pubDate>Sat, 26 Sep 2026 17:00:00 GMT</pubDate>
            <description><![CDATA[Compare each engineer's LiteLLM gateway spend with the estimated effort of their merged pull requests. Open source and self-hosted.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM ROI Calculator overview: $258 of matched gateway spend compared with 78 estimated engineering hours, or $3.31 per estimated hour, above a list of merged pull requests." src="https://docs.litellm.ai/assets/images/overview-62a7703ebeae1bbf7e4ef9328a303545.png" width="1280" height="690" class="img_ev3q"></p>
<p>Your gateway tells you what your team spends on AI. It doesn't tell you what that spend produced.</p>
<p><strong>The <a href="https://github.com/BerriAI/litellm-roi-calculator" target="_blank" rel="noopener noreferrer">LiteLLM ROI Calculator</a> compares gateway spend with the engineering work your team ships.</strong> It reads spend per user from LiteLLM, estimates the effort in each merged pull request with a model you choose, and matches people by email. The result is one number: spend per estimated engineering hour.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="connect-your-gateway-and-github">Connect your gateway and GitHub<a href="https://docs.litellm.ai/blog/litellm-roi-calculator#connect-your-gateway-and-github" class="hash-link" aria-label="Direct link to Connect your gateway and GitHub" title="Direct link to Connect your gateway and GitHub">​</a></h2>
<p>Run it locally with one command:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">git clone https://github.com/BerriAI/litellm-roi-calculator.git</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">cd litellm-roi-calculator</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">uv run litellm-roi</span><br></span></code></pre></div></div>
<p>The app opens at <code>http://localhost:8787</code>. There is no database server, Node installation, or frontend build.</p>
<p>Setup takes three steps:</p>
<ul>
<li><strong>Gateway:</strong> enter your gateway URL and an admin or read-only admin key that can read users and spend.</li>
<li><strong>GitHub:</strong> click <strong>Connect GitHub</strong>. GitHub walks you through creating a read-only App and choosing its repositories. There are no client IDs or secrets to copy.</li>
<li><strong>Model and schedule:</strong> pick a model from your gateway. A small model such as GPT Luna or Claude Haiku works well.</li>
</ul>
<p><img decoding="async" loading="lazy" alt="Repository picker with two sample repositories selected" src="https://docs.litellm.ai/assets/images/setup-repositories-e0980e9acba9d89d73031745a0945096.png" width="720" height="720" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="estimate-every-merged-pull-request">Estimate every merged pull request<a href="https://docs.litellm.ai/blog/litellm-roi-calculator#estimate-every-merged-pull-request" class="hash-link" aria-label="Direct link to Estimate every merged pull request" title="Direct link to Estimate every merged pull request">​</a></h2>
<p>For each merged PR, the model answers one question:</p>
<blockquote>
<p>Estimate how many hours it would take an engineer to complete the work in this pull request without AI assistance. Explain your estimate briefly.</p>
</blockquote>
<p>The model sees the PR description, file change counts, and commit metadata. Code patches are never sent. Temperature is fixed at 0, and you can edit the prompt, backfill window, and update interval in <strong>Settings</strong>.</p>
<p><img decoding="async" loading="lazy" alt="Estimator setup with a model, a seven-day backfill, and a 24-hour update interval" src="https://docs.litellm.ai/assets/images/setup-estimator-3ee2c7c27e0e884b87e9ef22f8673717.png" width="720" height="670" class="img_ev3q"></p>
<p>Click <strong>Start backfill</strong> and the app imports spend and PRs, then estimates up to three PRs at a time. After that it refreshes on your schedule. Unchanged PRs reuse their cached estimates, so you only pay to estimate new or changed work.</p>
<p><img decoding="async" loading="lazy" alt="Backfill progress showing completed import stages, PR count, elapsed time, and estimated time remaining" src="https://docs.litellm.ai/assets/images/backfill-4c5221ffab34d69ea2e371cf8310e6b4.png" width="720" height="600" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="read-the-report">Read the report<a href="https://docs.litellm.ai/blog/litellm-roi-calculator#read-the-report" class="hash-link" aria-label="Direct link to Read the report" title="Direct link to Read the report">​</a></h2>
<ul>
<li><strong>Overview:</strong> matched spend divided by estimated hours. Click any PR to see its estimate and the model's reasoning.</li>
<li><strong>People:</strong> spend and estimated hours per engineer. Use <strong>Match email</strong> when someone's GitHub email differs from their gateway email.</li>
<li><strong>Calculation details:</strong> shows how much spend was matched and what was excluded.</li>
</ul>
<p>In the sample report above, $258 of matched spend ÷ 78 estimated hours = <strong>$3.31 per estimated hour</strong>. These are estimates of engineering effort, not hours worked or hours saved. Each person's spend covers all of their gateway usage, not costs attributed to a specific PR.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="host-it-for-your-team">Host it for your team<a href="https://docs.litellm.ai/blog/litellm-roi-calculator#host-it-for-your-team" class="hash-link" aria-label="Direct link to Host it for your team" title="Direct link to Host it for your team">​</a></h2>
<p>The repository includes a Render blueprint for a single shared instance with a persistent disk. It has no built-in dashboard login, so put it behind your hosting provider's access controls or an SSO proxy before sharing company data. Keys stay on the server, and PR metadata only goes to the model you picked, through your own gateway.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Get started<a href="https://docs.litellm.ai/blog/litellm-roi-calculator#get-started" class="hash-link" aria-label="Direct link to Get started" title="Direct link to Get started">​</a></h2>
<p>The ROI Calculator is open source under Apache 2.0. Clone <a href="https://github.com/BerriAI/litellm-roi-calculator" target="_blank" rel="noopener noreferrer">BerriAI/litellm-roi-calculator</a>, follow the README, or <a href="https://github.com/BerriAI/litellm-roi-calculator/blob/main/docs/running.md" target="_blank" rel="noopener noreferrer">explore the demo without credentials</a>.</p>
<p>Try it on your team's last week of PRs and <a href="https://github.com/BerriAI/litellm-roi-calculator/issues" target="_blank" rel="noopener noreferrer">tell us what you find</a>.</p>]]></content:encoded>
            <category>cost</category>
            <category>product</category>
            <category>announcement</category>
        </item>
        <item>
            <title><![CDATA[Introducing LiteAgents]]></title>
            <link>https://docs.litellm.ai/blog/liteagents-sdk</link>
            <guid>https://docs.litellm.ai/blog/liteagents-sdk</guid>
            <pubDate>Fri, 25 Sep 2026 17:00:00 GMT</pubDate>
            <description><![CDATA[Switch agent harnesses without rewriting your agent. Keep your tools and model configuration, use native harness controls, and add Temporal when you need durable runs.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteAgents: switch harnesses, keep your agent. A ProfileOptions example changes deepagents to claude-sdk while keeping the model, tools, and MCP connections." src="https://docs.litellm.ai/assets/images/hero-665059ddadc1ca947cfc2d21b272a2a9.png" width="2400" height="1260" class="img_ev3q"></p>
<p>You've built an agent with your own tools, prompts, and model configuration. Now you want to try a different harness on the same task.</p>
<p><strong>LiteAgents lets you switch agent harnesses without rewriting your application.</strong> Its interface is modeled after the Claude Agent SDK, including the <code>query()</code> pattern and typed messages. Choose Deep Agents, Pydantic AI, Claude Agent SDK, Codex, or OpenCode while keeping your tools, MCP connections, model configuration, and client code. Each selected harness runs its own agent loop.</p>
<p>LiteLLM gives you a common interface to models. LiteAgents brings that approach to agent harnesses, with native controls and optional durability through Temporal.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="change-one-field-to-try-another-harness">Change one field to try another harness<a href="https://docs.litellm.ai/blog/liteagents-sdk#change-one-field-to-try-another-harness" class="hash-link" aria-label="Direct link to Change one field to try another harness" title="Direct link to Change one field to try another harness">​</a></h2>
<p>An agent harness runs the loop around a model: supplying context, calling tools, and deciding when to continue. Different harnesses approach that work differently. You should be able to compare them on your own tasks without rebuilding the surrounding application.</p>
<p>In LiteAgents, the harness is a field in your profile:</p>
<div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> os</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">from</span><span class="token plain"> liteagents </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> LiteAgentClient</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> LiteAgentOptions</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> ProfileOptions</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">profile </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> ProfileOptions</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    harness</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"deepagents"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain">  </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># Try "claude-sdk", "codex", or "pydantic-ai".</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"my-model"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model_kwargs</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token string" style="color:#C6105F">"api_base"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"https://your-gateway.example/v1"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token string" style="color:#C6105F">"api_key"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">environ</span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#C6105F">"LITELLM_API_KEY"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">options </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> LiteAgentOptions</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">profile</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">profile</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> tools</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain">lookup_order</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">async</span><span class="token plain"> </span><span class="token keyword" style="color:#CF222E">with</span><span class="token plain"> LiteAgentClient</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">options</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">options</span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"> </span><span class="token keyword" style="color:#CF222E">as</span><span class="token plain"> agent</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token keyword" style="color:#CF222E">async</span><span class="token plain"> </span><span class="token keyword" style="color:#CF222E">for</span><span class="token plain"> message </span><span class="token keyword" style="color:#CF222E">in</span><span class="token plain"> agent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">query</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#C6105F">"Check the status of order A123."</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token keyword" style="color:#CF222E">print</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">message</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div>
<p>This excerpt uses your existing <code>lookup_order</code> tool and the <code>LITELLM_API_KEY</code> environment variable. Set <code>model</code> to the alias configured on your gateway and <code>api_base</code> to its endpoint. LiteAgents sends the alias unchanged; no routing prefix is needed. Once you've installed the harness you want to try, change <code>harness</code> and run the same application.</p>
<p>Install only the harness integrations you plan to use. Extras such as <code>[deepagents]</code> supply that adapter's dependencies and reuse compatible packages in your Python environment. <code>[all]</code> is a convenience for trying every integration; OpenCode also needs its executable. Changing the profile selects which harness runs.</p>
<p>LiteAgents adapts your tools, MCP configuration, and events to each harness. Your application receives the same <code>AssistantMessage</code>, <code>UserMessage</code>, and optional streaming <code>TextDelta</code> types whichever harness you choose. LiteLLM handles model translation internally, so switching harnesses keeps the same model connection. With a gateway, the gateway routes your model alias to its provider. Without a gateway, use a LiteLLM <code>provider/model</code> name and provider credentials; LiteAgents calls that provider through the LiteLLM Python library. Profiles also load from JSON or YAML.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="keep-the-harnesss-native-controls">Keep the harness's native controls<a href="https://docs.litellm.ai/blog/liteagents-sdk#keep-the-harnesss-native-controls" class="hash-link" aria-label="Direct link to Keep the harness's native controls" title="Direct link to Keep the harness's native controls">​</a></h2>
<p>Each harness still runs its own agent loop. Through <code>harness_options</code>, you can use supported native settings such as Deep Agents middleware and backends or Pydantic AI tool timeouts.</p>
<p>Shared configuration makes switching straightforward; native options let you tune the harness you've chosen. Those options remain specific to that harness, and your model must support the settings you request. Switching selects a harness for new runs; it doesn't migrate an ongoing native session.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="add-temporal-when-you-need-durable-runs">Add Temporal when you need durable runs<a href="https://docs.litellm.ai/blog/liteagents-sdk#add-temporal-when-you-need-durable-runs" class="hash-link" aria-label="Direct link to Add Temporal when you need durable runs" title="Direct link to Add Temporal when you need durable runs">​</a></h2>
<p>A simple agent runs locally without Temporal or PostgreSQL. When a job needs to survive a worker restart or keep running after the client disconnects, add Temporal to the profile and run a worker. Your application keeps the same client API.</p>
<p>Durable runs recover recorded operations and checkpoints after worker failure. You can start locally with SQLite, then use self-hosted Temporal or Temporal Cloud. Tools that perform external actions still need idempotency if an interrupted action may be retried.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="try-it-on-your-agent">Try it on your agent<a href="https://docs.litellm.ai/blog/liteagents-sdk#try-it-on-your-agent" class="hash-link" aria-label="Direct link to Try it on your agent" title="Direct link to Try it on your agent">​</a></h2>
<p>The SDK is available as a preview. Follow the <a href="https://github.com/BerriAI/liteagents/blob/main/docs/getting-started.md" target="_blank" rel="noopener noreferrer">getting-started guide</a>, or install the package from the <a href="https://github.com/BerriAI/liteagents/releases/tag/v0.3.0a2" target="_blank" rel="noopener noreferrer">latest preview release</a>.</p>
<p>Start with the <a href="https://github.com/BerriAI/liteagents/blob/main/cookbook/recipes/10_harness_switch.py" target="_blank" rel="noopener noreferrer">harness-switching cookbook</a>. It runs the same model, Python tool, MCP tool, and follow-up across all six harness selectors. Add <code>--temporal</code> to try the same task with durability. The <a href="https://github.com/BerriAI/liteagents/blob/main/cookbook/recipes/README.md" target="_blank" rel="noopener noreferrer">cookbook collection</a> also covers streaming, approvals, subagents, and worker recovery.</p>
<p>Try your workflow on another harness and <a href="https://github.com/BerriAI/liteagents/issues" target="_blank" rel="noopener noreferrer">tell us how it goes</a>.</p>]]></content:encoded>
            <category>agents</category>
            <category>sdk</category>
        </item>
        <item>
            <title><![CDATA[September Townhall Updates: 583 Bug Fixes, OCR on Rust, and 83.5% Coverage]]></title>
            <link>https://docs.litellm.ai/blog/september-townhall-updates</link>
            <guid>https://docs.litellm.ai/blog/september-townhall-updates</guid>
            <pubDate>Thu, 24 Sep 2026 12:00:00 GMT</pubDate>
            <description><![CDATA[A recap of the September LiteLLM town hall: security and stability updates, OCR running on Rust by default, test coverage past the 80% target, and new Fusion and liteagents launches.]]></description>
            <content:encoded><![CDATA[<p>Thank you to everyone who joined our September town hall. We covered security updates, stability updates, and new features in the product, including OCR running on Rust by default and test coverage past the 80% target we set in August.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="security">Security<a href="https://docs.litellm.ai/blog/september-townhall-updates#security" class="hash-link" aria-label="Direct link to Security" title="Direct link to Security">​</a></h2>
<p>We shipped 52 security fixes this month, broken down by category:</p>
<table><thead><tr><th>Category</th><th>Fixes</th></tr></thead><tbody><tr><td>Credential / secret / PII hardening</td><td>27</td></tr><tr><td>General hardening (validation, fail-closed)</td><td>12</td></tr><tr><td>Quota / budget / rate-limit hardening</td><td>10</td></tr><tr><td>Access control / authz hardening</td><td>3</td></tr></tbody></table>
<p>Major work in security went into authentication:</p>
<ul>
<li>Configurable password policies</li>
<li>Blocking passwords found in known breaches</li>
<li>Enforced SSO login</li>
<li>The option to disable logins that use credentials held in environment variables</li>
</ul>
<p><strong>Master keys.</strong> Wiz found 1 in 10 of the LiteLLM instances they scanned running with a blank or default master key. LiteLLM now refuses to start when the master key is unset or still at the default, so a deployment leaning on it will fail to boot on upgrade.</p>
<p><strong>A new disclosure practice, and more CVEs.</strong></p>
<ul>
<li>For anything an unauthenticated attacker can reach, we build the fix in a private fork and publish it at the same moment as the release, the backports, and the disclosure.</li>
<li>We're minting more CVEs than before, mostly low and medium severity.</li>
<li>The increase comes from a change in publishing policy. Our security posture hasn't changed.</li>
<li>Subscribe to our <a href="https://github.com/BerriAI/litellm/security/advisories" target="_blank" rel="noopener noreferrer">GitHub security advisories</a> to get them as they land.</li>
</ul>
<p>Next month we're at Patch the Planet, an OpenAI and Trail of Bits initiative where security engineers spend a focused week on one project.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="stability">Stability<a href="https://docs.litellm.ai/blog/september-townhall-updates#stability" class="hash-link" aria-label="Direct link to Stability" title="Direct link to Stability">​</a></h2>
<p>In September we shipped <strong>583 bug fixes</strong>.</p>
<table><thead><tr><th>Area</th><th>Fixes</th></tr></thead><tbody><tr><td>Proxy Core &amp; Resilience</td><td>228</td></tr><tr><td>Providers &amp; Model Transforms</td><td>94</td></tr><tr><td>Other / SDK</td><td>88</td></tr><tr><td>UI + Auth / SSO</td><td>57</td></tr><tr><td>Cost, Budgets &amp; Observability</td><td>43</td></tr><tr><td>MCP Gateway</td><td>39</td></tr><tr><td>Streaming / Realtime APIs</td><td>34</td></tr></tbody></table>
<p>The largest share went to the proxy core: scaling, resilience, and the circuit breakers that decide what happens when a dependency fails. If Redis goes down, the gateway should not.</p>
<ul>
<li><strong>Coverage.</strong> We committed to 80% by the end of September and finished at <strong>83.5%</strong>, measured as the share of endpoints and user flows the suite exercises, not lines of code.</li>
<li><strong>User flows.</strong> Up from 402 to 521 covered, with 600 the October target.</li>
<li><strong>Staffing.</strong> One engineer now works only on cost and budget discrepancies, so report them as you hit them. Two more are on open source full time, aiming for fewer than 100 open issues by year end.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="product">Product<a href="https://docs.litellm.ai/blog/september-townhall-updates#product" class="hash-link" aria-label="Direct link to Product" title="Direct link to Product">​</a></h2>
<p><strong>221 feature commits</strong> this month.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="ocr-runs-on-rust-by-default">OCR runs on Rust by default<a href="https://docs.litellm.ai/blog/september-townhall-updates#ocr-runs-on-rust-by-default" class="hash-link" aria-label="Direct link to OCR runs on Rust by default" title="Direct link to OCR runs on Rust by default">​</a></h3>
<p>Starting with <code>v1.102.0</code>, OCR runs on Rust by default. <code>LITELLM_RUST=0</code> still falls back to Python. SDK and gateway users don't need to change anything for this migration.</p>
<p><img decoding="async" loading="lazy" alt="OCR benchmark at 30 offered requests per second with an 8 MiB upload, showing Rust completing every arrival while Python falls well short, and Rust p95 latency in the tens of milliseconds against several seconds for Python" src="https://docs.litellm.ai/assets/images/rust-ocr-benchmark-fb991f7d9a48b615ebc60348045c59a1.png" width="1806" height="592" class="img_ev3q"></p>
<ul>
<li>On a single CPU, median throughput went from 143.6 to 211.7 RPS at 1 MiB, and from 21.6 to 36.2 RPS at 8 MiB.</li>
<li>These are proxy overhead numbers, measured against a local mock provider with proxy CPU as the bottleneck. <a href="https://docs.litellm.ai/blog/litellm-rust-ocr" target="_blank" rel="noopener noreferrer">Full methodology</a>.</li>
<li><code>/messages</code> is next, shipping as opt-in.</li>
<li>By December 1, we want chat completions, messages, and responses migrated and deployable as a pure Rust Axum server.</li>
<li>Progress is public at <a href="https://docs.litellm.ai/rust-migration" target="_blank" rel="noopener noreferrer">docs.litellm.ai/rust-migration</a>, currently at 5%.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="new-models">New models<a href="https://docs.litellm.ai/blog/september-townhall-updates#new-models" class="hash-link" aria-label="Direct link to New models" title="Direct link to New models">​</a></h3>
<p>We added a lot of new models over the past month, across nearly every major provider.</p>
<p><img decoding="async" loading="lazy" alt="Thirty days of new AI integrations from August 25 to September 24, 2026, listing selected merged model additions across OpenAI, Anthropic, Google Gemini, xAI, Meta, Alibaba Qwen, Z.ai, Moonshot AI, Fireworks AI, Together AI, Eden AI and AIHubMix" src="https://docs.litellm.ai/assets/images/new-models-04476c5fc7e0134348b34e9dd0600f3a.png" width="1672" height="941" class="img_ev3q"></p>
<p>Highlights include OpenAI's GPT-6 family, Claude Opus 5.5 and Claude Fable 5.1, Gemini 3.8 Flash and Grok 4.7, plus Eden AI as a new provider.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="fusion">Fusion<a href="https://docs.litellm.ai/blog/september-townhall-updates#fusion" class="hash-link" aria-label="Direct link to Fusion" title="Direct link to Fusion">​</a></h3>
<p><code>litellm/fusion-1</code> sends your request to a configurable panel of models in parallel, has a judge compare the successful responses, then has that judge synthesize one answer. It works with Chat Completions, Anthropic Messages, and Responses.</p>
<p><img decoding="async" loading="lazy" alt="LiteLLM fusion model card: one request fans out to a panel of models in parallel, to openai/gpt-6-astra, anthropic/claude-opus-5 and gemini/gemini-3.8-flash, and a judge returns a single response" src="https://docs.litellm.ai/assets/images/fusion-1-9244700569986d49a11e2a9a4a52f08e.png" width="800" height="450" class="img_ev3q"></p>
<p>It's expensive, and cost and latency both scale with panel size and the models you pick. Keep it for hard problems where quality matters more than cost. See the <a href="https://docs.litellm.ai/docs/fusion" target="_blank" rel="noopener noreferrer">fusion docs</a> for setup.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="liteagents-sdk">liteagents SDK<a href="https://docs.litellm.ai/blog/september-townhall-updates#liteagents-sdk" class="hash-link" aria-label="Direct link to liteagents SDK" title="Direct link to liteagents SDK">​</a></h3>
<p>liteagents is a beta SDK that lets you swap between agent harnesses without rewriting your agent. Pick the harness in a <code>ProfileOptions</code> block, whether that's the Claude Agent SDK, Deep Agents or Pydantic AI, and query it through one client.</p>
<p><img decoding="async" loading="lazy" alt="liteagents SDK code sample: a LiteAgentClient is configured with a ProfileOptions block selecting the deepagents harness and a model, then queried for a response" src="https://docs.litellm.ai/assets/images/liteagents-sdk-f9bb0affb450aa8e79d67e6cd57d7cda.png" width="2048" height="1040" class="img_ev3q"></p>
<p>Read more about the <a href="https://www.litellm.ai/liteagents" target="_blank" rel="noopener noreferrer">liteagents SDK</a>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="also-shipped">Also shipped<a href="https://docs.litellm.ai/blog/september-townhall-updates#also-shipped" class="hash-link" aria-label="Direct link to Also shipped" title="Direct link to Also shipped">​</a></h3>
<ul>
<li><strong>Self-hosting.</strong> A PgBouncer inside the container shares database connections across workers, spend writes can move to a sidecar off the request path, and Helm and Terraform can <a href="https://docs.litellm.ai/docs/proxy/deploy#scale-on-requests-and-tokens-per-pod" target="_blank" rel="noopener noreferrer">autoscale on requests and tokens per second</a> per pod rather than only CPU.</li>
<li><strong>MCP Gateway.</strong> The <code>/mcp</code> route now runs <a href="https://docs.litellm.ai/docs/mcp_tool_search" target="_blank" rel="noopener noreferrer">semantic search across tools</a> and returns only those matching the query, so we no longer trim long upstream catalogs to fit. <a href="https://docs.litellm.ai/docs/mcp_control" target="_blank" rel="noopener noreferrer">Tool permissions</a> are enforced on listing and calling, and session tokens are RS256-signed so an external gateway can verify a token came from LiteLLM.</li>
<li><strong>Team admin permissions.</strong> Budget, TPM, RPM and the approved model list stay with the proxy admin while team admins self-serve keys and models. Rolling out shortly.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="were-hiring">We're hiring<a href="https://docs.litellm.ai/blog/september-townhall-updates#were-hiring" class="hash-link" aria-label="Direct link to We're hiring" title="Direct link to We're hiring">​</a></h2>
<p>We're hiring across the core gateway; reach us at <a href="mailto:recruiting@berri.ai" target="_blank" rel="noopener noreferrer">recruiting@berri.ai</a>, or <a href="mailto:product@berri.ai" target="_blank" rel="noopener noreferrer">product@berri.ai</a> for product feedback.</p>
<p>Thank you for using LiteLLM. <strong>The LiteLLM Team</strong></p>]]></content:encoded>
            <author>yujong@berri.ai (Yujong Lee)</author>
            <category>townhall</category>
            <category>security</category>
            <category>reliability</category>
            <category>product</category>
        </item>
        <item>
            <title><![CDATA[Day 0 support: Gemini 3.8 Flash TTS and Flash-Lite TTS]]></title>
            <link>https://docs.litellm.ai/blog/gemini_3_8_flash_tts</link>
            <guid>https://docs.litellm.ai/blog/gemini_3_8_flash_tts</guid>
            <pubDate>Wed, 23 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for Gemini 3.8 Flash TTS and Flash-Lite TTS on LiteLLM's /v1/audio/speech, with launch pricing tracked through 2026.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Gemini 3.8 Flash TTS and Flash-Lite TTS" src="https://docs.litellm.ai/assets/images/hero-188c6c516591c4b1817e1aa8cd683368.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM supports <code>gemini-3.8-flash-tts</code> and <code>gemini-3.8-flash-lite-tts</code> on day 0 through <code>/v1/audio/speech</code>, on Google AI Studio (<code>gemini/</code>). Both are generally available and replace the 3.1 Flash TTS preview.</p>
<!-- -->
<p><a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-8-text-to-speech/" target="_blank" rel="noopener noreferrer">Per Google</a>, Flash TTS is built for creative work like games, audiobooks and podcasts, and Flash-Lite TTS is the cheaper tier for high-volume dubbing and voice agents. Both draw on more than 2,000 prebuilt voices, and Flash TTS covers 130 languages with automatic detection.</p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p><strong>No Docker image upgrade needed.</strong> Both models route through LiteLLM's existing Gemini speech path, so any recent version works for inference. For cost tracking, hit the <strong>Reload Model Cost Map</strong> button in the Admin UI (or <code>POST /reload/model_cost_map</code>) to pull pricing from <a href="https://github.com/BerriAI/litellm/pull/42752" target="_blank" rel="noopener noreferrer">PR #42752</a>, on <code>v1.76.0</code> and above.</p></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="launch-pricing">Launch pricing<a href="https://docs.litellm.ai/blog/gemini_3_8_flash_tts#launch-pricing" class="hash-link" aria-label="Direct link to Launch pricing" title="Direct link to Launch pricing">​</a></h2>
<p>Both models launch at promotional pricing through December 31, 2026, and Google's standard pricing applies from January 1, 2027. LiteLLM tracks cost at the launch rate.</p>
<p>Flash TTS is $0.50 per 1M text input tokens and $9.00 per 1M audio output tokens, and Flash-Lite TTS is $0.50 and $6.00. Batch and Flex run at half these rates and Priority at 1.8x. For comparison, the 3.1 Flash TTS preview was $1.00 in and $20.00 out.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="quick-start">Quick Start<a href="https://docs.litellm.ai/blog/gemini_3_8_flash_tts#quick-start" class="hash-link" aria-label="Direct link to Quick Start" title="Direct link to Quick Start">​</a></h2>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">SDK</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">PROXY</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> litellm</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> litellm</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">speech</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"gemini/gemini-3.8-flash-tts"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token builtin">input</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"Welcome back. Your order shipped this morning."</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    voice</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"Kore"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">stream_to_file</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#C6105F">"welcome.wav"</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">3.8</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">flash</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">tts</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gemini/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">3.8</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">flash</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">tts</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/GEMINI_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">3.8</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">flash</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">lite</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">tts</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gemini/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">3.8</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">flash</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">lite</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">tts</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/GEMINI_API_KEY</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">litellm --config /path/to/config.yaml</span><br></span></code></pre></div></div><p><strong>3. Test it</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl http://0.0.0.0:4000/v1/audio/speech \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Content-Type: application/json" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "gemini-3.8-flash-tts",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "input": "Welcome back. Your order shipped this morning.",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "voice": "Kore"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --output welcome.wav</span><br></span></code></pre></div></div></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="notes">Notes<a href="https://docs.litellm.ai/blog/gemini_3_8_flash_tts#notes" class="hash-link" aria-label="Direct link to Notes" title="Direct link to Notes">​</a></h2>
<p>Input is capped at 8,192 tokens per request and output at 16,384, so split long scripts such as audiobook chapters across calls. Pass a prebuilt voice by name in <code>voice</code>; see Google's <a href="https://ai.google.dev/gemini-api/docs/speech-generation" target="_blank" rel="noopener noreferrer">speech generation guide</a> for the list.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gemini_3_8_flash_tts#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running Gemini 3.8 TTS through LiteLLM and hitting something unexpected? Share it on <a href="https://github.com/BerriAI/litellm/discussions/42776" target="_blank" rel="noopener noreferrer">GitHub discussion #42776</a>.</p>]]></content:encoded>
            <category>gemini</category>
            <category>gemini-3.8-flash-tts</category>
            <category>text to speech</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[Introducing LiteAdmin MCP]]></title>
            <link>https://docs.litellm.ai/blog/litellm-admin-mcp</link>
            <guid>https://docs.litellm.ai/blog/litellm-admin-mcp</guid>
            <pubDate>Wed, 23 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[Give your agent tools to create keys, add models, and manage budgets with LiteAdmin MCP. Use the same connector through LiteAdmin, our Slack admin agent.]]></description>
            <content:encoded><![CDATA[<img src="https://docs.litellm.ai/assets/ideal-img/hero.b7472d0.1280.png" alt="Introducing LiteAdmin MCP: your AI toolkit for gateway management. LiteAdmin for Slack is built on LiteAdmin MCP." class="themedComponent_mlkZ themedComponent--light_NVdE" style="width:100%"><img src="https://docs.litellm.ai/assets/ideal-img/hero-dark.500e065.1280.png" alt="Introducing LiteAdmin MCP: your AI toolkit for gateway management. LiteAdmin for Slack is built on LiteAdmin MCP." class="themedComponent_mlkZ themedComponent--dark_xIcU" style="width:100%">
<p>An engineer asks for an API key for a new project. You need to choose its models, set a budget, and assign it to a team. As usage grows, you need to check spending and adjust those limits.</p>
<p><strong>LiteAdmin MCP</strong> lets your agent handle these tasks through your gateway's management API. Connect it to an MCP client or a custom agent. We built <strong>LiteAdmin</strong>, our Slack admin agent, on the same connector.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="connect-your-agent-to-your-gateway">Connect your agent to your gateway<a href="https://docs.litellm.ai/blog/litellm-admin-mcp#connect-your-agent-to-your-gateway" class="hash-link" aria-label="Direct link to Connect your agent to your gateway" title="Direct link to Connect your agent to your gateway">​</a></h2>
<p>Connect LiteAdmin MCP to a client such as Claude Code or Cursor, or to your own agent. Your client provides the conversation and model; the connector calls your gateway's management API with your admin credential.</p>
<p>Through that connection, you can:</p>
<ul>
<li><strong>Create and manage virtual keys:</strong> Set model access and spending limits.</li>
<li><strong>Add model deployments:</strong> Use credentials configured on your gateway.</li>
<li><strong>Manage teams and budgets:</strong> Update team membership and budgets.</li>
<li><strong>Inspect usage:</strong> Check spending and request logs.</li>
</ul>
<p>The connector includes 65 reviewed admin operations and exposes the ones your gateway supports.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="set-up-access-for-a-project">Set up access for a project<a href="https://docs.litellm.ai/blog/litellm-admin-mcp#set-up-access-for-a-project" class="hash-link" aria-label="Direct link to Set up access for a project" title="Direct link to Set up access for a project">​</a></h2>
<p>To set up a project for Engineering, ask:</p>
<blockquote>
<p>Create a key for Engineering with a $100 monthly budget.</p>
</blockquote>
<p>Include the models the project needs and an alias to identify the key. The agent can look up Engineering and create the key with the limits you specify.</p>
<p>Once the project is running, ask for its recorded spend. You can update the key's budget or the team's budget; specify which one in your request.</p>
<p>To add a model deployment, provide its public name, provider/model ID, and credential reference:</p>
<blockquote>
<p>Add a model named support-chat using openai/gpt-4.1 and the existing gateway credential openai-production.</p>
</blockquote>
<p>Use a stored credential name and keep provider API keys out of chat. Your gateway needs provider access and a database configured to store models. Follow the <a href="https://docs.litellm.ai/docs/proxy/liteadmin_mcp#add-a-model-deployment">model setup requirements</a>, then test inference after adding the deployment.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="choose-the-tools-your-agent-can-use">Choose the tools your agent can use<a href="https://docs.litellm.ai/blog/litellm-admin-mcp#choose-the-tools-your-agent-can-use" class="hash-link" aria-label="Direct link to Choose the tools your agent can use" title="Direct link to Choose the tools your agent can use">​</a></h2>
<p>Connect with your own LiteLLM proxy-admin credential. Your gateway permissions apply to management requests, and you can restrict the connector to specific tools or enable read-only mode.</p>
<p>Start with team and spend lookups, then enable key creation when you're ready to make changes.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="liteadmin-a-slack-agent-built-on-admin-mcp">LiteAdmin: a Slack agent built on Admin MCP<a href="https://docs.litellm.ai/blog/litellm-admin-mcp#liteadmin-a-slack-agent-built-on-admin-mcp" class="hash-link" aria-label="Direct link to LiteAdmin: a Slack agent built on Admin MCP" title="Direct link to LiteAdmin: a Slack agent built on Admin MCP">​</a></h2>
<p><strong>LiteAdmin (the LiteLLM Admin Agent)</strong> uses the same MCP server to manage your gateway from Slack. The app provides the conversation and sign-in; Admin MCP provides the gateway tools.</p>
<p>Host the agent, connect your gateway, and choose the model it uses. The app includes the MCP connector, and each installation connects one gateway to one Slack workspace.</p>
<p>Open <strong>LiteLLM Admin</strong> in Slack, send <strong>connect</strong>, and follow the private link to sign in with your own admin account. Your deployment can use SSO or a personal admin key entered on a browser page. Then ask:</p>
<blockquote>
<p>Show Engineering's current spend and budget.</p>
</blockquote>
<p>After checking the spend, request a change:</p>
<blockquote>
<p>Increase Engineering's monthly budget to $500.</p>
</blockquote>
<p>You can follow up about the team's keys or usage in the same DM, from your laptop or phone.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Get started<a href="https://docs.litellm.ai/blog/litellm-admin-mcp#get-started" class="hash-link" aria-label="Direct link to Get started" title="Direct link to Get started">​</a></h2>
<p>Both projects are open source. Choose where you want to work:</p>
<ul>
<li><strong>LiteAdmin MCP:</strong> Follow the <a href="https://docs.litellm.ai/docs/proxy/liteadmin_mcp">MCP setup guide</a> to connect Claude, Codex, or another MCP client.</li>
<li><strong>LiteAdmin for Slack:</strong> Follow the <a href="https://docs.litellm.ai/docs/proxy/liteadmin_slack">Slack app setup guide</a> to deploy with Docker Compose or Render.</li>
</ul>
<p>Once connected, try <strong>“List my teams and their current budgets.”</strong></p>]]></content:encoded>
            <category>mcp</category>
            <category>agents</category>
            <category>ai-gateway</category>
        </item>
        <item>
            <title><![CDATA[Day 0 Support: GPT-6 Sol and GPT-6 Luna]]></title>
            <link>https://docs.litellm.ai/blog/gpt_6_sol_luna</link>
            <guid>https://docs.litellm.ai/blog/gpt_6_sol_luna</guid>
            <pubDate>Tue, 22 Sep 2026 12:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for GPT-6 Sol and GPT-6 Luna on LiteLLM, at half the price of their GPT-5.6 counterparts.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x GPT-6 Sol and Luna" src="https://docs.litellm.ai/assets/images/litellm_gpt_6_sol_luna_announcement-d97af9a6316cdf53321db5eeb75e82f3.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM now supports <a href="https://openai.com/index/introducing-gpt-6-sol-and-luna/" target="_blank" rel="noopener noreferrer">GPT-6 Sol and GPT-6 Luna</a>. Route traffic to them through the LiteLLM AI Gateway with the same config you use for every other OpenAI model.</p>
<!-- -->
<p>Sol and Luna join GPT-6 Astra, trained with the same methods and priced for work at scale. <code>gpt-6-sol</code> is built for complex coding and agentic workflows at $2 input and $10 output per 1M tokens, and <code>gpt-6-luna</code> is the high-volume tier at $0.10 and $0.50. OpenAI prices both at half their GPT-5.6 counterparts' current rates. Per OpenAI, Sol at <code>xhigh</code> scores 33.2% on AutomationBench at $0.27 a task and 68.8% on DeepSWE v1.1 at <code>max</code>, while Luna reaches 66.6% on DeepSWE. Both keep a 1,050,000-token context window with 922K input and 128K output, take text and image input, and run reasoning effort from <code>none</code> to <code>max</code>, defaulting to <code>medium</code>. There is no GPT-6 Terra; Astra stays the top of the range.</p>
<div class="theme-admonition theme-admonition-note admonition_xJq3 alert alert--secondary"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"></path></svg></span>note</div><div class="admonitionContent_BuS1"><p><strong>No image upgrade needed.</strong> LiteLLM already treats GPT-6 names as the GPT-5 request family, so <code>max_completion_tokens</code> and the reasoning params are handled on any version from <code>v1.101.0</code>. Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/42515" target="_blank" rel="noopener noreferrer">PR #42515</a>; hit <strong>Reload Model Cost Map</strong> in the Admin UI (or <code>POST /reload/model_cost_map</code>) to pull it, on <code>v1.76.0</code> and above.</p></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/gpt_6_sol_luna#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">LiteLLM Proxy</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">LiteLLM Python SDK</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gpt</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sol</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> openai/gpt</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sol</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/OPENAI_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> gpt</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">luna</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> openai/gpt</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">luna</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/OPENAI_API_KEY</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e OPENAI_API_KEY=$OPENAI_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:main-latest \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div><p><strong>3. Test it</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl -X POST "http://0.0.0.0:4000/chat/completions" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Content-Type: application/json" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "gpt-6-sol",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "messages": [</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      {"role": "user", "content": "Write a Python function to check if a number is prime."}</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    ],</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "reasoning_effort": "high"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#CF222E">from</span><span class="token plain"> litellm </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> completion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> completion</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"openai/gpt-6-sol"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    messages</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"role"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"user"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"content"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Write a Python function to check if a number is prime."</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    reasoning_effort</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"high"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">print</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">choices</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#005CC5">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">message</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">content</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token comment" style="color:#6B6B6B;font-style:italic"># gpt-6-luna for focused, high-volume work</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> completion</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"openai/gpt-6-luna"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    messages</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"role"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"user"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"content"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Classify this ticket as bug, feature, or question."</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    reasoning_effort</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"none"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    temperature</span><span class="token operator" style="color:#D73A49">=</span><span class="token number" style="color:#005CC5">0</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">print</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">choices</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#005CC5">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">message</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">content</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="responses-api">Responses API<a href="https://docs.litellm.ai/blog/gpt_6_sol_luna#responses-api" class="hash-link" aria-label="Direct link to Responses API" title="Direct link to Responses API">​</a></h2>
<p>For agentic and multi-turn workflows, use <code>/v1/responses</code> to preserve reasoning state across turns.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl -X POST "http://0.0.0.0:4000/v1/responses" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Content-Type: application/json" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "gpt-6-sol",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "input": "Plan and write a Python script that scrapes a webpage and summarizes it."</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="pricing">Pricing<a href="https://docs.litellm.ai/blog/gpt_6_sol_luna#pricing" class="hash-link" aria-label="Direct link to Pricing" title="Direct link to Pricing">​</a></h2>
<p>Prices are per 1M tokens (USD), shown as short context (≤272K tokens) / long context (&gt;272K tokens).</p>
<table><thead><tr><th>Model</th><th>Input</th><th>Cached input</th><th>Cache write</th><th>Output</th></tr></thead><tbody><tr><td><code>gpt-6-sol</code></td><td>$2.00 / $4.00</td><td>$0.20 / $0.40</td><td>$2.50 / $5.00</td><td>$10.00 / $15.00</td></tr><tr><td><code>gpt-6-luna</code></td><td>$0.10 / $0.20</td><td>$0.01 / $0.02</td><td>$0.125 / $0.25</td><td>$0.50 / $0.75</td></tr></tbody></table>
<p>Flex and Batch run at half these rates and Priority at double; LiteLLM tracks all of them from the same cost map row.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="notes">Notes<a href="https://docs.litellm.ai/blog/gpt_6_sol_luna#notes" class="hash-link" aria-label="Direct link to Notes" title="Direct link to Notes">​</a></h2>
<p><code>temperature</code> only applies when reasoning is off, so send <code>reasoning_effort="none"</code> alongside it, as in the Luna example above. Without it LiteLLM drops or refuses the parameter, since the default effort is <code>medium</code>.</p>
<p>Both models accept OpenAI's explicit prompt cache breakpoints, and LiteLLM passes them through on <code>/chat/completions</code>, <code>/responses</code> and <code>/v1/messages</code>; see <a href="https://docs.litellm.ai/docs/completion/prompt_caching">prompt caching</a>. OpenAI also says changing reasoning effort or tools mid-conversation no longer breaks the cache, which matters if you route different effort levels to the same deployment.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gpt_6_sol_luna#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running GPT-6 Sol or Luna through LiteLLM and hitting something unexpected? Share it on <a href="https://github.com/BerriAI/litellm/discussions/42523" target="_blank" rel="noopener noreferrer">GitHub discussion #42523</a>.</p>]]></content:encoded>
            <category>openai</category>
            <category>gpt-6</category>
            <category>gpt-6-sol</category>
            <category>gpt-6-luna</category>
            <category>completion</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[Day 0 Support: Claude Opus 5.5]]></title>
            <link>https://docs.litellm.ai/blog/claude_opus_5_5</link>
            <guid>https://docs.litellm.ai/blog/claude_opus_5_5</guid>
            <pubDate>Tue, 22 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for Claude Opus 5.5 on the LiteLLM AI Gateway. Use it across Anthropic, Bedrock, Gemini Enterprise Agent Platform, and Azure.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Claude Opus 5.5" src="https://docs.litellm.ai/assets/images/litellm_claude_opus_5_5_announcement-57b88898b45c0ecdf91ddf932be7be1a.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM now supports <a href="https://www.anthropic.com/claude-opus-5-5" target="_blank" rel="noopener noreferrer">Claude Opus 5.5</a> on Day 0. Use it across Anthropic, Bedrock, Gemini Enterprise Agent Platform, and Azure through the LiteLLM AI Gateway. Call it with the same OpenAI-compatible request you already use, and track spend, rate limits, and logging in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-opus-55">What's new in Opus 5.5<a href="https://docs.litellm.ai/blog/claude_opus_5_5#whats-new-in-opus-55" class="hash-link" aria-label="Direct link to What's new in Opus 5.5" title="Direct link to What's new in Opus 5.5">​</a></h2>
<p>Key changes (<a href="https://www.anthropic.com/claude-opus-5-5" target="_blank" rel="noopener noreferrer">details from Anthropic</a>):</p>
<ul>
<li><strong>20% cheaper than Opus 5:</strong> $4 / MTok input and $20 / MTok output, down from $5 and $25</li>
<li><strong>Cheaper cache reads:</strong> $0.20 / MTok, with 5-minute writes at $5 and 1-hour writes at $8</li>
<li><strong>Stronger agentic coding:</strong> Terminal-Bench 4.0 at 66.4% and OSWorld 2.0 at 81.8%</li>
<li><strong>Faster and leaner:</strong> Anthropic reports output more than 30% faster, using fewer tokens per task</li>
<li><strong>Thinking is always on:</strong> effort is the only control, and its default is <code>medium</code></li>
<li><strong>Fast mode:</strong> about 2x the base price, down from Opus 5's $10 / $50</li>
</ul>
<p>Context window and max output are unchanged from Opus 5 at 1M and 128K.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="enabling-opus-55">Enabling Opus 5.5<a href="https://docs.litellm.ai/blog/claude_opus_5_5#enabling-opus-55" class="hash-link" aria-label="Direct link to Enabling Opus 5.5" title="Direct link to Enabling Opus 5.5">​</a></h2>
<p>Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/42489" target="_blank" rel="noopener noreferrer">PR #42489</a>, and most proxies do not need to upgrade at all. On the default remote cost map, open the <strong>Price Data</strong> tab under <strong>Models + Endpoints</strong> in the UI and click <strong>Reload Price Data</strong> (or <code>POST /reload/model_cost_map</code> as a proxy admin), on any version <code>v1.76.0</code> or newer.</p>
<p>The exception is <code>LITELLM_LOCAL_MODEL_COST_MAP=true</code>, which bakes the cost map into the image and puts it out of the Reload button's reach. That path needs an image built after #42489 merged.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/claude_opus_5_5#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<p>Pick your provider below. Each tab wires up <code>claude-opus-5-5</code> for that provider; the request you send afterward is identical everywhere.</p>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">Anthropic</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Bedrock</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Gemini Enterprise Agent Platform</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Azure</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> anthropic/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/ANTHROPIC_API_KEY</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0-rc.1 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> bedrock/anthropic.claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">aws_access_key_id</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AWS_ACCESS_KEY_ID</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">aws_secret_access_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AWS_SECRET_ACCESS_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">aws_region_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> us</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">east</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">1</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0-rc.1 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> vertex_ai/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">vertex_project</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/VERTEX_PROJECT</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">vertex_location</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> global</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e VERTEX_PROJECT=$VERTEX_PROJECT \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/credentials.json:/app/credentials.json \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0-rc.1 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p><strong>1. Setup config.yaml</strong></p><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> azure_ai/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AZURE_AI_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_base</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/AZURE_AI_API_BASE  </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># https://&lt;resource&gt;.services.ai.azure.com</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">docker run -d \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AZURE_AI_API_KEY=$AZURE_AI_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e AZURE_AI_API_BASE=$AZURE_AI_API_BASE \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v $(pwd)/config.yaml:/app/config.yaml \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.103.0-rc.1 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --config /app/config.yaml</span><br></span></code></pre></div></div></div></div></div>
<p><strong>3. Test it!</strong></p>
<p>The request is the same regardless of which provider you configured above:</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl --location 'http://0.0.0.0:4000/chat/completions' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--header 'Content-Type: application/json' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--header 'Authorization: Bearer $LITELLM_KEY' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--data '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "model": "claude-opus-5-5",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "messages": [</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "role": "user",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "content": "what llm are you"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    }</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}'</span><br></span></code></pre></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="fast-mode">Fast Mode<a href="https://docs.litellm.ai/blog/claude_opus_5_5#fast-mode" class="hash-link" aria-label="Direct link to Fast Mode" title="Direct link to Fast Mode">​</a></h2>
<div class="theme-admonition theme-admonition-info admonition_xJq3 alert alert--info"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>info</div><div class="admonitionContent_BuS1"><p>Fast mode is <strong>only supported on the Anthropic provider</strong> (<code>anthropic/claude-opus-5-5</code>). It is not available on Bedrock, Gemini Enterprise Agent Platform, or Azure, and it cannot be combined with the Batch API.</p></div></div>
<p>Opus 5.5 runs faster with <code>speed: "fast"</code>, billed at $8 / MTok input and $40 / MTok output, 2x the standard rate and down from the $10 / $50 on Opus 5. LiteLLM adds the <code>fast-mode-2026-02-01</code> beta header and tracks the premium in cost calculations automatically.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl --location 'http://0.0.0.0:4000/v1/chat/completions' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--header 'Content-Type: application/json' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--header 'Authorization: Bearer $LITELLM_KEY' \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">--data '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "model": "claude-opus-5-5",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "messages": [</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "role": "user",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "content": "Refactor this module..."</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    }</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ],</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "max_tokens": 4096,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "speed": "fast"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}'</span><br></span></code></pre></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="worth-knowing">Worth knowing<a href="https://docs.litellm.ai/blog/claude_opus_5_5#worth-knowing" class="hash-link" aria-label="Direct link to Worth knowing" title="Direct link to Worth knowing">​</a></h2>
<p><strong>Forced tool use returns a 400.</strong> With <code>drop_params</code> on, LiteLLM downgrades <code>tool_choice</code> to <code>auto</code> and logs a warning, so the call succeeds and the model is free not to call your tool.</p>
<p><strong>Thinking cannot be disabled, and the default effort is now <code>medium</code></strong> where Opus 5's was <code>high</code>, so a request that never set effort thinks less than it used to.</p>
<p><strong>Thinking blocks are tied to the model.</strong> Only Fable 5.1 and Mythos 5.1 read Opus 5.5's, so a fallback to Sonnet or Haiku runs those turns without the reasoning.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/claude_opus_5_5#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running Claude Opus 5.5 through LiteLLM and hitting something unexpected? Share it on <a href="https://github.com/BerriAI/litellm/discussions/42494" target="_blank" rel="noopener noreferrer">GitHub discussion #42494</a>.</p>]]></content:encoded>
            <category>anthropic</category>
            <category>claude</category>
            <category>opus 5.5</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[Day 0 Support: Xiaomi MiMo V2.6]]></title>
            <link>https://docs.litellm.ai/blog/mimo_v2_6</link>
            <guid>https://docs.litellm.ai/blog/mimo_v2_6</guid>
            <pubDate>Tue, 22 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for Xiaomi MiMo V2.6 Pro and Flash on LiteLLM, priced on the native route for the first time.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Xiaomi MiMo V2.6" src="https://docs.litellm.ai/assets/images/hero-78224d975de43e44f8e6be9a9fc50171.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM supports <code>mimo-v2.6-pro</code> and <code>mimo-v2.6-flash</code> on day 0, and prices both on Xiaomi's own endpoint for the first time.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="pricing">Pricing<a href="https://docs.litellm.ai/blog/mimo_v2_6#pricing" class="hash-link" aria-label="Direct link to Pricing" title="Direct link to Pricing">​</a></h2>
<p>Per 1M tokens, Pro is $0.435 input and $0.87 output, Flash is $0.14 and $0.28. V2.6 costs what V2.5 cost; Xiaomi kept the rates and raised the model.</p>
<p>Pro reads cached input at $0.0036, about a 121st of its input rate, where most providers in the same cost map charge a tenth. Cache writes are free for now.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="thinking-is-on-by-default">Thinking is on by default<a href="https://docs.litellm.ai/blog/mimo_v2_6#thinking-is-on-by-default" class="hash-link" aria-label="Direct link to Thinking is on by default" title="Direct link to Thinking is on by default">​</a></h2>
<p>Every V2.6 model reasons unless told otherwise, and Xiaomi controls that with <code>thinking.type</code> rather than <code>reasoning_effort</code>. LiteLLM treats <code>xiaomi_mimo</code> as an OpenAI-compatible provider and does not map <code>thinking</code> for it yet, so pass it through explicitly with <code>allowed_openai_params=["thinking"]</code>.</p>
<p>In multi-turn tool calling, the <code>reasoning_content</code> from a prior assistant turn has to go back in the next request or the API returns a 400.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/mimo_v2_6#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">SDK</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Proxy</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#CF222E">from</span><span class="token plain"> litellm </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> completion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> completion</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"xiaomi_mimo/mimo-v2.6-pro"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    messages</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"role"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"user"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"content"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Refactor this migration script."</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    thinking</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"type"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"disabled"</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain">          </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># on by default</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    allowed_openai_params</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#C6105F">"thinking"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">print</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">choices</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#005CC5">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">message</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">content</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> mimo</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">v2.6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">pro</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> xiaomi_mimo/mimo</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">v2.6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">pro</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/XIAOMI_MIMO_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">allowed_openai_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#C6105F">"thinking"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> mimo</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">v2.6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">flash</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> xiaomi_mimo/mimo</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">v2.6</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">flash</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/XIAOMI_MIMO_API_KEY</span><br></span></code></pre></div></div></div></div></div>
<p>Hit <strong>Reload Model Cost Map</strong> in the Admin UI, or <code>POST /reload/model_cost_map</code>, to pick the rows up without a redeploy on <code>v1.76.0</code> and above.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="if-you-are-on-v25">If you are on V2.5<a href="https://docs.litellm.ai/blog/mimo_v2_6#if-you-are-on-v25" class="hash-link" aria-label="Direct link to If you are on V2.5" title="Direct link to If you are on V2.5">​</a></h2>
<p>Xiaomi deprecates <code>mimo-v2.5-pro</code> and <code>mimo-v2.5</code> at 10:00 Beijing time on October 21, 2026.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/mimo_v2_6#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running MiMo V2.6 through LiteLLM and hitting something unexpected? Share it on <!-- --> <a href="https://github.com/BerriAI/litellm/discussions" target="_blank" rel="noopener noreferrer">GitHub discussions</a>.</p>]]></content:encoded>
            <category>xiaomi</category>
            <category>mimo</category>
            <category>mimo-v2.6</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[Claude Code server-side auto mode through LiteLLM]]></title>
            <link>https://docs.litellm.ai/blog/claude-code-server-side-auto-mode</link>
            <guid>https://docs.litellm.ai/blog/claude-code-server-side-auto-mode</guid>
            <pubDate>Mon, 21 Sep 2026 12:00:00 GMT</pubDate>
            <description><![CDATA[Anthropic is moving Claude Code auto mode's safety classifier server-side. LiteLLM's native /v1/messages route now forwards the safeguards contract, and the fix ships in the dev release on September 22. Here is the contract, what changed, when it ships, and how to verify it.]]></description>
            <content:encoded><![CDATA[<p><em>Last Updated: September 21, 2026</em></p>
<p>Anthropic is moving Claude Code auto mode's safety classifier from the client to the Claude API. Starting with Claude Code v2.1.278, released September 19, sessions on Enterprise plans and Claude API accounts ask the server to run those checks as part of their own model requests, and Anthropic does not charge for the checks when the server performs them. Anthropic told us the rollout started on September 18 and is gradual, beginning with the Claude Code CLI and VS Code extension and followed by the desktop app and Claude Code on the web over the following week, and that on September 25 auto mode becomes the default permission mode in Claude Code. Today the built-in default is auto on Pro, Max and Team plans and Manual on Enterprise plans and Claude API keys, the accounts that typically sit behind a gateway, per Anthropic's <a href="https://code.claude.com/docs/en/permission-modes" target="_blank" rel="noopener noreferrer">permission modes reference</a>.</p>
<p>Server-side auto mode depends on a contract between Claude Code and the API that some gateways did not preserve, LiteLLM included. The fix is merged on <code>main</code> and ships in the dev release cut on Tuesday, September 22, then in the release candidate cut on Saturday, September 26 and the stable release planned for Saturday, October 3. This post explains what Claude Code needs from an AI Gateway, what LiteLLM was doing wrong, what changed, which release carries it, and how to confirm your deployment is ready.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-server-side-auto-mode-needs-from-an-ai-gateway">What server-side auto mode needs from an AI Gateway<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#what-server-side-auto-mode-needs-from-an-ai-gateway" class="hash-link" aria-label="Direct link to What server-side auto mode needs from an AI Gateway" title="Direct link to What server-side auto mode needs from an AI Gateway">​</a></h2>
<p>Claude Code sends a <code>safeguards</code> field in the <code>/v1/messages</code> request body, an array with one <code>dangerous_tool_use</code> entry that carries the session's permission mode, and it sets <code>dangerous-tool-use-2026-09-03</code> in the <code>anthropic-beta</code> header. The API answers with a <code>safeguard_results</code> field: one <code>dangerous_tool_use</code> entry whose <code>status.type</code> is <code>available</code> and whose <code>status.tool_uses</code> is keyed by tool use ID, each marked <code>evaluated</code> with an outcome such as <code>not_flagged</code>. When the response is streamed, <code>safeguard_results</code> arrives inside the <code>delta</code> of the final <code>message_delta</code> event.</p>
<p>For server-side auto mode to run, a gateway has to forward request headers and body fields as they are, including ones it does not recognize such as <code>safeguards</code>, and return responses and streaming events without dropping keys such as <code>safeguard_results</code> or rewriting tool use IDs. Anthropic's <a href="https://code.claude.com/docs/en/llm-gateway-protocol#feature-pass-through" target="_blank" rel="noopener noreferrer">gateway compatibility guide</a> spells this out.</p>
<p>If any of that is dropped or rewritten, the server's checks never reach the session, and Claude Code keeps using its own classifier requests, billed as before. Before the first action it would check that way, Claude Code holds the action and shows this notice, naming the gateway:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">We're changing auto mode to no longer charge for classifier requests in Claude Code. However, this session isn't eligible because your requests go through &lt;your gateway&gt;, which isn't compatible with this update. Nothing breaks: auto mode keeps working, and its classifier requests are billed as before. To fix it and access the new version of auto mode, ask your gateway to implement: https://code.claude.com/docs/en/auto-mode-classifier-billing</span><br></span></code></pre></div></div>
<p>Nothing breaks when this happens. Users keep the auto mode they have today and keep paying for the classifier calls. Anthropic has told us that new Claude Code releases keep the client-side classifier until at least October 23, 2026, that releases after that date only support server-side auto mode, and that from then on auto mode is not available behind a gateway that does not support the server-side classifier, so gateways have a window to catch up. Anthropic's <a href="https://code.claude.com/docs/en/auto-mode-classifier-billing" target="_blank" rel="noopener noreferrer">notice reference</a> covers who sees the notice and what it means.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-litellm-was-doing-wrong">What LiteLLM was doing wrong<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#what-litellm-was-doing-wrong" class="hash-link" aria-label="Direct link to What LiteLLM was doing wrong" title="Direct link to What LiteLLM was doing wrong">​</a></h2>
<p>LiteLLM's native <code>/v1/messages</code> endpoint builds the outbound request from an allowlist of known Anthropic Messages parameters so that the same endpoint can front Claude on Bedrock, Vertex AI, Azure AI and non-Anthropic models. <code>safeguards</code> was not on that list, so it was silently dropped before the request left the proxy. Separately, LiteLLM filters <code>anthropic-beta</code> values it does not recognize to protect providers that reject unknown beta flags, and that filter ran even when the upstream was the Anthropic API, so <code>dangerous-tool-use-2026-09-03</code> was stripped from the header too.</p>
<p>Anthropic therefore received a request with no <code>safeguards</code> and no beta flag, returned no <code>safeguard_results</code>, and Claude Code fell back to the paid client-side classifier. Running Claude Code v2.1.278 in auto mode against a LiteLLM release without the fix shows the notice above with your proxy's address in it, and <code>/status</code> reports the Auto mode server row as <code>Disabled</code>.</p>
<p>The raw pass-through route, <code>POST /anthropic/v1/messages</code>, was never affected. It forwards the body and headers verbatim, and it already carried <code>safeguards</code> and the full beta header before the fix. We confirmed this by running Anthropic's gateway check against a build from before the fix: the pass-through route passes and the native route fails.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-changed">What changed<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#what-changed" class="hash-link" aria-label="Direct link to What changed" title="Direct link to What changed">​</a></h2>
<p><a href="https://github.com/BerriAI/litellm/pull/42152" target="_blank" rel="noopener noreferrer">PR #42152</a>, merged into <code>main</code> on September 21, 2026, makes the native <code>/v1/messages</code> route preserve the contract. <code>safeguards</code> is now a recognized request parameter and is forwarded as sent. When the resolved provider is first-party <code>anthropic</code>, the <code>anthropic-beta</code> header is forwarded unchanged instead of being filtered against the known-betas list; requests to Claude on Bedrock, Vertex AI and Azure AI keep the existing filtering because those providers still reject unknown flags. <code>safeguard_results</code> is declared on the response and streaming chunk types, and it is returned unchanged in both the JSON response and the final <code>message_delta</code> event when streaming. LiteLLM does not rewrite tool use IDs on this route, so <code>safeguard_results</code> entries still match the tool uses they refer to.</p>
<p>When <code>/v1/messages</code> is used to reach a non-Anthropic model through the adapter path, <code>safeguards</code> is stripped before the request is translated so those backends do not return a 400.</p>
<p>This fix covers LiteLLM's route to the Anthropic API. Claude Code also asks for server-side checks on Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry, subject to each platform's own rollout, and LiteLLM's routes to those platforms still filter the beta header, so sessions reaching Claude on them through LiteLLM are not covered by this change yet. We are tracking that as follow-up work.</p>
<p>The merge is not in any tagged build up to <code>v1.103.0-rc.1</code>. It ships in the dev release cut from <code>main</code> on Tuesday, September 22, ahead of Anthropic's September 25 default change. Dev releases are pre-release builds published to PyPI, Docker Hub and GitHub releases as <code>-dev.N</code> tags, so this one is <code>v1.104.0-dev.1</code> by the current numbering (<code>litellm==1.104.0.dev1</code> on PyPI). The release candidate cut on Saturday, September 26 carries it next, with the stable release the following week, planned for Saturday, October 3. Claude Code sessions routed through the native <code>/v1/messages</code> endpoint on any earlier LiteLLM release see the notice and keep using the client-side classifier until you upgrade. If you would rather your users not see the notice in the meantime, Anthropic documents setting <code>CLAUDE_CODE_AUTO_MODE_SERVER=0</code> in the environment Claude Code starts from, which tells it not to ask the gateway for server-side checks.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-verify-your-deployment">How to verify your deployment<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#how-to-verify-your-deployment" class="hash-link" aria-label="Direct link to How to verify your deployment" title="Direct link to How to verify your deployment">​</a></h2>
<p>Send a request that mirrors what Claude Code sends, with a forced tool call so the server has something to evaluate, and check the response for <code>safeguard_results</code>. The model has to be a deployment that LiteLLM routes to the Anthropic API.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl -s "$LITELLM_PROXY_URL/v1/messages" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_API_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "content-type: application/json" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "anthropic-version: 2023-06-01" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "anthropic-beta: dangerous-tool-use-2026-09-03" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "claude-sonnet-5",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "max_tokens": 256,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "safeguards": [{"type": "dangerous_tool_use", "classifier_context": {"v": 1, "permission_mode": "auto"}}],</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "tools": [{"name": "Bash", "description": "Runs a shell command", "input_schema": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}],</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "tool_choice": {"type": "tool", "name": "Bash"},</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "messages": [{"role": "user", "content": "Run: echo hello"}]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }' | jq '{safeguard_results, tool_use_ids: [.content[] | select(.type == "tool_use") | .id]}'</span><br></span></code></pre></div></div>
<p>On a proxy built from <code>main</code> (or the September 22 dev release) pointed at the Anthropic API, the tool use ID in <code>safeguard_results</code> matches the one in the response content:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"safeguard_results"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"dangerous_tool_use"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token property" style="color:#005CC5">"status"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"available"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token property" style="color:#005CC5">"tool_uses"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">          </span><span class="token property" style="color:#005CC5">"toolu_01V9Z5KXn3SU71Fzr5cquHLi"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"evaluated"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token property" style="color:#005CC5">"outcome"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"not_flagged"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">          </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"tool_use_ids"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token string" style="color:#C6105F">"toolu_01V9Z5KXn3SU71Fzr5cquHLi"</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre></div></div>
<p>On a proxy without the fix, <code>safeguard_results</code> is <code>null</code>, because Anthropic never received <code>safeguards</code> or the beta flag.</p>
<p>Anthropic shared a gateway check script with us that sends the same request non-streaming and streaming and checks that every tool use ID comes back evaluated. Both legs pass against a proxy built from <code>main</code>. You can also check from Claude Code itself: start a session through your proxy in auto mode, run <code>/status</code>, and look for the Auto mode server row reading <code>Enabled</code>. In non-interactive mode with <code>-p --output-format stream-json</code>, the notice above arrives as a <code>system</code> message at <code>warning</code> level, so a scripted check can grep for it.</p>
<p>If you use the <code>/anthropic/v1/messages</code> pass-through route today, no action is needed.</p>
<hr>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="frequently-asked-questions">Frequently Asked Questions<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#frequently-asked-questions" class="hash-link" aria-label="Direct link to Frequently Asked Questions" title="Direct link to Frequently Asked Questions">​</a></h3>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-this-change-how-litellm-handles-beta-headers-for-bedrock-vertex-ai-or-azure-ai">Does this change how LiteLLM handles beta headers for Bedrock, Vertex AI or Azure AI?<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#does-this-change-how-litellm-handles-beta-headers-for-bedrock-vertex-ai-or-azure-ai" class="hash-link" aria-label="Direct link to Does this change how LiteLLM handles beta headers for Bedrock, Vertex AI or Azure AI?" title="Direct link to Does this change how LiteLLM handles beta headers for Bedrock, Vertex AI or Azure AI?">​</a></h3>
<p>No. Beta header filtering still applies when the resolved provider is anything other than first-party <code>anthropic</code>. Those providers reject unknown beta flags, so the allowlist in <code>anthropic_beta_headers_config.json</code> remains the source of truth for them, and server-side auto mode does not run through LiteLLM on those routes yet. Only requests bound for the Anthropic API now forward the header unchanged.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="will-my-claude-code-users-be-broken-before-i-upgrade">Will my Claude Code users be broken before I upgrade?<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#will-my-claude-code-users-be-broken-before-i-upgrade" class="hash-link" aria-label="Direct link to Will my Claude Code users be broken before I upgrade?" title="Direct link to Will my Claude Code users be broken before I upgrade?">​</a></h3>
<p>No. Claude Code detects that the server's checks are not reaching the session and keeps using its own classifier. Users see the notice, keep the current experience, and keep being billed for classifier calls until you upgrade. Anthropic has told us new Claude Code releases keep the client-side classifier until at least October 23, 2026, and that releases after that date need the server-side classifier for auto mode, so upgrade before then.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-this-available-in-litellm-oss">Is this available in LiteLLM OSS?<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#is-this-available-in-litellm-oss" class="hash-link" aria-label="Direct link to Is this available in LiteLLM OSS?" title="Direct link to Is this available in LiteLLM OSS?">​</a></h3>
<p>Yes. The fix is in LiteLLM OSS (Apache 2.0) and requires no configuration. <a href="https://litellm.ai/enterprise" target="_blank" rel="noopener noreferrer">LiteLLM Enterprise</a> adds SSO/SCIM, air-gapped deployment, 24/7 SLA support and advanced guardrails on top.</p>
<hr>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion">​</a></h2>
<p>An AI Gateway in front of Claude Code has to forward provider contracts it did not exist for when they were designed. The <code>safeguards</code> field is one of those, and LiteLLM's native <code>/v1/messages</code> route now passes it through unchanged on the way to the Anthropic API. Upgrade to the September 22 dev release, the September 26 release candidate or the October 3 stable release, run the check above, and your users get server-side auto mode at no cost.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="recommended-reading">Recommended Reading<a href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode#recommended-reading" class="hash-link" aria-label="Direct link to Recommended Reading" title="Direct link to Recommended Reading">​</a></h2>
<ul>
<li><a href="https://docs.litellm.ai/docs/tutorials/claude_code_gateway" target="_blank" rel="noopener noreferrer">Claude Code with LiteLLM AI Gateway</a></li>
<li><a href="https://docs.litellm.ai/docs/tutorials/claude_code_beta_headers" target="_blank" rel="noopener noreferrer">Claude Code: managing Anthropic beta headers</a></li>
<li><a href="https://docs.litellm.ai/docs/pass_through/anthropic_completion" target="_blank" rel="noopener noreferrer">Anthropic pass-through endpoints</a></li>
<li><a href="https://code.claude.com/docs/en/auto-mode-classifier-billing" target="_blank" rel="noopener noreferrer">Anthropic: auto mode classifier request charges</a></li>
<li><a href="https://code.claude.com/docs/en/llm-gateway-protocol#feature-pass-through" target="_blank" rel="noopener noreferrer">Anthropic: LLM gateway compatibility guide</a></li>
</ul>]]></content:encoded>
            <category>announcement</category>
            <category>claude-code</category>
            <category>anthropic</category>
            <category>ai-gateway</category>
        </item>
        <item>
            <title><![CDATA[Day 0 Support: Grok 4.7]]></title>
            <link>https://docs.litellm.ai/blog/grok_4_7</link>
            <guid>https://docs.litellm.ai/blog/grok_4_7</guid>
            <pubDate>Mon, 21 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[Day 0 support for Grok 4.7 on LiteLLM, at the same price as Grok 4.6.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Grok 4.7" src="https://docs.litellm.ai/assets/images/hero-cfcb8e9d9a113488ae752d0dcc526556.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM supports <code>grok-4.7</code> on day 0, on <code>/chat/completions</code> and <code>/responses</code>. It keeps Grok 4.6's prices, limits and capabilities.</p>
<!-- -->
<p>SpaceXAI, the company formerly called xAI, built 4.7 and reports the model is better at checking its own work and holding long context. Against Grok 4.6, Terminal-Bench 4.0 goes from 20.3% to 38.0% and EEBench from 53.0% to 64.0%.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="pricing">Pricing<a href="https://docs.litellm.ai/blog/grok_4_7#pricing" class="hash-link" aria-label="Direct link to Pricing" title="Direct link to Pricing">​</a></h2>
<p>Per 1M tokens: $2.00 input, $0.50 cached, $6.00 output, identical to Grok 4.6. Every rate doubles past 200K input tokens, to $4.00, $1.00 and $12.00, so a long-context request costs twice what the headline suggests.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/grok_4_7#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<div class="tabs-container tabList__CuJ"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LNqP tabs__item--active">SDK</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Proxy</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-python codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token keyword" style="color:#CF222E">from</span><span class="token plain"> litellm </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> completion</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> completion</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    model</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"xai/grok-4.7"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    messages</span><span class="token operator" style="color:#D73A49">=</span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"role"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"user"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"content"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Refactor this migration script."</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    reasoning_effort</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"xhigh"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain">  </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># low | medium | high (default) | xhigh</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token keyword" style="color:#CF222E">print</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">choices</span><span class="token punctuation" style="color:#393A34">[</span><span class="token number" style="color:#005CC5">0</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">message</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">content</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> grok</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">4.7</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> xai/grok</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">4.7</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/XAI_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> grok</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4.7</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">openrouter</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> openrouter/x</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">ai/grok</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">4.7</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/OPENROUTER_API_KEY</span><br></span></code></pre></div></div></div></div></div>
<p>Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/42264" target="_blank" rel="noopener noreferrer">PR #42264</a>. Hit <strong>Reload Model Cost Map</strong> in the Admin UI, or <code>POST /reload/model_cost_map</code>, to pick it up without a redeploy on <code>v1.76.0</code> and above.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/grok_4_7#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running Grok 4.7 through LiteLLM and hitting something unexpected? Share it on <a href="https://github.com/BerriAI/litellm/discussions/42287" target="_blank" rel="noopener noreferrer">GitHub discussion #42287</a>.</p>]]></content:encoded>
            <category>xai</category>
            <category>grok</category>
            <category>grok-4.7</category>
            <category>day 0 support</category>
        </item>
        <item>
            <title><![CDATA[JEV Classifier: 5.43x as Fast as Haiku, 96% Lower Cost]]></title>
            <link>https://docs.litellm.ai/blog/jev-auto-router-benchmark</link>
            <guid>https://docs.litellm.ai/blog/jev-auto-router-benchmark</guid>
            <pubDate>Sun, 20 Sep 2026 10:15:00 GMT</pubDate>
            <description><![CDATA[JEV classified requests 5.43x as fast as Haiku by median latency in our AI Gateway benchmark. Explore the setup, cost savings and methodology.]]></description>
            <content:encoded><![CDATA[<p><em>Last Updated: September 18, 2026</em></p>
<p>An Auto Router pays for classification before the selected model can answer. In our benchmark, TypeSafe JEV classified requests <strong>5.43x as fast as Haiku</strong>, comparing median classifier latency: <strong>126.81 ms versus 688.40 ms</strong>. Registry-priced classifier cost was <strong>96.12% lower</strong>, rounded to 96% in the title</p>
<p>JEV matched our benchmark's expected tiers on 95.00% of calls, versus 73.75% for Haiku. That result depends on the prompts, tier definitions, instructions and context used here. The expected tiers were authored with the synthetic prompts, without independent review. This comparison does not establish general classification accuracy or the quality of the final answers</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-ai-gateway-has-to-pay-for-the-routing-decision">The AI Gateway has to pay for the routing decision<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#the-ai-gateway-has-to-pay-for-the-routing-decision" class="hash-link" aria-label="Direct link to The AI Gateway has to pay for the routing decision" title="Direct link to The AI Gateway has to pay for the routing decision">​</a></h2>
<p>Classifying a greeting and a complex debugging request lets you send each to a different model. A general-purpose LLM can make that decision, but its network round trip, input tokens and structured output add latency and cost before the completion begins</p>
<p>We compared the existing LLM classifier path with <code>classifier_type: jev</code>, using the same authored tier rubric and opening instructions. JEV uses TypeSafe System One Choice evaluation. It returns a tier choice with confidence and probabilities, and the existing Auto Router selects a model from that tier. Tier pools, fallback and the completion path stay in the same router</p>
<p>The question we measured was narrow: how quickly and cheaply can each classifier reproduce the labels we assigned to these prompts? We did not grade generated answers or establish general LLM-quality equivalence</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-we-measured">What we measured<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#what-we-measured" class="hash-link" aria-label="Direct link to What we measured" title="Direct link to What we measured">​</a></h2>
<p>The benchmark ran on <strong>September 18, 2026 UTC</strong>, with <code>jev-latest</code> first resolved to <strong><code>jev-1.13.0</code></strong> and then pinned. The comparison model was <strong><code>anthropic/claude-haiku-4-5-20251001</code></strong>. Each classified the same 80 cases three times, giving 240 measured calls per classifier</p>
<table><thead><tr><th>Metric</th><th style="text-align:right">JEV</th><th style="text-align:right">Haiku</th></tr></thead><tbody><tr><td>Match with authored expected tiers</td><td style="text-align:right">228/240, 95.00%</td><td style="text-align:right">177/240, 73.75%</td></tr><tr><td>Mean classifier latency</td><td style="text-align:right">138.38 ms</td><td style="text-align:right">720.71 ms</td></tr><tr><td>p50 classifier latency</td><td style="text-align:right">126.81 ms</td><td style="text-align:right">688.40 ms</td></tr><tr><td>p95 classifier latency</td><td style="text-align:right">231.16 ms</td><td style="text-align:right">896.94 ms</td></tr><tr><td>Maximum measured latency</td><td style="text-align:right">401.26 ms</td><td style="text-align:right">1,914.98 ms</td></tr><tr><td>Registry-priced cost for 240 calls</td><td style="text-align:right">$0.007706664</td><td style="text-align:right">$0.198534</td></tr><tr><td>HTTP 200 responses</td><td style="text-align:right">240/240</td><td style="text-align:right">240/240</td></tr><tr><td>Provider errors / timeouts / fallback decisions</td><td style="text-align:right">0 / 0 / 0</td><td style="text-align:right">0 / 0 / 0</td></tr></tbody></table>
<p>All measured attempts succeeded, so all-attempt and successful-call latency statistics are identical. Calls with an incorrect tier remain in both latency and cost totals</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-we-calculate-543x-as-fast">How we calculate 5.43x as fast<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#how-we-calculate-543x-as-fast" class="hash-link" aria-label="Direct link to How we calculate 5.43x as fast" title="Direct link to How we calculate 5.43x as fast">​</a></h3>
<p>The title compares the <strong>median of all 240 JEV calls with the median of all 240 Haiku calls</strong>. Using unrounded measurements:</p>
<div class="language-text codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">p50 speed ratio = Haiku_p50 / JEV_p50</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                = 688.395634 ms / 126.814470 ms</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">                = 5.43x</span><br></span></code></pre></div></div>
<p>This is a ratio of aggregate statistics, not an average of per-request ratios. The same calculation gives <strong>3.88x as fast at p95</strong> (231.16 ms versus 896.94 ms) and <strong>5.21x as fast by mean latency</strong> (138.38 ms versus 720.71 ms). These ratios measure classification time, not end-to-end completion speed or throughput under load</p>
<table><thead><tr><th>Comparison</th><th style="text-align:right">Estimate</th><th>95% clustered-bootstrap interval</th></tr></thead><tbody><tr><td>p50 speed ratio</td><td style="text-align:right">5.43x</td><td>5.20x to 5.71x</td></tr><tr><td>p95 speed ratio</td><td style="text-align:right">3.88x</td><td>2.94x to 4.78x</td></tr><tr><td>Registry-priced classifier cost savings</td><td style="text-align:right">96.118%</td><td>95.973% to 96.266%</td></tr><tr><td>Paired difference in expected-tier match rate</td><td style="text-align:right">21.25 percentage points</td><td>12.92 to 30.42 points</td></tr></tbody></table>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-matching-the-expected-tiers-tells-us">What matching the expected tiers tells us<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#what-matching-the-expected-tiers-tells-us" class="hash-link" aria-label="Direct link to What matching the expected tiers tells us" title="Direct link to What matching the expected tiers tells us">​</a></h3>
<p>The match rate counts exact matches with a frozen, authored tier label. JEV's 95% interval was <strong>90.00% to 98.75%</strong>, and Haiku's was <strong>64.16% to 82.92%</strong>. Labels and prompts came from the same author, without independent annotation or blind adjudication</p>
<p>Tier selection depends on both the user's request and the classifier's instructions. A different request mix, rubric, tier boundary or conversation history can change the result for either classifier. We tested one fixed configuration, without independently tuning either prompt or measuring sensitivity to alternate instructions. Matching these labels also does not prove that the selected completion model can answer a request well</p>
<p>The classifiers agreed with each other on <strong>189/240 calls, or 78.75%</strong>, with an interval of <strong>69.58% to 87.08%</strong>. Agreement ignores whether either classifier matched the authored label</p>
<table><thead><tr><th>Authored tier, 20 cases and 60 calls each</th><th>JEV match rate [95% interval]</th><th>Haiku match rate [95% interval]</th><th style="text-align:right">Agreement between classifiers</th></tr></thead><tbody><tr><td>SIMPLE</td><td>60/60, 100% [100%, 100%]</td><td>60/60, 100% [100%, 100%]</td><td style="text-align:right">100%</td></tr><tr><td>MEDIUM</td><td>51/60, 85% [70%, 100%]</td><td>23/60, 38.33% [18.33%, 60%]</td><td style="text-align:right">53.33%</td></tr><tr><td>COMPLEX</td><td>57/60, 95% [85%, 100%]</td><td>48/60, 80% [60%, 95%]</td><td style="text-align:right">85%</td></tr><tr><td>REASONING</td><td>60/60, 100% [100%, 100%]</td><td>46/60, 76.67% [58.33%, 93.33%]</td><td style="text-align:right">76.67%</td></tr></tbody></table>
<p>An empirical interval of 100% to 100% means every case in that sampled subset matched. It does not establish perfect accuracy on unseen prompts. There are <strong>80 independent case clusters</strong>, with correlated repeats</p>
<p>JEV consistently assigned four cases to a lower tier than the authored label: M07, M13 and M15 went from MEDIUM to SIMPLE, and C10 went from COMPLEX to MEDIUM. Haiku's mismatches also assigned lower tiers: 37 MEDIUM observations became SIMPLE, 12 COMPLEX became MEDIUM, and 14 REASONING became COMPLEX. The largest difference is on the subjective MEDIUM boundary</p>
<table><thead><tr><th>Subset</th><th>Cases / calls per classifier</th><th style="text-align:right">JEV match rate</th><th style="text-align:right">Haiku match rate</th><th style="text-align:right">Agreement between classifiers</th></tr></thead><tbody><tr><td>Short</td><td>40 / 120</td><td style="text-align:right">97.50%</td><td style="text-align:right">73.33%</td><td style="text-align:right">75.83%</td></tr><tr><td>Long</td><td>16 / 48</td><td style="text-align:right">87.50%</td><td style="text-align:right">62.50%</td><td style="text-align:right">75.00%</td></tr><tr><td>Follow-up</td><td>8 / 24</td><td style="text-align:right">100%</td><td style="text-align:right">87.50%</td><td style="text-align:right">87.50%</td></tr><tr><td>Tool context</td><td>8 / 24</td><td style="text-align:right">100%</td><td style="text-align:right">83.33%</td><td style="text-align:right">83.33%</td></tr><tr><td>Ambiguous boundary</td><td>8 / 24</td><td style="text-align:right">87.50%</td><td style="text-align:right">75.00%</td><td style="text-align:right">87.50%</td></tr></tbody></table>
<p>The boundary subset's match-rate difference was 12.50 points with a <strong>0 to 37.50 point interval</strong>, which includes zero. JEV matched fewer expected tiers on long cases than on short cases. Both findings matter when choosing prompts for your own evaluation</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="per-tier-latency">Per-tier latency<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#per-tier-latency" class="hash-link" aria-label="Direct link to Per-tier latency" title="Direct link to Per-tier latency">​</a></h3>
<table><thead><tr><th>Authored tier</th><th style="text-align:right">JEV p50</th><th style="text-align:right">Haiku p50</th><th style="text-align:right">JEV p95</th><th style="text-align:right">Haiku p95</th></tr></thead><tbody><tr><td>SIMPLE</td><td style="text-align:right">127.78 ms</td><td style="text-align:right">678.22 ms</td><td style="text-align:right">243.44 ms</td><td style="text-align:right">897.53 ms</td></tr><tr><td>MEDIUM</td><td style="text-align:right">128.15 ms</td><td style="text-align:right">690.80 ms</td><td style="text-align:right">215.59 ms</td><td style="text-align:right">844.70 ms</td></tr><tr><td>COMPLEX</td><td style="text-align:right">126.89 ms</td><td style="text-align:right">694.19 ms</td><td style="text-align:right">198.34 ms</td><td style="text-align:right">874.73 ms</td></tr><tr><td>REASONING</td><td style="text-align:right">120.78 ms</td><td style="text-align:right">696.01 ms</td><td style="text-align:right">231.68 ms</td><td style="text-align:right">1,001.60 ms</td></tr></tbody></table>
<p>Full per-tier and per-repeat latency, cost, confidence intervals, confusion matrices and mismatches are in the downloadable <code>metrics.json</code></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="cost-savings-stop-at-the-classifier-boundary">Cost savings stop at the classifier boundary<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#cost-savings-stop-at-the-classifier-boundary" class="hash-link" aria-label="Direct link to Cost savings stop at the classifier boundary" title="Direct link to Cost savings stop at the classifier boundary">​</a></h2>
<p>The cost comparison uses observed tokens multiplied by the archived LiteLLM registry prices. It is <strong>classifier cost</strong>, excluding the completion model, embeddings, warmups and evaluation judges</p>
<table><thead><tr><th>Measured usage and registry rates</th><th style="text-align:right">JEV</th><th style="text-align:right">Haiku</th></tr></thead><tbody><tr><td>Input tokens</td><td style="text-align:right">183,492</td><td style="text-align:right">186,519</td></tr><tr><td>Output tokens</td><td style="text-align:right">12,897</td><td style="text-align:right">2,403</td></tr><tr><td>Input price per million tokens</td><td style="text-align:right">$0.042</td><td style="text-align:right">$1</td></tr><tr><td>Output price per million tokens</td><td style="text-align:right">$0</td><td style="text-align:right">$5</td></tr><tr><td>Mean cost per classification</td><td style="text-align:right">$0.0000321111</td><td style="text-align:right">$0.000827225</td></tr></tbody></table>
<p>The resulting saving is <code>100 * (1 - 0.007706664 / 0.198534) = 96.118%</code>. Every measured response was independently repriced against the archived registry and matched the classifier's reported cost. Prices are the registry values captured for this run. Provider invoices, taxes, discounts and plan entitlements were not checked</p>
<p>The corrected run's excluded resolution and warmup calls cost $0.002478554 at those prices. An earlier setup resolution call is retained separately. They are overhead outside the 240-call comparison</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="configure-jev-in-the-existing-auto-router">Configure JEV in the existing Auto Router<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#configure-jev-in-the-existing-auto-router" class="hash-link" aria-label="Direct link to Configure JEV in the existing Auto Router" title="Direct link to Configure JEV in the existing Auto Router">​</a></h2>
<p>Provision <code>TYPESAFE_API_KEY</code> in the proxy's server environment. <code>TYPESAFE_API_BASE</code> is optional and defaults to <code>https://api.typesafe.ai</code>. Keep provider credentials on the server, and let clients call the router with a LiteLLM virtual key</p>
<p>Add this entry beside the existing tier deployments in <code>model_list</code>, replacing the tier values with your deployed model names:</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">config.yaml</div><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> jev</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">router</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> auto_router/complexity_router</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">complexity_router_default_model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">openai_large</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">complexity_router_config</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">tiers</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">SIMPLE</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">openai_small</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">MEDIUM</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">openai_large</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">COMPLEX</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">anthropic</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">REASONING</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">{</span><span class="token punctuation" style="color:#393A34">{</span><span class="token plain">anthropic_large</span><span class="token punctuation" style="color:#393A34">}</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">classifier_type</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> jev</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">jev_classifier_config</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> jev</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">latest</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">timeout_ms</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">3000</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">circuit_breaker_enabled</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token boolean important" style="color:#005CC5">true</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">circuit_breaker_cooldown_seconds</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">30</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">classifier_fallback</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> default_model</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">classifier_context_window_size</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">3</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">classifier_context_budget_chars</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">8000</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">classifier_context_include_assistant_turns</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token boolean important" style="color:#005CC5">false</span><br></span></code></pre></div></div>
<p>This deployment example uses built-in tier criteria, a three-second deadline and a circuit breaker. It explicitly chooses default-model fallback. The benchmark used a shared custom rubric, a ten-second deadline, assistant context and disabled breakers to compare every measured attempt</p>
<p>In the dashboard, create or edit an Auto Router under <strong>Models + Endpoints</strong>, then select <strong>JEV Classifier</strong> under <strong>Classification Method</strong>. The form exposes model, timeout, circuit breaker, context and fallback settings. Custom <strong>JEV Instructions</strong> replace the built-in instructions and follow the Enterprise custom-classifier policy. <a href="https://docs.litellm.ai/docs/auto_router/setup#jev-classifier-typesafe-ai">The setup guide</a> covers the full create, test and edit flow</p>
<p>JEV receives the current ask and classifier context in a System One <code>state</code>, with one <code>questions.tier</code> Choice question. Built-in tiers use shipped criteria. With <code>tier_definitions</code>, the custom descriptions become the Choice criteria. The classifier context budget bounds prior-turn text, while the current ask and extracted system text sit outside it</p>
<p>Like the LLM classifier, JEV sends up to three prior user turns by default, within an 8,000-character budget. That history goes to the configured TypeSafe endpoint. Set <code>classifier_context_window_size: 0</code> to omit it, including when upgrading an existing JEV router</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="failure-handling-in-a-production-grade-ai-gateway">Failure handling in a production-grade AI Gateway<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#failure-handling-in-a-production-grade-ai-gateway" class="hash-link" aria-label="Direct link to Failure handling in a production-grade AI Gateway" title="Direct link to Failure handling in a production-grade AI Gateway">​</a></h2>
<p>A reliable AI Gateway needs a defined route when its classifier cannot answer. JEV uses the existing fallback on a timeout, HTTP failure, malformed response, unknown tier or open circuit. Built-in tiers default to heuristic fallback. Setting <code>classifier_fallback: default_model</code> uses the configured default, while custom tiers can choose a <code>fallback_tier</code></p>
<p>To keep routing resilient to classifier timeouts, the enabled circuit breaker skips JEV calls during the 30-second default cooldown after a recognized timeout. One request then probes recovery. Success closes it, and failure starts another cooldown. The state is local to a router instance in one process, so it does not coordinate provider load across workers. Non-timeout errors while closed fall back without opening the circuit</p>
<p>The supplied live gateway evidence used a real local proxy, PostgreSQL and provider calls. A normal completion and Test Routing succeeded. A separate 1 ms deadline configuration produced a successful completion with <code>default_model_fallback</code> recorded. The logs did not retain the exception subtype, and no JEV usage returned for that cancellation, so receipt or billing by the provider remains unverified</p>
<p>All downstream tier aliases in this gateway check used the same Haiku model. That demonstrates tier selection and execution, without measuring quality or savings from different completion models. Streaming, tool-call completions, custom tier names, all authorization roles and multi-worker accounting are outside this proof</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="test-routing-can-spend-money">Test Routing can spend money<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#test-routing-can-spend-money" class="hash-link" aria-label="Direct link to Test Routing can spend money" title="Direct link to Test Routing can spend money">​</a></h3>
<p>Test Routing stops after classification and does not send a completion to the selected model. A JEV classification can still incur a charge. Test Connection additionally probes model dependencies and checks that the JEV result actually came from JEV rather than fallback</p>
<p>In the supplied gateway check, Test Routing persisted one classifier row costing <strong>$0.000018186</strong>. The normal completion persisted a <strong>$0.000018060</strong> classifier row and a <strong>$0.000064000</strong> downstream row. The completion's routing metadata carried the classifier cost for attribution, but its spend stayed separate</p>
<p>For accounting, sum the stored row spends once. Adding <code>routing_decision.classifier_cost</code> again would double count the classifier. Successful JEV decisions include the resolved classifier model, probabilities, confidence and registry-priced cost where available. Missing usage or pricing leaves cost unknown. A usable HTTP response can be logged even when its choice later fails validation, so inspect classifier spend rows when reconciling fallback traffic</p>
<p>JEV participates in dependency authorization as <code>typesafe/&lt;configured model&gt;</code> with the <code>evaluation</code> role. Restricted callers need access to the dependencies they invoke. Team-member management requests cannot override the provider key or base URL. See the <a href="https://docs.litellm.ai/docs/proxy/auto_routing#jev-classifier">configuration reference</a> for the exact settings and accounting behavior</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="methodology-and-reproduction">Methodology and reproduction<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#methodology-and-reproduction" class="hash-link" aria-label="Direct link to Methodology and reproduction" title="Direct link to Methodology and reproduction">​</a></h2>
<p>The corpus and protocol were frozen at <strong>22:18:53 UTC</strong>, before provider calls. Measured calls ran from approximately <strong>22:21:05 to 22:24:32 UTC</strong>. There were 20 cases in each tier, with 40 short cases, 16 long cases, eight follow-ups, eight tool-context cases and eight boundary cases. Each has an authored rationale</p>
<p>Both production classifier paths received the same authored rubric and opening instructions. SIMPLE covers lookup and mechanical work, MEDIUM routine drafting and localized code, COMPLEX coupled technical work, and REASONING explicit proofs, justified optimization and decisions with conflicting objectives. Their wire formats differ: the LLM path retains its trust boundary and structured-output wrapper, while JEV uses a Choice question. Neither prompt was independently tuned</p>
<table><thead><tr><th>Setting</th><th>Value</th></tr></thead><tbody><tr><td>Repeats and ordering</td><td>Three repeats, seeded shuffle per repeat, alternating JEV-first and Haiku-first across pairs</td></tr><tr><td>Seed</td><td><code>20260918</code></td></tr><tr><td>Concurrency</td><td><code>1</code></td></tr><tr><td>Deadline</td><td><code>10000</code> ms for both classifiers</td></tr><tr><td>Retries / circuit breakers</td><td>Zero retries / disabled</td></tr><tr><td>Fallback tier</td><td>REASONING</td></tr><tr><td>Context</td><td>Three turns, 8,000 total characters, 4,000 per turn, assistant turns included</td></tr><tr><td>Excluded setup</td><td>One model-resolution call and four warmup pairs in the corrected run</td></tr><tr><td>Sampling settings</td><td>Existing classifier defaults</td></tr><tr><td>Caching</td><td>LiteLLM response caching disabled, no provider prompt-cache directives</td></tr><tr><td>Timing</td><td>Wall clock around production <code>ComplexityRouter.aclassify</code></td></tr><tr><td>Uncertainty</td><td>10,000 percentile-bootstrap resamples of whole cases, preserving both classifiers and all repeats</td></tr></tbody></table>
<p>A symmetric loopback HTTP relay forwarded real provider requests and retained sanitized request/response bodies without authorization headers. Timings include local relay, client, network and provider work. Haiku reported zero cache-read and cache-creation tokens. JEV did not expose cache usage, and provider-internal caching is unknown. Client and provider regions are also unknown</p>
<p>Quantiles use linear interpolation. The bootstrap resamples cases, keeping repeated observations together, rather than treating 240 calls as independent prompts. These intervals describe this corpus and run. They do not cover author bias, another region, sustained load, rate limits, cold starts or another account</p>
<p><a href="https://docs.litellm.ai/assets/files/jev-live-evidence-20260918.tar-d45067fe38d398e8228be8f26d033eb0.gz" target="_blank">Download the frozen raw results and reproduction scripts</a>. The archive contains <code>cases.jsonl</code>, <code>protocol.json</code>, <code>attempts.jsonl</code>, sanitized <code>wire.jsonl</code>, <code>metrics.json</code>, the captured registry, environment versions, gateway evidence, setup failures and a hash manifest</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl -fL https://docs.litellm.ai/benchmarks/jev-live-evidence-20260918.tar.gz \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -o jev-live-evidence-20260918.tar.gz</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">echo "c2653861ab4cf591e902d4d62d55078187e4c66ad5845b5cf5b023d5f427fd7f  jev-live-evidence-20260918.tar.gz" | sha256sum -c -</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">tar -xzf jev-live-evidence-20260918.tar.gz</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">cd jev-benchmark</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">sha256sum -c SHA256SUMS</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">python analyze.py</span><br></span></code></pre></div></div>
<p>Offline analysis needs Python and Pydantic as listed in the archive's environment record. Its README gives the locked-repository setup and commands for fresh paid provider calls. Use a fresh run directory because the runner refuses to overwrite historical attempts. A future <code>jev-latest</code> resolution may produce a different model, requiring a new experiment and an explicit pricing-analysis update</p>
<p>The measured tree was <code>9dce43d6a0562a4926c39b1bacf7e9a1feac1170</code>, reconstructed from base <code>1d91fc232d20a434a86323506a1303935b9c684f</code>, budget change <code>b9e5bb3abb0f2f0ddc06dcaf9edb63563cac2a2a</code> first, and integration <code>8e5f43f45897fc72612aac53a690fa573ce029cd</code> second. This identifies the tested combination without implying a released version</p>
<table><thead><tr><th>Frozen artifact</th><th>SHA256</th></tr></thead><tbody><tr><td>Corpus</td><td><code>dc85aa66fcab982a2af812a46c6bcd17e0e2a764c2e0c921fb811ce0ce4f31ce</code></td></tr><tr><td>Protocol</td><td><code>27d564fa022d29d8d9dd9c1a905fbf9a92695a138271f59d1174e7b7c49c4927</code></td></tr><tr><td>Registry</td><td><code>529638485889e5499ddb631f05a7fa58c7aaa25ebddfea8b5152d6eca77b1d2b</code></td></tr></tbody></table>
<p>The first harness configuration combined incompatible custom-prompt fields and stopped before measured calls. Two earlier gateway configurations also used invalid or misplaced fallback settings. Their evidence is retained separately, including the first run's implicitly selected MEDIUM default. No measured case was removed or relabeled after calls began</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="key-takeaways">Key Takeaways<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#key-takeaways" class="hash-link" aria-label="Direct link to Key Takeaways" title="Direct link to Key Takeaways">​</a></h2>
<ul>
<li>JEV classified requests 5.43x as fast as Haiku by median latency, and 3.88x as fast at p95, on these 80 authored cases</li>
<li>Expected-tier match rates were 95.00% versus 73.75% for this prompt set and configuration, with 78.75% agreement between classifiers. Downstream answer quality was not measured</li>
<li>Registry-priced classifier cost was 96.118% lower. Total application cost and provider invoices need separate measurement</li>
<li>JEV uses the existing Auto Router's context, tier pools and fallback, with a process-local timeout breaker and separate classifier spend logging</li>
<li>Evaluate your own prompts and completion quality before changing a production routing policy</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="frequently-asked-questions">Frequently Asked Questions<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#frequently-asked-questions" class="hash-link" aria-label="Direct link to Frequently Asked Questions" title="Direct link to Frequently Asked Questions">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-this-establish-llm-quality-classification">Does this establish LLM-quality classification?<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#does-this-establish-llm-quality-classification" class="hash-link" aria-label="Direct link to Does this establish LLM-quality classification?" title="Direct link to Does this establish LLM-quality classification?">​</a></h3>
<p>It establishes higher agreement with our authored labels than this Haiku configuration on this corpus. Both classifiers depend on the requests, rubric and context they receive. The labels were not independently reviewed, and repeated calls do not create new independent cases. For a broader quality claim, evaluate representative held-out traffic with independently reviewed labels, compare instruction variants, and use <a href="https://docs.litellm.ai/docs/auto_router/evaluate">shadow evaluation</a> to score the final answers</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-does-543x-as-fast-mean">What does 5.43x as fast mean?<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#what-does-543x-as-fast-mean" class="hash-link" aria-label="Direct link to What does 5.43x as fast mean?" title="Direct link to What does 5.43x as fast mean?">​</a></h3>
<p>Haiku's median classification time divided by JEV's was 5.43: 688.40 ms versus 126.81 ms. The title describes that measured classification speed ratio. It does not measure end-to-end completion speed or throughput under load</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-happens-if-typesafe-is-unavailable">What happens if TypeSafe is unavailable?<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#what-happens-if-typesafe-is-unavailable" class="hash-link" aria-label="Direct link to What happens if TypeSafe is unavailable?" title="Direct link to What happens if TypeSafe is unavailable?">​</a></h3>
<p>The configured fallback picks the next routing path, and recognized classification timeouts open the local circuit breaker. The chosen completion provider must still succeed. Cancellation does not establish that an upstream request was unbilled</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-jev-available-in-litellm-oss-or-enterprise">Is JEV available in LiteLLM OSS or Enterprise?<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#is-jev-available-in-litellm-oss-or-enterprise" class="hash-link" aria-label="Direct link to Is JEV available in LiteLLM OSS or Enterprise?" title="Direct link to Is JEV available in LiteLLM OSS or Enterprise?">​</a></h3>
<p>Built-in JEV classification is available without an Enterprise license under the same policy as the built-in LLM classifier. Custom JEV instructions and custom tier definitions use the existing Enterprise custom-classifier capability. TypeSafe provider charges are separate from LiteLLM licensing</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="conclusion">Conclusion<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#conclusion" class="hash-link" aria-label="Direct link to Conclusion" title="Direct link to Conclusion">​</a></h2>
<p>JEV classified requests 5.43x as fast as Haiku by median latency in this comparison, with lower registry-priced cost and more matches with the authored expected tiers. For Enterprise AI Gateway deployments and OSS deployments alike, the next step is to test real prompts, score the resulting answers and include fallback traffic in spend accounting. Start with the <a href="https://docs.litellm.ai/docs/auto_router/setup#jev-classifier-typesafe-ai">JEV setup guide</a> and <a href="https://docs.litellm.ai/docs/auto_router/evaluate">evaluate on your traffic</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="recommended-reading">Recommended Reading<a href="https://docs.litellm.ai/blog/jev-auto-router-benchmark#recommended-reading" class="hash-link" aria-label="Direct link to Recommended Reading" title="Direct link to Recommended Reading">​</a></h2>
<ul>
<li><a href="https://docs.litellm.ai/docs/auto_router/setup#jev-classifier-typesafe-ai" target="_blank" rel="noopener noreferrer">JEV Auto Router setup</a></li>
<li><a href="https://docs.litellm.ai/docs/proxy/auto_routing#jev-classifier" target="_blank" rel="noopener noreferrer">Auto Router configuration reference</a></li>
<li><a href="https://docs.litellm.ai/docs/pass_through/typesafe" target="_blank" rel="noopener noreferrer">TypeSafe System One pass-through</a></li>
</ul>]]></content:encoded>
            <category>routing</category>
            <category>complexity-router</category>
            <category>engineering</category>
            <category>ai-gateway</category>
        </item>
        <item>
            <title><![CDATA[TypeSafe Jev on LiteLLM]]></title>
            <link>https://docs.litellm.ai/blog/typesafe_jev</link>
            <guid>https://docs.litellm.ai/blog/typesafe_jev</guid>
            <pubDate>Sun, 20 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[TypeSafe AI's Jev lands in LiteLLM v1.103.0-rc: call it through the proxy with logging and cost tracking.]]></description>
            <content:encoded><![CDATA[<p><a href="https://docs.typesafe.ai/api" target="_blank" rel="noopener noreferrer">TypeSafe AI's Jev</a> launches on LiteLLM today in <code>v1.103.0-rc</code>. Jev is a decision model: it returns a choice, a score, or a yes/no probability instead of text, so it has its own evaluate endpoint rather than <code>/chat/completions</code>. LiteLLM proxies that endpoint with logging and cost tracking.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="pricing">Pricing<a href="https://docs.litellm.ai/blog/typesafe_jev#pricing" class="hash-link" aria-label="Direct link to Pricing" title="Direct link to Pricing">​</a></h2>
<p>$0.042 per 1M input tokens, no output charge. Spend is logged under the versioned model TypeSafe reports (<code>typesafe/jev-1.13.0</code> today), even when you request <code>jev-latest</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="usage">Usage<a href="https://docs.litellm.ai/blog/typesafe_jev#usage" class="hash-link" aria-label="Direct link to Usage" title="Direct link to Usage">​</a></h2>
<p>Set your TypeSafe key once on the proxy, then replace <code>https://api.typesafe.ai</code> with <code>LITELLM_PROXY_BASE_URL/typesafe</code>. Clients only need a LiteLLM virtual key.</p>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">export TYPESAFE_API_KEY="your-typesafe-api-key"</span><br></span></code></pre></div></div>
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token plain">curl -X POST "http://0.0.0.0:4000/typesafe/v1/systemone" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Content-Type: application/json" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "state": "Help! My payouts have been failing for 3 days.",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "jev-latest",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "questions": {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "department": {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        "type": "choice",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        "instructions": "Which team should handle this?",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        "criteria": {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">          "billing": "Payments, invoicing, refunds",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">          "technical": "Bugs, outages, integrations"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        }</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      }</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    }</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div>
<p>The response is TypeSafe's own, unchanged. Any path under <code>/typesafe/</code> is forwarded, so <code>GET /typesafe/v1/models</code> lists the available models. Full details in the <a href="https://docs.litellm.ai/docs/pass_through/typesafe">TypeSafe pass-through docs</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/typesafe_jev#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Running Jev through LiteLLM and hitting something unexpected? Open a <a href="https://github.com/BerriAI/litellm/discussions" target="_blank" rel="noopener noreferrer">GitHub discussion</a>.</p>]]></content:encoded>
            <category>typesafe</category>
            <category>jev</category>
            <category>product</category>
        </item>
        <item>
            <title><![CDATA[Auto-Router: Switching Tiers Without Encrypted Content Failures]]></title>
            <link>https://docs.litellm.ai/blog/auto-router-encrypted-content-routing</link>
            <guid>https://docs.litellm.ai/blog/auto-router-encrypted-content-routing</guid>
            <pubDate>Fri, 18 Sep 2026 10:00:00 GMT</pubDate>
            <description><![CDATA[How LiteLLM safely removes undecryptable encrypted reasoning from cross-tier follow-ups so Auto-Router can keep routing requests]]></description>
            <content:encoded><![CDATA[<p>Auto-Router can move a conversation between tiers as the request changes from simple work to a harder task. Responses API clients can make that switch difficult because a previous response may include encrypted reasoning content that only the deployment that created it can decrypt</p>
<p>LiteLLM now keeps the readable history and removes encrypted reasoning that the newly selected tier cannot verify. The request can continue to the selected model instead of failing with <code>invalid_encrypted_content</code></p>
<p>This fix is included in the LiteLLM <code>v1.102.x</code> release line and landed in <a href="https://github.com/BerriAI/litellm/pull/40280" target="_blank" rel="noopener noreferrer">PR #40280</a></p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-encrypted-reasoning-blocks-fail-after-a-tier-change">Why encrypted reasoning blocks fail after a tier change<a href="https://docs.litellm.ai/blog/auto-router-encrypted-content-routing#why-encrypted-reasoning-blocks-fail-after-a-tier-change" class="hash-link" aria-label="Direct link to Why encrypted reasoning blocks fail after a tier change" title="Direct link to Why encrypted reasoning blocks fail after a tier change">​</a></h2>
<p>A Responses API reasoning item can contain an <code>encrypted_content</code> field and an item ID such as <code>rs_...</code>. The provider binds that payload to the organization, API key, or encryption boundary that created it. A later request that carries the item to a different boundary can reach the provider, but the provider cannot verify it</p>
<p>Auto-Router makes this situation more common than a fixed model route. One turn may go to a fast model in the SIMPLE tier. The next turn may classify as COMPLEX and select a different model group. If the follow-up includes reasoning from the first turn, forwarding the encrypted payload to the second group produces the upstream error</p>
<p>Broad session or deployment affinity avoids the error by pinning more traffic than the conversation requires. It also prevents Auto-Router from switching tiers when the request needs a different model</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-routing-decision">The routing decision<a href="https://docs.litellm.ai/blog/auto-router-encrypted-content-routing#the-routing-decision" class="hash-link" aria-label="Direct link to The routing decision" title="Direct link to The routing decision">​</a></h2>
<p>Enable the <code>encrypted_content_affinity</code> pre-call check alongside your Auto-Router configuration</p>
<div class="language-yaml codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-yaml codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token key atrule" style="color:#22863A">router_settings</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token key atrule" style="color:#22863A">optional_pre_call_checks</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> encrypted_content_affinity</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token key atrule" style="color:#22863A">model_list</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">standard</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> anthropic/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/ANTHROPIC_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> opus</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> anthropic/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">opus</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">5</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">api_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/ANTHROPIC_API_KEY</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> production</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">auto</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">router</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token key atrule" style="color:#22863A">litellm_params</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">model</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> auto_router/complexity_router</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">complexity_router_config</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">classifier_type</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> heuristic</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">        </span><span class="token key atrule" style="color:#22863A">tiers</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">          </span><span class="token key atrule" style="color:#22863A">SIMPLE</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> sonnet</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">standard</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">          </span><span class="token key atrule" style="color:#22863A">COMPLEX</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">            </span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain"> </span><span class="token key atrule" style="color:#22863A">model_name</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> opus</span><br></span></code></pre></div></div>
<p>When LiteLLM sees a tracked encrypted item, it first looks for the deployment that created it. If that deployment is available, LiteLLM pins this request to it. If another healthy deployment shares the same encryption boundary, LiteLLM can use that peer</p>
<p>If the originating deployment belongs to a different routed group, LiteLLM removes the undecryptable encrypted reasoning and returns the healthy deployments for the selected group. Auto-Router keeps its tier decision</p>
<p>A same-group deployment that is temporarily unavailable follows the existing fail-fast behavior. LiteLLM does not send the encrypted item to a same-group deployment that cannot serve it and does not hide a cooldown behind a cross-tier rewrite</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-litellm-removes">What LiteLLM removes<a href="https://docs.litellm.ai/blog/auto-router-encrypted-content-routing#what-litellm-removes" class="hash-link" aria-label="Direct link to What LiteLLM removes" title="Direct link to What LiteLLM removes">​</a></h2>
<p>LiteLLM mutates the request before dispatch and removes <code>encrypted_content</code> and <code>id</code> from a reasoning item when the selected deployment cannot decrypt them. It keeps a readable <code>summary</code> or <code>content</code> field so the selected model still sees the response history</p>
<p>If a reasoning item has no readable summary or content, LiteLLM removes that item. Other input items, including user messages and ordinary assistant messages, remain in the request</p>
<p>For example, a cross-tier follow-up changes from this:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"reasoning"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"id"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"rs_previous_deployment_item"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"encrypted_content"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"opaque-provider-payload"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"summary"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">{</span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"summary_text"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token property" style="color:#005CC5">"text"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"The request needs a larger model"</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre></div></div>
<p>to this before dispatch:</p>
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#393A34;background-color:#f6f8fa"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#393A34"><span class="token punctuation" style="color:#393A34">{</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"reasoning"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token property" style="color:#005CC5">"summary"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">[</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    </span><span class="token punctuation" style="color:#393A34">{</span><span class="token property" style="color:#005CC5">"type"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"summary_text"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token property" style="color:#005CC5">"text"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"The request needs a larger model"</span><span class="token punctuation" style="color:#393A34">}</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  </span><span class="token punctuation" style="color:#393A34">]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain"></span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre></div></div>
<p>LiteLLM applies the same boundary check to bridged Anthropic thinking blocks. When the bridge identifies encrypted reasoning from another route, it drops that thinking block instead of forwarding a foreign or unsigned signature that the provider would reject</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-this-keeps-auto-router-useful">Why this keeps Auto-Router useful<a href="https://docs.litellm.ai/blog/auto-router-encrypted-content-routing#why-this-keeps-auto-router-useful" class="hash-link" aria-label="Direct link to Why this keeps Auto-Router useful" title="Direct link to Why this keeps Auto-Router useful">​</a></h2>
<p>The check pins only requests that need the original encryption boundary. Ordinary requests continue through the configured routing strategy, and a cross-tier follow-up can reach the tier selected for the current request</p>
<p>This gives Auto-Router two safe paths. It preserves encrypted reasoning when the selected deployment can verify it. For cross-tier Responses requests, it preserves the readable summary and removes the provider-bound payload. For bridged Anthropic thinking, it drops the foreign encrypted block before dispatch</p>
<p>The behavior lives in the encrypted-content pre-call check and the Responses request utilities. The relevant implementation and regression coverage are available in <a href="https://github.com/BerriAI/litellm/blob/main/litellm/router_utils/pre_call_checks/encrypted_content_affinity_check.py" target="_blank" rel="noopener noreferrer">the affinity check</a>, <a href="https://github.com/BerriAI/litellm/blob/main/litellm/responses/utils.py" target="_blank" rel="noopener noreferrer">the Responses request utility</a>, and <a href="https://github.com/BerriAI/litellm/blob/main/tests/test_litellm/router_utils/pre_call_checks/test_encrypted_content_affinity_check.py" target="_blank" rel="noopener noreferrer">the routing tests</a></p>
<p>For the complete setup and deployment-affinity behavior, see the <a href="https://docs.litellm.ai/docs/response_api#encrypted-content-affinity-multi-region-load-balancing" target="_blank" rel="noopener noreferrer">Responses API encrypted content affinity guide</a></p>]]></content:encoded>
            <category>routing</category>
            <category>complexity-router</category>
            <category>responses-api</category>
            <category>engineering</category>
        </item>
    </channel>
</rss>