<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://docs.litellm.ai/blog</id>
    <title>liteLLM Blog</title>
    <updated>2026-11-13T12:57:00.000Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <link rel="alternate" href="https://docs.litellm.ai/blog"/>
    <subtitle>liteLLM Blog</subtitle>
    <icon>https://docs.litellm.ai/img/brand/litellm-favicon.svg</icon>
    <entry>
        <title type="html"><![CDATA[Better Benchmarks]]></title>
        <id>https://docs.litellm.ai/blog/better-benchmarks</id>
        <link href="https://docs.litellm.ai/blog/better-benchmarks"/>
        <updated>2026-11-13T12:57:00.000Z</updated>
        <summary type="html"><![CDATA[We mentioned last week that we would be posting updated, more representative benchmarks with common features enabled. The headline numbers are in, and they're great!]]></summary>
        <content type="html"><![CDATA[<p>We mentioned last week that we would be posting updated, more representative benchmarks with common features enabled. The headline numbers are in, and they're great!</p>
<!-- -->
<figure class="fig_BUVG"><div class="art_EROj"><div class="head__hRP"><span class="eyebrow_wpEb"><span class="num_uONl">01</span>50 REQUESTS / SEC · FULL FEATURES</span><p class="title_IYlF">Same load, less overhead</p></div><div class="scroll_Fb5g"><svg class="svg_Q2vf" viewBox="0 0 760 370" role="img" aria-label="At 50 requests per second with full features. Median overhead: LiteLLM Rust 0.9 ms, Bifrost 1.2 ms, Portkey 2.1 ms, LiteLLM Python 79.3 ms. p99 overhead: LiteLLM Rust 1.8 ms, Bifrost 4.2 ms, Portkey 5.3 ms, LiteLLM Python 1,587.8 ms. CPU used: LiteLLM Rust 0.15 cores, Bifrost 0.41, Portkey 0.49, LiteLLM Python 2.92. Peak memory: LiteLLM Rust 357 MiB, Bifrost 2,809 MiB, Portkey 609 MiB, LiteLLM Python 9,553 MiB."><g><text x="20" y="30" class="t_aZyi">Median overhead</text><g><line x1="112" x2="112" y1="46" y2="166" class="grid_c5Jf"></line><text x="112" y="180" class="tick_sI94" text-anchor="middle">0</text></g><g><line x1="165.33333333333331" x2="165.33333333333331" y1="46" y2="166" class="grid_c5Jf"></line><text x="165.33333333333331" y="180" class="tick_sI94" text-anchor="middle">1</text></g><g><line x1="218.66666666666666" x2="218.66666666666666" y1="46" y2="166" class="grid_c5Jf"></line><text x="218.66666666666666" y="180" class="tick_sI94" text-anchor="middle">2</text></g><g><line x1="272" x2="272" y1="46" y2="166" class="grid_c5Jf"></line><text x="272" y="180" class="tick_sI94" text-anchor="middle">3</text></g><g><text x="20" y="65" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text><rect x="112" y="52" width="48" height="18" rx="3" class="fillRs_C3SZ"></rect><text x="168" y="65" class="val_hJiv tRs_gOUt">0.9<!-- --> <!-- -->ms</text></g><g><text x="20" y="95" class="s_rDTz">Bifrost</text><rect x="112" y="82" width="64" height="18" rx="3" class="fillGray_X3rW"></rect><text x="184" y="95" class="val_hJiv tGray_UmVz">1.2<!-- --> <!-- -->ms</text></g><g><text x="20" y="125" class="s_rDTz">Portkey</text><rect x="112" y="112" width="112" height="18" rx="3" class="fillPale_WfM3"></rect><text x="232" y="125" class="val_hJiv tPale_etf6">2.1<!-- --> <!-- -->ms</text></g><g><text x="20" y="155" class="s_rDTz">LiteLLM Python</text><rect x="112" y="142" width="182" height="18" rx="3" class="fillPy_vC7Y"></rect><path d="M264 139l6 24M270 139l6 24" class="breakMark_V0z0"></path><text x="256" y="155" class="inBar_T18D" text-anchor="end">79.3<!-- --> <!-- -->ms</text><text x="302" y="155" class="s_rDTz">off scale</text></g></g><g><text x="400" y="30" class="t_aZyi">p99 overhead</text><g><line x1="492" x2="492" y1="46" y2="166" class="grid_c5Jf"></line><text x="492" y="180" class="tick_sI94" text-anchor="middle">0</text></g><g><line x1="545.3333333333334" x2="545.3333333333334" y1="46" y2="166" class="grid_c5Jf"></line><text x="545.3333333333334" y="180" class="tick_sI94" text-anchor="middle">2</text></g><g><line x1="598.6666666666666" x2="598.6666666666666" y1="46" y2="166" class="grid_c5Jf"></line><text x="598.6666666666666" y="180" class="tick_sI94" text-anchor="middle">4</text></g><g><line x1="652" x2="652" y1="46" y2="166" class="grid_c5Jf"></line><text x="652" y="180" class="tick_sI94" text-anchor="middle">6</text></g><g><text x="400" y="65" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text><rect x="492" y="52" width="48" height="18" rx="3" class="fillRs_C3SZ"></rect><text x="548" y="65" class="val_hJiv tRs_gOUt">1.8<!-- --> <!-- -->ms</text></g><g><text x="400" y="95" class="s_rDTz">Bifrost</text><rect x="492" y="82" width="112" height="18" rx="3" class="fillGray_X3rW"></rect><text x="612" y="95" class="val_hJiv tGray_UmVz">4.2<!-- --> <!-- -->ms</text></g><g><text x="400" y="125" class="s_rDTz">Portkey</text><rect x="492" y="112" width="141.33333333333326" height="18" rx="3" class="fillPale_WfM3"></rect><text x="641.3333333333333" y="125" class="val_hJiv tPale_etf6">5.3<!-- --> <!-- -->ms</text></g><g><text x="400" y="155" class="s_rDTz">LiteLLM Python</text><rect x="492" y="142" width="182" height="18" rx="3" class="fillPy_vC7Y"></rect><path d="M644 139l6 24M650 139l6 24" class="breakMark_V0z0"></path><text x="636" y="155" class="inBar_T18D" text-anchor="end">1,587.8<!-- --> <!-- -->ms</text><text x="682" y="155" class="s_rDTz">off scale</text></g></g><g><text x="20" y="208" class="t_aZyi">CPU used</text><g><line x1="112" x2="112" y1="224" y2="344" class="grid_c5Jf"></line><text x="112" y="358" class="tick_sI94" text-anchor="middle">0</text></g><g><line x1="165.33333333333331" x2="165.33333333333331" y1="224" y2="344" class="grid_c5Jf"></line><text x="165.33333333333331" y="358" class="tick_sI94" text-anchor="middle">1</text></g><g><line x1="218.66666666666666" x2="218.66666666666666" y1="224" y2="344" class="grid_c5Jf"></line><text x="218.66666666666666" y="358" class="tick_sI94" text-anchor="middle">2</text></g><g><line x1="272" x2="272" y1="224" y2="344" class="grid_c5Jf"></line><text x="272" y="358" class="tick_sI94" text-anchor="middle">3</text></g><g><text x="20" y="243" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text><rect x="112" y="230" width="8" height="18" rx="3" class="fillRs_C3SZ"></rect><text x="128" y="243" class="val_hJiv tRs_gOUt">0.15<!-- --> <!-- -->cores</text></g><g><text x="20" y="273" class="s_rDTz">Bifrost</text><rect x="112" y="260" width="21.866666666666674" height="18" rx="3" class="fillGray_X3rW"></rect><text x="141.86666666666667" y="273" class="val_hJiv tGray_UmVz">0.41<!-- --> <!-- -->cores</text></g><g><text x="20" y="303" class="s_rDTz">Portkey</text><rect x="112" y="290" width="26.133333333333326" height="18" rx="3" class="fillPale_WfM3"></rect><text x="146.13333333333333" y="303" class="val_hJiv tPale_etf6">0.49<!-- --> <!-- -->cores</text></g><g><text x="20" y="333" class="s_rDTz">LiteLLM Python</text><rect x="112" y="320" width="155.73333333333335" height="18" rx="3" class="fillPy_vC7Y"></rect><text x="275.73333333333335" y="333" class="val_hJiv tPy_Lr4T">2.92<!-- --> <!-- -->cores</text></g></g><g><text x="400" y="208" class="t_aZyi">Peak memory</text><g><line x1="492" x2="492" y1="224" y2="344" class="grid_c5Jf"></line><text x="492" y="358" class="tick_sI94" text-anchor="middle">0</text></g><g><line x1="572" x2="572" y1="224" y2="344" class="grid_c5Jf"></line><text x="572" y="358" class="tick_sI94" text-anchor="middle">5,000</text></g><g><line x1="652" x2="652" y1="224" y2="344" class="grid_c5Jf"></line><text x="652" y="358" class="tick_sI94" text-anchor="middle">10,000</text></g><g><text x="400" y="243" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text><rect x="492" y="230" width="5.711999999999989" height="18" rx="3" class="fillRs_C3SZ"></rect><text x="505.712" y="243" class="val_hJiv tRs_gOUt">357<!-- --> <!-- -->MiB</text></g><g><text x="400" y="273" class="s_rDTz">Bifrost</text><rect x="492" y="260" width="44.94399999999996" height="18" rx="3" class="fillGray_X3rW"></rect><text x="544.944" y="273" class="val_hJiv tGray_UmVz">2,809<!-- --> <!-- -->MiB</text></g><g><text x="400" y="303" class="s_rDTz">Portkey</text><rect x="492" y="290" width="9.744000000000028" height="18" rx="3" class="fillPale_WfM3"></rect><text x="509.744" y="303" class="val_hJiv tPale_etf6">609<!-- --> <!-- -->MiB</text></g><g><text x="400" y="333" class="s_rDTz">LiteLLM Python</text><rect x="492" y="320" width="152.84799999999996" height="18" rx="3" class="fillPy_vC7Y"></rect><text x="652.848" y="333" class="val_hJiv tPy_Lr4T">9,553<!-- --> <!-- -->MiB</text></g></g></svg></div></div><figcaption>Lower is better. Five minutes per gateway, 4 cores and 16 GiB each, single run, every request served. Latency subtracts a direct-to-mock run at the same rate. Portkey runs with no features; OpenRouter used a separate test.</figcaption></figure>
<p>Our previous benchmarks were with a much smaller subset of our functionality enabled, and they were not particularly representative of production workflows. We were very clear about this, as we just wanted to validate how much better Rust could do than Python as a language. In order to keep high performance as we build towards an end-to-end request handled in Rust in production, we have to be very mindful about choices made and the hot path of our requests.</p>
<p>With these benchmarks, we wanted to be sure that it represented realistic modern
LLM scale and gateway features. These benchmarks are useful for us internally to ensure that our gateway is performing well at the scale that it actually operates. The benchmark covers:</p>
<ul>
<li>Context can go up to 1M tokens, which means requests are ~4 MB</li>
<li>Requests can sometimes take 6+ minutes to fully complete</li>
<li>Gateways have many virtual keys with team, user, and deployment budget limits</li>
<li>Budget tracking, spend logging, prometheus metrics, dumping logs</li>
<li>Custom hooks for header logic, RPM/TPM limits on each deployment</li>
<li>Many deployments across multiple model groups</li>
<li>Retries and fallbacks enabled by the router</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-full-features-turns-on">What "full features" turns on<a href="https://docs.litellm.ai/blog/better-benchmarks#what-full-features-turns-on" class="hash-link" aria-label="Direct link to What &quot;full features&quot; turns on" title="Direct link to What &quot;full features&quot; turns on">​</a></h3>
<table><thead><tr><th></th><th style="text-align:center">Rust</th><th style="text-align:center">Python</th><th style="text-align:center">Bifrost</th><th style="text-align:center">Portkey</th></tr></thead><tbody><tr><td>1,000 virtual keys</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Budgets: key, user, team, member</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">🟡¹</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>rpm/tpm: key, user, team, member</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">🟡¹</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td><code>max_parallel_requests</code> per key</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">❌</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>rpm/tpm per deployment</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Dynamic rate limiter</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">❌</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Spend logs and spend tables</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">🟡²</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Prometheus metrics</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>S3 request logs</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Forward and strip headers</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Spend metadata from headers</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Team as an upstream header</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">❌</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr><tr><td>Shuffle over 4 deployments, 2 retries</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">✅</td><td data-label="Portkey" data-inline="" style="text-align:center">✅</td></tr><tr><td>Cooldown: 3 fails, 30 s</td><td data-label="Rust" data-inline="" style="text-align:center">✅</td><td data-label="Python" data-inline="" style="text-align:center">✅</td><td data-label="Bifrost" data-inline="" style="text-align:center">❌</td><td data-label="Portkey" data-inline="" style="text-align:center">❌</td></tr></tbody></table>
<small><p>¹ Key, team and customer only; user and team member limits are enterprise-only. ² Its own logs store and budgets. Rust runs the header features as hooks, Python as custom callbacks, and Bifrost through its built-in equivalents. Portkey's open-source gateway has no auth, keys, limits, budgets, logs or metrics.</p></small>
<p>The rust implementation is a <a href="https://github.com/BerriAI/litellm/tree/litellm_customer_proxy" target="_blank" rel="noopener noreferrer">branch</a> which we used in order to flesh out how we would handle some of our richer featureset, if we are able to rethink it with performance in mind. We expect comparable performance on the fast path which will be available on December 1st. Everything in this branch is compatible with a subset of LiteLLM's extensive featureset. It writes compatibly to the S3 log dumping and prometheus metrics, and writes to our spend logs in the same way as the Python implementation.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="detailed-benchmarks">Detailed Benchmarks<a href="https://docs.litellm.ai/blog/better-benchmarks#detailed-benchmarks" class="hash-link" aria-label="Direct link to Detailed Benchmarks" title="Direct link to Detailed Benchmarks">​</a></h2>
<figure class="fig_BUVG"><div class="art_EROj"><div class="head__hRP"><span class="eyebrow_wpEb"><span class="num_uONl">02</span>BY REQUEST RATE · FULL FEATURES</span><p class="title_IYlF">LiteLLM Rust gets cheaper per request as load rises</p></div><div class="scroll_Fb5g"><svg class="svg_Q2vf" viewBox="0 0 760 540" role="img" aria-label="Four line charts against 10, 25, 50, 75 and 100 requests per second. Median overhead on a log scale: LiteLLM Rust falls from 1.7 to 0.4 ms, Bifrost from 2.0 to 1.2 ms, Portkey from 2.6 to 1.8 ms, LiteLLM Python rises from 36.5 ms to 57 seconds. p99 overhead on a log scale: LiteLLM Rust 2.7 to 0.9 ms, Bifrost about 4 to 5 ms, Portkey 7.7 to 4.7 ms, LiteLLM Python 80 ms to 173 seconds. CPU: LiteLLM Rust 0.04 to 0.26 cores, Bifrost 0.11 to 0.84, Portkey 0.12 to 0.78, LiteLLM Python 0.6 to 3.86. Peak memory: LiteLLM Rust 117 to 659 MiB, Bifrost 1.0 to 5.2 GiB, Portkey 529 to 743 MiB, LiteLLM Python 3.8 to 15.7 GiB. LiteLLM Python was overloaded at 75 and 100 requests per second."><g><text x="20" y="26" class="t_aZyi">Median overhead</text><g><line x1="72" x2="284" y1="230.39641557556197" y2="230.39641557556197" class="grid_c5Jf"></line><text x="64" y="234.39641557556197" class="tick_sI94" text-anchor="end">1 ms</text></g><g><line x1="72" x2="284" y1="196.72974890889532" y2="196.72974890889532" class="grid_c5Jf"></line><text x="64" y="200.72974890889532" class="tick_sI94" text-anchor="end">10 ms</text></g><g><line x1="72" x2="284" y1="163.06308224222863" y2="163.06308224222863" class="grid_c5Jf"></line><text x="64" y="167.06308224222863" class="tick_sI94" text-anchor="end">100 ms</text></g><g><line x1="72" x2="284" y1="129.39641557556197" y2="129.39641557556197" class="grid_c5Jf"></line><text x="64" y="133.39641557556197" class="tick_sI94" text-anchor="end">1 s</text></g><g><line x1="72" x2="284" y1="95.72974890889532" y2="95.72974890889532" class="grid_c5Jf"></line><text x="64" y="99.72974890889532" class="tick_sI94" text-anchor="end">10 s</text></g><g><line x1="72" x2="284" y1="62.06308224222863" y2="62.06308224222863" class="grid_c5Jf"></line><text x="64" y="66.06308224222863" class="tick_sI94" text-anchor="end">100 s</text></g><text x="72" y="264" class="tick_sI94" text-anchor="middle">10</text><text x="107.33333333333333" y="264" class="tick_sI94" text-anchor="middle">25</text><text x="166.22222222222223" y="264" class="tick_sI94" text-anchor="middle">50</text><text x="225.11111111111111" y="264" class="tick_sI94" text-anchor="middle">75</text><text x="284" y="264" class="tick_sI94" text-anchor="middle">100 rps</text><g><path d="M72 177.799222472194L107.33333333333333 176.02820930244644L166.22222222222223 166.45421826920264L225.11111111111111 74.6679342244027L284 70.3038333686261" class="line_lZjD linePy_TdPE"></path><circle cx="72" cy="177.799222472194" r="2.8" class="fillPy_vC7Y"></circle><circle cx="107.33333333333333" cy="176.02820930244644" r="2.8" class="fillPy_vC7Y"></circle><circle cx="166.22222222222223" cy="166.45421826920264" r="2.8" class="fillPy_vC7Y"></circle><circle cx="225.11111111111111" cy="74.6679342244027" r="4.5" class="open_iUer"></circle><circle cx="284" cy="70.3038333686261" r="4.5" class="open_iUer"></circle></g><g><path d="M72 216.42564619387775L107.33333333333333 218.86818532121436L166.22222222222223 219.5483659861867L225.11111111111111 221.802241237084L284 221.802241237084" class="line_lZjD linePale_oXGE"></path><circle cx="72" cy="216.42564619387775" r="2.8" class="fillPale_WfM3"></circle><circle cx="107.33333333333333" cy="218.86818532121436" r="2.8" class="fillPale_WfM3"></circle><circle cx="166.22222222222223" cy="219.5483659861867" r="2.8" class="fillPale_WfM3"></circle><circle cx="225.11111111111111" cy="221.802241237084" r="2.8" class="fillPale_WfM3"></circle><circle cx="284" cy="221.802241237084" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M72 220.2617390548746L107.33333333333333 224.4680098540207L166.22222222222223 227.73064695862527L225.11111111111111 227.73064695862527L284 227.73064695862527" class="line_lZjD lineGray_sJqg"></path><circle cx="72" cy="220.2617390548746" r="2.8" class="fillGray_X3rW"></circle><circle cx="107.33333333333333" cy="224.4680098540207" r="2.8" class="fillGray_X3rW"></circle><circle cx="166.22222222222223" cy="227.73064695862527" r="2.8" class="fillGray_X3rW"></circle><circle cx="225.11111111111111" cy="227.73064695862527" r="2.8" class="fillGray_X3rW"></circle><circle cx="284" cy="227.73064695862527" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M72 222.63796855582675L107.33333333333333 230.39641557556197L166.22222222222223 231.93691775777137L225.11111111111111 237.86532347931262L284 243.7937292008539" class="line_lZjD lineRs_rJNs"></path><circle cx="72" cy="222.63796855582675" r="3.4" class="fillRs_C3SZ"></circle><circle cx="107.33333333333333" cy="230.39641557556197" r="3.4" class="fillRs_C3SZ"></circle><circle cx="166.22222222222223" cy="231.93691775777137" r="3.4" class="fillRs_C3SZ"></circle><circle cx="225.11111111111111" cy="237.86532347931262" r="3.4" class="fillRs_C3SZ"></circle><circle cx="284" cy="243.7937292008539" r="3.4" class="fillRs_C3SZ"></circle></g><text x="294" y="72.50159213154211" class="s_rDTz tPy_Lr4T">LiteLLM Python</text><text x="294" y="224" class="s_rDTz tPale_etf6">Portkey</text><text x="294" y="238" class="s_rDTz tGray_UmVz">Bifrost</text><text x="294" y="252" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text><text x="215.11111111111111" y="78.6679342244027" class="tick_sI94" text-anchor="end">79% served</text><text x="284" y="88.3038333686261" class="tick_sI94" text-anchor="end">29% served</text></g><g><text x="400" y="26" class="t_aZyi">p99 overhead</text><g><line x1="452" x2="664" y1="230.39641557556197" y2="230.39641557556197" class="grid_c5Jf"></line><text x="444" y="234.39641557556197" class="tick_sI94" text-anchor="end">1 ms</text></g><g><line x1="452" x2="664" y1="196.72974890889532" y2="196.72974890889532" class="grid_c5Jf"></line><text x="444" y="200.72974890889532" class="tick_sI94" text-anchor="end">10 ms</text></g><g><line x1="452" x2="664" y1="163.06308224222863" y2="163.06308224222863" class="grid_c5Jf"></line><text x="444" y="167.06308224222863" class="tick_sI94" text-anchor="end">100 ms</text></g><g><line x1="452" x2="664" y1="129.39641557556197" y2="129.39641557556197" class="grid_c5Jf"></line><text x="444" y="133.39641557556197" class="tick_sI94" text-anchor="end">1 s</text></g><g><line x1="452" x2="664" y1="95.72974890889532" y2="95.72974890889532" class="grid_c5Jf"></line><text x="444" y="99.72974890889532" class="tick_sI94" text-anchor="end">10 s</text></g><g><line x1="452" x2="664" y1="62.06308224222863" y2="62.06308224222863" class="grid_c5Jf"></line><text x="444" y="66.06308224222863" class="tick_sI94" text-anchor="end">100 s</text></g><text x="452" y="264" class="tick_sI94" text-anchor="middle">10</text><text x="487.3333333333333" y="264" class="tick_sI94" text-anchor="middle">25</text><text x="546.2222222222222" y="264" class="tick_sI94" text-anchor="middle">50</text><text x="605.1111111111111" y="264" class="tick_sI94" text-anchor="middle">75</text><text x="664" y="264" class="tick_sI94" text-anchor="middle">100 rps</text><g><path d="M452 166.27099221784636L487.3333333333333 143.0593091120266L546.2222222222222 122.63629038941362L605.1111111111111 59.449959491672416L664 54.02047677114493" class="line_lZjD linePy_TdPE"></path><circle cx="452" cy="166.27099221784636" r="2.8" class="fillPy_vC7Y"></circle><circle cx="487.3333333333333" cy="143.0593091120266" r="2.8" class="fillPy_vC7Y"></circle><circle cx="546.2222222222222" cy="122.63629038941362" r="2.8" class="fillPy_vC7Y"></circle><circle cx="605.1111111111111" cy="59.449959491672416" r="4.5" class="open_iUer"></circle><circle cx="664" cy="54.02047677114493" r="4.5" class="open_iUer"></circle></g><g><path d="M452 200.5512278280884L487.3333333333333 202.5852305513008L546.2222222222222 206.01246129900207L605.1111111111111 207.76912102505946L664 207.76912102505946" class="line_lZjD linePale_oXGE"></path><circle cx="452" cy="200.5512278280884" r="2.8" class="fillPale_WfM3"></circle><circle cx="487.3333333333333" cy="202.5852305513008" r="2.8" class="fillPale_WfM3"></circle><circle cx="546.2222222222222" cy="206.01246129900207" r="2.8" class="fillPale_WfM3"></circle><circle cx="605.1111111111111" cy="207.76912102505946" r="2.8" class="fillPale_WfM3"></circle><circle cx="664" cy="207.76912102505946" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M452 206.01246129900207L487.3333333333333 207.15981421460202L546.2222222222222 209.41368946549932L605.1111111111111 210.4972404723365L664 208.73350880052698" class="line_lZjD lineGray_sJqg"></path><circle cx="452" cy="206.01246129900207" r="2.8" class="fillGray_X3rW"></circle><circle cx="487.3333333333333" cy="207.15981421460202" r="2.8" class="fillGray_X3rW"></circle><circle cx="546.2222222222222" cy="209.41368946549932" r="2.8" class="fillGray_X3rW"></circle><circle cx="605.1111111111111" cy="210.4972404723365" r="2.8" class="fillGray_X3rW"></circle><circle cx="664" cy="208.73350880052698" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M452 215.87383551554274L487.3333333333333 222.63796855582675L546.2222222222222 221.802241237084L605.1111111111111 226.56032271456513L664 231.93691775777137" class="line_lZjD lineRs_rJNs"></path><circle cx="452" cy="215.87383551554274" r="3.4" class="fillRs_C3SZ"></circle><circle cx="487.3333333333333" cy="222.63796855582675" r="3.4" class="fillRs_C3SZ"></circle><circle cx="546.2222222222222" cy="221.802241237084" r="3.4" class="fillRs_C3SZ"></circle><circle cx="605.1111111111111" cy="226.56032271456513" r="3.4" class="fillRs_C3SZ"></circle><circle cx="664" cy="231.93691775777137" r="3.4" class="fillRs_C3SZ"></circle></g><text x="674" y="58.02047677114493" class="s_rDTz tPy_Lr4T">LiteLLM Python</text><text x="674" y="211.76912102505946" class="s_rDTz tPale_etf6">Portkey</text><text x="674" y="225.76912102505946" class="s_rDTz tGray_UmVz">Bifrost</text><text x="674" y="239.76912102505946" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text></g><g><text x="20" y="296" class="t_aZyi">CPU used</text><g><line x1="72" x2="284" y1="518" y2="518" class="grid_c5Jf"></line><text x="64" y="522" class="tick_sI94" text-anchor="end">0 cores</text></g><g><line x1="72" x2="284" y1="467.5" y2="467.5" class="grid_c5Jf"></line><text x="64" y="471.5" class="tick_sI94" text-anchor="end">1 cores</text></g><g><line x1="72" x2="284" y1="417" y2="417" class="grid_c5Jf"></line><text x="64" y="421" class="tick_sI94" text-anchor="end">2 cores</text></g><g><line x1="72" x2="284" y1="366.5" y2="366.5" class="grid_c5Jf"></line><text x="64" y="370.5" class="tick_sI94" text-anchor="end">3 cores</text></g><g><line x1="72" x2="284" y1="316" y2="316" class="grid_c5Jf"></line><text x="64" y="320" class="tick_sI94" text-anchor="end">4 cores</text></g><text x="72" y="534" class="tick_sI94" text-anchor="middle">10</text><text x="107.33333333333333" y="534" class="tick_sI94" text-anchor="middle">25</text><text x="166.22222222222223" y="534" class="tick_sI94" text-anchor="middle">50</text><text x="225.11111111111111" y="534" class="tick_sI94" text-anchor="middle">75</text><text x="284" y="534" class="tick_sI94" text-anchor="middle">100 rps</text><g><path d="M72 487.7L107.33333333333333 446.29L166.22222222222223 370.53999999999996L225.11111111111111 324.58500000000004L284 323.07" class="line_lZjD linePy_TdPE"></path><circle cx="72" cy="487.7" r="2.8" class="fillPy_vC7Y"></circle><circle cx="107.33333333333333" cy="446.29" r="2.8" class="fillPy_vC7Y"></circle><circle cx="166.22222222222223" cy="370.53999999999996" r="2.8" class="fillPy_vC7Y"></circle><circle cx="225.11111111111111" cy="324.58500000000004" r="4.5" class="open_iUer"></circle><circle cx="284" cy="323.07" r="4.5" class="open_iUer"></circle></g><g><path d="M72 511.94L107.33333333333333 505.375L166.22222222222223 493.255L225.11111111111111 484.165L284 478.61" class="line_lZjD linePale_oXGE"></path><circle cx="72" cy="511.94" r="2.8" class="fillPale_WfM3"></circle><circle cx="107.33333333333333" cy="505.375" r="2.8" class="fillPale_WfM3"></circle><circle cx="166.22222222222223" cy="493.255" r="2.8" class="fillPale_WfM3"></circle><circle cx="225.11111111111111" cy="484.165" r="2.8" class="fillPale_WfM3"></circle><circle cx="284" cy="478.61" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M72 512.445L107.33333333333333 506.385L166.22222222222223 497.295L225.11111111111111 485.68L284 475.58" class="line_lZjD lineGray_sJqg"></path><circle cx="72" cy="512.445" r="2.8" class="fillGray_X3rW"></circle><circle cx="107.33333333333333" cy="506.385" r="2.8" class="fillGray_X3rW"></circle><circle cx="166.22222222222223" cy="497.295" r="2.8" class="fillGray_X3rW"></circle><circle cx="225.11111111111111" cy="485.68" r="2.8" class="fillGray_X3rW"></circle><circle cx="284" cy="475.58" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M72 515.98L107.33333333333333 514.465L166.22222222222223 510.425L225.11111111111111 507.9L284 504.87" class="line_lZjD lineRs_rJNs"></path><circle cx="72" cy="515.98" r="3.4" class="fillRs_C3SZ"></circle><circle cx="107.33333333333333" cy="514.465" r="3.4" class="fillRs_C3SZ"></circle><circle cx="166.22222222222223" cy="510.425" r="3.4" class="fillRs_C3SZ"></circle><circle cx="225.11111111111111" cy="507.9" r="3.4" class="fillRs_C3SZ"></circle><circle cx="284" cy="504.87" r="3.4" class="fillRs_C3SZ"></circle></g><text x="294" y="327.07" class="s_rDTz tPy_Lr4T">LiteLLM Python</text><text x="294" y="479.58" class="s_rDTz tGray_UmVz">Bifrost</text><text x="294" y="493.58" class="s_rDTz tPale_etf6">Portkey</text><text x="294" y="508.87" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text></g><g><text x="400" y="296" class="t_aZyi">Peak memory</text><g><line x1="452" x2="664" y1="518" y2="518" class="grid_c5Jf"></line><text x="444" y="522" class="tick_sI94" text-anchor="end">0 GiB</text></g><g><line x1="452" x2="664" y1="467.5" y2="467.5" class="grid_c5Jf"></line><text x="444" y="471.5" class="tick_sI94" text-anchor="end">4 GiB</text></g><g><line x1="452" x2="664" y1="417" y2="417" class="grid_c5Jf"></line><text x="444" y="421" class="tick_sI94" text-anchor="end">8 GiB</text></g><g><line x1="452" x2="664" y1="366.5" y2="366.5" class="grid_c5Jf"></line><text x="444" y="370.5" class="tick_sI94" text-anchor="end">12 GiB</text></g><g><line x1="452" x2="664" y1="316" y2="316" class="grid_c5Jf"></line><text x="444" y="320" class="tick_sI94" text-anchor="end">16 GiB</text></g><text x="452" y="534" class="tick_sI94" text-anchor="middle">10</text><text x="487.3333333333333" y="534" class="tick_sI94" text-anchor="middle">25</text><text x="546.2222222222222" y="534" class="tick_sI94" text-anchor="middle">50</text><text x="605.1111111111111" y="534" class="tick_sI94" text-anchor="middle">75</text><text x="664" y="534" class="tick_sI94" text-anchor="middle">100 rps</text><g><path d="M452 469.6329345703125L487.3333333333333 446.34326171875L546.2222222222222 400.2200927734375L605.1111111111111 348.4378662109375L664 319.79736328125" class="line_lZjD linePy_TdPE"></path><circle cx="452" cy="469.6329345703125" r="2.8" class="fillPy_vC7Y"></circle><circle cx="487.3333333333333" cy="446.34326171875" r="2.8" class="fillPy_vC7Y"></circle><circle cx="546.2222222222222" cy="400.2200927734375" r="2.8" class="fillPy_vC7Y"></circle><circle cx="605.1111111111111" cy="348.4378662109375" r="4.5" class="open_iUer"></circle><circle cx="664" cy="319.79736328125" r="4.5" class="open_iUer"></circle></g><g><path d="M452 511.4779052734375L487.3333333333333 511.021728515625L546.2222222222222 510.4915771484375L605.1111111111111 509.739501953125L664 508.8394775390625" class="line_lZjD linePale_oXGE"></path><circle cx="452" cy="511.4779052734375" r="2.8" class="fillPale_WfM3"></circle><circle cx="487.3333333333333" cy="511.021728515625" r="2.8" class="fillPale_WfM3"></circle><circle cx="546.2222222222222" cy="510.4915771484375" r="2.8" class="fillPale_WfM3"></circle><circle cx="605.1111111111111" cy="509.739501953125" r="2.8" class="fillPale_WfM3"></circle><circle cx="664" cy="508.8394775390625" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M452 505.4119873046875L487.3333333333333 497.287109375L546.2222222222222 483.3675537109375L605.1111111111111 469.0657958984375L664 452.5694580078125" class="line_lZjD lineGray_sJqg"></path><circle cx="452" cy="505.4119873046875" r="2.8" class="fillGray_X3rW"></circle><circle cx="487.3333333333333" cy="497.287109375" r="2.8" class="fillGray_X3rW"></circle><circle cx="546.2222222222222" cy="483.3675537109375" r="2.8" class="fillGray_X3rW"></circle><circle cx="605.1111111111111" cy="469.0657958984375" r="2.8" class="fillGray_X3rW"></circle><circle cx="664" cy="452.5694580078125" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M452 516.5574951171875L487.3333333333333 515.410888671875L546.2222222222222 513.5985107421875L605.1111111111111 511.5272216796875L664 509.8751220703125" class="line_lZjD lineRs_rJNs"></path><circle cx="452" cy="516.5574951171875" r="3.4" class="fillRs_C3SZ"></circle><circle cx="487.3333333333333" cy="515.410888671875" r="3.4" class="fillRs_C3SZ"></circle><circle cx="546.2222222222222" cy="513.5985107421875" r="3.4" class="fillRs_C3SZ"></circle><circle cx="605.1111111111111" cy="511.5272216796875" r="3.4" class="fillRs_C3SZ"></circle><circle cx="664" cy="509.8751220703125" r="3.4" class="fillRs_C3SZ"></circle></g><text x="674" y="318.9578857421875" class="s_rDTz tPy_Lr4T">LiteLLM Python</text><text x="674" y="451.72998046875" class="s_rDTz tGray_UmVz">Bifrost</text><text x="674" y="508" class="s_rDTz tPale_etf6">Portkey</text><text x="674" y="522" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text></g></svg></div></div><figcaption>Latency axes are logarithmic and subtract a direct-to-mock run at the same rate (runs drift about ±0.7 ms). Open circles: Python was overloaded and served only 78.9% of requests at 75 rps and 29.3% at 100 rps. Portkey runs with no features.</figcaption></figure>
<figure class="fig_BUVG"><div class="art_EROj"><div class="head__hRP"><span class="eyebrow_wpEb"><span class="num_uONl">03</span>1M-TOKEN REQUESTS · ~4 MB EACH · STREAMED</span><p class="title_IYlF">Large requests: flat first byte, flat memory</p></div><div class="scroll_Fb5g"><svg class="svg_Q2vf" viewBox="0 0 760 530" role="img" aria-label="Three line charts against 0.5, 1, 2, 4 and 8 requests per second, with 870k to 1M token requests, every one streamed. First-byte overhead at p50: LiteLLM Rust about 20 ms throughout, Bifrost 35 to 41 ms, Portkey 73 to 80 ms. At p99: LiteLLM Rust 30 to 35 ms, Bifrost 78 to 93 ms, Portkey 109 to 187 ms. Peak memory: LiteLLM Rust 0.2 to 0.6 GiB, Portkey 0.7 to 4.1 GiB, Bifrost 1.7 to 13.6 GiB."><g><text x="20" y="26" class="t_aZyi">First-byte overhead, p50</text><g><line x1="72" x2="284" y1="238" y2="238" class="grid_c5Jf"></line><text x="64" y="242" class="tick_sI94" text-anchor="end">0 ms</text></g><g><line x1="72" x2="284" y1="190" y2="190" class="grid_c5Jf"></line><text x="64" y="194" class="tick_sI94" text-anchor="end">25 ms</text></g><g><line x1="72" x2="284" y1="142" y2="142" class="grid_c5Jf"></line><text x="64" y="146" class="tick_sI94" text-anchor="end">50 ms</text></g><g><line x1="72" x2="284" y1="94" y2="94" class="grid_c5Jf"></line><text x="64" y="98" class="tick_sI94" text-anchor="end">75 ms</text></g><g><line x1="72" x2="284" y1="46" y2="46" class="grid_c5Jf"></line><text x="64" y="50" class="tick_sI94" text-anchor="end">100 ms</text></g><text x="72" y="254" class="tick_sI94" text-anchor="middle">0.5</text><text x="125" y="254" class="tick_sI94" text-anchor="middle">1</text><text x="178" y="254" class="tick_sI94" text-anchor="middle">2</text><text x="231" y="254" class="tick_sI94" text-anchor="middle">4</text><text x="284" y="254" class="tick_sI94" text-anchor="middle">8 rps</text><g><path d="M72 84.976L125 95.15199999999999L178 97.84L231 96.88L284 87.28" class="line_lZjD linePale_oXGE"></path><circle cx="72" cy="84.976" r="2.8" class="fillPale_WfM3"></circle><circle cx="125" cy="95.15199999999999" r="2.8" class="fillPale_WfM3"></circle><circle cx="178" cy="97.84" r="2.8" class="fillPale_WfM3"></circle><circle cx="231" cy="96.88" r="2.8" class="fillPale_WfM3"></circle><circle cx="284" cy="87.28" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M72 159.28L125 161.776L178 166.96L231 170.99200000000002L284 170.8" class="line_lZjD lineGray_sJqg"></path><circle cx="72" cy="159.28" r="2.8" class="fillGray_X3rW"></circle><circle cx="125" cy="161.776" r="2.8" class="fillGray_X3rW"></circle><circle cx="178" cy="166.96" r="2.8" class="fillGray_X3rW"></circle><circle cx="231" cy="170.99200000000002" r="2.8" class="fillGray_X3rW"></circle><circle cx="284" cy="170.8" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M72 198.64L125 198.064L178 199.216L231 199.792L284 199.6" class="line_lZjD lineRs_rJNs"></path><circle cx="72" cy="198.64" r="3.4" class="fillRs_C3SZ"></circle><circle cx="125" cy="198.064" r="3.4" class="fillRs_C3SZ"></circle><circle cx="178" cy="199.216" r="3.4" class="fillRs_C3SZ"></circle><circle cx="231" cy="199.792" r="3.4" class="fillRs_C3SZ"></circle><circle cx="284" cy="199.6" r="3.4" class="fillRs_C3SZ"></circle></g><text x="294" y="91.28" class="s_rDTz tPale_etf6">Portkey</text><text x="294" y="174.8" class="s_rDTz tGray_UmVz">Bifrost</text><text x="294" y="203.6" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text></g><g><text x="400" y="26" class="t_aZyi">First-byte overhead, p99</text><g><line x1="452" x2="664" y1="238" y2="238" class="grid_c5Jf"></line><text x="444" y="242" class="tick_sI94" text-anchor="end">0 ms</text></g><g><line x1="452" x2="664" y1="190" y2="190" class="grid_c5Jf"></line><text x="444" y="194" class="tick_sI94" text-anchor="end">50 ms</text></g><g><line x1="452" x2="664" y1="142" y2="142" class="grid_c5Jf"></line><text x="444" y="146" class="tick_sI94" text-anchor="end">100 ms</text></g><g><line x1="452" x2="664" y1="94" y2="94" class="grid_c5Jf"></line><text x="444" y="98" class="tick_sI94" text-anchor="end">150 ms</text></g><g><line x1="452" x2="664" y1="46" y2="46" class="grid_c5Jf"></line><text x="444" y="50" class="tick_sI94" text-anchor="end">200 ms</text></g><text x="452" y="254" class="tick_sI94" text-anchor="middle">0.5</text><text x="505" y="254" class="tick_sI94" text-anchor="middle">1</text><text x="558" y="254" class="tick_sI94" text-anchor="middle">2</text><text x="611" y="254" class="tick_sI94" text-anchor="middle">4</text><text x="664" y="254" class="tick_sI94" text-anchor="middle">8 rps</text><g><path d="M452 128.176L505 133.072L558 104.75199999999998L611 99.56800000000001L664 58.096000000000004" class="line_lZjD linePale_oXGE"></path><circle cx="452" cy="128.176" r="2.8" class="fillPale_WfM3"></circle><circle cx="505" cy="133.072" r="2.8" class="fillPale_WfM3"></circle><circle cx="558" cy="104.75199999999998" r="2.8" class="fillPale_WfM3"></circle><circle cx="611" cy="99.56800000000001" r="2.8" class="fillPale_WfM3"></circle><circle cx="664" cy="58.096000000000004" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M452 148.336L505 159.088L558 153.61599999999999L611 162.64L664 152.464" class="line_lZjD lineGray_sJqg"></path><circle cx="452" cy="148.336" r="2.8" class="fillGray_X3rW"></circle><circle cx="505" cy="159.088" r="2.8" class="fillGray_X3rW"></circle><circle cx="558" cy="153.61599999999999" r="2.8" class="fillGray_X3rW"></circle><circle cx="611" cy="162.64" r="2.8" class="fillGray_X3rW"></circle><circle cx="664" cy="152.464" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M452 206.512L505 204.208L558 206.704L611 207.56799999999998L664 208.816" class="line_lZjD lineRs_rJNs"></path><circle cx="452" cy="206.512" r="3.4" class="fillRs_C3SZ"></circle><circle cx="505" cy="204.208" r="3.4" class="fillRs_C3SZ"></circle><circle cx="558" cy="206.704" r="3.4" class="fillRs_C3SZ"></circle><circle cx="611" cy="207.56799999999998" r="3.4" class="fillRs_C3SZ"></circle><circle cx="664" cy="208.816" r="3.4" class="fillRs_C3SZ"></circle></g><text x="674" y="62.096000000000004" class="s_rDTz tPale_etf6">Portkey</text><text x="674" y="156.464" class="s_rDTz tGray_UmVz">Bifrost</text><text x="674" y="212.816" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text></g><g><text x="20" y="286" class="t_aZyi">Peak memory</text><g><line x1="72" x2="664" y1="498" y2="498" class="grid_c5Jf"></line><text x="64" y="502" class="tick_sI94" text-anchor="end">0 GiB</text></g><g><line x1="72" x2="664" y1="434" y2="434" class="grid_c5Jf"></line><text x="64" y="438" class="tick_sI94" text-anchor="end">5 GiB</text></g><g><line x1="72" x2="664" y1="370" y2="370" class="grid_c5Jf"></line><text x="64" y="374" class="tick_sI94" text-anchor="end">10 GiB</text></g><g><line x1="72" x2="664" y1="306" y2="306" class="grid_c5Jf"></line><text x="64" y="310" class="tick_sI94" text-anchor="end">15 GiB</text></g><text x="72" y="514" class="tick_sI94" text-anchor="middle">0.5</text><text x="220" y="514" class="tick_sI94" text-anchor="middle">1</text><text x="368" y="514" class="tick_sI94" text-anchor="middle">2</text><text x="516" y="514" class="tick_sI94" text-anchor="middle">4</text><text x="664" y="514" class="tick_sI94" text-anchor="middle">8 rps</text><g><path d="M72 489.04L220 483.92L368 478.8L516 469.84L664 445.52" class="line_lZjD linePale_oXGE"></path><circle cx="72" cy="489.04" r="2.8" class="fillPale_WfM3"></circle><circle cx="220" cy="483.92" r="2.8" class="fillPale_WfM3"></circle><circle cx="368" cy="478.8" r="2.8" class="fillPale_WfM3"></circle><circle cx="516" cy="469.84" r="2.8" class="fillPale_WfM3"></circle><circle cx="664" cy="445.52" r="2.8" class="fillPale_WfM3"></circle></g><g><path d="M72 476.24L220 460.88L368 436.56L516 402L664 323.92" class="line_lZjD lineGray_sJqg"></path><circle cx="72" cy="476.24" r="2.8" class="fillGray_X3rW"></circle><circle cx="220" cy="460.88" r="2.8" class="fillGray_X3rW"></circle><circle cx="368" cy="436.56" r="2.8" class="fillGray_X3rW"></circle><circle cx="516" cy="402" r="2.8" class="fillGray_X3rW"></circle><circle cx="664" cy="323.92" r="2.8" class="fillGray_X3rW"></circle></g><g><path d="M72 495.44L220 495.44L368 494.16L516 492.88L664 490.32" class="line_lZjD lineRs_rJNs"></path><circle cx="72" cy="495.44" r="3.4" class="fillRs_C3SZ"></circle><circle cx="220" cy="495.44" r="3.4" class="fillRs_C3SZ"></circle><circle cx="368" cy="494.16" r="3.4" class="fillRs_C3SZ"></circle><circle cx="516" cy="492.88" r="3.4" class="fillRs_C3SZ"></circle><circle cx="664" cy="490.32" r="3.4" class="fillRs_C3SZ"></circle></g><text x="674" y="327.92" class="s_rDTz tGray_UmVz">Bifrost</text><text x="674" y="449.52" class="s_rDTz tPale_etf6">Portkey</text><text x="674" y="494.32" class="s_rDTz tRs_gOUt bold_kqaQ">LiteLLM Rust</text></g></svg></div></div><figcaption>Basic features; Portkey has none. Three minutes per rate, 4 cores and 16 GiB per pod. First byte includes moving 4 MB over two hops, with no direct-to-mock run subtracted. Portkey served 99.85% at 4 rps; every other point served 100%.</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-we-did-to-achieve-these-benchmarks">What we did to achieve these benchmarks<a href="https://docs.litellm.ai/blog/better-benchmarks#what-we-did-to-achieve-these-benchmarks" class="hash-link" aria-label="Direct link to What we did to achieve these benchmarks" title="Direct link to What we did to achieve these benchmarks">​</a></h2>
<p>Everyone will say that the first three things to do if you want to improve performance is to measure, measure, and measure again. Following that logic, we have the following waterfalls of a Python Hot vs Cold path timing. These are generated by profiling a request, then scaling it to the average duration of such a request.</p>
<figure class="fig_BUVG"><div class="art_EROj"><div class="head__hRP"><span class="eyebrow_wpEb"><span class="num_uONl">04</span>ONE NON-STREAMED CHAT COMPLETION</span><p class="title_IYlF">Where a request spends its time</p></div><div class="scroll_Fb5g"><svg class="svg_Q2vf" viewBox="0 0 760 350" role="img" aria-label="One request through each gateway, split into auth, limits and hooks, building the request and calling the provider, and everything else. LiteLLM Python with a cached key: 7.5, 2.8, 18.7 and 4.8 ms, 33.7 ms in all. LiteLLM Python with an uncached key: 20.0, 5.6, 18.8 and 7.1 ms, 51.5 ms in all. LiteLLM Rust with a cached key: 0.14, 0.71, 0.79 and 0.08 ms, 1.7 ms in all. LiteLLM Rust with an uncached key: 2.72, 0.59, 0.79 and 0.08 ms, 4.2 ms in all. A second scale enlarges the two LiteLLM Rust requests twelve times."><defs><marker id="bb-phase-head" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0L10 5L0 10Z" class="headSoft_PGCJ"></path></marker></defs><text x="20" y="20" class="e_NTV6">ALL FOUR · SAME SCALE</text><g><g><line x1="200" x2="200" y1="30" y2="166" class="grid_c5Jf"></line><text x="200" y="180" class="tick_sI94" text-anchor="middle">0</text></g><g><line x1="287.27272727272725" x2="287.27272727272725" y1="30" y2="166" class="grid_c5Jf"></line><text x="287.27272727272725" y="180" class="tick_sI94" text-anchor="middle">10</text></g><g><line x1="374.54545454545456" x2="374.54545454545456" y1="30" y2="166" class="grid_c5Jf"></line><text x="374.54545454545456" y="180" class="tick_sI94" text-anchor="middle">20</text></g><g><line x1="461.8181818181818" x2="461.8181818181818" y1="30" y2="166" class="grid_c5Jf"></line><text x="461.8181818181818" y="180" class="tick_sI94" text-anchor="middle">30</text></g><g><line x1="549.0909090909091" x2="549.0909090909091" y1="30" y2="166" class="grid_c5Jf"></line><text x="549.0909090909091" y="180" class="tick_sI94" text-anchor="middle">40</text></g><g><line x1="636.3636363636364" x2="636.3636363636364" y1="30" y2="166" class="grid_c5Jf"></line><text x="636.3636363636364" y="180" class="tick_sI94" text-anchor="middle">50 ms</text></g><g><text x="190" y="51" class="s_rDTz" text-anchor="end">LiteLLM Python, cached key</text><rect x="200" y="36" width="65.30618181818181" height="20" class="seg_fL3O fillPy_vC7Y"></rect><rect x="265.3061818181818" y="36" width="24.157090909090925" height="20" class="seg_fL3O fillPy_vC7Y ph1_V5uZ"></rect><rect x="289.46327272727274" y="36" width="162.8683636363636" height="20" class="seg_fL3O fillPy_vC7Y ph2_gx0B"></rect><rect x="452.33163636363633" y="36" width="41.71636363636361" height="20" class="seg_fL3O fillPy_vC7Y ph3_E_Wy"></rect><text x="502.04799999999994" y="51" class="val_hJiv tPy_Lr4T">33.7<!-- --> ms</text></g><g><text x="190" y="85" class="s_rDTz" text-anchor="end">LiteLLM Python, uncached key</text><rect x="200" y="70" width="174.44945454545456" height="20" class="seg_fL3O fillPy_vC7Y"></rect><rect x="374.44945454545456" y="70" width="48.802909090909054" height="20" class="seg_fL3O fillPy_vC7Y ph1_V5uZ"></rect><rect x="423.2523636363636" y="70" width="164.4305454545455" height="20" class="seg_fL3O fillPy_vC7Y ph2_gx0B"></rect><rect x="587.6829090909091" y="70" width="62.12072727272721" height="20" class="seg_fL3O fillPy_vC7Y ph3_E_Wy"></rect><text x="657.8036363636363" y="85" class="val_hJiv tPy_Lr4T">51.5<!-- --> ms</text></g><g><text x="190" y="119" class="s_rDTz tRs_gOUt" text-anchor="end">LiteLLM Rust, cached key</text><rect x="200" y="104" width="1.2479999999999905" height="20" class="seg_fL3O fillRs_C3SZ"></rect><rect x="201.248" y="104" width="6.213818181818198" height="20" class="seg_fL3O fillRs_C3SZ ph1_V5uZ"></rect><rect x="207.4618181818182" y="104" width="6.885818181818166" height="20" class="seg_fL3O fillRs_C3SZ ph2_gx0B"></rect><rect x="214.34763636363635" y="104" width="0.7243636363636483" height="20" class="seg_fL3O fillRs_C3SZ ph3_E_Wy"></rect><text x="223.072" y="119" class="val_hJiv tRs_gOUt">1.7<!-- --> ms</text></g><g><text x="190" y="153" class="s_rDTz tRs_gOUt" text-anchor="end">LiteLLM Rust, uncached key</text><rect x="200" y="138" width="23.73818181818183" height="20" class="seg_fL3O fillRs_C3SZ"></rect><rect x="223.73818181818183" y="138" width="5.1665454545454566" height="20" class="seg_fL3O fillRs_C3SZ ph1_V5uZ"></rect><rect x="228.90472727272729" y="138" width="6.850909090909084" height="20" class="seg_fL3O fillRs_C3SZ ph2_gx0B"></rect><rect x="235.75563636363637" y="138" width="0.6981818181818085" height="20" class="seg_fL3O fillRs_C3SZ ph3_E_Wy"></rect><text x="244.45381818181818" y="153" class="val_hJiv tRs_gOUt">4.2<!-- --> ms</text></g></g><rect x="195" y="100" width="36" height="60" rx="6" class="frame_rEYk"></rect><path d="M213 160V222" class="wireSoft_ZfcJ" marker-end="url(#bb-phase-head)"></path><text x="20" y="220" class="e_NTV6">LITELLM RUST ONLY · 12× ZOOM</text><g><g><line x1="200" x2="200" y1="230" y2="298" class="grid_c5Jf"></line><text x="200" y="312" class="tick_sI94" text-anchor="middle">0</text></g><g><line x1="306.66666666666663" x2="306.66666666666663" y1="230" y2="298" class="grid_c5Jf"></line><text x="306.66666666666663" y="312" class="tick_sI94" text-anchor="middle">1</text></g><g><line x1="413.3333333333333" x2="413.3333333333333" y1="230" y2="298" class="grid_c5Jf"></line><text x="413.3333333333333" y="312" class="tick_sI94" text-anchor="middle">2</text></g><g><line x1="520" x2="520" y1="230" y2="298" class="grid_c5Jf"></line><text x="520" y="312" class="tick_sI94" text-anchor="middle">3</text></g><g><line x1="626.6666666666666" x2="626.6666666666666" y1="230" y2="298" class="grid_c5Jf"></line><text x="626.6666666666666" y="312" class="tick_sI94" text-anchor="middle">4 ms</text></g><g><text x="190" y="251" class="s_rDTz tRs_gOUt" text-anchor="end">LiteLLM Rust, cached key</text><rect x="200" y="236" width="15.25333333333333" height="20" class="seg_fL3O fillRs_C3SZ"></rect><rect x="215.25333333333333" y="236" width="75.94666666666666" height="20" class="seg_fL3O fillRs_C3SZ ph1_V5uZ"></rect><rect x="291.2" y="236" width="84.16000000000003" height="20" class="seg_fL3O fillRs_C3SZ ph2_gx0B"></rect><rect x="375.36" y="236" width="8.853333333333353" height="20" class="seg_fL3O fillRs_C3SZ ph3_E_Wy"></rect><text x="392.21333333333337" y="251" class="val_hJiv tRs_gOUt">1.7<!-- --> ms</text></g><g><text x="190" y="285" class="s_rDTz tRs_gOUt" text-anchor="end">LiteLLM Rust, uncached key</text><rect x="200" y="270" width="290.1333333333333" height="20" class="seg_fL3O fillRs_C3SZ"></rect><rect x="490.1333333333333" y="270" width="63.14666666666665" height="20" class="seg_fL3O fillRs_C3SZ ph1_V5uZ"></rect><rect x="553.28" y="270" width="83.73333333333335" height="20" class="seg_fL3O fillRs_C3SZ ph2_gx0B"></rect><rect x="637.0133333333333" y="270" width="8.533333333333303" height="20" class="seg_fL3O fillRs_C3SZ ph3_E_Wy"></rect><text x="653.5466666666666" y="285" class="val_hJiv tRs_gOUt">4.2<!-- --> ms</text></g></g><g transform="translate(170 330)"><rect y="-10" width="14" height="12" rx="2" class="swatch_qSY8"></rect><text x="20" class="s_rDTz">auth</text></g><g transform="translate(244 330)"><rect y="-10" width="14" height="12" rx="2" class="swatch_qSY8 ph1_V5uZ"></rect><text x="20" class="s_rDTz">limits and hooks</text></g><g transform="translate(380 330)"><rect y="-10" width="14" height="12" rx="2" class="swatch_qSY8 ph2_gx0B"></rect><text x="20" class="s_rDTz">build request, call provider</text></g><g transform="translate(580 330)"><rect y="-10" width="14" height="12" rx="2" class="swatch_qSY8 ph3_E_Wy"></rect><text x="20" class="s_rDTz">everything else</text></g></svg></div></div><figcaption>One pinned core per gateway, all callbacks on. Python phases are VizTracer times scaled to the untraced time of the same request; Rust phases come from in-gateway span timers.</figcaption></figure>
<p>We spend time doing virtual key lookup, auth checks, running pre-call hooks in parallel, and then a lot of time building the request for OpenAI. On the cold path, the same main areas are a pain point for performance.</p>
<ul>
<li>Router deployment cooldowns are kept as an in-memory cache and updated in the background</li>
<li>Auth lookups are kept in an in-process cache, which can be shared in-memory more effectively in Rust than Python because the python workers are forked processes.</li>
<li>Admission hooks run in parallel against Redis instead of serially due to a different callback model that is more explicit about what data gets read and written when</li>
<li>on passthrough requests, we send the body upstream without reserializing when possible</li>
</ul>
<figure class="fig_BUVG"><div class="art_EROj"><div class="head__hRP"><span class="eyebrow_wpEb"><span class="num_uONl">05</span>500K-TOKEN STREAM · 2.45 MB BODY</span><p class="title_IYlF">Heap held per open stream</p></div><div class="scroll_Fb5g"><svg class="svg_Q2vf" viewBox="0 0 760 494" role="img" aria-label="Heap held for each open stream of a 500k-token, 2.45 MB request. LiteLLM Python holds 10.95 MB: the parsed request, 3.22 MB; the raw body, 2.85 MB; a json.dumps copy for logging, 2.45 MB; and the outbound bytes, 2.43 MB; about four and a half copies of the body. Bifrost holds 11.16 MB: the parsed request, 3.59 MB; re-encoded messages, 1.9 MB; trace text, 1.89 MB; a trace summary, 1.88 MB; the outbound body, 1.5 MB; and the inbound read, 0.4 MB. LiteLLM Rust holds 0.47 MB of read buffers and per-call state, and no copy of the body. With S3 logs on, LiteLLM Rust holds 2.92 MB: one copy of the body for the log, 2.45 MB, plus the same buffers."><g><line x1="162.10000000000002" x2="162.10000000000002" y1="30" y2="488" class="guide_QAqK"></line><text x="162.10000000000002" y="22" class="tick_sI94" text-anchor="middle">1<!-- -->×</text></g><g><line x1="304.20000000000005" x2="304.20000000000005" y1="30" y2="488" class="guide_QAqK"></line><text x="304.20000000000005" y="22" class="tick_sI94" text-anchor="middle">2<!-- -->×</text></g><g><line x1="446.3" x2="446.3" y1="30" y2="488" class="guide_QAqK"></line><text x="446.3" y="22" class="tick_sI94" text-anchor="middle">3<!-- -->×</text></g><g><line x1="588.4000000000001" x2="588.4000000000001" y1="30" y2="488" class="guide_QAqK"></line><text x="588.4000000000001" y="22" class="tick_sI94" text-anchor="middle">4<!-- -->×</text></g><text x="616.4000000000001" y="22" class="tick_sI94">copies of the body</text><g><text x="20" y="52" class="t_aZyi">LiteLLM Python</text><g><rect x="21" y="62" width="184.76000000000002" height="50" rx="6" class="segPy_PQy1"></rect><text x="28" y="79" class="segText_sIhL">parsed request</text><text x="28" y="103" class="segSize_rX09 tPy_Lr4T">3.22<!-- --> MB</text></g><g><rect x="207.76000000000002" y="62" width="163.29999999999998" height="50" rx="6" class="segPy_PQy1"></rect><text x="214.76000000000002" y="79" class="segText_sIhL">raw body</text><text x="214.76000000000002" y="103" class="segSize_rX09 tPy_Lr4T">2.85<!-- --> MB</text></g><g><rect x="373.06" y="62" width="140.09999999999997" height="50" rx="6" class="segPy_PQy1"></rect><text x="380.06" y="79" class="segText_sIhL">json.dumps for logging</text><text x="380.06" y="103" class="segSize_rX09 tPy_Lr4T">2.45<!-- --> MB</text></g><g><rect x="515.16" y="62" width="138.93999999999994" height="50" rx="6" class="segPy_PQy1"></rect><text x="522.16" y="79" class="segText_sIhL">outbound bytes</text><text x="522.16" y="103" class="segSize_rX09 tPy_Lr4T">2.43<!-- --> MB</text></g><text x="665.0999999999999" y="92" class="val_hJiv tPy_Lr4T">10.95<!-- --> MB</text></g><g><text x="20" y="148" class="t_aZyi">Bifrost</text><g><rect x="21" y="158" width="206.22" height="50" rx="6" class="segGray_D97O"></rect><text x="28" y="175" class="segText_sIhL">parsed request</text><text x="28" y="199" class="segSize_rX09 tGray_UmVz">3.59<!-- --> MB</text></g><g><rect x="229.22" y="158" width="108.20000000000002" height="50" rx="6" class="segGray_D97O"></rect><text x="236.22" y="169" class="segText_sIhL">re-encoded</text><text x="236.22" y="182" class="segText_sIhL">messages</text><text x="236.22" y="199" class="segSize_rX09 tGray_UmVz">1.9<!-- --> MB</text></g><g><rect x="339.42" y="158" width="107.62" height="50" rx="6" class="segGray_D97O"></rect><text x="346.42" y="175" class="segText_sIhL">trace text</text><text x="346.42" y="199" class="segSize_rX09 tGray_UmVz">1.89<!-- --> MB</text></g><g><rect x="449.04" y="158" width="107.04000000000002" height="50" rx="6" class="segGray_D97O"></rect><text x="456.04" y="175" class="segText_sIhL">trace summary</text><text x="456.04" y="199" class="segSize_rX09 tGray_UmVz">1.88<!-- --> MB</text></g><g><rect x="558.08" y="158" width="85" height="50" rx="6" class="segGray_D97O"></rect><text x="565.08" y="169" class="segText_sIhL">outbound</text><text x="565.08" y="182" class="segText_sIhL">(SetBody)</text><text x="565.08" y="199" class="segSize_rX09 tGray_UmVz">1.5<!-- --> MB</text></g><g><rect x="645.08" y="158" width="21.199999999999932" height="50" rx="6" class="segGray_D97O"></rect></g><text x="677.28" y="188" class="val_hJiv tGray_UmVz">11.16<!-- --> MB</text><g><path d="M655.6800000000001 210V220" class="leader_zAqp"></path><text x="661.6800000000001" y="232" class="segText_sIhL" text-anchor="end">inbound read<!-- --> <tspan class="segSize_rX09 tGray_UmVz">0.4<!-- --> MB</tspan></text></g></g><g><text x="20" y="270" class="t_aZyi tRs_gOUt">LiteLLM Rust</text><g><rect x="21" y="280" width="25.259999999999998" height="50" rx="6" class="segRs_Q12I"></rect></g><text x="57.26" y="310" class="val_hJiv tRs_gOUt">0.47<!-- --> MB</text><g><path d="M33.629999999999995 332V342" class="leader_zAqp"></path><text x="27.629999999999995" y="354" class="segText_sIhL" text-anchor="start">read buffers and per-call state<!-- --> <tspan class="segSize_rX09 tRs_gOUt">0.47<!-- --> MB</tspan></text></g></g><g><text x="20" y="392" class="t_aZyi tRs_gOUt">LiteLLM Rust + S3 logs</text><g><rect x="21" y="402" width="140.10000000000002" height="50" rx="6" class="segRs_Q12I"></rect><text x="28" y="413" class="segText_sIhL">body kept for</text><text x="28" y="426" class="segText_sIhL">the S3 log</text><text x="28" y="443" class="segSize_rX09 tRs_gOUt">2.45<!-- --> MB</text></g><g><rect x="163.10000000000002" y="402" width="25.259999999999962" height="50" rx="6" class="segRs_Q12I"></rect></g><text x="199.35999999999999" y="432" class="val_hJiv tRs_gOUt">2.92<!-- --> MB</text><g><path d="M175.73000000000002 454V464" class="leader_zAqp"></path><text x="169.73000000000002" y="476" class="segText_sIhL" text-anchor="start">read buffers and per-call state<!-- --> <tspan class="segSize_rX09 tRs_gOUt">0.47<!-- --> MB</tspan></text></g></g></svg></div></div><figcaption>Profiled heap allocations, not process RSS: memray for Python, pprof for Bifrost, heaptrack for Rust, one core per gateway. With S3 logs on, Rust keeps one copy of the body for the stream's life.</figcaption></figure>
<p>Rust LiteLLM is able to keep the absolute minimum of information in memory during a request due to efficient libraries and the semantics of dropping memory after it is no longer referenced.
When S3 logging is disabled, it only keeps 0.47MB of state in memory for each 500k token stream.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="benchmark-configuration">Benchmark Configuration<a href="https://docs.litellm.ai/blog/better-benchmarks#benchmark-configuration" class="hash-link" aria-label="Direct link to Benchmark Configuration" title="Direct link to Benchmark Configuration">​</a></h2>
<p>We ran a few different benchmarks, but most of them run on the exact setup, except for the one that includes OpenRouter.</p>
<p>The code to reproduce these runs (the load-test kit, the Kubernetes lane, the generated gateway configs and the data behind every chart) is in <a href="https://github.com/BerriAI/ai-gateway-bench" target="_blank" rel="noopener noreferrer">BerriAI/ai-gateway-bench</a>: see <a href="https://github.com/BerriAI/ai-gateway-bench/tree/main/lanes/k8s" target="_blank" rel="noopener noreferrer"><code>lanes/k8s</code></a> for how to run it and <a href="https://github.com/BerriAI/ai-gateway-bench/tree/main/results/better-benchmarks" target="_blank" rel="noopener noreferrer"><code>results/better-benchmarks</code></a> for the data.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="general-benchmarks">General Benchmarks<a href="https://docs.litellm.ai/blog/better-benchmarks#general-benchmarks" class="hash-link" aria-label="Direct link to General Benchmarks" title="Direct link to General Benchmarks">​</a></h3>
<ul>
<li>Where: Kubernetes on AWS, every pod on m7i.4xlarge nodes (one instance type, so all gateways get the same CPU). Buildkite pipeline <code>litellm-rust-perf</code>.</li>
<li>Gateway pods: one replica per gateway, 4 dedicated cores and 16 GiB each (requests equal to limits). The mock upstream, an S3 stub, Postgres and the load generator run in their own pods in the same cluster.</li>
<li>Versions:<!-- -->
<ul>
<li>LiteLLM Rust: built with fat LTO from commit <code>5990e10f</code> (the <code>litellm_customer_proxy</code> gateway plus the load-test kit).</li>
<li>LiteLLM Python: the proxy image from the same commit, 4 workers.</li>
<li>Bifrost: the published v2.3.0 image (<code>maximhq/bifrost@sha256:d9caa7c5…</code>).</li>
<li>Portkey: the published open-source gateway 1.15.2 (<code>portkeyai/gateway@sha256:552b5399…</code>), run as 4 Node.js processes with Node's cluster module, since one process uses about one core.</li>
</ul>
</li>
<li>Mock upstream: OpenAI chat completions, Anthropic messages and Bedrock invoke, each with a scripted time to first token and total time.</li>
<li>Request mix, the same requests in the same order for every gateway:<!-- -->
<ul>
<li>half <code>/v1/chat/completions</code> and half <code>/v1/messages</code>, half of each streamed;</li>
<li>context 10k to 50k tokens (log-uniform);</li>
<li>time to first token 200 to 800 ms, total time 1 to 5 s.</li>
</ul>
</li>
<li>Routing: 20 model groups (10 chat, 10 messages) of 4 deployments each, 80 in total. Half of each messages group goes through Bedrock invoke (SigV4 signed). Router: simple-shuffle, 2 retries, 3 allowed fails, 30 s cooldown.</li>
<li>Full features (LiteLLM Rust, LiteLLM Python, Bifrost):<!-- -->
<ul>
<li>each gateway has its own 1,000 virtual keys, 100 users and 10 teams;</li>
<li>every key, user, team and team member has rpm, tpm and a budget, set far above the test's load so nothing is refused;</li>
<li>every key has <code>max_parallel_requests</code>, and every deployment has rpm and tpm;</li>
<li>callbacks: <code>dynamic_rate_limiter_v3</code>, <code>prometheus</code> and <code>s3_v2</code> (into the S3 stub);</li>
<li>four request hooks that forward, add and strip headers and attach spend metadata (Python runs equivalent custom callbacks).</li>
</ul>
</li>
<li>Bifrost: each feature mapped onto Bifrost's own equivalent. It has no shared state across replicas. Its Bedrock calls reach the mock over TLS; the other gateways' do not.</li>
<li>Portkey: no features, because its open-source gateway has no auth, keys, limits, budgets, logs or metrics. Routing comes from an <code>x-portkey-config</code> header per model group (load balance over the same 4 deployments, 2 retries), which Portkey validates on every request. Its Bedrock calls go to the mock over plain HTTP.</li>
<li>Overhead: what the load generator observed minus the time the mock was told to take. First-byte overhead uses time to the first SSE event or first body byte.</li>
<li>Validity: a run counts only if the load generator shed no requests and sent them within 10 ms of schedule (p99). Every run in builds 28 and 29 passed this.</li>
<li>After each run, a checker compares each LiteLLM gateway's spend logs, key, team and user spend, daily tables, Prometheus counters, S3 logs and forwarded headers against what was sent.</li>
<li>Single run of each configuration.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="benchmarking-openrouter">Benchmarking OpenRouter<a href="https://docs.litellm.ai/blog/better-benchmarks#benchmarking-openrouter" class="hash-link" aria-label="Direct link to Benchmarking OpenRouter" title="Direct link to Benchmarking OpenRouter">​</a></h3>
<p>Getting OpenRouter involved in the benchmarks involved a bit of a clunky process, because unless you have an enterprise account with the addon, you <a href="https://openrouter.ai/docs/guides/routing/private-endpoints" target="_blank" rel="noopener noreferrer">cannot use custom endpoints</a>, which is what we use to take the randomness of normal model serving out of the benchmarks. The amount of noise in large requests to a model like Opus will drown out performance differences unless you run a massive sample size. For that reason, we wanted to find a way around the custom endpoints.</p>
<p>It is not guaranteed that this method will last now that we have made it public, but there is a way to run a performance test against a mock upstream with OpenRouter by leveraging their lax validation of Azure deployments (<code>*.azure.com</code>). You can configure a BYOK key for azure in the legacy fomat and give it a host that is <code>&lt;myprobe&gt;.eastus.cloudapp.azure.com</code> and points to a mock provider that you run in azure cloud. Then, you need to load a little bit of OpenRouter usage credits so that the <a href="https://openrouter.ai/docs/guides/best-practices/latency-and-performance#credit-balance-checks" target="_blank" rel="noopener noreferrer">low balance doesn't force it to higher coherency</a>.</p>
<p>Once we have that, we can put all of our other providers in the <code>eastus</code> region on Azure, and run a benchmark from our runner, separately placed on eastus. Each of the providers reaches the mock upstream via the public internet. It compares four different test lanes:</p>
<ul>
<li>Direct to the mock provider over public internet</li>
<li>LiteLLM Rust</li>
<li>LiteLLM Python</li>
<li>OpenRouter</li>
</ul>
<p>Because this test is both more challenging to conduct and introduces potential interference from network topology, we used it to get a sense of OpenRouter's latency, but prefer the measurements from other tests.</p>
<p>For this test, we had the following setup:</p>
<ul>
<li>Each self-hosted gateway ran on the same D8s_v4 VM with 2 cores each</li>
<li>8 RPS with poisson arrivals over 20 minutes</li>
<li>50% of requests were streaming, and 500 token prompts</li>
<li>LiteLLM and Bifrost were run with their full-featured configs</li>
</ul>]]></content>
        <author>
            <name>Nate Armstrong</name>
            <uri>https://www.linkedin.com/in/naterarmstrong/</uri>
        </author>
        <category label="rust" term="rust"/>
        <category label="rust-migration" term="rust-migration"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="performance" term="performance"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing LiteLLM Customer Portal]]></title>
        <id>https://docs.litellm.ai/blog/customer-portal</id>
        <link href="https://docs.litellm.ai/blog/customer-portal"/>
        <updated>2026-11-13T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[Track customer spend and set organization, team, and member budgets with LiteLLM AI Gateway. Use the APIs to build these controls into your product.]]></summary>
        <content type="html"><![CDATA[<section class="hero_uiKZ" data-full-width="true" aria-labelledby="customer-portal-title"><div class="canvas_h1OF"><header class="heading_MqKo"><p class="eyebrow_V8CS">LiteLLM AI Gateway</p><h1 id="customer-portal-title">Customer Portal</h1><p class="subtitle_fgAx">Budget and charge your agent's customers.</p></header><svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080" role="img" aria-label="Agent requests flow through LiteLLM into a customer portal. Each highlighted illustrative request adds 50 cents to Acme, Support, and Alice's views of the same usage, against their own budgets." class="scene_QqN7" style="display:block;width:100%;height:auto"><defs><radialGradient id="customer-portal-field"><stop offset="0" stop-color="white" stop-opacity="0.9"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></radialGradient><pattern id="customer-portal-pixels" width="224" height="224" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="2" height="2" fill="#51565e" opacity="0.51"></rect><rect x="16" y="0" width="5" height="5" fill="#51565e" opacity="0.27"></rect><rect x="64" y="0" width="2" height="2" fill="#51565e" opacity="0.52"></rect><rect x="80" y="0" width="5" height="5" fill="#51565e" opacity="0.28"></rect><rect x="128" y="0" width="2" height="2" fill="#51565e" opacity="0.53"></rect><rect x="144" y="0" width="2" height="2" fill="#51565e" opacity="0.29000000000000004"></rect><rect x="192" y="0" width="2" height="2" fill="#51565e" opacity="0.54"></rect><rect x="208" y="0" width="2" height="2" fill="#51565e" opacity="0.30000000000000004"></rect><rect x="32" y="16" width="2" height="2" fill="#51565e" opacity="0.55"></rect><rect x="48" y="16" width="2" height="2" fill="#51565e" opacity="0.31"></rect><rect x="112" y="16" width="2" height="2" fill="#51565e" opacity="0.32"></rect><rect x="176" y="16" width="2" height="2" fill="#51565e" opacity="0.33"></rect><rect x="16" y="32" width="2" height="2" fill="#51565e" opacity="0.34"></rect><rect x="80" y="32" width="2" height="2" fill="#51565e" opacity="0.35"></rect><rect x="144" y="32" width="2" height="2" fill="#51565e" opacity="0.36"></rect><rect x="208" y="32" width="2" height="2" fill="#51565e" opacity="0.37"></rect><rect x="48" y="48" width="2" height="2" fill="#51565e" opacity="0.38"></rect><rect x="112" y="48" width="2" height="2" fill="#51565e" opacity="0.39"></rect><rect x="176" y="48" width="2" height="2" fill="#51565e" opacity="0.4"></rect><rect x="16" y="64" width="2" height="2" fill="#51565e" opacity="0.41000000000000003"></rect><rect x="80" y="64" width="2" height="2" fill="#51565e" opacity="0.42000000000000004"></rect><rect x="144" y="64" width="2" height="2" fill="#51565e" opacity="0.43000000000000005"></rect><rect x="208" y="64" width="2" height="2" fill="#51565e" opacity="0.44"></rect><rect x="0" y="80" width="5" height="5" fill="#51565e" opacity="0.2"></rect><rect x="48" y="80" width="2" height="2" fill="#51565e" opacity="0.45"></rect><rect x="64" y="80" width="5" height="5" fill="#51565e" opacity="0.21000000000000002"></rect><rect x="112" y="80" width="2" height="2" fill="#51565e" opacity="0.46"></rect><rect x="128" y="80" width="5" height="5" fill="#51565e" opacity="0.22"></rect><rect x="176" y="80" width="2" height="2" fill="#51565e" opacity="0.47000000000000003"></rect><rect x="192" y="80" width="5" height="5" fill="#51565e" opacity="0.23"></rect><rect x="16" y="96" width="2" height="2" fill="#51565e" opacity="0.48000000000000004"></rect><rect x="32" y="96" width="5" height="5" fill="#51565e" opacity="0.24000000000000002"></rect><rect x="80" y="96" width="2" height="2" fill="#51565e" opacity="0.49"></rect><rect x="96" y="96" width="5" height="5" fill="#51565e" opacity="0.25"></rect><rect x="144" y="96" width="2" height="2" fill="#51565e" opacity="0.5"></rect><rect x="160" y="96" width="5" height="5" fill="#51565e" opacity="0.26"></rect><rect x="208" y="96" width="2" height="2" fill="#51565e" opacity="0.51"></rect><rect x="0" y="112" width="5" height="5" fill="#51565e" opacity="0.27"></rect><rect x="48" y="112" width="2" height="2" fill="#51565e" opacity="0.52"></rect><rect x="64" y="112" width="5" height="5" fill="#51565e" opacity="0.28"></rect><rect x="112" y="112" width="2" height="2" fill="#51565e" opacity="0.53"></rect><rect x="128" y="112" width="2" height="2" fill="#51565e" opacity="0.29000000000000004"></rect><rect x="176" y="112" width="2" height="2" fill="#51565e" opacity="0.54"></rect><rect x="192" y="112" width="2" height="2" fill="#51565e" opacity="0.30000000000000004"></rect><rect x="16" y="128" width="2" height="2" fill="#51565e" opacity="0.55"></rect><rect x="32" y="128" width="2" height="2" fill="#51565e" opacity="0.31"></rect><rect x="96" y="128" width="2" height="2" fill="#51565e" opacity="0.32"></rect><rect x="160" y="128" width="2" height="2" fill="#51565e" opacity="0.33"></rect><rect x="0" y="144" width="2" height="2" fill="#51565e" opacity="0.34"></rect><rect x="64" y="144" width="2" height="2" fill="#51565e" opacity="0.35"></rect><rect x="128" y="144" width="2" height="2" fill="#51565e" opacity="0.36"></rect><rect x="192" y="144" width="2" height="2" fill="#51565e" opacity="0.37"></rect><rect x="32" y="160" width="2" height="2" fill="#51565e" opacity="0.38"></rect><rect x="96" y="160" width="2" height="2" fill="#51565e" opacity="0.39"></rect><rect x="160" y="160" width="2" height="2" fill="#51565e" opacity="0.4"></rect><rect x="0" y="176" width="2" height="2" fill="#51565e" opacity="0.41000000000000003"></rect><rect x="64" y="176" width="2" height="2" fill="#51565e" opacity="0.42000000000000004"></rect><rect x="128" y="176" width="2" height="2" fill="#51565e" opacity="0.43000000000000005"></rect><rect x="192" y="176" width="2" height="2" fill="#51565e" opacity="0.44"></rect><rect x="208" y="176" width="5" height="5" fill="#51565e" opacity="0.2"></rect><rect x="32" y="192" width="2" height="2" fill="#51565e" opacity="0.45"></rect><rect x="48" y="192" width="5" height="5" fill="#51565e" opacity="0.21000000000000002"></rect><rect x="96" y="192" width="2" height="2" fill="#51565e" opacity="0.46"></rect><rect x="112" y="192" width="5" height="5" fill="#51565e" opacity="0.22"></rect><rect x="160" y="192" width="2" height="2" fill="#51565e" opacity="0.47000000000000003"></rect><rect x="176" y="192" width="5" height="5" fill="#51565e" opacity="0.23"></rect><rect x="0" y="208" width="2" height="2" fill="#51565e" opacity="0.48000000000000004"></rect><rect x="16" y="208" width="5" height="5" fill="#51565e" opacity="0.24000000000000002"></rect><rect x="64" y="208" width="2" height="2" fill="#51565e" opacity="0.49"></rect><rect x="80" y="208" width="5" height="5" fill="#51565e" opacity="0.25"></rect><rect x="128" y="208" width="2" height="2" fill="#51565e" opacity="0.5"></rect><rect x="144" y="208" width="5" height="5" fill="#51565e" opacity="0.26"></rect><rect x="192" y="208" width="2" height="2" fill="#51565e" opacity="0.51"></rect><rect x="208" y="208" width="5" height="5" fill="#51565e" opacity="0.27"></rect></pattern><mask id="customer-portal-pixel-mask"><ellipse cx="320" cy="730" rx="530" ry="410" fill="url(#customer-portal-field)"></ellipse><ellipse cx="1630" cy="240" rx="460" ry="400" fill="url(#customer-portal-field)"></ellipse><ellipse cx="1100" cy="1020" rx="700" ry="260" fill="url(#customer-portal-field)"></ellipse></mask><filter id="customer-portal-glow" x="-100%" y="-200%" width="300%" height="500%"><feGaussianBlur stdDeviation="4"></feGaussianBlur></filter><filter id="customer-portal-gateway-bloom" x="-60%" y="-150%" width="220%" height="400%"><feGaussianBlur stdDeviation="20"></feGaussianBlur></filter></defs><rect width="100%" height="100%" fill="#020304"></rect><rect width="100%" height="100%" fill="url(#customer-portal-pixels)" mask="url(#customer-portal-pixel-mask)" opacity="0.72"></rect><g stroke="#383e47" stroke-width="0.7" opacity="0.5"><path d="M72,0 V1180"></path><path d="M520,0 V1180"></path><path d="M1235,0 V1180"></path><path d="M1855,0 V1180"></path><path d="M0,80 H1920" stroke-dasharray="3 8"></path><path d="M0,277 H1920" stroke-dasharray="3 8"></path><path d="M0,1015 H1920" stroke-dasharray="3 8"></path></g><g><g fill="none" stroke="#d8dce4" stroke-width="0.85" opacity="0.66"><path d="M-70,315 C270,330 368,556.8 540,556.8"></path><path d="M-70,337 C270,352 368,559.2 540,559.2"></path><path d="M-70,359 C270,374 368,561.6 540,561.6"></path><path d="M-70,381 C270,396 368,564 540,564"></path><path d="M-70,403 C270,418 368,566.4 540,566.4"></path><path d="M-70,425 C270,440 368,568.8 540,568.8"></path><path d="M-70,447 C270,462 368,571.2 540,571.2"></path><path d="M-70,469 C270,484 368,573.6 540,573.6"></path><path d="M-70,491 C270,506 368,576 540,576"></path><path d="M-70,513 C270,528 368,578.4 540,578.4"></path><path d="M-70,535 C270,550 368,580.8 540,580.8"></path><path d="M-70,557 C270,572 368,583.2 540,583.2"></path><path d="M-70,579 C270,594 368,585.6 540,585.6"></path><path d="M-70,601 C270,616 368,588 540,588"></path><path d="M-70,623 C270,638 368,590.4 540,590.4"></path><path d="M-70,645 C270,660 368,592.8 540,592.8"></path><path d="M-70,667 C270,682 368,595.2 540,595.2"></path><path d="M-70,689 C270,704 368,597.6 540,597.6"></path><path d="M-70,711 C270,726 368,600 540,600"></path><path d="M-70,733 C270,748 368,602.4 540,602.4"></path><path d="M-70,755 C270,770 368,604.8 540,604.8"></path><path d="M-70,777 C270,792 368,607.2 540,607.2"></path><path d="M-70,799 C270,814 368,609.6 540,609.6"></path><path d="M-70,821 C270,836 368,612 540,612"></path><path d="M-70,843 C270,858 368,614.4 540,614.4"></path><path d="M-70,865 C270,880 368,616.8 540,616.8"></path><path d="M-70,887 C270,902 368,619.2 540,619.2"></path><path d="M846,568 C1030,574 1040,488 1235,488"></path><path d="M846,571 C1030,574 1040,496 1235,496"></path><path d="M846,574 C1030,574 1040,504 1235,504"></path><path d="M846,577 C1030,574 1040,512 1235,512"></path><path d="M846,580 C1030,574 1040,520 1235,520"></path><path d="M846,582 C1030,588 1040,643 1235,643"></path><path d="M846,585 C1030,588 1040,651 1235,651"></path><path d="M846,588 C1030,588 1040,659 1235,659"></path><path d="M846,591 C1030,588 1040,667 1235,667"></path><path d="M846,594 C1030,588 1040,675 1235,675"></path><path d="M846,596 C1030,602 1040,798 1235,798"></path><path d="M846,599 C1030,602 1040,806 1235,806"></path><path d="M846,602 C1030,602 1040,814 1235,814"></path><path d="M846,605 C1030,602 1040,822 1235,822"></path><path d="M846,608 C1030,602 1040,830 1235,830"></path></g><rect x="53" y="565" width="235" height="42" fill="#020304"></rect><text x="65" y="594" fill="#f4f5f7" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" font-size="24">Agent traffic</text><rect x="529" y="548" width="334" height="88" fill="#020304"></rect><ellipse cx="695" cy="588" rx="190" ry="44" fill="#174bff" opacity="0.044285714285714296" filter="url(#customer-portal-gateway-bloom)"></ellipse><image href="/img/brand/litellm-logo-white.png" x="540" y="558" width="310" height="58" preserveAspectRatio="xMidYMid meet"></image><text x="695" y="676" text-anchor="middle" font-family="Geist, Arial, Helvetica, sans-serif" fill="#f4f5f7" font-size="31">AI Gateway</text><text x="695" y="713" text-anchor="middle" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#b6beca" font-size="18">Meter cost · Apply budgets</text><rect x="979" y="566" width="221" height="45" fill="#020304"></rect><text x="995" y="598" fill="#f4f5f7" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" font-size="25">{ }<!-- --> Usage API</text><text x="1263" y="307" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#b8bfca" font-size="21">Customer Portal</text><g><g opacity="0"><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M-70,315 L-70,315" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(-70 315) rotate(2.5261169116195554)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.06598630751343353"><path d="M-70,425 L-70,425" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M-70,425 L-70,425" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M-70,425 L-60.03191710179285,425.4756907049762" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M-60.03191710179285,425.4756907049762 L-48.630168024155466,426.1092598715026" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M-48.630168024155466,426.1092598715026 L-37.4128006452547,426.82796727398613" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M-37.4128006452547,426.82796727398613 L-26.376984784332553,427.6296401217564" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M-26.376984784332553,427.6296401217564 L-15.519890260630998,428.51210562414263" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(-15.519890260630998 428.51210562414263) rotate(4.894381526256783)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.1299676544637541"><path d="M-38.95984741838136,536.4444752768177 L-27.898985311913368,536.9964746120081" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M-27.898985311913368,536.9964746120081 L-17.01723762332682,537.5593024735348" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M-17.01723762332682,537.5593024735348 L-6.311774171863696,538.132541499299" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M-6.311774171863696,538.132541499299 L4.220235223234023,538.715774327201" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M4.220235223234023,538.715774327201 L14.581620742724365,539.3085835951417" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M14.581620742724365,539.3085835951417 L24.775212567365323,539.9105519410223" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M24.775212567365323,539.9105519410223 L34.80384087791494,540.5212620027434" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(34.80384087791494 540.5212620027434) rotate(3.537596072609013)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.18999999999999997"><path d="M13.152637629629627,647.1450138666667 L23.36936489104847,647.1823583144799" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M23.36936489104847,647.1823583144799 L33.42073555771515,647.1667698736637" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M33.42073555771515,647.1667698736637 L43.30957981038763,647.09958661069" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M43.30957981038763,647.09958661069 L53.03872782982399,646.9821465920311" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M53.03872782982399,646.9821465920311 L62.6110097967822,646.8157878841594" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M62.6110097967822,646.8157878841594 L72.0292558920203,646.6018485535473" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M72.0292558920203,646.6018485535473 L81.29629629629629,646.3416666666667" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(81.29629629629629 646.3416666666667) rotate(-1.7624822627556258)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.24425929168088492"><path d="M61.29080168998626,751.4588270792865 L70.73027241323433,750.404424576231" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M70.73027241323433,750.404424576231 L80.01814436485938,749.250394436246" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M80.01814436485938,749.250394436246 L89.15724772561958,747.9998301543759" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M89.15724772561958,747.9998301543759 L98.15041267627286,746.6558252256639" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M98.15041267627286,746.6558252256639 L107.00046939757723,745.2214731451543" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M107.00046939757723,745.2214731451543 L115.71024807029079,743.6998674078907" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M115.71024807029079,743.6998674078907 L124.28257887517145,742.0941015089164" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(124.28257887517145 742.0941015089164) rotate(-10.959081156542261)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.29109688838521164"><path d="M105.77974764334704,845.4421700587103 L114.50884013530258,842.843372985738" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M114.50884013530258,842.843372985738 L123.1000916787644,840.1153201942035" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M123.1000916787644,840.1153201942035 L131.5563324544906,837.2628606077226" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M131.5563324544906,837.2628606077226 L139.88039264323908,834.2908431499101" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M139.88039264323908,834.2908431499101 L148.07510242576794,831.2041167443815" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M148.07510242576794,831.2041167443815 L156.14329198283525,828.0075303147522" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M156.14329198283525,828.0075303147522 L164.08779149519893,824.7059327846366" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(164.08779149519893 824.7059327846366) rotate(-23.037542015168384)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.32908965343808666"><path d="M146.94457837037032,416.6386631111111 L155.03017093791166,419.13206280790405" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M155.03017093791166,419.13206280790405 L162.99168038008852,421.6787612568838" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M162.99168038008852,421.6787612568838 L170.83193687765896,424.27588349595067" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M170.83193687765896,424.27588349595067 L178.55377061138105,426.9205545630062" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M178.55377061138105,426.9205545630062 L186.16001176201274,429.6098994959507" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M186.16001176201274,429.6098994959507 L193.65349051031203,432.34104333268533" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M193.65349051031203,432.34104333268533 L201.03703703703704,435.1111111111111" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(201.03703703703704 435.1111111111111) rotate(20.829686843753343)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.3570831958986452"><path d="M185.1103967517147,516.9590603566529 L192.61936770172008,518.2356235787672" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M192.61936770172008,518.2356235787672 L200.0180133494903,519.5239108047688" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M200.0180133494903,519.5239108047688 L207.30916387578333,520.8228025011297" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M207.30916387578333,520.8228025011297 L214.49564946135726,522.1311791343228" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M214.49564946135726,522.1311791343228 L221.58030028697004,523.4479211708199" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M221.58030028697004,523.4479211708199 L228.5659465333797,524.7719090770935" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M228.5659465333797,524.7719090770935 L235.45541838134434,526.102023319616" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(235.45541838134434 526.102023319616) rotate(11.022513552448043)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.374226946144639"><path d="M220.60230566803838,603.7030367517149 L227.60153330738615,603.4594492134358" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M227.60153330738615,603.4594492134358 L234.50419346762806,603.2030775974117" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M234.50419346762806,603.2030775974117 L241.31311632952202,602.9345577986859" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M241.31311632952202,602.9345577986859 L248.0311320738261,602.6545257123021" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M248.0311320738261,602.6545257123021 L254.66107088129834,602.3636172333042" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M254.66107088129834,602.3636172333042 L261.20576293269664,602.0624682567358" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M261.20576293269664,602.0624682567358 L267.6680384087791,601.7517146776406" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(267.6680384087791 601.7517146776406) rotate(-2.811171773200244)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.38"><path d="M253.745408,675.0642960000001 L260.3017706355685,673.1216878600582" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M260.3017706355685,673.1216878600582 L266.7753236151603,671.1588542274052" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M266.7753236151603,671.1588542274052 L273.16889711953354,669.1781864256559" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M273.16889711953354,669.1781864256559 L279.48532132944604,667.1820757784255" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M279.48532132944604,667.1820757784255 L285.727426425656,665.1729136093296" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M285.727426425656,665.1729136093296 L291.89804258892127,663.1530912419825" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M291.89804258892127,663.1530912419825 L298,661.125" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(298 661.125) rotate(-18.507751553134906)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.374226946144639"><path d="M284.86480662825795,730.0431261673527 L291.0451825669254,726.3470720289224" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M291.0451825669254,726.3470720289224 L297.15650667274554,722.640417649482" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M297.15650667274554,722.640417649482 L303.2016091264762,718.927309781217" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M303.2016091264762,718.927309781217 L309.1833201088756,715.2118951763148" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M309.1833201088756,715.2118951763148 L315.1044698007015,711.4983205869617" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M315.1044698007015,711.4983205869617 L320.9678883827121,707.790732765344" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M320.9678883827121,707.790732765344 L326.77640603566533,704.0932784636489" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(326.77640603566533 704.0932784636489) rotate(-32.552539769809016)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.35708319589864523"><path d="M314.28560443347055,463.71052862990405 L320.1568719821154,467.35344205489054" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M320.1568719821154,467.35344205489054 L325.9728455210421,470.97716304294795" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M325.9728455210421,470.97716304294795 L331.7363552310086,474.57811446054865" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M331.7363552310086,474.57811446054865 L337.450231292773,478.15271917416493" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M337.450231292773,478.15271917416493 L343.1173038870932,481.697400050269" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M343.1173038870932,481.697400050269 L348.7404031947274,485.2085799553332" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M348.7404031947274,485.2085799553332 L354.3223593964335,488.6826817558299" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(354.3223593964335 488.6826817558299) rotate(31.841505030270582)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.3290896534380867"><path d="M342.3329042962963,529.5945941333333 L347.96194176179677,531.4880640995141" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M347.96194176179677,531.4880640995141 L353.54944304070835,533.3600202137999" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M353.54944304070835,533.3600202137999 L359.098238313789,535.2086407712343" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M359.098238313789,535.2086407712343 L364.6111577617968,537.032104066861" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M364.6111577617968,537.032104066861 L370.09103156548963,538.8285883957241" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M370.09103156548963,538.8285883957241 L375.5406899056257,540.5962720528669" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M375.5406899056257,540.5962720528669 L380.96296296296293,542.3333333333333" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(380.96296296296293 542.3333333333333) rotate(17.649458040286607)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.29109688838521164"><path d="M369.3318090973937,579.2379342595336 L374.7854947866281,579.4768687034166" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M374.7854947866281,579.4768687034166 L380.2114021124028,579.7090345471051" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M380.2114021124028,579.7090345471051 L385.612361255476,579.9343655142145" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M385.612361255476,579.9343655142145 L390.99120239660544,580.15279532836" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M390.99120239660544,580.15279532836 L396.35075571654926,580.3642577131563" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M396.35075571654926,580.3642577131563 L401.6938513960655,580.5686863922191" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M401.6938513960655,580.5686863922191 L407.0233196159122,580.7660150891633" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(407.0233196159122 580.7660150891633) rotate(2.08440579106197)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.244259291680885"><path d="M395.6074217174212,613.7782856340193 L400.9526339372678,612.5820369365568" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M400.9526339372678,612.5820369365568 L406.28382561678404,611.4108315572673" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M406.28382561678404,611.4108315572673 L411.60382693672784,610.2663586483374" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M411.60382693672784,610.2663586483374 L416.91546807785744,609.1503073619535" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M416.91546807785744,609.1503073619535 L422.22157922093044,608.0643668503026" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M422.22157922093044,608.0643668503026 L427.5249905467052,607.010226265571" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M427.5249905467052,607.010226265571 L432.82853223593963,605.9895747599452" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(432.82853223593963 605.9895747599452) rotate(-10.710832512472678)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.18999999999999997"><path d="M421.4848450370371,635.1599692444444 L426.78846209437427,632.8723342310334" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M426.78846209437427,632.8723342310334 L432.0918164345103,630.6586211208294" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M432.0918164345103,630.6586211208294 L437.39773823820326,628.5222744945903" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M437.39773823820326,628.5222744945903 L442.709057686211,626.4667389330741" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M442.709057686211,626.4667389330741 L448.02860495929167,624.4954590170393" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M448.02860495929167,624.4954590170393 L453.3592102382032,622.6118793272433" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M453.3592102382032,622.6118793272433 L458.70370370370375,620.8194444444446" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(458.70370370370375 620.8194444444446) rotate(-18.06407777515823)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.12996765446375416"><path d="M447.28918193689987,646.1338904406036 L452.61808213860587,643.2231103810852" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M452.61808213860587,643.2231103810852 L457.96047744624013,640.4521974764746" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M457.96047744624013,640.4521974764746 L463.31919804056037,637.8263517361008" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M463.31919804056037,637.8263517361008 L468.6970741023248,635.3507731692938" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M468.6970741023248,635.3507731692938 L474.09693581229124,633.0306617853828" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M474.09693581229124,633.0306617853828 L479.521613351218,630.8712175936973" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M479.521613351218,630.8712175936973 L484.9739368998628,628.8776406035665" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(484.9739368998628 628.8776406035665) rotate(-19.247354350365736)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="0.06598630751343368"><path d="M473.3455352976681,558.9212412159122 L478.76659695062125,560.0795163388578" stroke="#718bb5" stroke-width="1" opacity="0.05" fill="none"></path><path d="M478.76659695062125,560.0795163388578 L484.21491153263185,561.1489064207929" stroke="#718bb5" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M484.21491153263185,561.1489064207929 L489.6933092244578,562.1268875853323" stroke="#718bb5" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M489.6933092244578,562.1268875853323 L495.20462020685716,563.0109359560914" stroke="#718bb5" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M495.20462020685716,563.0109359560914 L500.7516746605878,563.7985276566853" stroke="#718bb5" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M500.7516746605878,563.7985276566853 L506.3373027664079,564.4871388107291" stroke="#718bb5" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M506.3373027664079,564.4871388107291 L511.96433470507543,565.0742455418381" stroke="#718bb5" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(511.96433470507543 565.0742455418381) rotate(5.415642850933705)"><rect x="-15" y="-5" width="30" height="10" fill="#718bb5" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#718bb5"></rect></g></g><g opacity="1"><path d="M947.8030378841596,560.1177959448826 L954.6120664333844,558.5958575907692" stroke="#4977ff" stroke-width="1" opacity="0.05" fill="none"></path><path d="M954.6120664333844,558.5958575907692 L961.2418533887027,556.9731959359876" stroke="#4977ff" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M961.2418533887027,556.9731959359876 L967.706195653906,555.2566517852034" stroke="#4977ff" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M967.706195653906,555.2566517852034 L974.018890132783,553.4530659430804" stroke="#4977ff" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M974.018890132783,553.4530659430804 L980.1937337291253,551.5692792142845" stroke="#4977ff" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M980.1937337291253,551.5692792142845 L986.2445233467213,549.6121324034792" stroke="#4977ff" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M986.2445233467213,549.6121324034792 L992.1850558893628,547.5884663153302" stroke="#4977ff" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(992.1850558893628 547.5884663153302) rotate(-19.230613912787426)"><rect x="-15" y="-5" width="30" height="10" fill="#4977ff" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#4977ff"></rect></g></g><g opacity="1"><path d="M846,585 L846,585" stroke="#69d5f4" stroke-width="1" opacity="0.05" fill="none"></path><path d="M846,585 L846,585" stroke="#69d5f4" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M846,585 L846,585" stroke="#69d5f4" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M846,585 L846,585" stroke="#69d5f4" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M846,585 L846,585" stroke="#69d5f4" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M846,585 L853.4581603285795,585.1565826923701" stroke="#69d5f4" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M853.4581603285795,585.1565826923701 L863.2753180490752,585.4734987076635" stroke="#69d5f4" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(863.2753180490752 585.4734987076635) rotate(2.2301699559065944)"><rect x="-15" y="-5" width="30" height="10" fill="#69d5f4" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#69d5f4"></rect></g></g><g opacity="1"><path d="M412.9064818439974,609.990097646485 L421.53263492817075,608.203647748887" stroke="#69d5f4" stroke-width="1" opacity="0.05" fill="none"></path><path d="M421.53263492817075,608.203647748887 L430.15068815701346,606.5005902148222" stroke="#69d5f4" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M430.15068815701346,606.5005902148222 L438.77278588037984,604.8881732227162" stroke="#69d5f4" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M438.77278588037984,604.8881732227162 L447.4110724481242,603.3736449509948" stroke="#69d5f4" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M447.4110724481242,603.3736449509948 L456.0776922101006,601.9642535780836" stroke="#69d5f4" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M456.0776922101006,601.9642535780836 L464.7847895161634,600.6672472824082" stroke="#69d5f4" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M464.7847895161634,600.6672472824082 L473.5445087161669,599.4898742423943" stroke="#69d5f4" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(473.5445087161669 599.4898742423943) rotate(-7.2301218451450735)"><rect x="-15" y="-5" width="30" height="10" fill="#69d5f4" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#69d5f4"></rect></g></g><g opacity="1"><path d="M278.86981218968276,733.5741517406076 L288.98823837652293,727.5832491418156" stroke="#174bff" stroke-width="1" opacity="0.05" fill="none"></path><path d="M288.98823837652293,727.5832491418156 L298.9218278078672,721.5606970550399" stroke="#174bff" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M298.9218278078672,721.5606970550399 L308.6827248335696,715.5242892587063" stroke="#174bff" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M308.6827248335696,715.5242892587063 L318.2830738034844,709.4918195312403" stroke="#174bff" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M318.2830738034844,709.4918195312403 L327.7350190674659,703.4810816510676" stroke="#174bff" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M327.7350190674659,703.4810816510676 L337.0507049753683,697.509869396614" stroke="#174bff" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M337.0507049753683,697.509869396614 L346.2422758770458,691.5959765463053" stroke="#174bff" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(346.2422758770458 691.5959765463053) rotate(-32.76950949940151)"><rect x="-15" y="-5" width="30" height="10" fill="#174bff" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#174bff"></rect></g></g><g opacity="1"><path d="M103.11446841932366,404.721807878329 L117.29722238899356,408.28683874159026" stroke="#69d5f4" stroke-width="1" opacity="0.05" fill="none"></path><path d="M117.29722238899356,408.28683874159026 L131.118402703002,412.02706493098816" stroke="#69d5f4" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M131.118402703002,412.02706493098816 L144.5901537112032,415.93014993923407" stroke="#69d5f4" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M144.5901537112032,415.93014993923407 L157.72461976345133,419.98375725903935" stroke="#69d5f4" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M157.72461976345133,419.98375725903935 L170.53394520960066,424.1755503831154" stroke="#69d5f4" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M170.53394520960066,424.1755503831154 L183.03027439950537,428.4931928041735" stroke="#69d5f4" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M183.03027439950537,428.4931928041735 L195.22575168301978,432.9243480149251" stroke="#69d5f4" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(195.22575168301978 432.9243480149251) rotate(20.41161035777503)"><rect x="-15" y="-5" width="30" height="10" fill="#69d5f4" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#69d5f4"></rect></g></g><g opacity="1"><path d="M-70,535 L-70,535" stroke="#69d5f4" stroke-width="1" opacity="0.05" fill="none"></path><path d="M-70,535 L-70,535" stroke="#69d5f4" stroke-width="1.125" opacity="0.115" fill="none"></path><path d="M-70,535 L-70,535" stroke="#69d5f4" stroke-width="1.25" opacity="0.18" fill="none"></path><path d="M-70,535 L-70,535" stroke="#69d5f4" stroke-width="1.375" opacity="0.245" fill="none"></path><path d="M-70,535 L-52.956678555053365,535.7743343430728" stroke="#69d5f4" stroke-width="1.5" opacity="0.31" fill="none"></path><path d="M-52.956678555053365,535.7743343430728 L-34.70765140298347,536.654313766847" stroke="#69d5f4" stroke-width="1.625" opacity="0.375" fill="none"></path><path d="M-34.70765140298347,536.654313766847 L-16.936213057469416,537.5635678044737" stroke="#69d5f4" stroke-width="1.75" opacity="0.44" fill="none"></path><g transform="translate(-16.936213057469416 537.5635678044737) rotate(3.013799434726128)"><rect x="-15" y="-5" width="30" height="10" fill="#69d5f4" opacity="0.28" filter="url(#customer-portal-glow)"></rect><rect x="-10" y="-2.5" width="20" height="5" rx="0.5" fill="#69d5f4"></rect></g></g></g><g font-family="Geist, Arial, Helvetica, sans-serif"><rect x="1235" y="335" width="620" height="650" rx="18" fill="#030405" stroke="#8c919a" stroke-width="1"></rect><rect x="1235" y="335" width="620" height="650" rx="18" fill="none" stroke="#69d5f4" opacity="0"></rect><circle cx="1262" cy="356" r="4.5" fill="#8b8e94"></circle><circle cx="1280" cy="356" r="4.5" fill="#8b8e94"></circle><circle cx="1298" cy="356" r="4.5" fill="#8b8e94"></circle><path d="M1235,378 H1855" stroke="#666a72" stroke-width="0.8"></path><text x="1261" y="425" font-size="30" fill="#f4f5f7">Your customer portal</text><text x="1685" y="467" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" font-size="14" fill="#8a8d93" text-anchor="end">Usage charges</text><text x="1830" y="467" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" font-size="14" fill="#8a8d93" text-anchor="end">Budget</text><path d="M1235,483 H1855" stroke="#35383f" stroke-width="0.8"></path><g><rect x="1269" y="505" width="5" height="27" fill="#174bff"></rect><text x="1289" y="525" font-size="23" font-weight="560" fill="#f4f5f7">Customer organization</text><text x="1289" y="554" font-size="23" fill="#b7bbc2">Acme</text><text x="1685" y="554" font-size="24" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#f4f5f7" text-anchor="end">$<!-- -->750.00</text><text x="1830" y="554" font-size="22" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#bdc1c8" text-anchor="end">$<!-- -->1,000</text><g><rect x="1289" y="577" width="7.205" height="17" fill="rgb(23, 75, 255)"></rect><rect x="1302.1" y="577" width="7.205" height="17" fill="rgb(25, 78, 255)"></rect><rect x="1315.2" y="577" width="7.205" height="17" fill="rgb(27, 82, 254)"></rect><rect x="1328.3" y="577" width="7.205" height="17" fill="rgb(29, 85, 254)"></rect><rect x="1341.4" y="577" width="7.205" height="17" fill="rgb(31, 89, 254)"></rect><rect x="1354.5" y="577" width="7.205" height="17" fill="rgb(33, 92, 254)"></rect><rect x="1367.6" y="577" width="7.205" height="17" fill="rgb(35, 96, 253)"></rect><rect x="1380.7" y="577" width="7.205" height="17" fill="rgb(37, 99, 253)"></rect><rect x="1393.8" y="577" width="7.205" height="17" fill="rgb(39, 103, 253)"></rect><rect x="1406.9" y="577" width="7.205" height="17" fill="rgb(41, 106, 253)"></rect><rect x="1420" y="577" width="7.205" height="17" fill="rgb(44, 110, 252)"></rect><rect x="1433.1" y="577" width="7.205" height="17" fill="rgb(46, 113, 252)"></rect><rect x="1446.2" y="577" width="7.205" height="17" fill="rgb(48, 116, 252)"></rect><rect x="1459.3" y="577" width="7.205" height="17" fill="rgb(50, 120, 251)"></rect><rect x="1472.4" y="577" width="7.205" height="17" fill="rgb(52, 123, 251)"></rect><rect x="1485.5" y="577" width="7.205" height="17" fill="rgb(54, 127, 251)"></rect><rect x="1498.6" y="577" width="7.205" height="17" fill="rgb(56, 130, 251)"></rect><rect x="1511.7" y="577" width="7.205" height="17" fill="rgb(58, 134, 250)"></rect><rect x="1524.8" y="577" width="7.205" height="17" fill="rgb(60, 137, 250)"></rect><rect x="1537.9" y="577" width="7.205" height="17" fill="rgb(62, 141, 250)"></rect><rect x="1551" y="577" width="7.205" height="17" fill="rgb(64, 144, 250)"></rect><rect x="1564.1" y="577" width="7.205" height="17" fill="rgb(66, 147, 249)"></rect><rect x="1577.2" y="577" width="7.205" height="17" fill="rgb(68, 151, 249)"></rect><rect x="1590.3" y="577" width="7.205" height="17" fill="rgb(70, 154, 249)"></rect><rect x="1603.4" y="577" width="7.205" height="17" fill="rgb(72, 158, 248)"></rect><rect x="1616.5" y="577" width="7.205" height="17" fill="rgb(74, 161, 248)"></rect><rect x="1629.6" y="577" width="7.205" height="17" fill="rgb(76, 165, 248)"></rect><rect x="1642.7" y="577" width="7.205" height="17" fill="rgb(78, 168, 248)"></rect><rect x="1655.8" y="577" width="7.205" height="17" fill="rgb(80, 172, 247)"></rect><rect x="1668.9" y="577" width="7.205" height="17" fill="rgb(82, 175, 247)"></rect><rect x="1682" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1695.1" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1708.2" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1721.3" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1734.4" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1747.5" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1760.6" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1773.7" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1786.8" y="577" width="7.205" height="17" fill="#27292d"></rect><rect x="1799.9" y="577" width="7.205" height="17" fill="#27292d"></rect></g></g><g><path d="M1273,582 V672 H1289" fill="none" stroke="#676d77" stroke-width="1"></path><rect x="1287" y="660" width="5" height="27" fill="#174bff"></rect><text x="1307" y="680" font-size="23" font-weight="560" fill="#f4f5f7">Customer team</text><text x="1307" y="709" font-size="23" fill="#b7bbc2">Support</text><text x="1685" y="709" font-size="24" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#f4f5f7" text-anchor="end">$<!-- -->192.00</text><text x="1830" y="709" font-size="22" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#bdc1c8" text-anchor="end">$<!-- -->250</text><g><rect x="1307" y="732" width="6.9575000000000005" height="17" fill="rgb(23, 75, 255)"></rect><rect x="1319.65" y="732" width="6.9575000000000005" height="17" fill="rgb(25, 78, 255)"></rect><rect x="1332.3" y="732" width="6.9575000000000005" height="17" fill="rgb(27, 82, 254)"></rect><rect x="1344.95" y="732" width="6.9575000000000005" height="17" fill="rgb(29, 85, 254)"></rect><rect x="1357.6" y="732" width="6.9575000000000005" height="17" fill="rgb(31, 89, 254)"></rect><rect x="1370.25" y="732" width="6.9575000000000005" height="17" fill="rgb(33, 92, 254)"></rect><rect x="1382.9" y="732" width="6.9575000000000005" height="17" fill="rgb(35, 96, 253)"></rect><rect x="1395.55" y="732" width="6.9575000000000005" height="17" fill="rgb(37, 99, 253)"></rect><rect x="1408.2" y="732" width="6.9575000000000005" height="17" fill="rgb(39, 103, 253)"></rect><rect x="1420.85" y="732" width="6.9575000000000005" height="17" fill="rgb(41, 106, 253)"></rect><rect x="1433.5" y="732" width="6.9575000000000005" height="17" fill="rgb(44, 110, 252)"></rect><rect x="1446.15" y="732" width="6.9575000000000005" height="17" fill="rgb(46, 113, 252)"></rect><rect x="1458.8" y="732" width="6.9575000000000005" height="17" fill="rgb(48, 116, 252)"></rect><rect x="1471.45" y="732" width="6.9575000000000005" height="17" fill="rgb(50, 120, 251)"></rect><rect x="1484.1" y="732" width="6.9575000000000005" height="17" fill="rgb(52, 123, 251)"></rect><rect x="1496.75" y="732" width="6.9575000000000005" height="17" fill="rgb(54, 127, 251)"></rect><rect x="1509.4" y="732" width="6.9575000000000005" height="17" fill="rgb(56, 130, 251)"></rect><rect x="1522.05" y="732" width="6.9575000000000005" height="17" fill="rgb(58, 134, 250)"></rect><rect x="1534.7" y="732" width="6.9575000000000005" height="17" fill="rgb(60, 137, 250)"></rect><rect x="1547.35" y="732" width="6.9575000000000005" height="17" fill="rgb(62, 141, 250)"></rect><rect x="1560" y="732" width="6.9575000000000005" height="17" fill="rgb(64, 144, 250)"></rect><rect x="1572.65" y="732" width="6.9575000000000005" height="17" fill="rgb(66, 147, 249)"></rect><rect x="1585.3" y="732" width="6.9575000000000005" height="17" fill="rgb(68, 151, 249)"></rect><rect x="1597.95" y="732" width="6.9575000000000005" height="17" fill="rgb(70, 154, 249)"></rect><rect x="1610.6" y="732" width="6.9575000000000005" height="17" fill="rgb(72, 158, 248)"></rect><rect x="1623.25" y="732" width="6.9575000000000005" height="17" fill="rgb(74, 161, 248)"></rect><rect x="1635.9" y="732" width="6.9575000000000005" height="17" fill="rgb(76, 165, 248)"></rect><rect x="1648.55" y="732" width="6.9575000000000005" height="17" fill="rgb(78, 168, 248)"></rect><rect x="1661.2" y="732" width="6.9575000000000005" height="17" fill="rgb(80, 172, 247)"></rect><rect x="1673.85" y="732" width="6.9575000000000005" height="17" fill="rgb(82, 175, 247)"></rect><rect x="1686.5" y="732" width="6.9575000000000005" height="17" fill="rgb(85, 179, 247)"></rect><rect x="1699.15" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1711.8" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1724.45" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1737.1" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1749.75" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1762.4" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1775.05" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1787.7" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect><rect x="1800.35" y="732" width="6.9575000000000005" height="17" fill="#27292d"></rect></g></g><g><path d="M1291,737 V827 H1307" fill="none" stroke="#676d77" stroke-width="1"></path><rect x="1305" y="815" width="5" height="27" fill="#69d5f4"></rect><text x="1325" y="835" font-size="23" font-weight="560" fill="#f4f5f7">Customer member</text><text x="1325" y="864" font-size="23" fill="#b7bbc2">Alice</text><text x="1685" y="864" font-size="24" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#f4f5f7" text-anchor="end">$<!-- -->39.00</text><text x="1830" y="864" font-size="22" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" fill="#bdc1c8" text-anchor="end">$<!-- -->50</text><g><rect x="1325" y="887" width="6.71" height="17" fill="rgb(23, 75, 255)"></rect><rect x="1337.2" y="887" width="6.71" height="17" fill="rgb(25, 78, 255)"></rect><rect x="1349.4" y="887" width="6.71" height="17" fill="rgb(27, 82, 254)"></rect><rect x="1361.6" y="887" width="6.71" height="17" fill="rgb(29, 85, 254)"></rect><rect x="1373.8" y="887" width="6.71" height="17" fill="rgb(31, 89, 254)"></rect><rect x="1386" y="887" width="6.71" height="17" fill="rgb(33, 92, 254)"></rect><rect x="1398.2" y="887" width="6.71" height="17" fill="rgb(35, 96, 253)"></rect><rect x="1410.4" y="887" width="6.71" height="17" fill="rgb(37, 99, 253)"></rect><rect x="1422.6" y="887" width="6.71" height="17" fill="rgb(39, 103, 253)"></rect><rect x="1434.8" y="887" width="6.71" height="17" fill="rgb(41, 106, 253)"></rect><rect x="1447" y="887" width="6.71" height="17" fill="rgb(44, 110, 252)"></rect><rect x="1459.2" y="887" width="6.71" height="17" fill="rgb(46, 113, 252)"></rect><rect x="1471.4" y="887" width="6.71" height="17" fill="rgb(48, 116, 252)"></rect><rect x="1483.6" y="887" width="6.71" height="17" fill="rgb(50, 120, 251)"></rect><rect x="1495.8" y="887" width="6.71" height="17" fill="rgb(52, 123, 251)"></rect><rect x="1508" y="887" width="6.71" height="17" fill="rgb(54, 127, 251)"></rect><rect x="1520.2" y="887" width="6.71" height="17" fill="rgb(56, 130, 251)"></rect><rect x="1532.4" y="887" width="6.71" height="17" fill="rgb(58, 134, 250)"></rect><rect x="1544.6" y="887" width="6.71" height="17" fill="rgb(60, 137, 250)"></rect><rect x="1556.8" y="887" width="6.71" height="17" fill="rgb(62, 141, 250)"></rect><rect x="1569" y="887" width="6.71" height="17" fill="rgb(64, 144, 250)"></rect><rect x="1581.2" y="887" width="6.71" height="17" fill="rgb(66, 147, 249)"></rect><rect x="1593.4" y="887" width="6.71" height="17" fill="rgb(68, 151, 249)"></rect><rect x="1605.6" y="887" width="6.71" height="17" fill="rgb(70, 154, 249)"></rect><rect x="1617.8" y="887" width="6.71" height="17" fill="rgb(72, 158, 248)"></rect><rect x="1630" y="887" width="6.71" height="17" fill="rgb(74, 161, 248)"></rect><rect x="1642.2" y="887" width="6.71" height="17" fill="rgb(76, 165, 248)"></rect><rect x="1654.4" y="887" width="6.71" height="17" fill="rgb(78, 168, 248)"></rect><rect x="1666.6" y="887" width="6.71" height="17" fill="rgb(80, 172, 247)"></rect><rect x="1678.8" y="887" width="6.71" height="17" fill="rgb(82, 175, 247)"></rect><rect x="1691" y="887" width="6.71" height="17" fill="rgb(85, 179, 247)"></rect><rect x="1703.2" y="887" width="6.71" height="17" fill="rgb(87, 182, 246)"></rect><rect x="1715.4" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1727.6" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1739.8" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1752" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1764.2" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1776.4" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1788.6" y="887" width="6.71" height="17" fill="#27292d"></rect><rect x="1800.8" y="887" width="6.71" height="17" fill="#27292d"></rect></g></g><text x="1261" y="957" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" font-size="13" fill="#777e89">Same request. Three levels of attribution.</text></g></g><text x="88" y="1050" font-family="&quot;Geist Mono&quot;, &quot;SFMono-Regular&quot;, Consolas, monospace" font-size="13" fill="#737e90">Illustrative customer traffic · $0.50 per highlighted request</text></svg></div><p class="screenReaderOnly_sxuD">Illustrative customer traffic flows through LiteLLM into your customer portal. Organization, team, and member budgets use three views of the same request cost.</p></section>
<div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG byline_s4ka"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-11-13T09:00:00.000Z">Nov 13, 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>AI Product Engineer, LiteLLM</small></span></span><span class="author_ZRh2"><a href="https://github.com/kerry-berri" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><img src="https://github.com/kerry-berri.png" alt="" class="avatar_Sim6"></a><span><a href="https://github.com/kerry-berri" target="_blank" rel="noopener noreferrer" class="authorLink_BPAX"><b>Kerry Lu</b></a><small>Member of Technical Staff, 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>AI Product Engineer, LiteLLM</small></span></span></div></div></div>
<p>Today we're launching <strong>LiteLLM Customer Portal</strong> for AI-native companies using the gateway. If you're building an agent on LiteLLM and need to track spend and set budget limits for your customers by their organizations, teams, and individual members, this is for you.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="who-is-this-for">Who is this for?<a href="https://docs.litellm.ai/blog/customer-portal#who-is-this-for" class="hash-link" aria-label="Direct link to Who is this for?" title="Direct link to Who is this for?">​</a></h2>
<p>For AI-native companies building production agents using LiteLLM AI Gateway who need to run their agents profitably, with positive ROI.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-problem">The problem<a href="https://docs.litellm.ai/blog/customer-portal#the-problem" class="hash-link" aria-label="Direct link to The problem" title="Direct link to The problem">​</a></h2>
<p>With B2B AI agents, cost tracking gets complicated across customer organizations, teams, and individual members. If you sell pay-as-you-go credits or usage-based plans, actual spend can exceed what your customer paid and hurt your margin.</p>
<figure class="figure_PEpH" data-margin-stage="uncontrolled" data-spend="140" data-price="100" data-profit-margin="-40" data-contribution="-40" data-phase="loss" data-approved="false" data-status="loss" aria-label="Before customer budgets. Illustrative purchased credits per member, expressed in dollars: $100; final actual spend: $140; profit margin before other expenses: -40%."><div class="window_wpoi" data-playing="false" data-paused="false" data-workflow="false"><div class="windowHeader_PHMu"><span class="windowDots_Gz2p" aria-hidden="true"><i></i><i></i><i></i></span><span>Customer credits and spend</span></div><svg class="windowFlow_yBft" viewBox="0 0 640 320" preserveAspectRatio="none" aria-hidden="true"><path d="M1,280 V48 Q1,30 20,30 H255" class="flowTrack_HqT9"></path><path d="M1,280 V48 Q1,30 20,30 H255" class="flowPacket_KHSz" pathLength="1"></path></svg><div class="marginBody_jPkI"><div class="marginTitle_Iufe">Before customer budgets</div><div class="comparison_aAnK"><div class="chart_gpu1"><div class="plot_bvN2"><div class="priceGuide_BpGu" style="bottom:calc(var(--plot-height) * 0.6666666666666666)" aria-hidden="true"></div><div class="barColumn_ocUM"><strong>$<!-- -->100</strong><div class="segmentedBar_nzuV" data-bar="price" data-value="100" data-active-segments="20" aria-hidden="true"><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i></div></div><div class="barColumn_ocUM" style="opacity:1" aria-hidden="true"><strong>$<!-- -->140</strong><div class="segmentedBar_nzuV" data-bar="cost" data-value="140" data-active-segments="28" aria-hidden="true"><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="overrunSegment_tAn2"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i></div></div></div><div class="chartLabels_gxdf"><span>Customer Credits</span><span>Actual spend</span></div></div><div class="marginSummary_vG75"><div class="contribution_Aa71 negative_OAe5" style="opacity:1" aria-hidden="true"><span>Profit margin</span><strong>−<!-- -->40<!-- -->%</strong><small>after actual spend</small></div><div class="requestStatus_HF0P" aria-hidden="true"><i></i>Actual spend exceeds customer credits</div><p class="marginNote_sC2N">Actual spend exceeds the credits your customer bought.</p></div></div></div></div><figcaption>Credits shown at their purchase value. Illustrative profit margin excludes other expenses.</figcaption></figure>
<p>Different models, providers, and request parameters multiply that complexity.</p>
<figure class="figure_PEpH" data-customer-graphic="complexity"><div class="window_wpoi"><div class="windowHeader_PHMu"><span class="windowDots_Gz2p" aria-hidden="true"><i></i><i></i><i></i></span><span>B2B agent costs</span></div><svg class="windowFlow_yBft" viewBox="0 0 640 320" preserveAspectRatio="none" aria-hidden="true"><path d="M1,280 V48 Q1,30 20,30 H255" class="flowTrack_HqT9"></path><path d="M1,280 V48 Q1,30 20,30 H255" class="flowPacket_KHSz" pathLength="1"></path></svg><div class="complexityBody_oppy"><div class="formula_tFkp" aria-label="Models multiplied by providers multiplied by parameters"><span class="factorLabel_Uz_Q">Models</span><span class="multiply_Lktt" aria-hidden="true">×</span><span class="factorLabel_Uz_Q">Providers</span><span class="multiply_Lktt" aria-hidden="true">×</span><span class="factorLabel_Uz_Q">Parameters</span></div></div></div><figcaption>Model, provider, and parameter combinations add more costs to track.</figcaption></figure>
<p>Track that spend by customer organization, team, and member:</p>
<figure class="figure_PEpH" data-customer-graphic="hierarchy"><div class="window_wpoi"><div class="windowHeader_PHMu"><span class="windowDots_Gz2p" aria-hidden="true"><i></i><i></i><i></i></span><span>Your customers</span></div><svg class="windowFlow_yBft" viewBox="0 0 640 320" preserveAspectRatio="none" aria-hidden="true"><path d="M1,280 V48 Q1,30 20,30 H255" class="flowTrack_HqT9"></path><path d="M1,280 V48 Q1,30 20,30 H255" class="flowPacket_KHSz" pathLength="1"></path></svg><div class="hierarchyBody_RXQ2"><svg viewBox="0 0 600 250" role="img" aria-label="A customer organization contains Sales and Engineering customer teams. Each team has two customer members. The blue path links the selected member to Sales and the organization." class="desktopHierarchy_BUDD"><g class="treeConnections_CmXR"><path d="M300,64 C300,80 160,70 160,88"></path><path d="M300,64 C300,80 440,70 440,88"></path><path d="M160,158 C160,175 80,169 80,183"></path><path d="M160,158 C160,175 240,169 240,183"></path><path d="M440,158 C440,175 360,169 360,183"></path><path d="M440,158 C440,175 520,169 520,183"></path></g><path d="M80,183 C80,169 160,175 160,158 M160,88 C160,70 300,80 300,64" class="selectedTreePath_xTQW"></path><path d="M80,183 C80,169 160,175 160,158 M160,88 C160,70 300,80 300,64" class="treePacket_wFeD" aria-hidden="true"></path><g transform="translate(300 22)"><g class="entityGlyph_A_0p activeGlyph_H8J5"><rect x="-10" y="-12" width="20" height="24" rx="1"></rect><rect x="-5" y="-7" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="-5" y="-2" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="-5" y="3" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="-7" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="-2" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="3" width="2" height="2" class="glyphDetail_OQET"></rect><path d="M-2,12 V7 H2 V12"></path></g></g><text x="300" y="54" class="treeScope_Y0YB">Customer organization</text><g><g transform="translate(160 103)"><g class="entityGlyph_A_0p activeGlyph_H8J5"><circle cy="-6" r="4"></circle><circle cx="-9" cy="-3" r="3"></circle><circle cx="9" cy="-3" r="3"></circle><path d="M-8,12 C-8,1 8,1 8,12 M-15,10 C-15,3 -11,1 -7,4 M15,10 C15,3 11,1 7,4"></path></g></g><text x="160" y="132" class="treeName_HdIQ">Sales</text><text x="160" y="148" class="treeScope_Y0YB">Customer team</text></g><g><g transform="translate(440 103)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4"></circle><circle cx="-9" cy="-3" r="3"></circle><circle cx="9" cy="-3" r="3"></circle><path d="M-8,12 C-8,1 8,1 8,12 M-15,10 C-15,3 -11,1 -7,4 M15,10 C15,3 11,1 7,4"></path></g></g><text x="440" y="132" class="treeName_HdIQ">Engineering</text><text x="440" y="148" class="treeScope_Y0YB">Customer team</text></g><g><g transform="translate(80 199)"><g class="entityGlyph_A_0p activeGlyph_H8J5"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="80" y="236" class="treeScope_Y0YB">Customer member</text></g><g><g transform="translate(240 199)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="240" y="236" class="treeScope_Y0YB">Customer member</text></g><g><g transform="translate(360 199)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="360" y="236" class="treeScope_Y0YB">Customer member</text></g><g><g transform="translate(520 199)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="520" y="236" class="treeScope_Y0YB">Customer member</text></g></svg><svg viewBox="0 0 300 270" role="img" aria-label="A customer organization contains Sales and Engineering customer teams. Each team has two customer members. The blue path links the selected member to Sales and the organization." class="mobileHierarchy_Dkew"><g class="treeConnections_CmXR"><path d="M150,64 C150,80 75,70 75,88"></path><path d="M150,64 C150,80 225,70 225,88"></path><path d="M75,158 C75,175 35,169 35,196"></path><path d="M75,158 C75,175 115,169 115,196"></path><path d="M225,158 C225,175 185,169 185,196"></path><path d="M225,158 C225,175 265,169 265,196"></path></g><path d="M35,196 C35,169 75,175 75,158 M75,88 C75,70 150,80 150,64" class="selectedTreePath_xTQW"></path><path d="M35,196 C35,169 75,175 75,158 M75,88 C75,70 150,80 150,64" class="treePacket_wFeD" aria-hidden="true"></path><g transform="translate(150 22)"><g class="entityGlyph_A_0p activeGlyph_H8J5"><rect x="-10" y="-12" width="20" height="24" rx="1"></rect><rect x="-5" y="-7" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="-5" y="-2" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="-5" y="3" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="-7" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="-2" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="3" width="2" height="2" class="glyphDetail_OQET"></rect><path d="M-2,12 V7 H2 V12"></path></g></g><text x="150" y="54" class="treeScope_Y0YB">Customer organization</text><g><g transform="translate(75 103)"><g class="entityGlyph_A_0p activeGlyph_H8J5"><circle cy="-6" r="4"></circle><circle cx="-9" cy="-3" r="3"></circle><circle cx="9" cy="-3" r="3"></circle><path d="M-8,12 C-8,1 8,1 8,12 M-15,10 C-15,3 -11,1 -7,4 M15,10 C15,3 11,1 7,4"></path></g></g><text x="75" y="132" class="treeName_HdIQ">Sales</text><text x="75" y="148" class="treeScope_Y0YB">Customer team</text></g><g><g transform="translate(225 103)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4"></circle><circle cx="-9" cy="-3" r="3"></circle><circle cx="9" cy="-3" r="3"></circle><path d="M-8,12 C-8,1 8,1 8,12 M-15,10 C-15,3 -11,1 -7,4 M15,10 C15,3 11,1 7,4"></path></g></g><text x="225" y="132" class="treeName_HdIQ">Engineering</text><text x="225" y="148" class="treeScope_Y0YB">Customer team</text></g><g><g transform="translate(35 212)"><g class="entityGlyph_A_0p activeGlyph_H8J5"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="35" y="242" class="treeScope_Y0YB"><tspan x="35">Customer</tspan><tspan x="35" dy="13">member</tspan></text></g><g><g transform="translate(115 212)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="115" y="242" class="treeScope_Y0YB"><tspan x="115">Customer</tspan><tspan x="115" dy="13">member</tspan></text></g><g><g transform="translate(185 212)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="185" y="242" class="treeScope_Y0YB"><tspan x="185">Customer</tspan><tspan x="185" dy="13">member</tspan></text></g><g><g transform="translate(265 212)"><g class="entityGlyph_A_0p"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></g><text x="265" y="242" class="treeScope_Y0YB"><tspan x="265">Customer</tspan><tspan x="265" dy="13">member</tspan></text></g></svg></div></div><figcaption>The blue path links a customer's member to their team and organization.</figcaption></figure>
<p>That's a bunch of glue code to build around your agent. Since LiteLLM is already your source of truth for model costs, we're exposing APIs to track customer spend, set budgets, and build these controls into your product.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-use-litellm-ai-gateway-for-this-problem">How to use LiteLLM AI Gateway for this problem<a href="https://docs.litellm.ai/blog/customer-portal#how-to-use-litellm-ai-gateway-for-this-problem" class="hash-link" aria-label="Direct link to How to use LiteLLM AI Gateway for this problem" title="Direct link to How to use LiteLLM AI Gateway for this problem">​</a></h2>
<p>Point your agent to LiteLLM AI Gateway and send your customer's organization alias and member ID:</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">OpenAI Responses</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">LangChain Deep Agents</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"> os</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">from</span><span class="token plain"> openai </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> OpenAI</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">client </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> OpenAI</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">    api_key</span><span class="token operator" style="color:#D73A49">=</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">    base_url</span><span class="token operator" style="color:#D73A49">=</span><span class="token string-interpolation string" style="color:#C6105F">f"</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">{</span><span class="token string-interpolation interpolation">os</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">.</span><span class="token string-interpolation interpolation">environ</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">[</span><span class="token string-interpolation interpolation string" style="color:#C6105F">'LITELLM_BASE_URL'</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">]</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">.</span><span class="token string-interpolation interpolation">rstrip</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">(</span><span class="token string-interpolation interpolation string" style="color:#C6105F">'/'</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">)</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">}</span><span class="token string-interpolation string" style="color:#C6105F">/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 punctuation" style="color:#393A34">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">raw_response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> client</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">responses</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">with_raw_response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">create</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 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_MODEL"</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 builtin">input</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"Write a short welcome message."</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">    max_output_tokens</span><span class="token operator" style="color:#D73A49">=</span><span class="token number" style="color:#005CC5">128</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">    extra_headers</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 theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain">        </span><span class="token string" style="color:#C6105F">"x-litellm-customer-org-alias"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Acme"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain">        </span><span class="token string" style="color:#C6105F">"x-litellm-customer-member-id"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"acme-alice"</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">response </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> raw_response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">parse</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">response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">output_text</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 string" style="color:#C6105F">"LiteLLM call ID:"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> raw_response</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">headers</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">get</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#C6105F">"x-litellm-call-id"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div><p>Install with <code>pip install openai</code>.</p></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">import</span><span class="token plain"> os</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">from</span><span class="token plain"> deepagents </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> create_deep_agent</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"> langchain_openai </span><span class="token keyword" style="color:#CF222E">import</span><span class="token plain"> ChatOpenAI</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">model </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> ChatOpenAI</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 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_MODEL"</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">    base_url</span><span class="token operator" style="color:#D73A49">=</span><span class="token string-interpolation string" style="color:#C6105F">f"</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">{</span><span class="token string-interpolation interpolation">os</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">.</span><span class="token string-interpolation interpolation">environ</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">[</span><span class="token string-interpolation interpolation string" style="color:#C6105F">'LITELLM_BASE_URL'</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">]</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">.</span><span class="token string-interpolation interpolation">rstrip</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">(</span><span class="token string-interpolation interpolation string" style="color:#C6105F">'/'</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">)</span><span class="token string-interpolation interpolation punctuation" style="color:#393A34">}</span><span class="token string-interpolation string" style="color:#C6105F">/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">    api_key</span><span class="token operator" style="color:#D73A49">=</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">    use_responses_api</span><span class="token operator" style="color:#D73A49">=</span><span class="token boolean" style="color:#005CC5">True</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">    default_headers</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 theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain">        </span><span class="token string" style="color:#C6105F">"x-litellm-customer-org-alias"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Acme"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"></span><br></span><span class="token-line theme-code-block-highlighted-line" style="color:#393A34"><span class="token plain">        </span><span class="token string" style="color:#C6105F">"x-litellm-customer-member-id"</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"acme-alice"</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">agent </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> create_deep_agent</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">model</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">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">result </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> agent</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">invoke</span><span class="token punctuation" style="color:#393A34">(</span><span class="token punctuation" style="color:#393A34">{</span><span class="token string" style="color:#C6105F">"messages"</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 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">"Say hello to Alice."</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 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">result</span><span class="token punctuation" style="color:#393A34">[</span><span class="token string" style="color:#C6105F">"messages"</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">[</span><span class="token operator" style="color:#D73A49">-</span><span class="token number" style="color:#005CC5">1</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">text</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div><p>Install with <code>pip install deepagents langchain-openai</code>. Configure the model for the authenticated customer; pass the same identity to any other models the agent calls.</p></div></div></div>
<p>That's it for attributing the call. LiteLLM resolves the member's customer team and organization and records the spend. The same headers work with Responses, Chat Completions, and Anthropic Messages.</p>
<p>Use your application key and a gateway model alias. <code>LITELLM_BASE_URL</code> is the gateway root URL; <a href="https://docs.litellm.ai/docs/proxy/customer_portal/track-customer-spend#2-import-a-customer">register the customer first</a>, and select their identity from your authenticated session.</p>
<figure data-full-width="true" class="productShot_DEBy requestShot_IoMn"><a class="screenshotLink_AlgL" href="https://docs.litellm.ai/img/customer_portal/launch-spend-log-dark.webp" target="_blank" rel="noopener noreferrer" aria-label="Open the request customer attribution screenshot at full resolution"><img src="https://docs.litellm.ai/img/customer_portal/launch-spend-log-dark.webp" width="2481" height="1533" alt="A saved request's Customer section shows its customer organization, team, and member, alongside $0.14 cost and 120 tokens in Metrics." loading="lazy"></a><figcaption>Follow a request into spend logs to see its customer organization, team, member, and cost. Demo data. <a href="https://docs.litellm.ai/img/customer_portal/launch-spend-log-dark.webp" target="_blank" rel="noopener noreferrer">View full size.</a></figcaption></figure>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="set-customer-budgets-that-protect-your-margin">Set customer budgets that protect your margin<a href="https://docs.litellm.ai/blog/customer-portal#set-customer-budgets-that-protect-your-margin" class="hash-link" aria-label="Direct link to Set customer budgets that protect your margin" title="Direct link to Set customer budgets that protect your margin">​</a></h3>
<p>If a member buys $100 in credits, set a $60 budget for actual spend to protect your margin. Set separate budgets for the customer organization, each team, and each member:</p>
<figure class="figure_PEpH" data-customer-graphic="entity-budgets" data-member-spend="60" data-price="100" data-profit-margin="40" data-status="paused" data-limiting-scope="customer_member" aria-label="Illustrative customer budget checks. A member's actual spend rises from $20 to $60. Organization spend rises from $320 to $360 against a $1,000 cap; team spend rises from $120 to $160 against a $250 cap. The $60 member cap pauses requests while the parents retain headroom. Against $100 in purchased member credits, profit margin is 40% before other expenses. These scopes overlap; do not add their spend together."><div class="window_wpoi" data-playing="false" data-paused="true"><div class="windowHeader_PHMu"><span class="windowDots_Gz2p" aria-hidden="true"><i></i><i></i><i></i></span><span>Customer budget checks</span><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" width="80" height="15" alt="LiteLLM" class="windowLogo_hyYk"></div><svg class="windowFlow_yBft" viewBox="0 0 640 320" preserveAspectRatio="none" aria-hidden="true"><path d="M1,280 V48 Q1,30 20,30 H255" class="flowTrack_HqT9"></path><path d="M1,280 V48 Q1,30 20,30 H255" class="flowPacket_KHSz" pathLength="1"></path></svg><div class="entityBudgetsBody_ypea"><div class="entityLegend_e2CG"><span>% of each entity budget</span><span>$100 in member credits</span></div><div class="entityBudgetColumns_VHhz"><div class="entityBudgetColumn_P6d8" data-entity="customer_org" data-scope="customer_org" data-cap="1000" data-spend="360" data-headroom="640" data-percent="36" data-rollup-base="300" data-limiting="false"><div class="entityColumnHead_PQYP"><svg viewBox="-16 -16 32 32" aria-hidden="true"><g class="entityGlyph_A_0p activeGlyph_H8J5"><rect x="-10" y="-12" width="20" height="24" rx="1"></rect><rect x="-5" y="-7" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="-5" y="-2" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="-5" y="3" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="-7" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="-2" width="2" height="2" class="glyphDetail_OQET"></rect><rect x="3" y="3" width="2" height="2" class="glyphDetail_OQET"></rect><path d="M-2,12 V7 H2 V12"></path></g></svg><span>Customer<br>organization</span></div><div class="entityAmounts_SE6y"><strong>$<!-- -->360</strong><span>/ $<!-- -->1,000</span></div><div class="entityPlot_I9VH"><div class="entityCapMarker_S8Eh" aria-hidden="true"></div><div class="entityBudgetBar_GVcg" aria-hidden="true"><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:19.99999999999993%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i></div></div><div class="entityHeadroom_Fnrp">$640 left</div></div><div class="entityBudgetColumn_P6d8" data-entity="customer_team" data-scope="customer_team" data-cap="250" data-spend="160" data-headroom="90" data-percent="64" data-rollup-base="100" data-limiting="false"><div class="entityColumnHead_PQYP"><svg viewBox="-16 -16 32 32" aria-hidden="true"><g class="entityGlyph_A_0p activeGlyph_H8J5"><circle cy="-6" r="4"></circle><circle cx="-9" cy="-3" r="3"></circle><circle cx="9" cy="-3" r="3"></circle><path d="M-8,12 C-8,1 8,1 8,12 M-15,10 C-15,3 -11,1 -7,4 M15,10 C15,3 11,1 7,4"></path></g></svg><span>Customer<br>team</span></div><div class="entityAmounts_SE6y"><strong>$<!-- -->160</strong><span>/ $<!-- -->250</span></div><div class="entityPlot_I9VH"><div class="entityCapMarker_S8Eh" aria-hidden="true"></div><div class="entityBudgetBar_GVcg" aria-hidden="true"><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:80.00000000000007%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i><i><b style="height:0%"></b></i></div></div><div class="entityHeadroom_Fnrp">$90 left</div></div><div class="entityBudgetColumn_P6d8" data-entity="customer_member" data-scope="customer_member" data-cap="60" data-spend="60" data-headroom="0" data-percent="100" data-rollup-base="0" data-limiting="true"><div class="entityColumnHead_PQYP"><svg viewBox="-16 -16 32 32" aria-hidden="true"><g class="entityGlyph_A_0p activeGlyph_H8J5"><circle cy="-6" r="4.5"></circle><path d="M-9,12 C-9,-1 9,-1 9,12"></path></g></svg><span>Customer<br>member</span></div><div class="entityAmounts_SE6y"><strong>$<!-- -->60</strong><span>/ $<!-- -->60</span></div><div class="entityPlot_I9VH"><div class="entityCapMarker_S8Eh" aria-hidden="true"></div><div class="entityBudgetBar_GVcg" aria-hidden="true"><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i></div></div><div class="entityHeadroom_Fnrp">Limit reached</div></div></div><div class="entityBudgetSummary_fAUw"><span>Member cap reached · Requests paused</span><span>Profit margin <strong>40<!-- -->%</strong> <small>after actual spend</small></span></div></div></div><figcaption>Illustrative overlapping views of the same member usage. Do not add organization, team, and member spend together.</figcaption></figure>
<p>The same request's cost rolls up from the member to their team and organization. Here, the member hits their $60 cap while both parents still have room, so further requests pause.</p>
<p>Choose the organization cap and default member profile when you onboard a customer. These examples use a 30-day budget period:</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">API</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">LiteLLM UI</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Ymn6"><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 --fail-with-body --request POST \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "$LITELLM_BASE_URL/management/v1/customer_organizations" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --header "Authorization: Bearer $LITELLM_ADMIN_KEY" \</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">  --data '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "customer_org_id": "org-acme",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "alias": "Acme",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "budget": {</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "max_budget": 1000,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "budget_duration": "30d"</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">    "default_budgets": [{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "name": "default-user",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "max_budget": 60,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "soft_budget": 48,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "budget_duration": "30d"</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">    "default_budget_template": "default-user"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div><p>Use a server-side proxy admin credential as <code>LITELLM_ADMIN_KEY</code>. <a href="https://docs.litellm.ai/docs/proxy/customer_portal/track-customer-spend#2-import-a-customer">Add the customer's teams and members</a>; new members inherit the default profile.</p></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p>Open <strong>Customer Portal → Customers → your customer → Settings</strong>. Use <strong>Set budget</strong> or <strong>Edit budget</strong> to set <strong>Spend limit (USD)</strong> and <strong>Reset period</strong>. Select a member's <strong>Budget template</strong> for its default allowance.</p></div></div></div>
<figure data-full-width="true" class="productShot_DEBy"><a class="screenshotLink_AlgL" href="https://docs.litellm.ai/img/customer_portal/launch-member-caps-dark.webp" target="_blank" rel="noopener noreferrer" aria-label="Open the customer member budgets screenshot at full resolution"><img src="https://docs.litellm.ai/img/customer_portal/launch-member-caps-dark.webp" width="4008" height="789" alt="Customer member spend in the latest LiteLLM UI, with monthly and yearly budget windows, share of customer spend, tokens, and status." loading="lazy"></a><figcaption>Customer member spend and budget windows in the latest LiteLLM UI. Seeded demo data. <a href="https://docs.litellm.ai/img/customer_portal/launch-member-caps-dark.webp" target="_blank" rel="noopener noreferrer">View full size.</a></figcaption></figure>
<p>At the cap, LiteLLM rejects new requests based on recorded spend. Leave room for accounting delays and requests already in flight.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="give-default-users-and-power-users-different-profiles">Give default users and power users different profiles<a href="https://docs.litellm.ai/blog/customer-portal#give-default-users-and-power-users-different-profiles" class="hash-link" aria-label="Direct link to Give default users and power users different profiles" title="Direct link to Give default users and power users different profiles">​</a></h3>
<p>Some customers need more allowance. Create a power-user profile, then assign its returned <code>budget_id</code> when you create new members. Use the same APIs in your product so your customer's admins can manage these profiles.</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 --fail-with-body --request POST \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "$LITELLM_BASE_URL/management/v1/customer_organizations/org-acme/default_budgets" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --header "Authorization: Bearer $LITELLM_ADMIN_KEY" \</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">  --data '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "name": "power-user",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "max_budget": 90,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "soft_budget": 72,</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "budget_duration": "30d"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="trigger-a-webhook-when-a-customer-hits-their-limit">Trigger a webhook when a customer hits their limit<a href="https://docs.litellm.ai/blog/customer-portal#trigger-a-webhook-when-a-customer-hits-their-limit" class="hash-link" aria-label="Direct link to Trigger a webhook when a customer hits their limit" title="Direct link to Trigger a webhook when a customer hits their limit">​</a></h3>
<figure class="figure_PEpH" data-margin-stage="workflow" data-spend="90" data-price="150" data-cap="90" data-profit-margin="40" data-contribution="60" data-phase="capped_after_increase" data-webhook-event="budget_crossed" data-approved="true" data-status="paused" aria-label="Illustrative budget workflow. At $60 actual spend, requests pause and LiteLLM sends a budget_crossed event. Your receiver formats the alert. The customer buys $50 more in credits, bringing their total to $150. Your app approves a temporary $90 cap. Requests resume until $90 actual spend, leaving 40% profit margin before other expenses."><div class="window_wpoi" data-playing="false" data-paused="true" data-workflow="true"><div class="windowHeader_PHMu"><span class="windowDots_Gz2p" aria-hidden="true"><i></i><i></i><i></i></span><span>Customer credits and spend</span><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" width="80" height="15" alt="LiteLLM" class="windowLogo_hyYk"></div><svg class="windowFlow_yBft" viewBox="0 0 640 320" preserveAspectRatio="none" aria-hidden="true"><path d="M1,280 V48 Q1,30 20,30 H255" class="flowTrack_HqT9"></path><path d="M1,280 V48 Q1,30 20,30 H255" class="flowPacket_KHSz" pathLength="1"></path></svg><div class="marginBody_jPkI"><div class="marginTitle_Iufe">Budget alert → temporary increase</div><div class="comparison_aAnK"><div class="chart_gpu1"><div class="plot_bvN2"><div class="priceGuide_BpGu" style="bottom:calc(var(--plot-height) * 1)" aria-hidden="true"></div><div class="capGuide_GLzf" style="bottom:calc(var(--plot-height) * 0.6)" aria-hidden="true"></div><div class="barColumn_ocUM"><strong>$<!-- -->150</strong><div class="segmentedBar_nzuV" data-bar="price" data-value="150" data-active-segments="30" aria-hidden="true"><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i><i class="filledSegment_nNVO"></i></div></div><div class="barColumn_ocUM" style="opacity:1" aria-hidden="true"><strong>$<!-- -->90</strong><div class="segmentedBar_nzuV" data-bar="cost" data-value="90" data-active-segments="18" aria-hidden="true"><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="budgetSegment_AW1C"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i><i class="emptySegment_C6SG"></i></div></div></div><div class="chartLabels_gxdf"><span>Customer Credits</span><span>Actual spend</span></div></div><div class="marginSummary_vG75"><div class="fixedCap_ZjPX">Budget cap: $<!-- -->90</div><div class="contribution_Aa71 positive_zB_Q" style="opacity:1" aria-hidden="true"><span>Profit margin</span><strong>40<!-- -->%</strong><small>after actual spend</small></div><div class="requestStatus_HF0P pausedStatus_Dib4" aria-hidden="true"><i></i>$90 cap reached · Requests paused</div><div class="workflowNotice_LaIU" style="visibility:visible" aria-hidden="true"><strong>budget_crossed</strong><small>Your receiver → Slack</small><span>$150 credits · $90 cap</span></div></div></div><div class="workflowPath_pd4d" aria-label="Cap, webhook, approved increase"><span data-complete="true">Cap</span><i class="connector_gkMq" aria-hidden="true"></i><span data-complete="true">Webhook</span><i class="connector_gkMq" aria-hidden="true"></i><span data-complete="true">Approved increase</span></div></div></div><figcaption>Credits shown at their purchase value. Illustrative profit margin excludes other expenses.<!-- --> Your receiver formats Slack alerts; your app approves increases.</figcaption></figure>
<p>When a member reaches their $60 cap, use the budget webhook to alert your team or open an approval request. Your receiver formats the notification from LiteLLM's JSON event. <a href="https://docs.litellm.ai/docs/proxy/customer_portal/track-customer-spend#1-set-up-budget-webhooks">Configure and test delivery</a>; reconcile missed alerts with usage reads because delivery is best effort.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="approve-a-temporary-increase-when-your-customer-upgrades">Approve a temporary increase when your customer upgrades<a href="https://docs.litellm.ai/blog/customer-portal#approve-a-temporary-increase-when-your-customer-upgrades" class="hash-link" aria-label="Direct link to Approve a temporary increase when your customer upgrades" title="Direct link to Approve a temporary increase when your customer upgrades">​</a></h3>
<p>When the customer buys another $50 in credits, their total becomes $150. After approval, apply a temporary $90 cap on actual spend, as shown above.</p>
<p>Set <code>INCREASE_EXPIRES_AT</code> to a future timestamp with a timezone, then apply the temporary member override:</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 --fail-with-body --request PATCH \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "$LITELLM_BASE_URL/management/v1/customer_members/acme-alice" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --header "Authorization: Bearer $LITELLM_ADMIN_KEY" \</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">  --data "{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    \"budget_override\": {\"max_budget\": 90},</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    \"budget_override_expires_at\": \"$INCREASE_EXPIRES_AT\"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }"</span><br></span></code></pre></div></div>
<p>Your product manages credit purchases and balances. LiteLLM applies the spend allowance until it expires; the organization and team caps still apply. Use the <a href="https://docs.litellm.ai/docs/proxy/customer_portal/api_reference#budget-increase-requests">approval APIs</a> if your workflow needs a review queue.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="put-the-usage-and-budget-controls-in-your-own-product">Put the usage and budget controls in your own product<a href="https://docs.litellm.ai/blog/customer-portal#put-the-usage-and-budget-controls-in-your-own-product" class="hash-link" aria-label="Direct link to Put the usage and budget controls in your own product" title="Direct link to Put the usage and budget controls in your own product">​</a></h3>
<p>Put usage next to the customer's credits and top-up options. Our APIs let your backend fetch actual spend and budget settings, so the customer sees the same costs you use for chargebacks:</p>
<figure data-full-width="true" class="productShot_DEBy usageShot_mgqq"><a class="screenshotLink_AlgL" href="https://docs.litellm.ai/img/customer_portal/launch-usage-overview-dark.webp" target="_blank" rel="noopener noreferrer" aria-label="Open the customer organization usage screenshot at full resolution"><img src="https://docs.litellm.ai/img/customer_portal/launch-usage-overview-dark.webp" width="4008" height="2262" alt="Customer organization usage in the dark LiteLLM UI, with spend and token totals and a daily trend across three models." loading="lazy"></a><figcaption>Demo usage across three models, with 13 days of activity. Track the customer's total and inspect the model costs behind it. <a href="https://docs.litellm.ai/img/customer_portal/launch-usage-overview-dark.webp" target="_blank" rel="noopener noreferrer">View full size.</a></figcaption></figure>
<p>Fetch complete organization totals for a date range:</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 --fail-with-body --silent --show-error --get \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  "$LITELLM_BASE_URL/management/v1/customer_organizations/daily/activity/aggregated" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --header "Authorization: Bearer $LITELLM_ADMIN_KEY" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --data-urlencode "customer_org_ids=org-acme" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --data-urlencode "start_date=2026-11-01" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --data-urlencode "end_date=2026-11-30"</span><br></span></code></pre></div></div>
<p>Read <code>metadata.total_spend</code>, <code>total_tokens</code>, and <code>total_api_requests</code>. Fetch caps from the organization, team, and member records; keep admin credentials on your backend and authorize each customer's access. Your billing system applies your prices and collects payment.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="keep-serving-requests-with-a-lower-cost-model">Keep serving requests with a lower-cost model<a href="https://docs.litellm.ai/blog/customer-portal#keep-serving-requests-with-a-lower-cost-model" class="hash-link" aria-label="Direct link to Keep serving requests with a lower-cost model" title="Direct link to Keep serving requests with a lower-cost model">​</a></h3>
<p>Give a customer's dedicated virtual key an Opus allowance, then configure a lower-cost fallback for when that model allowance runs out. The customer can keep using your agent while they still have room in their overall budget.</p>
<figure class="figure_PEpH" data-customer-graphic="fallback" data-primary-spend="40" data-fallback-spend="10" data-spend="50" data-active-model="economy" aria-label="Illustrative model budget fallback on a dedicated virtual key. Opus actual spend reaches its $40 model allowance. Subsequent requests use a lower-cost model and add $10, for $50 total actual spend against $100 in purchased customer credits. The customer still has room under their $60 hard cap. Fallback does not bypass that cap."><div class="window_wpoi" data-playing="false" data-rerouted="true"><div class="windowHeader_PHMu"><span class="windowDots_Gz2p" aria-hidden="true"><i></i><i></i><i></i></span><span>Model budget fallback</span></div><svg class="windowFlow_yBft" viewBox="0 0 640 320" preserveAspectRatio="none" aria-hidden="true"><path d="M1,280 V48 Q1,30 20,30 H255" class="flowTrack_HqT9"></path><path d="M1,280 V48 Q1,30 20,30 H255" class="flowPacket_KHSz" pathLength="1"></path></svg><div class="fallbackBody_WAef"><div class="modelRoutes__GXQ"><svg class="routeLines_TdgO" viewBox="0 0 600 60" preserveAspectRatio="none" aria-hidden="true"><path d="M300,30 H105" class="premiumRoute_jQQB"></path><path d="M300,30 H495" class="economyRoute_jM46"></path><path d="M300,30 H495" class="routePacket_fHfB economyPacket_UUMx" pathLength="1"></path></svg><div class="modelNode_hNTz"><img src="https://docs.litellm.ai/img/providers/anthropic.svg" width="28" height="28" alt="Anthropic"><strong>Opus 5.5</strong><small>Allowance reached</small></div><div class="gatewayNode_GSOu"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" width="80" height="15" alt="LiteLLM Gateway"><small>Routes the next request</small></div><div class="modelNode_hNTz"><img src="https://docs.litellm.ai/img/providers/openai_small.svg" width="28" height="28" alt="OpenAI"><strong>GPT-6 Luna</strong><small>Serving requests</small></div></div><div class="fallbackComparison_I9jV"><div class="fallbackCharts_nHib"><div><strong>$100</strong><div class="fallbackCredits_jdpb"><div class="entityBudgetBar_GVcg" aria-hidden="true"><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i><i><b style="height:100%"></b></i></div></div><span>Customer Credits</span></div><div><strong>$<!-- -->50</strong><div class="fallbackActualPlot_TpJw"><div class="fallbackSpendBar_faAk" aria-hidden="true"><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:100%"></b><em style="height:0%;bottom:100%"></em></i><i><b style="height:0%"></b><em style="height:100%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:100%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i><i><b style="height:0%"></b><em style="height:0%;bottom:0%"></em></i></div></div><span>Actual spend</span></div></div><div class="fallbackSummary_NIDA"><p class="premiumLabel_czTC">Opus: $<!-- -->40<!-- --> / $40 allowance</p><p class="economyLabel_icAm">Fallback: $<!-- -->10<!-- --> spend</p><strong>50<!-- -->% <small>profit margin</small></strong><span>$<!-- -->10<!-- --> left in customer budget</span></div></div></div></div><figcaption>Illustrative recorded spend and purchased credit value, before other expenses. Per-model key allowances trigger the switch; customer hard caps still apply.</figcaption></figure>
<p>Set <code>model_max_budget</code> and <code>budget_fallbacks</code> on the key with your configured model aliases. These <a href="https://docs.litellm.ai/docs/proxy/users#-virtual-key-model-specific">per-model key budgets</a> require Enterprise. A shared key pools its model budget across callers; customer organization, team, and member hard caps still stop requests when exhausted. See <a href="https://docs.litellm.ai/docs/proxy/budget_fallbacks">Budget Fallbacks</a> for the API setup.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="oss-and-enterprise">OSS and Enterprise<a href="https://docs.litellm.ai/blog/customer-portal#oss-and-enterprise" class="hash-link" aria-label="Direct link to OSS and Enterprise" title="Direct link to OSS and Enterprise">​</a></h2>
<table><thead><tr><th>Customer Portal</th><th>LiteLLM OSS</th><th>LiteLLM Enterprise</th></tr></thead><tbody><tr><td data-label="Customer Portal" data-inline="">Customer organizations</td><td data-label="LiteLLM OSS" data-inline="">Up to 5</td><td data-label="LiteLLM Enterprise" data-inline="">More than 5</td></tr><tr><td data-label="Customer Portal">Customer teams per organization</td><td data-label="LiteLLM OSS" data-inline="">Up to 5</td><td data-label="LiteLLM Enterprise" data-inline="">More than 5</td></tr><tr><td data-label="Customer Portal">Customer members per team</td><td data-label="LiteLLM OSS" data-inline="">Up to 5</td><td data-label="LiteLLM Enterprise" data-inline="">More than 5</td></tr></tbody></table>
<p>Start with the <a href="https://docs.litellm.ai/docs/proxy/customer_portal/track-customer-spend">walkthrough</a> and <a href="https://docs.litellm.ai/docs/proxy/customer_portal/api_reference">API reference</a>. For larger customer hierarchies, <a href="https://www.litellm.ai/enterprise" target="_blank" rel="noopener noreferrer">talk to us about Enterprise</a>.</p>
<p>This draft targets <code>main</code>; a published release containing the complete flow has not been verified. Check <a href="https://docs.litellm.ai/docs/proxy/customer_portal/api_reference#availability">availability</a> before deploying.</p>]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="spend-tracking" term="spend-tracking"/>
        <category label="customer-portal" term="customer-portal"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Gemini 4 Hydrogen API Pricing and Day 0 Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini-4-hydrogen</id>
        <link href="https://docs.litellm.ai/blog/gemini-4-hydrogen"/>
        <updated>2026-11-12T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Gemini 4 Hydrogen costs $1.50 per 1M input tokens and $7.50 per 1M output tokens, flat across its 1M context window. LiteLLM supports it on day 0 on AI Studio and Google Cloud.]]></summary>
        <content type="html"><![CDATA[<p>LiteLLM now supports <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-hydrogen/" target="_blank" rel="noopener noreferrer">Gemini 4 Hydrogen</a> on Day 0. Google built Hydrogen as the fast, everyday model for coding and agentic workflows, and it scores 51 on the Artificial Analysis Intelligence Index against Gemini 4 Argon's 50. Use it on Google AI Studio and Gemini Enterprise Agent Platform (formerly Vertex AI) through the LiteLLM AI Gateway, with spend, rate limits and logs in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="gemini-4-hydrogen-pricing">Gemini 4 Hydrogen pricing<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#gemini-4-hydrogen-pricing" class="hash-link" aria-label="Direct link to Gemini 4 Hydrogen pricing" title="Direct link to Gemini 4 Hydrogen pricing">​</a></h2>
<p>Prices per 1M tokens, the same across the full 1M-token context window:</p>
<ul>
<li><strong>Input:</strong> $1.50 / MTok</li>
<li><strong>Output:</strong> $7.50 / MTok. Thinking tokens bill as output.</li>
<li><strong>Cache read:</strong> $0.075 / MTok. Hydrogen supports implicit caching only.</li>
<li><strong>Batch and Flex:</strong> $0.75 input and $3.75 output</li>
<li><strong>Priority:</strong> $2.70 input and $13.50 output</li>
</ul>
<p>Gemini 4 Argon and Gemini 4 Carbon cost $2.00 / $10.00 until November 30 and $4.00 / $20.00 from December 1, so Hydrogen is the lowest-priced Gemini 4 model. On Gemini Enterprise Agent Platform, regional endpoints cost 10% more than <code>global</code>.</p>
<p>Details on pricing: <a href="https://models.litellm.ai/models/gemini-4-hydrogen" target="_blank" rel="noopener noreferrer">https://models.litellm.ai/models/gemini-4-hydrogen</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-gemini-4-hydrogen-with-litellm">Use Gemini 4 Hydrogen with LiteLLM<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#use-gemini-4-hydrogen-with-litellm" class="hash-link" aria-label="Direct link to Use Gemini 4 Hydrogen with LiteLLM" title="Direct link to Use Gemini 4 Hydrogen with LiteLLM">​</a></h2>
<p>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>
<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">Google AI Studio</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Gemini Enterprise Agent Platform</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"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">hydrogen</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">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">hydrogen</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">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 GEMINI_API_KEY=$GEMINI_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.106.2 \</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"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">hydrogen</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/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">hydrogen</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.106.2 \</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": "gemini-4-hydrogen",</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">  "reasoning_effort": "medium"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}'</span><br></span></code></pre></div></div>
<p>LiteLLM sends <code>reasoning_effort</code> to Hydrogen as its <code>thinking_level</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="faq">FAQ<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-much-does-gemini-4-hydrogen-cost">How much does Gemini 4 Hydrogen cost?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#how-much-does-gemini-4-hydrogen-cost" class="hash-link" aria-label="Direct link to How much does Gemini 4 Hydrogen cost?" title="Direct link to How much does Gemini 4 Hydrogen cost?">​</a></h3>
<p>$1.50 per 1M input tokens and $7.50 per 1M output tokens, with no surcharge for long prompts. Batch and Flex halve both prices.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-gemini-4-hydrogen-cheaper-than-gemini-4-argon">Is Gemini 4 Hydrogen cheaper than Gemini 4 Argon?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#is-gemini-4-hydrogen-cheaper-than-gemini-4-argon" class="hash-link" aria-label="Direct link to Is Gemini 4 Hydrogen cheaper than Gemini 4 Argon?" title="Direct link to Is Gemini 4 Hydrogen cheaper than Gemini 4 Argon?">​</a></h3>
<p>Yes. Hydrogen costs $1.50 / $7.50 per 1M tokens. Argon and Carbon cost $2.00 / $10.00 until November 30 and $4.00 / $20.00 from December 1.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-gemini-4-hydrogen-free-on-google-ai-studio">Is Gemini 4 Hydrogen free on Google AI Studio?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#is-gemini-4-hydrogen-free-on-google-ai-studio" class="hash-link" aria-label="Direct link to Is Gemini 4 Hydrogen free on Google AI Studio?" title="Direct link to Is Gemini 4 Hydrogen free on Google AI Studio?">​</a></h3>
<p>Yes. Google AI Studio lists a free tier for Hydrogen on the Standard tab. Google Search grounding is paid tier only.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-context-window-of-gemini-4-hydrogen">What is the context window of Gemini 4 Hydrogen?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#what-is-the-context-window-of-gemini-4-hydrogen" class="hash-link" aria-label="Direct link to What is the context window of Gemini 4 Hydrogen?" title="Direct link to What is the context window of Gemini 4 Hydrogen?">​</a></h3>
<p>1,048,576 tokens for input, thinking and output together. Google returns up to 65,536 output tokens per synchronous request, and LiteLLM <a href="https://docs.litellm.ai/blog/gemini-4-argon#long-outputs">continues past that cap</a> the same way it does for Argon.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="which-thinking-levels-does-gemini-4-hydrogen-support">Which thinking levels does Gemini 4 Hydrogen support?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#which-thinking-levels-does-gemini-4-hydrogen-support" class="hash-link" aria-label="Direct link to Which thinking levels does Gemini 4 Hydrogen support?" title="Direct link to Which thinking levels does Gemini 4 Hydrogen support?">​</a></h3>
<p><code>low</code>, <code>medium</code>, <code>high</code> and <code>xhigh</code>, with <code>high</code> as the default. Set <code>low</code>, <code>medium</code> or <code>high</code> with <code>reasoning_effort</code>. Support for <code>xhigh</code> through <code>reasoning_effort</code> is tracked in <a href="https://github.com/BerriAI/litellm/pull/47086" target="_blank" rel="noopener noreferrer">PR #47086</a>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-switch-from-gemini-38-flash-to-gemini-4-hydrogen">How do I switch from Gemini 3.8 Flash to Gemini 4 Hydrogen?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#how-do-i-switch-from-gemini-38-flash-to-gemini-4-hydrogen" class="hash-link" aria-label="Direct link to How do I switch from Gemini 3.8 Flash to Gemini 4 Hydrogen?" title="Direct link to How do I switch from Gemini 3.8 Flash to Gemini 4 Hydrogen?">​</a></h3>
<p>Change <code>gemini/gemini-3.8-flash</code> to <code>gemini/gemini-4-hydrogen</code> in your config. Google says Hydrogen finishes tasks 2.5x faster than 3.8 Flash.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-gemini-4-hydrogen-support-context-caching">Does Gemini 4 Hydrogen support context caching?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#does-gemini-4-hydrogen-support-context-caching" class="hash-link" aria-label="Direct link to Does Gemini 4 Hydrogen support context caching?" title="Direct link to Does Gemini 4 Hydrogen support context caching?">​</a></h3>
<p>Implicit caching only, from 4,096 prompt tokens. Explicit caching is not supported.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-google-search-grounding-free-on-gemini-4-hydrogen">Is Google Search grounding free on Gemini 4 Hydrogen?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#is-google-search-grounding-free-on-gemini-4-hydrogen" class="hash-link" aria-label="Direct link to Is Google Search grounding free on Gemini 4 Hydrogen?" title="Direct link to Is Google Search grounding free on Gemini 4 Hydrogen?">​</a></h3>
<p>The first 5,000 queries a month are free, shared with Gemini 3 and newer models, then $14 per 1,000 queries. Grounding with Google Maps has the same allowance and price.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-call-gemini-4-hydrogen-with-an-openai-compatible-api">How do I call Gemini 4 Hydrogen with an OpenAI-compatible API?<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#how-do-i-call-gemini-4-hydrogen-with-an-openai-compatible-api" class="hash-link" aria-label="Direct link to How do I call Gemini 4 Hydrogen with an OpenAI-compatible API?" title="Direct link to How do I call Gemini 4 Hydrogen with an OpenAI-compatible API?">​</a></h3>
<p>Add <code>gemini/gemini-4-hydrogen</code> to your LiteLLM config. Then send a standard <code>/chat/completions</code> request to the proxy with <code>"model": "gemini-4-hydrogen"</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions/51436" target="_blank" rel="noopener noreferrer">GitHub discussion #51436</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="references">References<a href="https://docs.litellm.ai/blog/gemini-4-hydrogen#references" class="hash-link" aria-label="Direct link to References" title="Direct link to References">​</a></h2>
<ul>
<li>LiteLLM model page for Gemini 4 Hydrogen, with prices on every provider: <a href="https://models.litellm.ai/models/gemini-4-hydrogen" target="_blank" rel="noopener noreferrer">models.litellm.ai/models/gemini-4-hydrogen</a></li>
<li>LiteLLM pricing for <code>gemini/gemini-4-hydrogen</code>: <a href="https://github.com/BerriAI/litellm/pull/51423" target="_blank" rel="noopener noreferrer">PR #51423</a></li>
<li>LiteLLM pricing for <code>vertex_ai/gemini-4-hydrogen</code>: <a href="https://github.com/BerriAI/litellm/pull/51432" target="_blank" rel="noopener noreferrer">PR #51432</a></li>
<li>Google: <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-hydrogen/" target="_blank" rel="noopener noreferrer">Gemini 4 Hydrogen announcement</a>, <a href="https://aistudio.google.com/docs/models/gemini-4-hydrogen" target="_blank" rel="noopener noreferrer">model page</a>, <a href="https://aistudio.google.com/docs/whats-new-gemini-4-hydrogen" target="_blank" rel="noopener noreferrer">what's new</a> and <a href="https://aistudio.google.com/docs/pricing" target="_blank" rel="noopener noreferrer">pricing</a></li>
</ul>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini 4" term="gemini 4"/>
        <category label="gemini-4-hydrogen" term="gemini-4-hydrogen"/>
        <category label="pricing" term="pricing"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Gemini 4 Hydrogen" term="card_title:Gemini 4 Hydrogen"/>
        <category label="card_summary:Google's fast agentic model, ahead of Argon on the AA Intelligence Index at $1.50 / $7.50 per 1M tokens." term="card_summary:Google's fast agentic model, ahead of Argon on the AA Intelligence Index at $1.50 / $7.50 per 1M tokens."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM Private Registry is now available]]></title>
        <id>https://docs.litellm.ai/blog/litellm-private-registry-access</id>
        <link href="https://docs.litellm.ai/blog/litellm-private-registry-access"/>
        <updated>2026-11-12T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM Private Registry is now available, with early access to fixes for the most severe vulnerabilities ahead of public disclosure.]]></summary>
        <content type="html"><![CDATA[<p>The <strong>LiteLLM Private Registry is now available</strong>.</p>
<p>Public security patches can show attackers how a vulnerability works. For the most severe vulnerabilities, LiteLLM shares fixes privately first. This gives teams time to scan and deploy the patched version before the fix and security advisory become public. <strong>LiteLLM continues to release all security fixes publicly.</strong></p>
<!-- -->
<p>The <a href="https://docs.litellm.ai/blog/litellm-private-registry">October announcement</a> introduced plans for the Private Registry.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="request-access">Request access<a href="https://docs.litellm.ai/blog/litellm-private-registry-access#request-access" class="hash-link" aria-label="Direct link to Request access" title="Direct link to Request access">​</a></h2>
<p>Customers with an existing confidentiality agreement with LiteLLM can contact <a href="mailto:support@berri.ai" target="_blank" rel="noopener noreferrer">support</a> for registry access. LiteLLM is developing an access policy for open-source users. Share feedback in the <a href="https://github.com/BerriAI/litellm/discussions/48643" target="_blank" rel="noopener noreferrer">GitHub discussion</a>.</p>]]></content>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Performance alerts in LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/performance-alerts</id>
        <link href="https://docs.litellm.ai/blog/performance-alerts"/>
        <updated>2026-11-11T20:00:00.000Z</updated>
        <summary type="html"><![CDATA[Get alerts for spend spikes, traffic spikes, higher error rates, and slower responses. Monitoring is on by default, with five free alerts before Enterprise.]]></summary>
        <content type="html"><![CDATA[<div class="root_Dm3m" data-full-width="true"><header class="hero_Q6Jn"><div class="inner_QI9v"><div class="masthead_GLri"><a aria-label="Back to the LiteLLM blog" href="https://docs.litellm.ai/blog"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" width="136"></a><span>AI GATEWAY / NOVEMBER 2026</span></div><div class="opening_vkim"><h1>Performance<br>alerts</h1><p class="subtitle_SAM4">See what changed<br>in your gateway.</p><figure class="chart_vqdR" aria-label="Illustrative daily spend. Seven days average $200, followed by $1,200 yesterday. The final day is six times the baseline."><div class="bars_a08f" aria-hidden="true"><div class="bar_DUFk" style="height:13.333333333333334%"></div><div class="bar_DUFk" style="height:15%"></div><div class="bar_DUFk" style="height:18.333333333333332%"></div><div class="bar_DUFk" style="height:16.666666666666668%"></div><div class="bar_DUFk" style="height:20%"></div><div class="bar_DUFk" style="height:15%"></div><div class="bar_DUFk" style="height:18.333333333333332%"></div><div class="spike_FPYh" style="height:100%"><span class="spikeValue_TL5C">$1,200<span>Yesterday</span></span></div><div class="baseline_aoR8"><span>$200 daily average</span></div></div><figcaption><span>Previous 7 days</span><span>Illustrative spend data</span></figcaption></figure></div><div class="heroFooter_Kr20"><span>Spend. Traffic. Response time. Errors.</span><a href="https://docs.litellm.ai/blog/performance-alerts#alerts">Read the announcement</a></div></div></header><div class="article_a5yZ" id="alerts"><div class="byline_Pa_S"><div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-11-11T20:00:00.000Z">Nov 11, 2026</time></span><div class="authors_hW1g"><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>AI Product Engineer, LiteLLM</small></span></span></div></div></div></div><div class="intro_J8T6"><p>Performance alerts flag spend spikes, traffic spikes, higher error rates, and slower responses in your gateway.</p><p>Open <strong>Alerts</strong> in LiteLLM to review findings alongside model deprecations. Monitoring is on by default for gateways with a database and recorded Usage. You do not need to write rules.</p></div><figure class="screenshot_SCb2"><a href="https://docs.litellm.ai/img/alerts/spend-alert.webp" aria-label="Open the spend alert screenshot at full size"><img src="https://docs.litellm.ai/img/alerts/spend-alert.webp" alt="An inbox alert shows Research owner's spend at $1,200, six times its $200 baseline, with a sparkline and resolve and dismiss actions." width="2886" height="320" loading="lazy"></a><figcaption>A spend alert in the inbox. Demo data.</figcaption></figure><section class="section_Ljnb" aria-labelledby="checks-title"><h2 id="checks-title">What triggers an alert</h2><div><p>LiteLLM compares the last complete day with the previous seven days across your gateway, model groups, teams, users, and virtual keys.</p><dl class="checks_WhfM"><div><dt>Spend spikes</dt><dd>A rise in daily spend compared with your recent average.</dd></div><div><dt>Traffic spikes</dt><dd>A sharp increase in request volume.</dd></div><div><dt>Slower responses</dt><dd>Requests taking longer to complete.</dd></div><div><dt>Error rates</dt><dd>A larger share of requests failing.</dd></div></dl><p class="caption_Jo5M">These are daily findings based on recorded Usage. Detection is best effort, and missing Usage can affect the comparison.</p></div></section><section class="section_Ljnb" aria-labelledby="review-title"><h2 id="review-title">Review an alert</h2><div><p>Select an alert to see the daily graph, the baseline, and the affected resource. Follow its link to inspect activity or model routing. Mark it resolved after addressing it, or dismiss it if no action is needed.</p></div><figure class="screenshot_SCb2 detail_ZHgZ"><a href="https://docs.litellm.ai/img/alerts/spend-detail.webp" aria-label="Open the alert detail screenshot at full size"><img src="https://docs.litellm.ai/img/alerts/spend-detail.webp" alt="The spend alert detail shows eight days of bars, a $200 baseline, a $1,200 spike, and a link to Research owner's activity." width="2882" height="1335" loading="lazy"></a><figcaption>Compare the daily chart, then open the resource’s activity. Demo data. <a href="https://docs.litellm.ai/img/alerts/spend-detail.webp">View full size</a></figcaption></figure></section><section class="section_Ljnb notifications_R2AV" aria-labelledby="notifications-title"><div><h2 id="notifications-title">Notifications</h2><p>The notification bell shows up to five open alerts. Select one to open it, or <strong>See all</strong> for the full inbox.</p></div><figure class="screenshot_SCb2"><a href="https://docs.litellm.ai/img/alerts/notifications.webp" aria-label="Open the notifications screenshot at full size"><img src="https://docs.litellm.ai/img/alerts/notifications.webp" alt="The notification menu lists one model deprecation and four performance alerts, with a See all link." width="772" height="1122" loading="lazy"></a><figcaption>Model deprecations and performance alerts together. Demo data.</figcaption></figure></section><section class="section_Ljnb" aria-labelledby="availability-title"><h2 id="availability-title">Five free alerts</h2><div><p>You get five saved performance alerts per gateway database. After the fifth, monitoring stops until you add an Enterprise license. Your saved alerts remain available.</p><p>Enterprise includes continued monitoring. Resolving or dismissing an alert does not reset the free allowance, and model deprecations do not count toward it.</p><p>You can opt out with the <strong>Performance monitoring</strong> switch on the Alerts page.</p></div></section><footer class="end_pc_V"><a href="https://docs.litellm.ai/docs/proxy/alerts/performance">Read the performance alerts guide</a><a href="https://docs.litellm.ai/docs/enterprise">LiteLLM Enterprise</a></footer></div></div>
]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="enterprise" term="enterprise"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Routing in Rust]]></title>
        <id>https://docs.litellm.ai/blog/router-rust</id>
        <link href="https://docs.litellm.ai/blog/router-rust"/>
        <updated>2026-11-11T17:00:00.000Z</updated>
        <summary type="html"><![CDATA[As of v1.110.0, all routing in LiteLLM flows through a Rust core. Here is why we rebuilt the router and how differential testing let us migrate it without regressions.]]></summary>
        <content type="html"><![CDATA[<p>As of today, v1.110.0, all routing in LiteLLM flows through a Rust core! The previous python code that implemented it is fully deleted, and we have one source of truth in the codebase. That includes all logic around retries, fallbacks, name resolution, deployment selection, etc. It was over 50k LOC deleted in the final swap.</p>
<p>Right now, LiteLLM users won't see a huge change, but the value will manifest when we have incredibly fast messages in December. Additionally, this refactor enabled us to create the <button type="button" class="trigger_Ybkj">router playground</button>, which is great for exploring routing configurations.</p>
<p>This post covers why we chose the Router to operate, and how we managed to migrate it safely without causing regressions.</p>
<!-- -->
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">01</span>BEFORE AND AFTER v1.110.0</span><p class="title_rbjw">Every routing decision now comes from one Rust core</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 290" role="img" aria-label="Before v1.110.0, a request from the SDK or proxy went through the Python litellm.Router, which did name resolution, selection, retries, fallbacks, cooldowns and health, before reaching providers. Now the request goes through a thin Python Router API into the Rust core, which does the same work, and on to the same providers."><defs><marker id="rr-swap" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-swap-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-swap-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-swap-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-swap-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-swap-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-swap-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><text x="20" y="30" class="e_pHic">BEFORE</text><rect x="20" y="44" width="130" height="84" rx="10" class="box_bk4s"></rect><text x="85" y="81" class="t_CZB3" text-anchor="middle">SDK / proxy</text><text x="85" y="101" class="s_Y7Vu" text-anchor="middle">your request</text><rect x="200" y="44" width="340" height="84" rx="10" class="py_Qg1i shadow_bufp"></rect><text x="222" y="74" class="t_CZB3 tPy_SnMM">litellm.Router (Python)</text><text x="222" y="96" class="s_Y7Vu">name resolution · selection · retries</text><text x="222" y="113" class="s_Y7Vu">fallbacks · cooldowns · health</text><rect x="590" y="44" width="150" height="84" rx="10" class="box_bk4s"></rect><text x="665" y="81" class="t_CZB3" text-anchor="middle">Providers</text><text x="665" y="101" class="s_Y7Vu" text-anchor="middle">OpenAI, Anthropic, …</text><path d="M150 86H198" class="wire_QvcH" marker-end="url(#rr-swap)"></path><path d="M540 86H588" class="wire_QvcH" marker-end="url(#rr-swap)"></path><text x="20" y="176" class="e_pHic">NOW</text><rect x="20" y="186" width="130" height="84" rx="10" class="box_bk4s"></rect><text x="85" y="223" class="t_CZB3" text-anchor="middle">SDK / proxy</text><text x="85" y="243" class="s_Y7Vu" text-anchor="middle">same request</text><rect x="200" y="186" width="110" height="84" rx="10" class="py_Qg1i"></rect><text x="255" y="223" class="t_CZB3 tPy_SnMM" text-anchor="middle">Router API</text><text x="255" y="243" class="s_Y7Vu" text-anchor="middle">Python, thin</text><rect x="340" y="186" width="200" height="84" rx="10" class="rs_wEqI shadow_bufp"></rect><text x="440" y="218" class="t_CZB3 tRs_xmYC" text-anchor="middle">Rust core</text><text x="440" y="239" class="s_Y7Vu" text-anchor="middle">all the same logic,</text><text x="440" y="256" class="s_Y7Vu" text-anchor="middle">one source of truth</text><rect x="590" y="186" width="150" height="84" rx="10" class="box_bk4s"></rect><text x="665" y="223" class="t_CZB3" text-anchor="middle">Providers</text><text x="665" y="243" class="s_Y7Vu" text-anchor="middle">unchanged</text><path d="M150 228H198" class="wire_QvcH" marker-end="url(#rr-swap)"></path><path d="M150 228H198" class="flow_yt1c"></path><path d="M310 228H338" class="wire_QvcH" marker-end="url(#rr-swap)"></path><path d="M310 228H338" class="flow_yt1c"></path><path d="M540 228H588" class="wire_QvcH" marker-end="url(#rr-swap)"></path><path d="M540 228H588" class="flow_yt1c"></path></svg></div></div><figcaption>The Python API callers use stays in place. Everything behind it now runs in Rust.</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-router">The router<a href="https://docs.litellm.ai/blog/router-rust#the-router" class="hash-link" aria-label="Direct link to The router" title="Direct link to The router">​</a></h2>
<p>We are moving towards the goal of getting <code>/v1/messages</code> calls (like Claude code makes) entirely in the Rust fast-path by December 1.
Routing is on the critical path of <em>every</em> request, and is a crucial part of the value proposition of LiteLLM itself.
However, rewriting the router isn't easy.
It reaches out to a large number of other components, and does redis access, database access, calls every inference endpoint, and is called by both SDK users and the proxy itself.</p>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">02</span>WHY IT'S HARD</span><p class="title_rbjw">The router sits between everything</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 390" role="img" aria-label="The router sits in the middle, on every request. SDK users and the LiteLLM proxy call it. It reads and writes Redis for cooldowns and usage shared across replicas, and the database for deployments and config. It calls every inference endpoint and fires callbacks and logging."><defs><marker id="rr-hub" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-hub-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-hub-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-hub-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-hub-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-hub-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-hub-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><rect x="282" y="132" width="196" height="126" rx="18" class="halo_spI2"></rect><rect x="290" y="140" width="180" height="110" rx="14" class="py_Qg1i shadow_bufp"></rect><text x="380" y="193" class="h_iFd0 tPy_SnMM" text-anchor="middle">Router</text><text x="380" y="215" class="s_Y7Vu" text-anchor="middle">on every request</text><rect x="20" y="70" width="200" height="64" rx="10" class="box_bk4s"></rect><text x="36" y="96" class="t_CZB3">SDK users</text><text x="36" y="116" class="m_sIP5">litellm.Router(...)</text><rect x="20" y="256" width="200" height="64" rx="10" class="box_bk4s"></rect><text x="36" y="282" class="t_CZB3">LiteLLM proxy</text><text x="36" y="302" class="s_Y7Vu">every /v1 request</text><rect x="290" y="20" width="180" height="56" rx="10" class="box_bk4s"></rect><text x="380" y="43" class="t_CZB3" text-anchor="middle">Redis</text><text x="380" y="62" class="s_Y7Vu" text-anchor="middle">cooldowns, usage, replicas</text><rect x="290" y="314" width="180" height="56" rx="10" class="box_bk4s"></rect><text x="380" y="337" class="t_CZB3" text-anchor="middle">Database</text><text x="380" y="356" class="s_Y7Vu" text-anchor="middle">deployments, config</text><rect x="540" y="70" width="200" height="64" rx="10" class="box_bk4s"></rect><text x="556" y="96" class="t_CZB3">Every inference endpoint</text><text x="556" y="116" class="s_Y7Vu">chat, embeddings, images, …</text><rect x="540" y="256" width="200" height="64" rx="10" class="box_bk4s"></rect><text x="556" y="282" class="t_CZB3">Callbacks &amp; logging</text><text x="556" y="302" class="s_Y7Vu">success, failure, spend</text><path d="M220 102L288 170" class="wire_QvcH" marker-end="url(#rr-hub)"></path><path d="M220 102L288 170" class="flow_yt1c"></path><text x="268" y="122" class="wl_a1CW" text-anchor="middle">calls</text><path d="M220 288L288 220" class="wire_QvcH" marker-end="url(#rr-hub)"></path><path d="M220 288L288 220" class="flow_yt1c"></path><text x="272" y="278" class="wl_a1CW" text-anchor="middle">calls</text><path d="M380 138V78" class="wire_QvcH" marker-end="url(#rr-hub)" marker-start="url(#rr-hub)"></path><text x="370" y="112" class="wl_a1CW" text-anchor="end">reads · writes</text><path d="M380 252V312" class="wire_QvcH" marker-end="url(#rr-hub)" marker-start="url(#rr-hub)"></path><text x="370" y="286" class="wl_a1CW" text-anchor="end">reads · writes</text><path d="M470 170L538 102" class="wire_QvcH" marker-end="url(#rr-hub)"></path><path d="M470 170L538 102" class="flow_yt1c"></path><text x="486" y="114" class="wl_a1CW" text-anchor="middle">calls out</text><path d="M470 220L538 288" class="wire_QvcH" marker-end="url(#rr-hub)"></path><path d="M470 220L538 288" class="flow_yt1c"></path><text x="492" y="286" class="wl_a1CW" text-anchor="middle">fires</text></svg></div></div><figcaption>Every request crosses the router, and the router reaches into every other part of LiteLLM.</figcaption></figure>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-we-changed-it">How we changed it<a href="https://docs.litellm.ai/blog/router-rust#how-we-changed-it" class="hash-link" aria-label="Direct link to How we changed it" title="Direct link to How we changed it">​</a></h3>
<p>Because it's called by SDK users, we can't just rewrite fully to Rust and change the API in a way that breaks existing code.
However, the existing router code had grown in a fairly unwieldy way, regularly growing additional methods that did almost the same thing as one another.
It was worth the time to refactor it first while maintaining backwards compatibility, and only after that migrate the core over to Rust.
We can make the surface exposed via the new API a lot more amenable to being passed across a serialization boundary.</p>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">03</span>THE PLAN</span><p class="title_rbjw">Refactor in Python first, then swap the core</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 295" role="img" aria-label="Three stages. Start: a Python router grown over years with near-duplicate methods, drawn as tangled lines. Step one, refactor: the same Python router behind a new API of registry, settings, health, select, apply and more. Step two, swap: a Rust core behind that same API. A differential test compared old against refactored for step one, and the Python core against the Rust core for step two."><defs><marker id="rr-plan" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-plan-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-plan-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-plan-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-plan-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-plan-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-plan-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><rect x="20" y="30" width="200" height="170" rx="10" class="box_bk4s"></rect><text x="36" y="54" class="e_pHic">START</text><text x="36" y="78" class="t_CZB3">Python router</text><text x="36" y="98" class="s_Y7Vu">grown over years,</text><text x="36" y="115" class="s_Y7Vu">near-duplicate methods</text><g transform="translate(0 2)"><path class="tangle_oMxY" d="M36 160C60 128 84 182 110 146S150 170 168 140S196 158 204 150"></path><path class="tangle_oMxY" d="M36 146C64 176 92 132 118 166S158 132 176 164S198 148 204 166"></path><path class="tangle_oMxY" d="M36 172C58 150 90 156 114 136S156 178 180 152S200 140 204 136"></path></g><rect x="280" y="30" width="200" height="170" rx="10" class="py_Qg1i shadow_bufp"></rect><text x="296" y="54" class="e_pHic tPy_SnMM">STEP 1 · REFACTOR</text><text x="296" y="78" class="t_CZB3 tPy_SnMM">Python router, new API</text><g><circle cx="301" cy="106" r="3" class="dot_DoFa tPy_SnMM"></circle><text x="312" y="110" class="m_sIP5 tPy_SnMM">registry()</text></g><g><circle cx="301" cy="122" r="3" class="dot_DoFa tPy_SnMM"></circle><text x="312" y="126" class="m_sIP5 tPy_SnMM">settings()</text></g><g><circle cx="301" cy="138" r="3" class="dot_DoFa tPy_SnMM"></circle><text x="312" y="142" class="m_sIP5 tPy_SnMM">health()</text></g><g><circle cx="301" cy="154" r="3" class="dot_DoFa tPy_SnMM"></circle><text x="312" y="158" class="m_sIP5 tPy_SnMM">select()</text></g><g><circle cx="301" cy="170" r="3" class="dot_DoFa tPy_SnMM"></circle><text x="312" y="174" class="m_sIP5 tPy_SnMM">apply(ChangeSet)</text></g><g><text x="296" y="190" class="m_sIP5 tMuted_rb7D">+ more</text></g><rect x="540" y="30" width="200" height="170" rx="10" class="rs_wEqI shadow_bufp"></rect><text x="556" y="54" class="e_pHic tRs_xmYC">STEP 2 · SWAP</text><text x="556" y="78" class="t_CZB3 tRs_xmYC">Rust core</text><g><circle cx="561" cy="106" r="3" class="dot_DoFa tRs_xmYC"></circle><text x="572" y="110" class="m_sIP5 tRs_xmYC">registry()</text></g><g><circle cx="561" cy="122" r="3" class="dot_DoFa tRs_xmYC"></circle><text x="572" y="126" class="m_sIP5 tRs_xmYC">settings()</text></g><g><circle cx="561" cy="138" r="3" class="dot_DoFa tRs_xmYC"></circle><text x="572" y="142" class="m_sIP5 tRs_xmYC">health()</text></g><g><circle cx="561" cy="154" r="3" class="dot_DoFa tRs_xmYC"></circle><text x="572" y="158" class="m_sIP5 tRs_xmYC">select()</text></g><g><circle cx="561" cy="170" r="3" class="dot_DoFa tRs_xmYC"></circle><text x="572" y="174" class="m_sIP5 tRs_xmYC">apply(ChangeSet)</text></g><g><text x="556" y="190" class="m_sIP5 tMuted_rb7D">+ more</text></g><path d="M220 110H278" class="wire_QvcH wire_py_Qeiw" marker-end="url(#rr-plan-py)"></path><text x="249" y="101" class="wl_a1CW" text-anchor="middle">refactor</text><path d="M480 110H538" class="wire_QvcH wire_rs_PGoq" marker-end="url(#rr-plan-rs)"></path><text x="509" y="101" class="wl_a1CW" text-anchor="middle">swap</text><path d="M120 200V222H372V200" class="bracket_05La"></path><g><rect x="146" y="207" width="200" height="30" rx="15" class="ok_AU79"></rect><text x="246" y="226" class="s_Y7Vu pillText_lFhL tOk_uXsF" text-anchor="middle">diff test: old ↔ refactored</text></g><path d="M388 200V262H640V200" class="bracket_05La"></path><g><rect x="399" y="247" width="230" height="30" rx="15" class="ok_AU79"></rect><text x="514" y="266" class="s_Y7Vu pillText_lFhL tOk_uXsF" text-anchor="middle">diff test: Python core ↔ Rust core</text></g></svg></div></div><figcaption>Each step is behavior-preserving on its own, so each one gets its own differential test.</figcaption></figure>
<p>For example, the old router API had the following methods, which did not quite have the same arguments:</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">get_available_deployment</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 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><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"></span><span class="token keyword" style="color:#CF222E">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">async_get_available_deployment</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 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><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><span class="token comment" style="color:#6B6B6B;font-style:italic"># not same arg order as above</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">async_get_healthy_deployments</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 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><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><span class="token comment" style="color:#6B6B6B;font-style:italic"># called by above method internally</span><br></span></code></pre></div></div>
<p>We were able to pare this down to a family of methods that still exposed all the same behavior, but were a lot more intentional about when we were inducing side effects, exposing mutable objects, or changing configuration.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="the-new-interface">The new interface<a href="https://docs.litellm.ai/blog/router-rust#the-new-interface" class="hash-link" aria-label="Direct link to The new interface" title="Direct link to The new interface">​</a></h3>
<p>The new interface of the router looks something like this</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">class</span><span class="token plain"> </span><span class="token class-name" style="color:#116329">Router</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">registry</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"> Registry </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># answers which deployments exist</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">settings</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"> Settings </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># A snapshot of how the router is configured</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">health</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"> Health </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># Deployment health and cooldowns. Used to report outcomes</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">select</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"> Deployment </span><span class="token operator" style="color:#D73A49">|</span><span class="token plain"> </span><span class="token boolean" style="color:#005CC5">None</span><span class="token plain"> </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># Select the deployment to use without using it</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">apply</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">ChangeSet</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> ApplyResult </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># Modify deployments or settings</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">def</span><span class="token plain"> </span><span class="token function" style="color:#8250DF">register_plugin</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">Plugin</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 boolean" style="color:#005CC5">None</span><span class="token plain"> </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># Register a custom routing strategy</span><br></span></code></pre></div></div>
<p>The new interface segments functionality into logic subsets, and most of its exposed information is immutable. Callers have to be very explicit about what they want to modify. This shape of interface is a lot more efficient, and also gives you more information from reading the code. If someone accesses the router with <code>router.registry().something</code>, without reading further you can verify that the router is unchanged in the rest of the code.</p>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">04</span>OLD API → NEW API</span><p class="title_rbjw">Only one entry point changes the router</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 580" role="img" aria-label="Old router members map onto new entry points. select, health, registry and settings only read, marked with a lock. apply with a ChangeSet will change the router, marked with a pencil: upsert_deployment, delete_deployment and update_settings all become apply."><defs><marker id="rr-api" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-api-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-api-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-api-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-api-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-api-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-api-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><text x="20" y="30" class="e_pHic">OLD ROUTER MEMBERS</text><text x="460" y="30" class="e_pHic">NEW ENTRY POINT</text><rect x="10" y="42" width="740" height="112" rx="12" class="band_aCMQ"></rect><rect x="10" y="162" width="740" height="78" rx="12" class="band_aCMQ"></rect><rect x="10" y="248" width="740" height="78" rx="12" class="band_aCMQ"></rect><rect x="10" y="334" width="740" height="78" rx="12" class="band_aCMQ"></rect><rect x="10" y="420" width="740" height="112" rx="12" class="band_aCMQ"></rect><path d="M340 64C402 64 398 98 458 98" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 98C402 98 398 98 458 98" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 132C402 132 398 98 458 98" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 184C402 184 398 201 458 201" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 218C402 218 398 201 458 201" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 270C402 270 398 287 458 287" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 304C402 304 398 287 458 287" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 356C402 356 398 373 458 373" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 390C402 390 398 373 458 373" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 442C402 442 398 476 458 476" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 476C402 476 398 476 458 476" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><path d="M340 510C402 510 398 476 458 476" class="wireSoft_vkLO" marker-end="url(#rr-api-soft)"></path><g><rect x="20" y="50" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="68" class="m_sIP5">async_get_available_deployment</text></g><g><rect x="20" y="84" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="102" class="m_sIP5">async_get_healthy_deployments</text></g><g><rect x="20" y="118" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="136" class="m_sIP5">get_available_deployment_for_pass_through</text></g><g><rect x="20" y="170" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="188" class="m_sIP5">is_deployment_blocked</text></g><g><rect x="20" y="204" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="222" class="m_sIP5">cooldown_cache</text></g><g><rect x="20" y="256" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="274" class="m_sIP5">get_model_list</text></g><g><rect x="20" y="290" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="308" class="m_sIP5">get_deployment</text></g><g><rect x="20" y="342" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="360" class="m_sIP5">get_settings</text></g><g><rect x="20" y="376" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="394" class="m_sIP5">cooldown_time, allowed_fails, …</text></g><g><rect x="20" y="428" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="446" class="m_sIP5">upsert_deployment</text></g><g><rect x="20" y="462" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="480" class="m_sIP5">delete_deployment</text></g><g><rect x="20" y="496" width="320" height="28" rx="7" class="box_bk4s"></rect><text x="32" y="514" class="m_sIP5">update_settings</text></g><g><rect x="460" y="50" width="280" height="96" rx="10" class="ok_AU79 shadow_bufp"></rect><text x="480" y="95" class="m_sIP5 mBold_77PA tOk_uXsF">select()</text><text x="480" y="113" class="s_Y7Vu">picks, without calling</text><g transform="translate(716 98)" class="icon_Whty tOk_uXsF"><path d="M-3.5 -1V-4a3.5 3.5 0 0 1 7 0V-1" class="iconStroke_RGiJ"></path><rect x="-6" y="-1" width="12" height="9" rx="2" class="iconFill_OASp"></rect></g></g><g><rect x="460" y="170" width="280" height="62" rx="10" class="ok_AU79 shadow_bufp"></rect><text x="480" y="198" class="m_sIP5 mBold_77PA tOk_uXsF">health()</text><text x="480" y="216" class="s_Y7Vu">cooldowns, blocks, usage</text><g transform="translate(716 201)" class="icon_Whty tOk_uXsF"><path d="M-3.5 -1V-4a3.5 3.5 0 0 1 7 0V-1" class="iconStroke_RGiJ"></path><rect x="-6" y="-1" width="12" height="9" rx="2" class="iconFill_OASp"></rect></g></g><g><rect x="460" y="256" width="280" height="62" rx="10" class="ok_AU79 shadow_bufp"></rect><text x="480" y="284" class="m_sIP5 mBold_77PA tOk_uXsF">registry()</text><text x="480" y="302" class="s_Y7Vu">which deployments exist</text><g transform="translate(716 287)" class="icon_Whty tOk_uXsF"><path d="M-3.5 -1V-4a3.5 3.5 0 0 1 7 0V-1" class="iconStroke_RGiJ"></path><rect x="-6" y="-1" width="12" height="9" rx="2" class="iconFill_OASp"></rect></g></g><g><rect x="460" y="342" width="280" height="62" rx="10" class="ok_AU79 shadow_bufp"></rect><text x="480" y="370" class="m_sIP5 mBold_77PA tOk_uXsF">settings()</text><text x="480" y="388" class="s_Y7Vu">a frozen snapshot</text><g transform="translate(716 373)" class="icon_Whty tOk_uXsF"><path d="M-3.5 -1V-4a3.5 3.5 0 0 1 7 0V-1" class="iconStroke_RGiJ"></path><rect x="-6" y="-1" width="12" height="9" rx="2" class="iconFill_OASp"></rect></g></g><g><rect x="460" y="428" width="280" height="96" rx="10" class="mut_Kmhb shadow_bufp focal_vIPW"></rect><text x="480" y="473" class="m_sIP5 mBold_77PA tMut_S9Qw">apply(ChangeSet)</text><text x="480" y="491" class="s_Y7Vu">upsert · delete · settings</text><g transform="translate(716 476)" class="icon_Whty tMut_S9Qw"><path d="M-6 6l1.6-5.2 7-7 3.6 3.6-7 7z" class="iconFill_OASp"></path><path d="M-6 6l5.2-1.6" class="iconStroke_RGiJ"></path></g></g><g transform="translate(28 564)" class="icon_Whty tOk_uXsF"><path d="M-3.5 -1V-4a3.5 3.5 0 0 1 7 0V-1" class="iconStroke_RGiJ"></path><rect x="-6" y="-1" width="12" height="9" rx="2" class="iconFill_OASp"></rect></g><text x="44" y="568" class="s_Y7Vu">reads, never changes the router</text><g transform="translate(268 564)" class="icon_Whty tMut_S9Qw"><path d="M-6 6l1.6-5.2 7-7 3.6 3.6-7 7z" class="iconFill_OASp"></path><path d="M-6 6l5.2-1.6" class="iconStroke_RGiJ"></path></g><text x="284" y="568" class="s_Y7Vu">will change the router</text></svg></div></div><figcaption>A sample of the old members. Each one still works, and logs a deprecation warning naming its replacement.</figcaption></figure>
<p>Existing open source code that uses the router will log a deprecation warning that clarifies what should be used instead, and the existing router interface will be removed at the end of this month.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="lessons-from-other-rewrites">Lessons from other rewrites<a href="https://docs.litellm.ai/blog/router-rust#lessons-from-other-rewrites" class="hash-link" aria-label="Direct link to Lessons from other rewrites" title="Direct link to Lessons from other rewrites">​</a></h3>
<p>There have been a huge number of rewrites in software over the last few decades of software. Some successful, but many that were not successful. Joel Spolsky's <a href="https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/" target="_blank" rel="noopener noreferrer">classic post</a> on why rewrites from scratch are a bad idea captures the biggest failing of any rewrite: forgetting the lessons that the source code already learned. Our router code has been battle-tested over years, and we don't want to lose the correctness that we already have. That correctness is hugely valuable.</p>
<p>If we had a 100% comprehensive test suite, it would be almost trivially easy to complete such a rewrite.
Just shoot agents at the problem, wait until we pass every test, and then we're done!
However, no test suite is 100% comprehensive, and the router contains a lot of very complex and delicate logic.
There are edge cases around retries, wildcards and aliases, per-request overrides for specific keys, teams, or regions, etc.
Our test coverage was pretty good, but we wanted to make sure that we didn't lose important edge cases.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="differential-testing">Differential testing<a href="https://docs.litellm.ai/blog/router-rust#differential-testing" class="hash-link" aria-label="Direct link to Differential testing" title="Direct link to Differential testing">​</a></h2>
<p>Differential testing solves that for us, as well as anything can.
The core question of differential testing is "If I put black box A and black box B through the same case, do they do the same thing?"</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-differential-testing">What is differential testing?<a href="https://docs.litellm.ai/blog/router-rust#what-is-differential-testing" class="hash-link" aria-label="Direct link to What is differential testing?" title="Direct link to What is differential testing?">​</a></h3>
<p>Differential testing is at its most useful when making a large, yet behavior-preserving change. A 'behavior-preserving' change means that you are changing the code, and maybe the way that callers interact with your code, but you are not trying to change behavior for an end user. This could be to expose a new interface, switch to a new library for a particular purpose, swap out your nosql store for a relational database, or any number of other things. The important part is that you want it to act in the same way.</p>
<blockquote>
<p>A behavior-preserving change is transparent to an end user.</p>
</blockquote>
<p>In other words, saying that your change is behavior-preserving is the same as saying "Given any input, I want my old implementation and my new implementation to do the same thing". This is the core statement that we are trying to verify when performing differential testing. We do not care if "the same thing" is the <em>correct</em> thing, only that it is the same in all the ways we care about.</p>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">05</span>DIFFERENTIAL TESTING</span><p class="title_rbjw">Same case in, same behavior out?</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 300" role="img" aria-label="One case: model gpt-4o, deployments a and b, a answers 429 and b answers 200. It runs through A, the Python core, and B, the Rust core, both black boxes. Both pick b after one retry, with a cooling down. The oracle compares the two outputs and reports them the same."><defs><marker id="rr-diff" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-diff-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-diff-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-diff-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-diff-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-diff-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-diff-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><rect x="20" y="50" width="200" height="200" rx="10" class="box_bk4s"></rect><text x="36" y="76" class="e_pHic">ONE CASE</text><text x="36" y="108" class="m_sIP5">model: gpt-4o</text><text x="36" y="132" class="m_sIP5">deployments: a, b</text><text x="36" y="156" class="m_sIP5">a answers 429</text><text x="36" y="180" class="m_sIP5">b answers 200</text><path d="M220 150H245V90H268" class="wire_QvcH" marker-end="url(#rr-diff)"></path><path d="M220 150H245V90H268" class="flow_yt1c"></path><path d="M220 150H245V210H268" class="wire_QvcH" marker-end="url(#rr-diff)"></path><path d="M220 150H245V210H268" class="flow_yt1c"></path><rect x="270" y="50" width="170" height="80" rx="10" class="py_Qg1i shadow_bufp"></rect><circle cx="292" cy="72" r="10" class="badgePy_ux8o"></circle><text x="292" y="76" class="badgeText_itM9" text-anchor="middle">A</text><text x="365" y="85" class="t_CZB3 tPy_SnMM" text-anchor="middle">Python core</text><text x="365" y="105" class="s_Y7Vu" text-anchor="middle">black box</text><rect x="270" y="170" width="170" height="80" rx="10" class="rs_wEqI shadow_bufp"></rect><circle cx="292" cy="192" r="10" class="badgeRs_SSq5"></circle><text x="292" y="196" class="badgeText_itM9" text-anchor="middle">B</text><text x="365" y="205" class="t_CZB3 tRs_xmYC" text-anchor="middle">Rust core</text><text x="365" y="225" class="s_Y7Vu" text-anchor="middle">black box</text><path d="M440 90H478" class="wire_QvcH wire_py_Qeiw" marker-end="url(#rr-diff-py)"></path><path d="M440 210H478" class="wire_QvcH wire_rs_PGoq" marker-end="url(#rr-diff-rs)"></path><g><rect x="480" y="50" width="140" height="80" rx="10" class="box_bk4s"></rect><text x="496" y="76" class="m_sIP5">picked b</text><text x="496" y="94" class="m_sIP5">1 retry</text><text x="496" y="112" class="m_sIP5">a cooling down</text></g><g><rect x="480" y="170" width="140" height="80" rx="10" class="box_bk4s"></rect><text x="496" y="196" class="m_sIP5">picked b</text><text x="496" y="214" class="m_sIP5">1 retry</text><text x="496" y="232" class="m_sIP5">a cooling down</text></g><path d="M620 90H648" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-diff-ok)"></path><path d="M620 210H648" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-diff-ok)"></path><rect x="650" y="50" width="90" height="200" rx="10" class="ok_AU79 shadow_bufp"></rect><text x="695" y="76" class="e_pHic tOk_uXsF" text-anchor="middle">ORACLE</text><text x="695" y="156" class="glyph_TFFH tOk_uXsF" text-anchor="middle">=</text><g transform="translate(695 196)" class="icon_Whty tOk_uXsF"><circle r="9" class="iconFill_OASp"></circle><path d="M-3 0.2l2 2 4-4.4" class="iconCheck_NSqq"></path></g><text x="695" y="226" class="t_CZB3 tOk_uXsF" text-anchor="middle">same</text></svg></div></div><figcaption>The oracle never asks whether b was the right pick. It only asks whether both cores picked b.</figcaption></figure>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-we-do-differential-testing">How we do differential testing<a href="https://docs.litellm.ai/blog/router-rust#how-we-do-differential-testing" class="hash-link" aria-label="Direct link to How we do differential testing" title="Direct link to How we do differential testing">​</a></h3>
<p>We use differential testing to test every single aspect of these huge changes.
We use it for both the initial large refactor and also the swap into Rust.
Differential testing has the advantage that you can generate a huge number of cases very cheaply.
However, it requires some setup and scaffolding shared across many cases.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="litefuzz"><code>litefuzz</code><a href="https://docs.litellm.ai/blog/router-rust#litefuzz" class="hash-link" aria-label="Direct link to litefuzz" title="Direct link to litefuzz">​</a></h4>
<p>We have a private repository called <code>litefuzz</code> (written in Rust) which powers our differential testing.
It is domain-specific to the litellm repo, and uses the state of the art in differential testing and coverage-guided mutation.</p>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">06</span>INSIDE LITEFUZZ</span><p class="title_rbjw">World, case, channels, oracle</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 380" role="img" aria-label="A case of requests and provider replies runs inside a world of config, seeded database rows, Redis, Postgres and fake providers. It runs on three lanes: py, the reference; aa, the same build again to catch noise; and rust, the change under test. Each lane's channels are captured: client response, provider requests, database writes, Redis, callbacks and router state. A normalizer strips ids and times, an oracle asks whether the lanes agree, and differences become findings."><defs><marker id="rr-fuzz" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-fuzz-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-fuzz-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-fuzz-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-fuzz-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-fuzz-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-fuzz-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><rect x="20" y="150" width="120" height="90" rx="10" class="box_bk4s"></rect><text x="36" y="174" class="e_pHic">CASE</text><text x="36" y="196" class="s_Y7Vu">requests +</text><text x="36" y="213" class="s_Y7Vu">provider replies</text><rect x="165" y="40" width="280" height="310" rx="14" class="frame_ZgZm"></rect><text x="181" y="64" class="e_pHic">WORLD</text><text x="181" y="84" class="s_Y7Vu">config.yaml · seeded DB rows · Redis</text><text x="181" y="101" class="s_Y7Vu">Postgres · fake providers</text><g><rect x="185" y="120" width="240" height="56" rx="10" class="py_Qg1i"></rect><text x="201" y="144" class="t_CZB3 tPy_SnMM">lane py</text><text x="201" y="163" class="s_Y7Vu">reference</text><path d="M140 195H162V148H183" class="wire_QvcH" marker-end="url(#rr-fuzz)"></path><path d="M425 148H450" class="wireSoft_vkLO"></path></g><g><rect x="185" y="196" width="240" height="56" rx="10" class="py_Qg1i dashed_YKTR"></rect><text x="201" y="220" class="t_CZB3 tPy_SnMM">lane aa</text><text x="201" y="239" class="s_Y7Vu">same build again, catches noise</text><path d="M140 195H162V224H183" class="wire_QvcH" marker-end="url(#rr-fuzz)"></path><path d="M425 224H450" class="wireSoft_vkLO"></path></g><g><rect x="185" y="272" width="240" height="56" rx="10" class="rs_wEqI"></rect><text x="201" y="296" class="t_CZB3 tRs_xmYC">lane rust</text><text x="201" y="315" class="s_Y7Vu">the change under test</text><path d="M140 195H162V300H183" class="wire_QvcH" marker-end="url(#rr-fuzz)"></path><path d="M425 300H450" class="wireSoft_vkLO"></path></g><path d="M450 148V300" class="wireSoft_vkLO"></path><path d="M450 195H466" class="wire_QvcH" marker-end="url(#rr-fuzz)"></path><rect x="468" y="40" width="138" height="310" rx="14" class="frame_ZgZm"></rect><text x="484" y="64" class="e_pHic">CHANNELS</text><g><rect x="478" y="86" width="118" height="30" rx="15" class="box_bk4s"></rect><text x="537" y="105" class="s_Y7Vu pillText_lFhL" text-anchor="middle">client response</text></g><g><rect x="478" y="124" width="118" height="30" rx="15" class="box_bk4s"></rect><text x="537" y="143" class="s_Y7Vu pillText_lFhL" text-anchor="middle">provider requests</text></g><g><rect x="478" y="162" width="118" height="30" rx="15" class="box_bk4s"></rect><text x="537" y="181" class="s_Y7Vu pillText_lFhL" text-anchor="middle">DB writes</text></g><g><rect x="478" y="200" width="118" height="30" rx="15" class="box_bk4s"></rect><text x="537" y="219" class="s_Y7Vu pillText_lFhL" text-anchor="middle">Redis</text></g><g><rect x="478" y="238" width="118" height="30" rx="15" class="box_bk4s"></rect><text x="537" y="257" class="s_Y7Vu pillText_lFhL" text-anchor="middle">callbacks</text></g><g><rect x="478" y="276" width="118" height="30" rx="15" class="box_bk4s"></rect><text x="537" y="295" class="s_Y7Vu pillText_lFhL" text-anchor="middle">router state</text></g><path d="M606 195H628" class="wire_QvcH" marker-end="url(#rr-fuzz)"></path><rect x="630" y="170" width="110" height="50" rx="10" class="box_bk4s shadow_bufp"></rect><text x="685" y="191" class="t_CZB3" text-anchor="middle">normalize</text><text x="685" y="209" class="s_Y7Vu" text-anchor="middle">strip ids, times</text><path d="M685 220V238" class="wire_QvcH" marker-end="url(#rr-fuzz)"></path><rect x="630" y="240" width="110" height="50" rx="10" class="ok_AU79 shadow_bufp"></rect><text x="685" y="261" class="t_CZB3 tOk_uXsF" text-anchor="middle">oracle</text><text x="685" y="279" class="s_Y7Vu" text-anchor="middle">lanes agree?</text><path d="M685 290V308" class="wire_QvcH wire_bad_liOW" marker-end="url(#rr-fuzz-bad)"></path><rect x="630" y="310" width="110" height="50" rx="10" class="bad_RY3r shadow_bufp"></rect><text x="685" y="331" class="t_CZB3 tBad_V5Xc" text-anchor="middle">findings</text><text x="685" y="349" class="s_Y7Vu" text-anchor="middle">by hypothesis</text></svg></div></div><figcaption>The aa lane runs the reference build twice. Anything that differs between py and aa is noise, not a finding.</figcaption></figure>
<p>At a high level, it breaks down into the following components:</p>
<ul>
<li>The world is the surrounding environment that has a setup shared among different testcases. It might be seeded rows into the database, a set of deployments or a config.yaml, or the Redis and Postgres instances.</li>
<li>A case is a specific set of steps that the test drives against the object under test. For an http-level test, it is the requests that the client sends, as well as how the upstream provider responds.</li>
<li>A channel is a way that we collect information about what happened during our test cases. A channel might be the response the server sends to the client, the data that lives in postgres afterwards, the state in Redis, or what exactly was sent to the upstream provider. Channels normalize their output to avoid random noise creating false differences.</li>
<li>An oracle is used to compare if the case running on a separate implementation differed in a way that matters.</li>
</ul>
<p>The <strong>world</strong> sets up the environment in which the <strong>case</strong> runs, with output <strong>channels</strong> being judged against each other by the <strong>oracle</strong>.</p>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="fuzz-testing-and-coverage-guided-mutation">Fuzz testing and coverage-guided mutation<a href="https://docs.litellm.ai/blog/router-rust#fuzz-testing-and-coverage-guided-mutation" class="hash-link" aria-label="Direct link to Fuzz testing and coverage-guided mutation" title="Direct link to Fuzz testing and coverage-guided mutation">​</a></h4>
<p>Line and statement coverage is a common mechanism by which test thoroughness is measured.
It makes sense, you want to see how much of the logic (the lines) are covered by the test cases.
We use the exact same metric to guide which cases we should keep, and also make modifications to our existing cases so that they reach new statements.</p>
<p>When running with <code>litefuzz</code>, it measures which lines are captured by each test case. It also has the ability to modify the parameters of the case, which is called 'fuzzing'. It might modify strings to be twice as long, or empty, or an emoji, or in Chinese. It will do similar things with numbers, making them very large, very small, negative, etc. In addition to these edge-case modifications, the cases can be written so that it generates modifications on a specific set of fields in a certain way.</p>
<p><code>litefuzz</code> can be run to generate new cases via mutation, and it will only keep the mutated cases if either:</p>
<ul>
<li>the new case finds a difference between the two implementations being tested</li>
<li>the new case reaches a new line of code that has not been reached before</li>
</ul>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">07</span>COVERAGE-GUIDED MUTATION</span><p class="title_rbjw">Keep a mutant only if it earns its place</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 500" role="img" aria-label="Flowchart. A seed case from the corpus asks for model claude-sonnet-5 with num_retries 3, across deployments a and b, where a answers 429 and b answers 200. One field is mutated: the model becomes claude-opus-5 or the wildcard anthropic/*, which are realistic, or an empty string or a crab emoji, which are edge cases; num_retries becomes 0, which is realistic, or -1 or two to the sixty-third, which are edge cases. The mutant runs on both lanes, py and rust, with line coverage. Decision: do the lanes differ? If yes, add it to the corpus, which seeds the next round. If no, decision: did it reach a new line? If yes, add it to the corpus too. If no, discard it."><defs><marker id="rr-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-mut-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-mut-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-mut-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-mut-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-mut-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-mut-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><rect x="30" y="30" width="200" height="160" rx="10" class="stack_NkRm"></rect><rect x="25" y="35" width="200" height="160" rx="10" class="stack_NkRm"></rect><rect x="20" y="40" width="200" height="160" rx="10" class="box_bk4s shadow_bufp"></rect><text x="36" y="64" class="e_pHic">CORPUS</text><text x="36" y="86" class="t_CZB3">seed case</text><text x="36" y="114" class="m_sIP5">model: "claude-sonnet-5"</text><text x="36" y="134" class="m_sIP5">num_retries: 3</text><text x="36" y="154" class="m_sIP5">deployments: a, b</text><text x="36" y="174" class="m_sIP5">a → 429, b → 200</text><rect x="262" y="20" width="240" height="214" rx="10" class="box_bk4s"></rect><text x="278" y="44" class="e_pHic">MUTATE ONE FIELD</text><text x="278" y="72" class="m_sIP5"><tspan class="tMuted_rb7D">model<!-- -->: </tspan><tspan class="mBold_77PA tPy_SnMM">"claude-opus-5"</tspan></text><text x="278" y="92" class="m_sIP5"><tspan class="tMuted_rb7D">model<!-- -->: </tspan><tspan class="mBold_77PA tPy_SnMM">"anthropic/*"</tspan></text><text x="278" y="112" class="m_sIP5"><tspan class="tMuted_rb7D">model<!-- -->: </tspan><tspan class="mBold_77PA tMut_S9Qw">""</tspan></text><text x="278" y="132" class="m_sIP5"><tspan class="tMuted_rb7D">model<!-- -->: </tspan><tspan class="mBold_77PA tMut_S9Qw">"🦀"</tspan></text><text x="278" y="152" class="m_sIP5"><tspan class="tMuted_rb7D">num_retries<!-- -->: </tspan><tspan class="mBold_77PA tPy_SnMM">0</tspan></text><text x="278" y="172" class="m_sIP5"><tspan class="tMuted_rb7D">num_retries<!-- -->: </tspan><tspan class="mBold_77PA tMut_S9Qw">-1</tspan></text><text x="278" y="192" class="m_sIP5"><tspan class="tMuted_rb7D">num_retries<!-- -->: </tspan><tspan class="mBold_77PA tMut_S9Qw">2^63</tspan></text><circle cx="282" cy="212" r="4" class="badgePy_ux8o"></circle><text x="292" y="216" class="s_Y7Vu">realistic</text><circle cx="372" cy="212" r="4" class="mut_Kmhb"></circle><text x="382" y="216" class="s_Y7Vu">edge case</text><rect x="545" y="60" width="190" height="84" rx="10" class="box_bk4s shadow_bufp"></rect><text x="640" y="86" class="t_CZB3" text-anchor="middle">run both lanes</text><g><rect x="583" y="96" width="52" height="20" rx="10" class="py_Qg1i"></rect><text x="609" y="110" class="s_Y7Vu pillText_lFhL tPy_SnMM" text-anchor="middle">py</text></g><g><rect x="643" y="96" width="52" height="20" rx="10" class="rs_wEqI"></rect><text x="669" y="110" class="s_Y7Vu pillText_lFhL tRs_xmYC" text-anchor="middle">rust</text></g><text x="640" y="134" class="s_Y7Vu" text-anchor="middle">with line coverage</text><g><path d="M640 226L732 268L640 310L548 268Z" class="box_bk4s shadow_bufp"></path><text x="640" y="273" class="t_CZB3" text-anchor="middle">Lanes differ?</text></g><g><path d="M640 342L732 384L640 426L548 384Z" class="box_bk4s shadow_bufp"></path><text x="640" y="389" class="t_CZB3" text-anchor="middle">New line hit?</text></g><rect x="372" y="367" width="150" height="34" rx="6" class="ok_AU79"></rect><text x="447" y="388" class="s_Y7Vu pillText_lFhL tOk_uXsF" text-anchor="middle">Add to corpus</text><g><rect x="580" y="454" width="120" height="34" rx="17" class="ghost_fRJD dashed_YKTR"></rect><text x="640" y="475" class="s_Y7Vu pillText_lFhL" text-anchor="middle">Discard</text></g><path d="M220 110H260" class="wire_QvcH" marker-end="url(#rr-mut)"></path><path d="M220 110H260" class="flow_yt1c"></path><path d="M502 102H543" class="wire_QvcH" marker-end="url(#rr-mut)"></path><path d="M502 102H543" class="flow_yt1c"></path><path d="M640 144V224" class="wire_QvcH" marker-end="url(#rr-mut)"></path><path d="M640 144V224" class="flow_yt1c"></path><path d="M548 268H447V365" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-mut-ok)"></path><text x="536" y="260" class="wl_a1CW" text-anchor="middle">yes</text><path d="M640 310V340" class="wire_QvcH" marker-end="url(#rr-mut)"></path><text x="650" y="330" class="wl_a1CW">no</text><path d="M548 384H524" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-mut-ok)"></path><text x="536" y="376" class="wl_a1CW" text-anchor="middle">yes</text><path d="M640 426V452" class="wire_QvcH" marker-end="url(#rr-mut)"></path><text x="650" y="444" class="wl_a1CW">no</text><path d="M372 384H120V202" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-mut-ok)"></path><path d="M372 384H120V202" class="flow_yt1c flow_ok_vaET"></path><text x="246" y="376" class="s_Y7Vu" text-anchor="middle">seeds the next round</text></svg></div></div><figcaption>Realistic values reach the code real traffic reaches; edge-case values find the inputs nobody thought to test. litefuzz mixes both.</figcaption></figure>
<h4 class="anchor anchorWithStickyNavbar_LWe7" id="creating-cases-and-test-suites">Creating cases and test suites<a href="https://docs.litellm.ai/blog/router-rust#creating-cases-and-test-suites" class="hash-link" aria-label="Direct link to Creating cases and test suites" title="Direct link to Creating cases and test suites">​</a></h4>
<p>In one word, <em>agents</em>. We heavily leverage agents for all phases of the generation and validation process.</p>
<figure class="fig_JAH8"><div class="art_f3n_"><div class="head_bHhS"><span class="eyebrow_XLj9"><span class="num_J0rR">08</span>BUILDING A SUITE WITH AGENTS</span><p class="title_rbjw">Refining the test suite</p></div><div class="scroll_GDgM"><svg class="svg_hmH6" viewBox="0 0 760 320" role="img" aria-label="Three rounds. Round one, find the behaviors: agents list what the module does and gap-finders compare the lists, repeating until no new gaps turn up; drawn as a checklist with one row still marked as a possible gap. Round two, write the cases: one agent writes cases for each behavior, and ephemeral workers run them on both sides and record coverage, until new cases add little; drawn as a grid of lines filling in. Round three, push coverage: mutation rounds first, then agents trace back from each uncovered line to build a case that reaches it; drawn as code lines with one line marked difficult for the orchestrator to review."><defs><marker id="rr-agents" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK"></path></marker><marker id="rr-agents-ok" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_ok_d9ge"></path></marker><marker id="rr-agents-bad" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_bad_nt8A"></path></marker><marker id="rr-agents-py" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_py_O2EN"></path></marker><marker id="rr-agents-rs" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_rs_mZjd"></path></marker><marker id="rr-agents-mut" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_mut_sXz4"></path></marker><marker id="rr-agents-soft" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 0L10 5L0 10Z" class="head1_JmaK head_soft_zii4"></path></marker></defs><g><rect x="20" y="20" width="226" height="280" rx="10" class="box_bk4s"></rect><text x="36" y="46" class="e_pHic">ROUND 1</text><text x="36" y="70" class="t_CZB3">Find the behaviors</text><text x="36" y="96" class="s_Y7Vu">Agents list what the module</text><text x="36" y="112" class="s_Y7Vu">does, and gap-finders compare</text><text x="36" y="128" class="s_Y7Vu">the lists. This repeats until</text><text x="36" y="144" class="s_Y7Vu">no new gaps turn up.</text><path d="M36 262H230" class="rule_Sg7l"></path><path d="M36 283H48" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-agents-ok)"></path><text x="56" y="287" class="s_Y7Vu tOk_uXsF exit_MODN">a settled list of behaviors</text></g><g><rect x="267" y="20" width="226" height="280" rx="10" class="box_bk4s"></rect><text x="283" y="46" class="e_pHic">ROUND 2</text><text x="283" y="70" class="t_CZB3">Write the cases</text><text x="283" y="96" class="s_Y7Vu">One agent writes cases for</text><text x="283" y="112" class="s_Y7Vu">each behavior. Ephemeral</text><text x="283" y="128" class="s_Y7Vu">workers run them on both</text><text x="283" y="144" class="s_Y7Vu">sides and record coverage.</text><path d="M283 262H477" class="rule_Sg7l"></path><path d="M283 283H295" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-agents-ok)"></path><text x="303" y="287" class="s_Y7Vu tOk_uXsF exit_MODN">until new cases add little</text></g><g><rect x="514" y="20" width="226" height="280" rx="10" class="rs_wEqI shadow_bufp"></rect><text x="530" y="46" class="e_pHic tRs_xmYC">ROUND 3</text><text x="530" y="70" class="t_CZB3">Push coverage</text><text x="530" y="96" class="s_Y7Vu">Mutation rounds come first.</text><text x="530" y="112" class="s_Y7Vu">Then agents trace back from</text><text x="530" y="128" class="s_Y7Vu">each uncovered line to build</text><text x="530" y="144" class="s_Y7Vu">a case that reaches it.</text><path d="M530 262H724" class="rule_Sg7l"></path><path d="M530 283H542" class="wire_QvcH wire_ok_A8N7" marker-end="url(#rr-agents-ok)"></path><text x="550" y="287" class="s_Y7Vu tOk_uXsF exit_MODN">difficult lines to review</text></g><g transform="translate(0 10)"><g><g transform="translate(46 163)" class="icon_Whty tOk_uXsF"><circle r="7" class="iconFill_OASp"></circle><path d="M-3 0.2l2 2 4-4.4" class="iconCheck_NSqq"></path></g><rect x="60" y="158" width="128" height="10" rx="5" class="barPy_QKYx"></rect></g><g><g transform="translate(46 183)" class="icon_Whty tOk_uXsF"><circle r="7" class="iconFill_OASp"></circle><path d="M-3 0.2l2 2 4-4.4" class="iconCheck_NSqq"></path></g><rect x="60" y="178" width="96" height="10" rx="5" class="barPy_QKYx"></rect></g><g><g transform="translate(46 203)" class="icon_Whty tOk_uXsF"><circle r="7" class="iconFill_OASp"></circle><path d="M-3 0.2l2 2 4-4.4" class="iconCheck_NSqq"></path></g><rect x="60" y="198" width="150" height="10" rx="5" class="barPy_QKYx"></rect></g><g><g transform="translate(46 223)" class="icon_Whty tOk_uXsF"><circle r="7" class="iconFill_OASp"></circle><path d="M-3 0.2l2 2 4-4.4" class="iconCheck_NSqq"></path></g><rect x="60" y="218" width="110" height="10" rx="5" class="barPy_QKYx"></rect></g><circle cx="46" cy="243" r="7" class="gapDot_yTsW"></circle><rect x="60" y="238" width="118" height="10" rx="5" class="barGap_l0ky"></rect><text x="186" y="247" class="s_Y7Vu tMut_S9Qw tag_geUu">gap?</text><rect x="283" y="156" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="307" y="156" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="331" y="156" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="355" y="156" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="379" y="156" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="403" y="156" width="18" height="18" rx="4" class="barNew_GKgU"></rect><rect x="427" y="156" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="451" y="156" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="283" y="180" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="307" y="180" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="331" y="180" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="355" y="180" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="379" y="180" width="18" height="18" rx="4" class="barNew_GKgU"></rect><rect x="403" y="180" width="18" height="18" rx="4" class="barNew_GKgU"></rect><rect x="427" y="180" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="451" y="180" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="283" y="204" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="307" y="204" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="331" y="204" width="18" height="18" rx="4" class="barOk_Fycw"></rect><rect x="355" y="204" width="18" height="18" rx="4" class="barNew_GKgU"></rect><rect x="379" y="204" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="403" y="204" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="427" y="204" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="451" y="204" width="18" height="18" rx="4" class="bar_Lwgv"></rect><rect x="283" y="236" width="9" height="9" rx="2" class="barOk_Fycw"></rect><text x="297" y="244" class="s_Y7Vu tag_geUu">hit</text><rect x="329" y="236" width="9" height="9" rx="2" class="barNew_GKgU"></rect><text x="343" y="244" class="s_Y7Vu tag_geUu">new this round</text><rect x="437" y="236" width="9" height="9" rx="2" class="bar_Lwgv"></rect><text x="451" y="244" class="s_Y7Vu tag_geUu">not yet</text><g><path d="M541 160l2 2 4-4.4" class="tick_w0kP"></path><rect x="556" y="156" width="120" height="8" rx="4" class="bar_Lwgv"></rect></g><g><path d="M541 176l2 2 4-4.4" class="tick_w0kP"></path><rect x="570" y="172" width="96" height="8" rx="4" class="bar_Lwgv"></rect></g><g><path d="M541 192l2 2 4-4.4" class="tick_w0kP"></path><rect x="584" y="188" width="84" height="8" rx="4" class="bar_Lwgv"></rect></g><g><path d="M541 205l6 6M547 205l-6 6" class="cross_n3mT"></path><rect x="584" y="204" width="72" height="8" rx="4" class="barMut_cjFG"></rect></g><g><path d="M541 224l2 2 4-4.4" class="tick_w0kP"></path><rect x="570" y="220" width="104" height="8" rx="4" class="bar_Lwgv"></rect></g><g><path d="M541 240l2 2 4-4.4" class="tick_w0kP"></path><rect x="556" y="236" width="60" height="8" rx="4" class="bar_Lwgv"></rect></g><g><rect x="662" y="194" width="62" height="20" rx="10" class="mut_Kmhb"></rect><text x="693" y="208" class="s_Y7Vu pillText_lFhL tMut_S9Qw" text-anchor="middle">difficult</text></g><path d="M532 206C520 196 520 170 530 160" class="wire_QvcH wire_mut_SgC4 dashed_YKTR" marker-end="url(#rr-agents-mut)"></path></g></svg></div></div><figcaption>A difficult line ends as one of two things: a harness that needs to be more flexible, or a line that can't be reached at all.</figcaption></figure>
<p>We first have the change set or feature that we are trying to test. We use a series of agents to try to capture the set of behaviors we might care about for that particular module, as well as what functionality we need in the <code>litefuzz</code> harness in order to test it. These behaviors are just plaintext descriptions first, as that way we separate the intention from the code. We operate in rounds where the set of all behaviors is compared, and agents try to look for gaps we might not have covered. Once this settles, we start generating the actual cases.</p>
<p>For all of the behaviors in question, we fan out agents to generate cases for them. We have a large number of ephemeral workers that can spin up to run these cases and check line coverage on either side of the change. We keep generating the behavior-driven cases until agents told to look for gaps are coming up with very low-meaning cases. Adversarial agents also check that the cases actually test the behavior in question. Cases are run throughout this process to see when they catch differences in behavior.</p>
<p>Finally, we enter the last round of testing. For this round, we are pushing the line coverage to the limit. We want to cover every line multiple times over. We run some mutations rounds, then dispatch subagents to try to compose cases that touch specific lines of code. These agents are usually tracing backwards in the code in order to reason about what sequence of things must be true for the code to get there. Then, we run those cases, and update the state of line coverage.</p>
<p>If a specific line fails to be reached after multiple attempts, it is marked 'difficult'. The orchestrator will later go over those difficult cases and indicate which ones should be addressed by a more flexible harness, or if the line is actually impossible to hit.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="where-were-going-next">Where we're going next<a href="https://docs.litellm.ai/blog/router-rust#where-were-going-next" class="hash-link" aria-label="Direct link to Where we're going next" title="Direct link to Where we're going next">​</a></h2>
<p>From here, we are reworking callbacks, configuration, and the auth path as necessary to get <code>/v1/messages</code> blazing fast by Dec 1. Keep tabs on our progress at the <a href="https://github.com/BerriAI/litellm/discussions/48869" target="_blank" rel="noopener noreferrer">GitHub discussion</a>, where we post updates every Monday!</p>]]></content>
        <author>
            <name>Nate Armstrong</name>
            <uri>https://www.linkedin.com/in/naterarmstrong/</uri>
        </author>
        <category label="rust" term="rust"/>
        <category label="rust-migration" term="rust-migration"/>
        <category label="routing" term="routing"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Share your team's skills with LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/skills-gateway</id>
        <link href="https://docs.litellm.ai/blog/skills-gateway"/>
        <updated>2026-11-11T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Share agent skills through one registry. Upload ZIPs, review submissions before publication, and see who downloads them with LiteLLM Skills Gateway.]]></summary>
        <content type="html"><![CDATA[<p>Give your team one place to find and share useful agent skills. With <strong>LiteLLM Skills Gateway</strong>, teammates can reuse a skill's instructions and supporting files in their own AI agents.</p>
<p>To help you manage those skills, we've added:</p>
<ul>
<li>ZIP uploads</li>
<li>Admin review</li>
<li>Version history</li>
<li>Download tracking</li>
</ul>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="upload-a-complete-skill">Upload a complete skill<a href="https://docs.litellm.ai/blog/skills-gateway#upload-a-complete-skill" class="hash-link" aria-label="Direct link to Upload a complete skill" title="Direct link to Upload a complete skill">​</a></h2>
<p>Select <strong>Add Skill</strong>, choose <strong>Upload ZIP</strong>, and select a ZIP with <code>SKILL.md</code> and its supporting files.</p>
<p><img decoding="async" loading="lazy" alt="The Add New Skill form with Upload ZIP selected and a file picker for the skill archive." src="https://docs.litellm.ai/assets/images/upload-skill-56839b55b51fe879f19621a284199cf8.png" width="700" height="407" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="review-skills-before-publication">Review skills before publication<a href="https://docs.litellm.ai/blog/skills-gateway#review-skills-before-publication" class="hash-link" aria-label="Direct link to Review skills before publication" title="Direct link to Review skills before publication">​</a></h2>
<p>Team members can submit new skills or propose updates. <strong>Admins approve or reject submissions</strong> before teammates can access the changes. Admins can publish their own uploads without review.</p>
<p>Open <strong>Submissions</strong> to compare a proposal with the published skill, then choose <strong>Approve and publish</strong> or <strong>Reject</strong>.</p>
<p><img decoding="async" loading="lazy" alt="The submission review dialog compares the current skill with the proposed update and offers Reject and Approve and publish buttons." src="https://docs.litellm.ai/assets/images/review-submission-198ef68d20ef01a08d4cbddcf7315a26.png" width="964" height="947" class="img_ev3q"></p>
<p>With a <a href="https://docs.litellm.ai/docs/skills_gateway#optional-security-scans">scanner configured</a>, an admin can select <strong>Scan for threats</strong> and review the findings before approving a skill. The scan is optional and advisory; the admin decides whether to publish.</p>
<p><img decoding="async" loading="lazy" alt="A completed security scan reports two findings and a risk score of 42 out of 100, including an Instruction Override finding." src="https://docs.litellm.ai/assets/images/security-scan-16772af4ddf62c647b6b9b916ac29709.png" width="640" height="274" class="img_ev3q"></p>
<p><em>Example scan of a test skill, with findings for the admin to review.</em></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="keep-earlier-skill-versions">Keep earlier skill versions<a href="https://docs.litellm.ai/blog/skills-gateway#keep-earlier-skill-versions" class="hash-link" aria-label="Direct link to Keep earlier skill versions" title="Direct link to Keep earlier skill versions">​</a></h2>
<p>Update a skill under the same name to publish a new version. You can inspect its version history and download a retained ZIP from an earlier version.</p>
<p>New skills start at <code>1.0.0</code>. Publish the next update as <code>1.0.1</code> with the default patch increment, or set a higher version number.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="see-who-downloads-your-skills">See who downloads your skills<a href="https://docs.litellm.ai/blog/skills-gateway#see-who-downloads-your-skills" class="hash-link" aria-label="Direct link to See who downloads your skills" title="Direct link to See who downloads your skills">​</a></h2>
<p>Admins can inspect each skill's <strong>download count and authenticated download history</strong>, including who downloaded it and when. Use those records to see which skills teammates pick up and who to ask for feedback.</p>
<p><img decoding="async" loading="lazy" alt="The Downloads tab shows total downloads and a history entry with the download time, user or key owner, team, and skill version." src="https://docs.litellm.ai/assets/images/download-history-32dab6bb8e36e5d4ba80d774485fc843.png" width="968" height="447" class="img_ev3q"></p>
<p><em>Example download history for a test skill.</em></p>
<p>Anonymous and repeat downloads count toward totals. Shared keys identify the key's owner. Downloads do not confirm skill executions or completed installs.</p>
<p>Open <strong>Skills Hub</strong> in the LiteLLM dashboard to share a skill your team uses.</p>
<p><a href="https://docs.litellm.ai/docs/skills_gateway">Get started with Skills Gateway</a>.</p>]]></content>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="agents" term="agents"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Tencent Hy4 API Pricing and Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/tencent-hy4</id>
        <link href="https://docs.litellm.ai/blog/tencent-hy4"/>
        <updated>2026-11-10T18:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use Tencent Hy4 through LiteLLM with vision, tool calling and 1M context. Compare TokenHub list pricing with its 50% discount through December 31.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Tencent Hy4" src="https://docs.litellm.ai/assets/images/hero-ff3a38f2fee22236a8ad22268af4c5b4.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM supports <a href="https://www.tencent.com/tencent-launches-hy4-joining-the-ranks-of-the-worlds-leading-open-source-ai-models/" target="_blank" rel="noopener noreferrer">Tencent Hy4</a> through Tencent Cloud TokenHub. Use the same OpenAI-compatible request format as your other models, with spend tracking, rate limits and logs in the LiteLLM AI Gateway.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="tencent-hy4-pricing">Tencent Hy4 pricing<a href="https://docs.litellm.ai/blog/tencent-hy4#tencent-hy4-pricing" class="hash-link" aria-label="Direct link to Tencent Hy4 pricing" title="Direct link to Tencent Hy4 pricing">​</a></h2>
<p><strong>Current prices include TokenHub's 50% discount</strong>, available through <strong>December 31, 2026, at 23:59:59 Beijing time</strong>. Prices are in USD per 1M tokens, from <a href="https://www.tencentcloud.com/document/product/1300/78937" target="_blank" rel="noopener noreferrer">TokenHub's international pricing page</a>.</p>
<table><thead><tr><th>Token type</th><th style="text-align:right">Current price</th><th style="text-align:right">List price</th></tr></thead><tbody><tr><td data-label="Token type" data-inline="">Input</td><td data-label="Current price" data-inline="" style="text-align:right"><strong>$0.417</strong></td><td data-label="List price" data-inline="" style="text-align:right">$0.834</td></tr><tr><td data-label="Token type" data-inline="">Output</td><td data-label="Current price" data-inline="" style="text-align:right"><strong>$1.2505</strong></td><td data-label="List price" data-inline="" style="text-align:right">$2.501</td></tr><tr><td data-label="Token type" data-inline="">Cached input</td><td data-label="Current price" data-inline="" style="text-align:right"><strong>$0.021</strong></td><td data-label="List price" data-inline="" style="text-align:right">$0.042</td></tr></tbody></table>
<p>Hy4 preview has the same prices. TokenHub resumes billing at list prices after the promotion ends.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-hy4">What's new in Hy4<a href="https://docs.litellm.ai/blog/tencent-hy4#whats-new-in-hy4" class="hash-link" aria-label="Direct link to What's new in Hy4" title="Direct link to What's new in Hy4">​</a></h2>
<p>Hy4 adds image understanding to the preview model's reasoning, function calling and structured output. Tencent reports improvements on long-running agent tasks and introduces computer-use capabilities.</p>
<p><a href="https://www.tencentcloud.com/document/product/1300/78934" target="_blank" rel="noopener noreferrer">TokenHub lists</a> a 1M-token context window, with up to <strong>960,000 input tokens</strong> and <strong>64,000 output tokens</strong>. Use <code>hy4</code> for this release; <code>hy4-preview</code> remains a separate model ID.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-tencent-hy4-with-litellm">Use Tencent Hy4 with LiteLLM<a href="https://docs.litellm.ai/blog/tencent-hy4#use-tencent-hy4-with-litellm" class="hash-link" aria-label="Direct link to Use Tencent Hy4 with LiteLLM" title="Direct link to Use Tencent Hy4 with LiteLLM">​</a></h2>
<p>Create a TokenHub API key using Tencent's <a href="https://www.tencentcloud.com/document/product/1300/78939" target="_blank" rel="noopener noreferrer">quickstart</a>, then export it in your terminal:</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 TENCENT_API_KEY="YOUR_TENCENT_API_KEY"</span><br></span></code></pre></div></div>
<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. Save this as <code>config.yaml</code></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"> hy4</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"> tencent/hy4</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/TENCENT_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 key atrule" style="color:#22863A">general_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">master_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/LITELLM_MASTER_KEY</span><br></span></code></pre></div></div><p><strong>2. Start the proxy</strong></p><p>Generate a local proxy key and start the <a href="https://github.com/BerriAI/litellm/releases/tag/v1.108.5" target="_blank" rel="noopener noreferrer">v1.108.5 image</a>:</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 LITELLM_MASTER_KEY="sk-$(openssl rand -hex 24)"</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">docker run -d --name litellm-hy4 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -p 127.0.0.1:4000:4000 \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e TENCENT_API_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -e LITELLM_MASTER_KEY \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -v "$(pwd)/config.yaml:/app/config.yaml:ro" \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  ghcr.io/berriai/litellm:v1.108.5 \</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><p>Once the proxy is ready, run this in the same terminal:</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 --fail-with-body http://localhost:4000/v1/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_MASTER_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": "hy4",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "messages": [{"role": "user", "content": "Write a Python function that checks whether a number is prime."}]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div><p>The response contains the generated answer in <code>choices[0].message.content</code>.</p></div><div role="tabpanel" class="tabItem_Ymn6" hidden=""><p>Install LiteLLM, then run the Python example with <code>TENCENT_API_KEY</code> set:</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">pip install --upgrade litellm</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 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">"tencent/hy4"</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 that checks whether 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"></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>
<p>For an existing proxy, add the model entry to your configuration and restart the proxy. To refresh its pricing, open <strong>Models + Endpoints → Price Data → Reload Price Data</strong>, or call <code>POST /reload/model_cost_map</code> as an admin. Keep the default remote cost map enabled: the pinned image's bundled map predates the Hy4 entry.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="faq">FAQ<a href="https://docs.litellm.ai/blog/tencent-hy4#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="which-provider-prefix-and-api-key-do-i-use">Which provider prefix and API key do I use?<a href="https://docs.litellm.ai/blog/tencent-hy4#which-provider-prefix-and-api-key-do-i-use" class="hash-link" aria-label="Direct link to Which provider prefix and API key do I use?" title="Direct link to Which provider prefix and API key do I use?">​</a></h3>
<p>Use <code>tencent/hy4</code> with <code>TENCENT_API_KEY</code>. LiteLLM defaults to TokenHub's international endpoint. See the <a href="https://docs.litellm.ai/docs/providers/tencent">Tencent provider guide</a> for region overrides.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-hy4-accept-images">Does Hy4 accept images?<a href="https://docs.litellm.ai/blog/tencent-hy4#does-hy4-accept-images" class="hash-link" aria-label="Direct link to Does Hy4 accept images?" title="Direct link to Does Hy4 accept images?">​</a></h3>
<p>Yes. Send text and <code>image_url</code> content parts in your messages. The final Hy4 release adds vision; Hy4 preview is text-only.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/tencent-hy4#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions about Hy4 on LiteLLM? Share your use case or report a problem in <a href="https://github.com/BerriAI/litellm/discussions" target="_blank" rel="noopener noreferrer">GitHub Discussions</a>.</p>]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <author>
            <name>Ryan Crabbe</name>
            <uri>https://www.linkedin.com/in/ryan-crabbe-0b9687214</uri>
        </author>
        <category label="tencent" term="tencent"/>
        <category label="hunyuan" term="hunyuan"/>
        <category label="hy4" term="hy4"/>
        <category label="pricing" term="pricing"/>
        <category label="card_title:Tencent Hy4" term="card_title:Tencent Hy4"/>
        <category label="card_summary:Vision, tool calling and 1M context through Tencent TokenHub, with 50% off inference until December 31." term="card_summary:Vision, tool calling and 1M context through Tencent TokenHub, with 50% off inference until December 31."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Gemini 4 Carbon API Pricing and Day 0 Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini-4-carbon</id>
        <link href="https://docs.litellm.ai/blog/gemini-4-carbon"/>
        <updated>2026-11-10T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Gemini 4 Carbon costs $2.00 per 1M input tokens and $10.00 per 1M output tokens until Nov 30, the same as Gemini 4 Argon. LiteLLM supports it on day 0 on AI Studio and Google Cloud.]]></summary>
        <content type="html"><![CDATA[<p>LiteLLM now supports <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-carbon/" target="_blank" rel="noopener noreferrer">Gemini 4 Carbon</a> on Day 0. Use it on Google AI Studio and Gemini Enterprise Agent Platform (formerly Vertex AI) through the LiteLLM AI Gateway, with spend, rate limits and logs in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="gemini-4-carbon-pricing">Gemini 4 Carbon pricing<a href="https://docs.litellm.ai/blog/gemini-4-carbon#gemini-4-carbon-pricing" class="hash-link" aria-label="Direct link to Gemini 4 Carbon pricing" title="Direct link to Gemini 4 Carbon pricing">​</a></h2>
<p>Launch prices per 1M tokens, until November 30, 2026:</p>
<ul>
<li><strong>Input:</strong> $2.00 / MTok</li>
<li><strong>Output:</strong> $10.00 / MTok. Thinking tokens bill as output.</li>
<li><strong>Cache read:</strong> $0.10 / MTok. Carbon supports implicit caching only.</li>
<li><strong>Batch and Flex:</strong> $1.00 input and $5.00 output</li>
<li><strong>Priority:</strong> $3.60 input and $18.00 output</li>
</ul>
<p>On December 1, 2026, these prices double to $4.00 input, $20.00 output and $0.20 cache read. On Gemini Enterprise Agent Platform, regional endpoints cost 10% more than <code>global</code>.</p>
<p>Prices on every provider: <a href="https://models.litellm.ai/models/gemini-4-carbon" target="_blank" rel="noopener noreferrer">https://models.litellm.ai/models/gemini-4-carbon</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-gemini-4-carbon-with-litellm">Use Gemini 4 Carbon with LiteLLM<a href="https://docs.litellm.ai/blog/gemini-4-carbon#use-gemini-4-carbon-with-litellm" class="hash-link" aria-label="Direct link to Use Gemini 4 Carbon with LiteLLM" title="Direct link to Use Gemini 4 Carbon with LiteLLM">​</a></h2>
<p>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>
<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">Google AI Studio</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Gemini Enterprise Agent Platform</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"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">carbon</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">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">carbon</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">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 GEMINI_API_KEY=$GEMINI_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.106.2 \</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"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">carbon</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/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">carbon</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.106.2 \</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": "gemini-4-carbon",</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">  "reasoning_effort": "low"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}'</span><br></span></code></pre></div></div>
<p>LiteLLM sends <code>reasoning_effort</code> to Carbon as its <code>thinking_level</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="faq">FAQ<a href="https://docs.litellm.ai/blog/gemini-4-carbon#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-much-does-gemini-4-carbon-cost">How much does Gemini 4 Carbon cost?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#how-much-does-gemini-4-carbon-cost" class="hash-link" aria-label="Direct link to How much does Gemini 4 Carbon cost?" title="Direct link to How much does Gemini 4 Carbon cost?">​</a></h3>
<p>Until November 30, 2026, it costs $2.00 per 1M input tokens and $10.00 per 1M output tokens, the same as Gemini 4 Argon. On December 1, the prices change to $4.00 and $20.00.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-gemini-4-carbon-priced-the-same-as-gemini-4-argon">Is Gemini 4 Carbon priced the same as Gemini 4 Argon?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#is-gemini-4-carbon-priced-the-same-as-gemini-4-argon" class="hash-link" aria-label="Direct link to Is Gemini 4 Carbon priced the same as Gemini 4 Argon?" title="Direct link to Is Gemini 4 Carbon priced the same as Gemini 4 Argon?">​</a></h3>
<p>Yes. Both cost $2.00 / $10.00 per 1M tokens until November 30 and $4.00 / $20.00 from December 1.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-context-window-of-gemini-4-carbon">What is the context window of Gemini 4 Carbon?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#what-is-the-context-window-of-gemini-4-carbon" class="hash-link" aria-label="Direct link to What is the context window of Gemini 4 Carbon?" title="Direct link to What is the context window of Gemini 4 Carbon?">​</a></h3>
<p>1,048,576 tokens for input, thinking and output together. Google returns up to 65,536 output tokens per synchronous request, and LiteLLM <a href="https://docs.litellm.ai/blog/gemini-4-argon#long-outputs">continues past that cap</a> the same way it does for Argon.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="which-thinking-levels-does-gemini-4-carbon-support">Which thinking levels does Gemini 4 Carbon support?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#which-thinking-levels-does-gemini-4-carbon-support" class="hash-link" aria-label="Direct link to Which thinking levels does Gemini 4 Carbon support?" title="Direct link to Which thinking levels does Gemini 4 Carbon support?">​</a></h3>
<p><code>low</code>, <code>medium</code> and <code>high</code>, with <code>medium</code> as the default. Set it with <code>reasoning_effort</code>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-gemini-4-carbon-support-context-caching">Does Gemini 4 Carbon support context caching?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#does-gemini-4-carbon-support-context-caching" class="hash-link" aria-label="Direct link to Does Gemini 4 Carbon support context caching?" title="Direct link to Does Gemini 4 Carbon support context caching?">​</a></h3>
<p>Implicit caching only, from 4,096 prompt tokens. Explicit caching is not supported.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-google-search-grounding-free-on-gemini-4-carbon">Is Google Search grounding free on Gemini 4 Carbon?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#is-google-search-grounding-free-on-gemini-4-carbon" class="hash-link" aria-label="Direct link to Is Google Search grounding free on Gemini 4 Carbon?" title="Direct link to Is Google Search grounding free on Gemini 4 Carbon?">​</a></h3>
<p>The first 5,000 queries a month are free, shared with Gemini 3 and newer models, then $14 per 1,000 queries. LiteLLM tracks the shared allowance as of <a href="https://github.com/BerriAI/litellm/pull/50951" target="_blank" rel="noopener noreferrer">PR #50951</a>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-call-gemini-4-carbon-with-an-openai-compatible-api">How do I call Gemini 4 Carbon with an OpenAI-compatible API?<a href="https://docs.litellm.ai/blog/gemini-4-carbon#how-do-i-call-gemini-4-carbon-with-an-openai-compatible-api" class="hash-link" aria-label="Direct link to How do I call Gemini 4 Carbon with an OpenAI-compatible API?" title="Direct link to How do I call Gemini 4 Carbon with an OpenAI-compatible API?">​</a></h3>
<p>Add <code>gemini/gemini-4-carbon</code> to your LiteLLM config. Then send a standard <code>/chat/completions</code> request to the proxy with <code>"model": "gemini-4-carbon"</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gemini-4-carbon#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions/50970" target="_blank" rel="noopener noreferrer">GitHub discussion #50970</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="references">References<a href="https://docs.litellm.ai/blog/gemini-4-carbon#references" class="hash-link" aria-label="Direct link to References" title="Direct link to References">​</a></h2>
<ul>
<li>LiteLLM model page for Gemini 4 Carbon, with prices on every provider: <a href="https://models.litellm.ai/models/gemini-4-carbon" target="_blank" rel="noopener noreferrer">models.litellm.ai/models/gemini-4-carbon</a></li>
<li>LiteLLM pricing for <code>gemini/gemini-4-carbon</code>: <a href="https://github.com/BerriAI/litellm/pull/50931" target="_blank" rel="noopener noreferrer">PR #50931</a></li>
<li>LiteLLM pricing for <code>vertex_ai/gemini-4-carbon</code>: <a href="https://github.com/BerriAI/litellm/pull/50942" target="_blank" rel="noopener noreferrer">PR #50942</a></li>
<li>Google: <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-carbon/" target="_blank" rel="noopener noreferrer">Gemini 4 Carbon announcement</a>, <a href="https://aistudio.google.com/docs/models/gemini-4-carbon" target="_blank" rel="noopener noreferrer">model page</a>, <a href="https://aistudio.google.com/docs/whats-new-gemini-4-carbon" target="_blank" rel="noopener noreferrer">what's new</a> and <a href="https://aistudio.google.com/docs/pricing" target="_blank" rel="noopener noreferrer">pricing</a></li>
</ul>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini 4" term="gemini 4"/>
        <category label="gemini-4-carbon" term="gemini-4-carbon"/>
        <category label="pricing" term="pricing"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Gemini 4 Carbon" term="card_title:Gemini 4 Carbon"/>
        <category label="card_summary:Google's strongest reasoning model, at Argon's $2 / $10 per 1M tokens until Nov 30. 1M context, thinking levels." term="card_summary:Google's strongest reasoning model, at Argon's $2 / $10 per 1M tokens until Nov 30. 1M context, thinking levels."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Claude Fable 5.2 API Pricing and Day 0 Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/claude-fable-5-2</id>
        <link href="https://docs.litellm.ai/blog/claude-fable-5-2"/>
        <updated>2026-11-09T18:00:00.000Z</updated>
        <summary type="html"><![CDATA[Claude Fable 5.2 costs $8 per 1M input tokens and $40 per 1M output tokens, 20% below Fable 5.1. LiteLLM supports it on day 0.]]></summary>
        <content type="html"><![CDATA[
<!-- -->
<p>LiteLLM now supports <a href="https://platform.claude.com/docs/en/models/fable-5-2/whats-new-fable-5-2" target="_blank" rel="noopener noreferrer">Claude Fable 5.2</a> on Day 0. Call it through the LiteLLM AI Gateway and track spend, rate limits and logs in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="claude-fable-52-pricing">Claude Fable 5.2 pricing<a href="https://docs.litellm.ai/blog/claude-fable-5-2#claude-fable-52-pricing" class="hash-link" aria-label="Direct link to Claude Fable 5.2 pricing" title="Direct link to Claude Fable 5.2 pricing">​</a></h2>
<ul>
<li><strong>Input:</strong> $8.00 / MTok</li>
<li><strong>Output:</strong> $40.00 / MTok</li>
<li><strong>Cache read:</strong> $0.20 / MTok</li>
<li><strong>Cache write:</strong> $10.00 / MTok for 5 minutes, $16.00 / MTok for 1 hour</li>
<li><strong>Batch:</strong> $4.00 / MTok input and $20.00 / MTok output</li>
</ul>
<p>Input and output both cost 20% less than Claude Fable 5.1.</p>
<table><thead><tr><th>Model</th><th>Input / MTok</th><th>Output / MTok</th><th>Cache read / MTok</th></tr></thead><tbody><tr><td data-label="Model" data-inline=""><strong>Claude Fable 5.2</strong></td><td data-label="Input / MTok" data-inline=""><strong>$8.00</strong></td><td data-label="Output / MTok" data-inline=""><strong>$40.00</strong></td><td data-label="Cache read / MTok" data-inline=""><strong>$0.20</strong></td></tr><tr><td data-label="Model" data-inline="">Claude Fable 5.1</td><td data-label="Input / MTok" data-inline="">$10.00</td><td data-label="Output / MTok" data-inline="">$50.00</td><td data-label="Cache read / MTok" data-inline="">$0.25</td></tr><tr><td data-label="Model" data-inline="">Claude Opus 5.5</td><td data-label="Input / MTok" data-inline="">$4.00</td><td data-label="Output / MTok" data-inline="">$20.00</td><td data-label="Cache read / MTok" data-inline="">$0.20</td></tr></tbody></table>
<p>Prices on every provider: <a href="https://models.litellm.ai/models" target="_blank" rel="noopener noreferrer">https://models.litellm.ai/models</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-claude-fable-52">What's new in Claude Fable 5.2<a href="https://docs.litellm.ai/blog/claude-fable-5-2#whats-new-in-claude-fable-52" class="hash-link" aria-label="Direct link to What's new in Claude Fable 5.2" title="Direct link to What's new in Claude Fable 5.2">​</a></h2>
<ul>
<li><strong>20% cheaper than Fable 5.1</strong> on input and output, with cache reads down from $0.25 to $0.20</li>
<li><strong>1M-token context window</strong> and up to 128K output tokens</li>
<li><strong>Adaptive thinking is always on</strong>, with five effort levels from <code>low</code> to <code>max</code> and <code>high</code> as the default</li>
<li><strong>Fast mode</strong> is available on the Claude API at $16 / MTok input and $80 / MTok output</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-claude-fable-52-with-litellm">Use Claude Fable 5.2 with LiteLLM<a href="https://docs.litellm.ai/blog/claude-fable-5-2#use-claude-fable-52-with-litellm" class="hash-link" aria-label="Direct link to Use Claude Fable 5.2 with LiteLLM" title="Direct link to Use Claude Fable 5.2 with LiteLLM">​</a></h2>
<p>Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/50715" target="_blank" rel="noopener noreferrer">PR #50715</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>
<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">Claude Platform on AWS</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">fable</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">2</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">fable</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">2</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.106.2 \</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">fable</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">2</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/claude_platform/claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">fable</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">2</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.106.2 \</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-fable-5-2",</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>
<p>Anthropic also serves Fable 5.2 on Amazon Bedrock as <code>anthropic.claude-fable-5-2</code>, on Google Cloud and in Microsoft Foundry as <code>claude-fable-5-2</code>. Cost map entries for those routes are in flight in <a href="https://github.com/BerriAI/litellm/pull/50713" target="_blank" rel="noopener noreferrer">PR #50713</a> and <a href="https://github.com/BerriAI/litellm/pull/50707" target="_blank" rel="noopener noreferrer">PR #50707</a>; until one of them merges, requests on those routes bill at $0 in the gateway.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="faq">FAQ<a href="https://docs.litellm.ai/blog/claude-fable-5-2#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-much-does-claude-fable-52-cost">How much does Claude Fable 5.2 cost?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#how-much-does-claude-fable-52-cost" class="hash-link" aria-label="Direct link to How much does Claude Fable 5.2 cost?" title="Direct link to How much does Claude Fable 5.2 cost?">​</a></h3>
<p>$8 per 1M input tokens and $40 per 1M output tokens. Cache reads cost $0.20 per 1M tokens and batch requests cost $4 and $20.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="is-claude-fable-52-cheaper-than-fable-51">Is Claude Fable 5.2 cheaper than Fable 5.1?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#is-claude-fable-52-cheaper-than-fable-51" class="hash-link" aria-label="Direct link to Is Claude Fable 5.2 cheaper than Fable 5.1?" title="Direct link to Is Claude Fable 5.2 cheaper than Fable 5.1?">​</a></h3>
<p>Yes, by 20% on both input and output. Fable 5.1 costs $10 and $50 per 1M tokens.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-context-window-of-claude-fable-52">What is the context window of Claude Fable 5.2?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#what-is-the-context-window-of-claude-fable-52" class="hash-link" aria-label="Direct link to What is the context window of Claude Fable 5.2?" title="Direct link to What is the context window of Claude Fable 5.2?">​</a></h3>
<p>1M tokens, with up to 128K output tokens per request.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-call-claude-fable-52-with-an-openai-compatible-api">How do I call Claude Fable 5.2 with an OpenAI-compatible API?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#how-do-i-call-claude-fable-52-with-an-openai-compatible-api" class="hash-link" aria-label="Direct link to How do I call Claude Fable 5.2 with an OpenAI-compatible API?" title="Direct link to How do I call Claude Fable 5.2 with an OpenAI-compatible API?">​</a></h3>
<p>Add <code>anthropic/claude-fable-5-2</code> to your LiteLLM config, then send a standard <code>/chat/completions</code> request to the proxy with <code>"model": "claude-fable-5-2"</code>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="which-models-can-read-claude-fable-52-thinking-blocks">Which models can read Claude Fable 5.2 thinking blocks?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#which-models-can-read-claude-fable-52-thinking-blocks" class="hash-link" aria-label="Direct link to Which models can read Claude Fable 5.2 thinking blocks?" title="Direct link to Which models can read Claude Fable 5.2 thinking blocks?">​</a></h3>
<p>Only Fable 5.2 and Mythos 5.2. A fallback onto it keeps the conversation's reasoning; a fallback off it drops it, Opus 5.5 and Fable 5.1 included.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="why-does-claude-fable-52-return-the-block-is-bound-to-a-different-conversation">Why does Claude Fable 5.2 return "The block is bound to a different conversation"?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#why-does-claude-fable-52-return-the-block-is-bound-to-a-different-conversation" class="hash-link" aria-label="Direct link to Why does Claude Fable 5.2 return &quot;The block is bound to a different conversation&quot;?" title="Direct link to Why does Claude Fable 5.2 return &quot;The block is bound to a different conversation&quot;?">​</a></h3>
<p>Editing <code>system</code>, <code>tools</code> or an earlier message after a thinking block trips the prefix check, which now applies to every account.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-claude-fable-52-support-the-computer_20251124-tool">Does Claude Fable 5.2 support the <code>computer_20251124</code> tool?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#does-claude-fable-52-support-the-computer_20251124-tool" class="hash-link" aria-label="Direct link to does-claude-fable-52-support-the-computer_20251124-tool" title="Direct link to does-claude-fable-52-support-the-computer_20251124-tool">​</a></h3>
<p>No. Use <code>computer_toolset_20260801</code>; the earlier tool returns a 400 everywhere except Bedrock.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="can-i-force-a-tool-call-on-claude-fable-52">Can I force a tool call on Claude Fable 5.2?<a href="https://docs.litellm.ai/blog/claude-fable-5-2#can-i-force-a-tool-call-on-claude-fable-52" class="hash-link" aria-label="Direct link to Can I force a tool call on Claude Fable 5.2?" title="Direct link to Can I force a tool call on Claude Fable 5.2?">​</a></h3>
<p>No, <code>tool_choice</code> of <code>any</code> or <code>tool</code> returns a 400. LiteLLM maps <code>tool_choice: "required"</code> onto <code>any</code>, so keep it at <code>auto</code> and use <code>strict: true</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/claude-fable-5-2#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions" target="_blank" rel="noopener noreferrer">GitHub discussions</a>.</p>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="claude fable" term="claude fable"/>
        <category label="fable 5.2" term="fable 5.2"/>
        <category label="pricing" term="pricing"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Fable 5.2" term="card_title:Claude Fable 5.2"/>
        <category label="card_summary:$8 / $40 per 1M tokens, 20% below Fable 5.1, cache reads at $0.20. 1M context, adaptive thinking, default effort high." term="card_summary:$8 / $40 per 1M tokens, 20% below Fable 5.1, cache reads at $0.20. 1M context, adaptive thinking, default effort high."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Tool-Aware Model Routing for Coding Agents with NVIDIA NeMo Switchyard]]></title>
        <id>https://docs.litellm.ai/blog/switchyard-tool-aware-routing</id>
        <link href="https://docs.litellm.ai/blog/switchyard-tool-aware-routing"/>
        <updated>2026-11-06T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM now steers each coding agent session by its tool execution history, keeping routine work on an efficient model and escalating to a capable model when the trajectory turns hard.]]></summary>
        <content type="html"><![CDATA[<p>LiteLLM now ships NVIDIA NeMo Switchyard's stage router as an auto-router strategy. Switchyard routes on the agent's tool trajectory rather than the prompt: the tools it invoked, how they failed and whether it is converging or retrying the same step. Each turn is steered to the model the session needs at that point in the task.</p>
<p>Coding agents have an uneven cost profile. Most of a task is exploration and incremental edits that an efficient model handles well. The expensive stretches are concentrated around failures, where the agent has to diagnose an error, revise its approach and verify the fix. Switchyard aligns model spend with that profile across Chat Completions, Anthropic Messages and Responses, so Claude Code, Codex and SDK-based agents adopt it without client changes.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="steer-the-session-by-its-tool-trajectory">Steer the session by its tool trajectory<a href="https://docs.litellm.ai/blog/switchyard-tool-aware-routing#steer-the-session-by-its-tool-trajectory" class="hash-link" aria-label="Direct link to Steer the session by its tool trajectory" title="Direct link to Steer the session by its tool trajectory">​</a></h2>
<p>Prompt-based routing breaks down for agents because the user message carries little signal about difficulty. A follow-up such as "continue" looks the same after a passing test run and after the third failed attempt at a fix. The difference lives in the tool results.</p>
<p>Switchyard classifies each turn from the session's recent tool history. Failures are weighted by severity, from a non-zero exit through to a critical error. Repeated identical failures and context compaction force an escalation. A passing test run after a failure is recognized as recovery. The resulting score maps the turn to the efficient or the capable model.</p>
<div>
<figure class="uca-figure u8">
<input class="u8-pause" type="checkbox" id="sw-routing-motion"><label class="u8-control" for="sw-routing-motion">Pause animation</label>
<div class="u8-art">
<div class="u8-head"><span>01 / ROUTING</span><h3>Steer the session by its tool trajectory</h3><p>Switchyard scores the session’s recent tool history and steers each turn to the model the work needs.</p></div>
<div class="u9-scroll" tabindex="0" role="region" aria-label="Two agent sessions pass through the Switchyard stage router. A session exploring cleanly stays on the efficient model, Claude Haiku. A session stuck on a failing step is escalated to the capable model, Claude Opus. Scroll horizontally on small screens.">
<svg class="u9-svg" viewBox="0 0 900 340" role="img" aria-label="Two agent sessions pass through the Switchyard stage router. A session exploring cleanly stays on the efficient model, Claude Haiku. A session stuck on a failing step is escalated to the capable model, Claude Opus.">
<defs><marker id="sw-ok-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto"><path d="M0 0L10 5L0 10Z" class="s-arrow"></path></marker></defs><defs><marker id="sw-fail-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto"><path d="M0 0L10 5L0 10Z" class="s-arrow-fail"></path></marker></defs>
<text x="24" y="30" class="s-eyebrow">SESSION TRAJECTORY</text>
<text x="464" y="30" class="s-eyebrow">SWITCHYARD</text>
<text x="676" y="30" class="s-eyebrow">STEERED TO</text>
<text x="24" y="54" class="s-small">Exploring cleanly</text>
<rect x="24" y="64" width="120" height="54" rx="8" class="s-box"></rect><text x="38" y="87" class="s-mono">read_file</text><text x="38" y="107" class="s-ok">✓ ok</text><rect x="156" y="64" width="120" height="54" rx="8" class="s-box"></rect><text x="170" y="87" class="s-mono">edit</text><text x="170" y="107" class="s-ok">✓ applied</text><rect x="288" y="64" width="120" height="54" rx="8" class="s-box"></rect><text x="302" y="87" class="s-mono">pytest</text><text x="302" y="107" class="s-ok">✓ 44 passed</text>
<text x="24" y="218" class="s-small">Stuck on a failing step</text>
<rect x="24" y="228" width="120" height="54" rx="8" class="s-box"></rect><text x="38" y="251" class="s-mono">edit</text><text x="38" y="271" class="s-ok">✓ applied</text><rect x="156" y="228" width="120" height="54" rx="8" class="s-box s-failbox"></rect><text x="170" y="251" class="s-mono">pytest</text><text x="170" y="271" class="s-fail">✗ 3 failed</text><rect x="288" y="228" width="120" height="54" rx="8" class="s-box s-failbox"></rect><text x="302" y="251" class="s-mono">edit</text><text x="302" y="271" class="s-fail">✗ not found ×2</text>
<rect x="464" y="100" width="166" height="166" rx="12" class="s-box s-accent"></rect>
<text text-anchor="middle" x="547" y="152" class="s-title">Stage</text>
<text text-anchor="middle" x="547" y="174" class="s-title">router</text>
<text text-anchor="middle" x="547" y="202" class="s-small">severity · retries</text>
<text text-anchor="middle" x="547" y="220" class="s-small">recovery · holds</text>
<rect x="676" y="52" width="200" height="78" rx="10" class="s-box"></rect>
<text x="696" y="84" class="s-title">Claude Haiku</text>
<text x="696" y="108" class="s-ok">efficient · stays put</text>
<rect x="676" y="216" width="200" height="78" rx="10" class="s-box s-failbox"></rect>
<text x="696" y="248" class="s-title">Claude Opus</text>
<text x="696" y="272" class="s-fail">capable · escalated</text>
<path d="M408 91H436V140H464" class="s-wire" marker-end="url(#sw-ok-arrow)"></path><path d="M408 91H436V140H464" class="s-flow"></path>
<path d="M408 255H436V226H464" class="s-wire" marker-end="url(#sw-fail-arrow)"></path><path d="M408 255H436V226H464" class="s-flow s-flow-fail"></path>
<path d="M630 140H652V91H676" class="s-wire" marker-end="url(#sw-ok-arrow)"></path><path d="M630 140H652V91H676" class="s-flow"></path>
<path d="M630 226H652V255H676" class="s-wire" marker-end="url(#sw-fail-arrow)"></path><path d="M630 226H652V255H676" class="s-flow s-flow-fail"></path>
<text x="24" y="324" class="s-note">Turns the trajectory leaves unclear can go to an optional LLM judge or decision model.</text>
</svg>
</div>
<div class="u8-footer"><span>Reads the trajectory</span><span>Steers the session</span><span>Explains every pick</span></div>
</div>
<figcaption>Illustrative sessions. Each turn is scored against the session’s recent tool calls and results.</figcaption>
</figure></div>
<p><strong>Every routing decision is traceable to the trajectory that produced it.</strong> When the tool signals are inconclusive, Switchyard can defer to a judge, either an LLM judge or a decision model such as TypeSafe Jev. The judge is invoked only for those turns, so confident decisions add no latency or cost.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="configure-once-serve-every-agent-api">Configure once, serve every agent API<a href="https://docs.litellm.ai/blog/switchyard-tool-aware-routing#configure-once-serve-every-agent-api" class="hash-link" aria-label="Direct link to Configure once, serve every agent API" title="Direct link to Configure once, serve every agent API">​</a></h2>
<p>Switchyard is a first-class strategy in the Add Auto Router form, alongside Heuristics, LLM and Decisions Model. A router needs a capable model, an efficient model and, optionally, a judge.</p>
<figure class="uca-figure u8 sw-center"><div class="u8-art"><div class="u8-head"><span>02 / SETUP</span><h3>Three steps in the Auto Router form</h3><p>Models → Auto-Routers → Add Auto Router</p></div><ol class="sw-stepper"><li><div class="sw-step-copy"><span class="sw-step-n">1</span><div><strong>Pick Switchyard</strong><p>It sits next to Heuristics, LLM and Decisions Model in the strategy picker.</p></div></div><div class="sw-crop"><img src="https://docs.litellm.ai/assets/ideal-img/form_step_strategy.81810b8.1280.png" alt="Add Auto Router form, step 1: Pick Switchyard" loading="lazy"><span class="sw-box" style="left:75%;top:29.5%;width:23.6%;height:65.5%"></span></div></li><li><div class="sw-step-copy"><span class="sw-step-n">2</span><div><strong>Choose your models</strong><p>A capable model for the hard stretches, an efficient model for everything else.</p></div></div><div class="sw-crop"><img src="https://docs.litellm.ai/assets/ideal-img/form_step_models.ca27b6e.1280.png" alt="Add Auto Router form, step 2: Choose your models" loading="lazy"><span class="sw-box" style="left:1%;top:51.5%;width:98%;height:45.5%"></span></div></li><li><div class="sw-step-copy"><span class="sw-step-n">3</span><div><strong>Add a judge (optional)</strong><p>An LLM or decision model settles the turns the trajectory leaves unclear.</p></div></div><div class="sw-crop"><img src="https://docs.litellm.ai/assets/ideal-img/form_step_judge.0ce21ea.1280.png" alt="Add Auto Router form, step 3: Add a judge (optional)" loading="lazy"><span class="sw-box" style="left:1%;top:1.5%;width:98%;height:44%"></span></div></li></ol><div class="u8-footer"><span>Save, then call the router by name from any agent</span></div></div><figcaption>Crops of the Add Auto Router form in the LiteLLM dashboard.</figcaption></figure>
<p><strong>A single router name serves Claude Code, Codex and OpenAI SDK agents.</strong> Request translation across the three APIs happens in the proxy, so the routing behavior is identical regardless of which client is calling. The equivalent config is a few lines of YAML.</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">haiku</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><span class="token punctuation" style="color:#393A34">{</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">haiku</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 punctuation" style="color:#393A34">,</span><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><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><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><span class="token punctuation" style="color:#393A34">{</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 punctuation" style="color:#393A34">,</span><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><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"> switchyard</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">route</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/switchyard</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      </span><span class="token key atrule" style="color:#22863A">switchyard_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">models</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 key atrule" style="color:#22863A">capable</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"> </span><span class="token key atrule" style="color:#22863A">efficient</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">haiku</span><span class="token punctuation" style="color:#393A34">}</span><br></span></code></pre></div></div>
<p>Claude Code connects by pointing at the proxy and using the router name as its model.</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">ANTHROPIC_BASE_URL=http://localhost:4000 ANTHROPIC_AUTH_TOKEN=$LITELLM_API_KEY ANTHROPIC_MODEL=switchyard-route claude</span><br></span></code></pre></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="trajectory-aware-routing-treats-the-session-as-the-unit">Trajectory-aware routing treats the session as the unit<a href="https://docs.litellm.ai/blog/switchyard-tool-aware-routing#trajectory-aware-routing-treats-the-session-as-the-unit" class="hash-link" aria-label="Direct link to Trajectory-aware routing treats the session as the unit" title="Direct link to Trajectory-aware routing treats the session as the unit">​</a></h2>
<p>Per-request routing has a structural blind spot with agents. Resolving a failure spans several turns: reading the error, revising the code, rerunning the tests. A per-request router evaluates each of those turns in isolation, and the first clean intermediate result is enough to drop the session back to the efficient model mid-fix.</p>
<p>Switchyard maintains state for the session. Failure signals are evaluated over a rolling window of recent tool results, so a hard failure continues to count while the agent works through it. An escalation places a hold on the capable model for the turns that follow. When the trajectory stabilizes and the work returns to routine, the session steps back down.</p>
<div>
<figure class="uca-figure u8">
<input class="u8-pause" type="checkbox" id="sw-session-motion"><label class="u8-control" for="sw-session-motion">Pause animation</label>
<div class="u8-art">
<div class="u8-head"><span>03 / TRAJECTORY-AWARE ROUTING</span><h3>Escalate, hold, step down</h3><p>Failure signals persist over a rolling window, so the session holds on the capable model until the trajectory stabilizes.</p></div>
<div class="u9-scroll" tabindex="0" role="region" aria-label="A six turn session: turns one and two run on Claude Haiku, a failing test in turn three escalates to Claude Opus, the failure signal persists through the recovery window and the session holds on Opus through turn five, and turn six steps down to Haiku. Scroll horizontally on small screens.">
<svg class="u9-svg" viewBox="0 0 900 370" role="img" aria-label="A six turn session: turns one and two run on Claude Haiku, a failing test in turn three escalates to Claude Opus, the failure signal persists through the recovery window and the session holds on Opus through turn five, and turn six steps down to Haiku">
<rect x="394" y="158" width="336" height="60" rx="10" class="s-hold"></rect><path d="M134 188H860" class="s-lane"></path><path d="M134 258H860" class="s-lane"></path><text x="16" y="193" class="s-title" style="font-size:14px">Claude Opus</text><text x="16" y="263" class="s-title" style="font-size:14px">Claude Haiku</text><text x="16" y="326" class="s-eyebrow">SIGNAL</text><text x="16" y="342" class="s-small">window severity</text><path d="M190 258 L314 258 L438 188 L562 188 L686 188 L810 258" class="s-path"></path><path d="M190 258 L314 258 L438 188 L562 188 L686 188 L810 258" class="s-flow"></path><text text-anchor="middle" x="438" y="148" class="s-phase s-phase-fail">ESCALATE</text><text text-anchor="middle" x="624" y="148" class="s-phase">HOLD WHILE RECOVERING</text><text text-anchor="middle" x="810" y="292" class="s-phase">STEP DOWN</text><text text-anchor="middle" x="190" y="40" class="s-title" style="font-size:14px">Turn 1</text><text text-anchor="middle" x="190" y="64" class="s-mono" style="font-size:12px">read_file</text><text text-anchor="middle" x="190" y="86" class="s-ok">✓</text><circle cx="190" cy="258" r="9" class="s-dot"></circle><rect x="162" y="306" width="56" height="46" rx="5" class="s-sev-track"></rect><text text-anchor="middle" x="314" y="40" class="s-title" style="font-size:14px">Turn 2</text><text text-anchor="middle" x="314" y="64" class="s-mono" style="font-size:12px">edit</text><text text-anchor="middle" x="314" y="86" class="s-ok">✓</text><circle cx="314" cy="258" r="9" class="s-dot"></circle><rect x="286" y="306" width="56" height="46" rx="5" class="s-sev-track"></rect><text text-anchor="middle" x="438" y="40" class="s-title" style="font-size:14px">Turn 3</text><text text-anchor="middle" x="438" y="64" class="s-mono" style="font-size:12px">pytest</text><text text-anchor="middle" x="438" y="86" class="s-fail">✗ 3 failed</text><circle cx="438" cy="188" r="9" class="s-dot-on"></circle><rect x="410" y="306" width="56" height="46" rx="5" class="s-sev-track"></rect><rect x="410" y="319.8" width="56" height="32.199999999999996" rx="5" class="s-sev"></rect><text text-anchor="middle" x="562" y="40" class="s-title" style="font-size:14px">Turn 4</text><text text-anchor="middle" x="562" y="64" class="s-mono" style="font-size:12px">edit</text><text text-anchor="middle" x="562" y="86" class="s-ok">✓</text><circle cx="562" cy="188" r="9" class="s-dot-on"></circle><rect x="534" y="306" width="56" height="46" rx="5" class="s-sev-track"></rect><rect x="534" y="319.8" width="56" height="32.199999999999996" rx="5" class="s-sev"></rect><text text-anchor="middle" x="686" y="40" class="s-title" style="font-size:14px">Turn 5</text><text text-anchor="middle" x="686" y="64" class="s-mono" style="font-size:12px">pytest</text><text text-anchor="middle" x="686" y="86" class="s-ok">✓ passed</text><circle cx="686" cy="188" r="9" class="s-dot-on"></circle><rect x="658" y="306" width="56" height="46" rx="5" class="s-sev-track"></rect><rect x="658" y="335.9" width="56" height="16.099999999999998" rx="5" class="s-sev"></rect><text text-anchor="middle" x="810" y="40" class="s-title" style="font-size:14px">Turn 6</text><text text-anchor="middle" x="810" y="64" class="s-mono" style="font-size:12px">read_file</text><text text-anchor="middle" x="810" y="86" class="s-ok">✓</text><circle cx="810" cy="258" r="9" class="s-dot"></circle><rect x="782" y="306" width="56" height="46" rx="5" class="s-sev-track"></rect>
</svg>
</div>
<div class="sw-log">
<div class="sw-log-head">Session trace · session_id agent-7f3a</div>
<table><thead><tr><th>TURN</th><th>TOOL RESULT</th><th>STEERED TO</th><th>EVIDENCE</th></tr></thead><tbody>
<tr><td>1</td><td>read_file ✓</td><td class="">claude-haiku</td><td><code>fall_open</code></td></tr><tr><td>2</td><td>edit ✓</td><td class="">claude-haiku</td><td><code>fall_open</code></td></tr><tr><td>3</td><td>pytest ✗ 3 failed</td><td class="sw-cap">claude-opus</td><td><code>override</code></td></tr><tr><td>4</td><td>edit ✓</td><td class="sw-cap">claude-opus</td><td><code>capable_hold</code></td></tr><tr><td>5</td><td>pytest ✓</td><td class="sw-cap">claude-opus</td><td><code>capable_hold</code></td></tr><tr><td>6</td><td>read_file ✓</td><td class="">claude-haiku</td><td><code>fall_open</code></td></tr>
</tbody></table>
</div>
<div class="u8-footer"><span>Rolling signal window</span><span>Escalation holds</span><span>Per-key session state</span></div>
</div>
<figcaption>Illustrative session. The evidence column uses the values Switchyard records for each decision.</figcaption>
</figure></div>
<p>The window size and confidence threshold are configurable. Custom tool vocabularies extend the built-in classification, so internal or MCP tools can be declared as observe, mutate, plan or new and contribute to the same signals.</p>
<p><strong>Session state is isolated and every decision is auditable.</strong> LiteLLM scopes session state to the API key that owns it, so one caller cannot influence another's routing. Each decision is recorded in spend logs with the selected model and the evidence behind it, which lets you analyze cost and quality per session alongside the rest of your spend data.</p>
<div class="cost-launch-note"><p><strong>Available now</strong></p><p>Switchyard is available as an auto-router strategy in LiteLLM. See the <a href="https://docs.litellm.ai/docs/proxy/auto_routing">auto routing docs</a> to get started. We are building more with the Switchyard team, so tell us what your agents need next.</p></div>]]></content>
        <author>
            <name>Joshua Valluru</name>
            <uri>https://github.com/joshua-berri</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="routing" term="routing"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM now supports -latest model aliases]]></title>
        <id>https://docs.litellm.ai/blog/latest-model-aliases</id>
        <link href="https://docs.litellm.ai/blog/latest-model-aliases"/>
        <updated>2026-11-06T01:00:00.000Z</updated>
        <summary type="html"><![CDATA[Keep the same model name as newer versions arrive. Use -latest aliases in the LiteLLM SDK and AI Gateway.]]></summary>
        <content type="html"><![CDATA[<div data-full-width="true" class="root_Vu5I"><header class="hero_cPEp"><div class="meta_iDvi"><a href="https://docs.litellm.ai/blog">← Blog</a><span>PYTHON SDK / AI GATEWAY</span></div><h1 aria-label="LiteLLM now supports -latest model aliases"><span class="introducing_oy34">LiteLLM now supports</span> <span class="latest__N2h">-latest</span> <span class="subtitle_t6Cr">model aliases</span></h1><div class="heroBottom_ZEzx"><p>Same model name.<br>Newer models.</p><a href="https://docs.litellm.ai/blog/latest-model-aliases#try-it">Try it <span aria-hidden="true">↓</span></a></div></header><div class="article_wa0_"><div class="byline_VHh9"><div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-11-06T01:00:00.000Z">Nov 6, 2026</time></span><div class="authors_hW1g"><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>AI Product Engineer, LiteLLM</small></span></span></div></div></div></div><div class="reading_JI__"><p class="lead_huNg">As providers release smarter, faster, cheaper models, you shouldn't have to update every app by hand.</p><p>LiteLLM now supports <code>-latest</code> aliases. Pick a model family once. We update the model behind the alias as newer versions arrive, so you can keep the same name in your code.</p><div id="try-it" class="example_N03J"><p>With <code>litellm</code> installed and <code>OPENAI_API_KEY</code> set:</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">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-luna-latest"</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">"Say hello."</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"></span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div><p>The same aliases work in the Python SDK and AI Gateway.</p></div><section id="supported-models" class="models_xANV" aria-labelledby="supported-models-title"><h2 id="supported-models-title">Supported models</h2><p>Use the provider prefix with any of its aliases below, as in <code>openai/gpt-luna-latest</code>.</p><dl class="providers_c0Tz"><div class="provider_UK6g"><dt>OpenAI<code>openai/</code></dt><dd><code>gpt-luna-latest</code>, <code>gpt-sol-latest</code>, <code>gpt-terra-latest</code>, <code>gpt-astra-latest</code>, <code>gpt-mini-latest</code></dd></div><div class="provider_UK6g"><dt>Anthropic<code>anthropic/</code></dt><dd><code>claude-opus-latest</code>, <code>claude-sonnet-latest</code>, <code>claude-haiku-latest</code>, <code>claude-fable-latest</code></dd></div><div class="provider_UK6g"><dt>xAI<code>xai/</code></dt><dd><code>grok-latest</code></dd></div><div class="provider_UK6g"><dt>Moonshot<code>moonshot/</code></dt><dd><code>kimi-latest</code></dd></div><div class="provider_UK6g"><dt>Z.AI<code>zai/</code></dt><dd><code>glm-latest</code>, <code>glm-flash-latest</code></dd></div><div class="provider_UK6g"><dt>DeepSeek<code>deepseek/</code></dt><dd><code>deepseek-pro-latest</code>, <code>deepseek-flash-latest</code></dd></div><div class="provider_UK6g"><dt>DashScope<code>dashscope/</code></dt><dd><code>qwen-max-latest</code>, <code>qwen-flash-latest</code></dd></div><div class="provider_UK6g"><dt>MiniMax<code>minimax/</code></dt><dd><code>minimax-latest</code></dd></div></dl><p class="note_FAPG">These aliases call each provider's own API. Gemini and Mistral already offer provider-managed latest names, which LiteLLM passes through.</p></section><div class="end_HPdt"><a href="https://docs.litellm.ai/docs/model_latest_aliases">Get started with latest aliases <span aria-hidden="true">↗</span></a></div></div></div></div>
]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="models" term="models"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Model Deprecation Management]]></title>
        <id>https://docs.litellm.ai/blog/model-deprecation-alerts</id>
        <link href="https://docs.litellm.ai/blog/model-deprecation-alerts"/>
        <updated>2026-11-05T01:00:00.000Z</updated>
        <summary type="html"><![CDATA[Manage model deprecations in the LiteLLM AI Gateway. Find affected keys, track migration traffic, and notify owners before provider deadlines.]]></summary>
        <content type="html"><![CDATA[<div class="root_UApU" data-full-width="true"><header class="hero_pnBr"><div class="heroInner_G2_O"><div class="heroNav_vTSX"><div class="brand_iuyO"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" width="150" height="36"><span>/ AI GATEWAY</span></div><a href="https://docs.litellm.ai/blog">Back to the blog <span aria-hidden="true">↗</span></a></div><div class="heroBody_tqVj"><div class="heroCopy_hH4u"><p class="heroMeta_ZpwZ">MODEL LIFECYCLE MANAGEMENT / NEW IN THE LITELLM UI</p><h1 class="heroTitle_aKes"><span>Model</span><span>Deprecation</span><span>Management</span></h1><p class="heroIntro_dXA4">The LiteLLM UI now has alerts<br> for model deprecations.</p><a class="heroCta_lTDS" href="https://docs.litellm.ai/blog/model-deprecation-alerts#alerts-around-model-deprecations">See how it works <svg viewBox="0 0 100 100" fill="none" aria-hidden="true"><path d="M10 90 90 10M37 10h53v53"></path></svg></a></div><svg class="lifecycleDial_eDdh" viewBox="0 0 660 660" role="img" aria-label="Circular model lifecycle: provider notice, LiteLLM alert, migration, resolved."><title>Model deprecation management in LiteLLM</title><desc>Provider deprecation notice, an alert in the LiteLLM UI, migration, and resolution. Model providers: OpenAI, Anthropic, Google, Azure, and AWS.</desc><g transform="translate(330 330)"><circle r="158" class="dialGuide_zjCl"></circle><circle r="165" class="dialGuide_zjCl"></circle><circle r="176" class="dialGuide_zjCl"></circle><circle r="290" class="dialGuide_zjCl"></circle><circle r="302" class="dialGuide_zjCl"></circle><circle r="312" class="dialGuide_zjCl"></circle><path d="M301,0 L312,0" class="dialTick_uEzY"></path><path d="M305.5806376348996,16.014802610340812 L311.57241484342705,16.328818347798475" class="dialTick_uEzY"></path><path d="M304.3236999826916,31.985709759901958 L310.2908313549013,32.61288053950788" class="dialTick_uEzY"></path><path d="M302.23263222211216,47.86894630231065 L308.158762265683,48.807553092552034" class="dialTick_uEzY"></path><path d="M299.3131658245445,63.62097739023435 L305.1820514289474,64.8684475351409" class="dialTick_uEzY"></path><path d="M290.74367371300957,77.90453257585874 L301.3688578021893,80.75154207198648" class="dialTick_uEzY"></path><path d="M291.02329398631696,94.5592002787339 L296.7296330840879,96.41330224498358" class="dialTick_uEzY"></path><path d="M285.67561050814373,109.66059256086189 L291.27709306712694,111.81080025813368" class="dialTick_uEzY"></path><path d="M279.54491003863586,124.46141278119485 L285.0261827844915,126.90183263964965" class="dialTick_uEzY"></path><path d="M272.64799640164057,138.9210929203013 L277.99403554677076,141.64503591873859" class="dialTick_uEzY"></path><path d="M260.6736465391161,150.49999999999997 L270.19992598074487,155.99999999999997" class="dialTick_uEzY"></path><path d="M256.63319379129973,166.6595447145983 L261.6652171989723,169.92737892468844" class="dialTick_uEzY"></path><path d="M247.55920027873393,179.86228720149677 L252.4133022449836,183.38899871525163" class="dialTick_uEzY"></path><path d="M237.8066642058331,192.57203966125024 L242.46953997457493,196.34796200754926" class="dialTick_uEzY"></path><path d="M227.40231659608264,204.75396554581062 L231.861185548947,208.76874918396376" class="dialTick_uEzY"></path><path d="M212.83914113715082,212.8391411371508 L220.61731573020285,220.61731573020282" class="dialTick_uEzY"></path><path d="M204.75396554581062,227.40231659608264 L208.76874918396376,231.861185548947" class="dialTick_uEzY"></path><path d="M192.57203966125027,237.80666420583307 L196.3479620075493,242.4695399745749" class="dialTick_uEzY"></path><path d="M179.86228720149677,247.55920027873393 L183.38899871525163,252.4133022449836" class="dialTick_uEzY"></path><path d="M166.65954471459833,256.63319379129973 L169.9273789246885,261.66521719897224" class="dialTick_uEzY"></path><path d="M150.50000000000003,260.673646539116 L156.00000000000003,270.19992598074487" class="dialTick_uEzY"></path><path d="M138.92109292030133,272.64799640164057 L141.6450359187386,277.99403554677076" class="dialTick_uEzY"></path><path d="M124.46141278119487,279.54491003863586 L126.90183263964967,285.0261827844915" class="dialTick_uEzY"></path><path d="M109.66059256086191,285.67561050814373 L111.81080025813372,291.27709306712694" class="dialTick_uEzY"></path><path d="M94.55920027873393,291.02329398631696 L96.41330224498361,296.7296330840879" class="dialTick_uEzY"></path><path d="M77.90453257585874,290.74367371300957 L80.75154207198648,301.3688578021893" class="dialTick_uEzY"></path><path d="M63.620977390234394,299.3131658245445 L64.86844753514094,305.1820514289473" class="dialTick_uEzY"></path><path d="M47.86894630231066,302.23263222211216 L48.80755309255205,308.158762265683" class="dialTick_uEzY"></path><path d="M31.985709759901958,304.3236999826916 L32.61288053950788,310.2908313549013" class="dialTick_uEzY"></path><path d="M16.014802610340855,305.5806376348996 L16.328818347798517,311.57241484342705" class="dialTick_uEzY"></path><path d="M1.8430934327167665e-14,301 L1.910449006669871e-14,312" class="dialTick_uEzY"></path><path d="M-16.014802610340748,305.5806376348996 L-16.32881834779841,311.57241484342705" class="dialTick_uEzY"></path><path d="M-31.98570975990192,304.32369998269166 L-32.61288053950784,310.2908313549013" class="dialTick_uEzY"></path><path d="M-47.8689463023107,302.2326322221121 L-48.807553092552084,308.1587622656829" class="dialTick_uEzY"></path><path d="M-63.62097739023429,299.3131658245445 L-64.86844753514085,305.1820514289474" class="dialTick_uEzY"></path><path d="M-77.90453257585878,290.74367371300957 L-80.7515420719865,301.3688578021893" class="dialTick_uEzY"></path><path d="M-94.55920027873388,291.023293986317 L-96.41330224498357,296.72963308408794" class="dialTick_uEzY"></path><path d="M-109.66059256086189,285.67561050814373 L-111.81080025813368,291.27709306712694" class="dialTick_uEzY"></path><path d="M-124.46141278119482,279.5449100386359 L-126.90183263964963,285.0261827844915" class="dialTick_uEzY"></path><path d="M-138.9210929203013,272.64799640164057 L-141.64503591873859,277.99403554677076" class="dialTick_uEzY"></path><path d="M-150.49999999999994,260.6736465391161 L-155.99999999999994,270.19992598074487" class="dialTick_uEzY"></path><path d="M-166.6595447145983,256.63319379129973 L-169.92737892468844,261.6652171989723" class="dialTick_uEzY"></path><path d="M-179.86228720149674,247.55920027873393 L-183.38899871525157,252.4133022449836" class="dialTick_uEzY"></path><path d="M-192.57203966125022,237.80666420583313 L-196.34796200754923,242.46953997457496" class="dialTick_uEzY"></path><path d="M-204.75396554581062,227.40231659608264 L-208.76874918396376,231.861185548947" class="dialTick_uEzY"></path><path d="M-212.8391411371508,212.83914113715082 L-220.61731573020282,220.61731573020285" class="dialTick_uEzY"></path><path d="M-227.4023165960826,204.75396554581064 L-231.86118554894696,208.7687491839638" class="dialTick_uEzY"></path><path d="M-237.80666420583302,192.57203966125036 L-242.46953997457484,196.34796200754937" class="dialTick_uEzY"></path><path d="M-247.5592002787339,179.86228720149683 L-252.41330224498358,183.38899871525166" class="dialTick_uEzY"></path><path d="M-256.6331937912998,166.6595447145982 L-261.66521719897236,169.92737892468838" class="dialTick_uEzY"></path><path d="M-260.6736465391161,150.49999999999997 L-270.19992598074487,155.99999999999997" class="dialTick_uEzY"></path><path d="M-272.64799640164057,138.92109292030133 L-277.99403554677076,141.6450359187386" class="dialTick_uEzY"></path><path d="M-279.5449100386358,124.46141278119494 L-285.0261827844914,126.90183263964974" class="dialTick_uEzY"></path><path d="M-285.67561050814373,109.66059256086187 L-291.27709306712694,111.81080025813367" class="dialTick_uEzY"></path><path d="M-291.02329398631696,94.55920027873394 L-296.7296330840879,96.41330224498363" class="dialTick_uEzY"></path><path d="M-290.7436737130095,77.90453257585882 L-301.36885780218927,80.75154207198656" class="dialTick_uEzY"></path><path d="M-299.3131658245445,63.62097739023435 L-305.1820514289474,64.8684475351409" class="dialTick_uEzY"></path><path d="M-302.2326322221121,47.86894630231068 L-308.1587622656829,48.80755309255206" class="dialTick_uEzY"></path><path d="M-304.3236999826916,31.985709759902043 L-310.2908313549013,32.61288053950796" class="dialTick_uEzY"></path><path d="M-305.5806376348996,16.014802610340805 L-311.57241484342705,16.328818347798467" class="dialTick_uEzY"></path><path d="M-301,3.686186865433533e-14 L-312,3.820898013339742e-14" class="dialTick_uEzY"></path><path d="M-305.5806376348996,-16.01480261034073 L-311.57241484342705,-16.328818347798393" class="dialTick_uEzY"></path><path d="M-304.32369998269166,-31.985709759901834 L-310.2908313549013,-32.612880539507756" class="dialTick_uEzY"></path><path d="M-302.23263222211216,-47.868946302310604 L-308.158762265683,-48.807553092551984" class="dialTick_uEzY"></path><path d="M-299.3131658245445,-63.62097739023427 L-305.1820514289474,-64.86844753514083" class="dialTick_uEzY"></path><path d="M-290.74367371300957,-77.90453257585862 L-301.3688578021893,-80.75154207198635" class="dialTick_uEzY"></path><path d="M-291.02329398631696,-94.55920027873401 L-296.7296330840879,-96.4133022449837" class="dialTick_uEzY"></path><path d="M-285.67561050814373,-109.66059256086193 L-291.27709306712694,-111.81080025813374" class="dialTick_uEzY"></path><path d="M-279.5449100386359,-124.46141278119474 L-285.02618278449154,-126.90183263964954" class="dialTick_uEzY"></path><path d="M-272.6479964016406,-138.92109292030116 L-277.9940355467709,-141.64503591873844" class="dialTick_uEzY"></path><path d="M-260.673646539116,-150.50000000000003 L-270.19992598074487,-156.00000000000003" class="dialTick_uEzY"></path><path d="M-256.63319379129973,-166.6595447145983 L-261.6652171989723,-169.92737892468844" class="dialTick_uEzY"></path><path d="M-247.55920027873393,-179.86228720149674 L-252.4133022449836,-183.38899871525157" class="dialTick_uEzY"></path><path d="M-237.80666420583307,-192.5720396612503 L-242.4695399745749,-196.34796200754934" class="dialTick_uEzY"></path><path d="M-227.40231659608264,-204.75396554581062 L-231.861185548947,-208.76874918396376" class="dialTick_uEzY"></path><path d="M-212.83914113715085,-212.8391411371508 L-220.61731573020288,-220.61731573020282" class="dialTick_uEzY"></path><path d="M-204.7539655458107,-227.40231659608258 L-208.76874918396385,-231.86118554894693" class="dialTick_uEzY"></path><path d="M-192.57203966125013,-237.80666420583316 L-196.34796200754917,-242.46953997457499" class="dialTick_uEzY"></path><path d="M-179.86228720149683,-247.5592002787339 L-183.38899871525166,-252.41330224498358" class="dialTick_uEzY"></path><path d="M-166.65954471459824,-256.63319379129973 L-169.9273789246884,-261.6652171989723" class="dialTick_uEzY"></path><path d="M-150.50000000000014,-260.67364653911596 L-156.00000000000014,-270.1999259807448" class="dialTick_uEzY"></path><path d="M-138.92109292030136,-272.64799640164057 L-141.64503591873864,-277.99403554677076" class="dialTick_uEzY"></path><path d="M-124.46141278119482,-279.5449100386359 L-126.90183263964963,-285.0261827844915" class="dialTick_uEzY"></path><path d="M-109.66059256086201,-285.6756105081437 L-111.81080025813382,-291.2770930671269" class="dialTick_uEzY"></path><path d="M-94.55920027873395,-291.02329398631696 L-96.41330224498364,-296.7296330840879" class="dialTick_uEzY"></path><path d="M-77.90453257585871,-290.74367371300957 L-80.75154207198644,-301.3688578021893" class="dialTick_uEzY"></path><path d="M-63.62097739023449,-299.3131658245445 L-64.86844753514106,-305.1820514289473" class="dialTick_uEzY"></path><path d="M-47.8689463023107,-302.2326322221121 L-48.807553092552084,-308.1587622656829" class="dialTick_uEzY"></path><path d="M-31.98570975990193,-304.32369998269166 L-32.61288053950785,-310.2908313549013" class="dialTick_uEzY"></path><path d="M-16.014802610340958,-305.5806376348996 L-16.328818347798624,-311.57241484342705" class="dialTick_uEzY"></path><path d="M-5.5292802981502995e-14,-301 L-5.731347020009613e-14,-312" class="dialTick_uEzY"></path><path d="M16.014802610340848,-305.5806376348996 L16.32881834779851,-311.57241484342705" class="dialTick_uEzY"></path><path d="M31.985709759901813,-304.32369998269166 L32.61288053950773,-310.2908313549013" class="dialTick_uEzY"></path><path d="M47.86894630231058,-302.23263222211216 L48.80755309255197,-308.158762265683" class="dialTick_uEzY"></path><path d="M63.620977390234124,-299.31316582454457 L64.86844753514067,-305.18205142894743" class="dialTick_uEzY"></path><path d="M77.90453257585887,-290.7436737130095 L80.75154207198659,-301.36885780218927" class="dialTick_uEzY"></path><path d="M94.55920027873385,-291.023293986317 L96.41330224498354,-296.72963308408794" class="dialTick_uEzY"></path><path d="M109.66059256086166,-285.67561050814385 L111.81080025813345,-291.27709306712705" class="dialTick_uEzY"></path><path d="M124.46141278119497,-279.5449100386358 L126.90183263964977,-285.0261827844914" class="dialTick_uEzY"></path><path d="M138.92109292030128,-272.6479964016406 L141.64503591873856,-277.9940355467708" class="dialTick_uEzY"></path><path d="M150.50000000000003,-260.673646539116 L156.00000000000003,-270.19992598074487" class="dialTick_uEzY"></path><path d="M166.65954471459816,-256.63319379129985 L169.9273789246883,-261.66521719897236" class="dialTick_uEzY"></path><path d="M179.8622872014967,-247.55920027873395 L183.38899871525155,-252.41330224498364" class="dialTick_uEzY"></path><path d="M192.57203966125027,-237.80666420583307 L196.3479620075493,-242.4695399745749" class="dialTick_uEzY"></path><path d="M204.75396554581047,-227.40231659608273 L208.76874918396362,-231.8611855489471" class="dialTick_uEzY"></path><path d="M212.83914113715076,-212.83914113715085 L220.61731573020276,-220.61731573020288" class="dialTick_uEzY"></path><path d="M227.40231659608264,-204.7539655458106 L231.861185548947,-208.76874918396373" class="dialTick_uEzY"></path><path d="M237.806664205833,-192.5720396612504 L242.46953997457481,-196.3479620075494" class="dialTick_uEzY"></path><path d="M247.5592002787339,-179.86228720149686 L252.41330224498358,-183.3889987152517" class="dialTick_uEzY"></path><path d="M256.63319379129973,-166.65954471459824 L261.6652171989723,-169.9273789246884" class="dialTick_uEzY"></path><path d="M260.67364653911596,-150.50000000000014 L270.19992598074475,-156.00000000000014" class="dialTick_uEzY"></path><path d="M272.64799640164057,-138.92109292030136 L277.99403554677076,-141.64503591873864" class="dialTick_uEzY"></path><path d="M279.5449100386359,-124.46141278119485 L285.0261827844915,-126.90183263964965" class="dialTick_uEzY"></path><path d="M285.6756105081437,-109.66059256086203 L291.2770930671269,-111.81080025813384" class="dialTick_uEzY"></path><path d="M291.02329398631696,-94.55920027873397 L296.7296330840879,-96.41330224498365" class="dialTick_uEzY"></path><path d="M290.74367371300957,-77.90453257585872 L301.3688578021893,-80.75154207198645" class="dialTick_uEzY"></path><path d="M299.3131658245445,-63.62097739023452 L305.1820514289473,-64.86844753514107" class="dialTick_uEzY"></path><path d="M302.2326322221121,-47.868946302310725 L308.1587622656829,-48.80755309255211" class="dialTick_uEzY"></path><path d="M304.3236999826916,-31.985709759901944 L310.2908313549013,-32.61288053950786" class="dialTick_uEzY"></path><path d="M305.5806376348996,-16.014802610340976 L311.57241484342705,-16.32881834779864" class="dialTick_uEzY"></path><g class="dialSector_eKcn" data-active="false"><path d="M-129.57968841187468,-138.9572033076424 A190,190 0 0 1 127.13481520818307,-141.1975168407049" class="dialEngraving_V3cj"></path><path d="M-132.68278095015907,-142.28486265000964 A194.55,194.55 0 0 1 130.1793594671159,-144.57882579662706" class="dialEngraving_V3cj"></path><path d="M-135.78587348844343,-145.61252199237686 A199.1,199.1 0 0 1 133.22390372604866,-147.96013475254918" class="dialEngraving_V3cj"></path><path d="M-138.8889660267278,-148.9401813347441 A203.65,203.65 0 0 1 136.2684479849815,-151.34144370847133" class="dialEngraving_V3cj"></path><path d="M-141.99205856501214,-152.2678406771113 A208.2,208.2 0 0 1 139.31299224391427,-154.72275266439348" class="dialEngraving_V3cj"></path><path d="M-145.09515110329653,-155.59550001947855 A212.75,212.75 0 0 1 142.3575365028471,-158.10406162031563" class="dialEngraving_V3cj"></path><path d="M-148.19824364158092,-158.92315936184576 A217.3,217.3 0 0 1 145.4020807617799,-161.48537057623778" class="dialEngraving_V3cj"></path><path d="M-151.30133617986525,-162.25081870421297 A221.85,221.85 0 0 1 148.4466250207127,-164.8666795321599" class="dialEngraving_V3cj"></path><path d="M-154.40442871814963,-165.57847804658022 A226.4,226.4 0 0 1 151.4911692796455,-168.24798848808206" class="dialEngraving_V3cj"></path><path d="M-157.507521256434,-168.90613738894743 A230.95,230.95 0 0 1 154.5357135385783,-171.62929744400418" class="dialEngraving_V3cj"></path><path d="M-160.61061379471838,-172.23379673131467 A235.5,235.5 0 0 1 157.5802577975111,-175.01060639992633" class="dialEngraving_V3cj"></path><path d="M-163.71370633300273,-175.5614560736819 A240.05,240.05 0 0 1 160.62480205644394,-178.3919153558485" class="dialEngraving_V3cj"></path><path d="M-166.8167988712871,-178.88911541604912 A244.6,244.6 0 0 1 163.6693463153767,-181.77322431177063" class="dialEngraving_V3cj"></path><path d="M-169.91989140957148,-182.21677475841636 A249.15,249.15 0 0 1 166.71389057430954,-185.15453326769278" class="dialEngraving_V3cj"></path><path d="M-173.02298394785583,-185.54443410078358 A253.7,253.7 0 0 1 169.75843483324232,-188.5358422236149" class="dialEngraving_V3cj"></path><path d="M-176.1260764861402,-188.8720934431508 A258.25,258.25 0 0 1 172.80297909217515,-191.91715117953706" class="dialEngraving_V3cj"></path><path d="M-179.22916902442458,-192.19975278551803 A262.8,262.8 0 0 1 175.84752335110795,-195.2984601354592" class="dialEngraving_V3cj"></path><path d="M-182.33226156270896,-195.52741212788527 A267.35,267.35 0 0 1 178.89206761004075,-198.67976909138136" class="dialEngraving_V3cj"></path><path d="M-185.4353541009933,-198.85507147025245 A271.9,271.9 0 0 1 181.93661186897353,-202.06107804730348" class="dialEngraving_V3cj"></path></g><g class="dialSector_eKcn" data-active="true"><path d="M141.1975168407049,-127.13481520818307 A190,190 0 0 1 141.1975168407049,127.13481520818307" class="dialEngraving_V3cj"></path><path d="M144.57882579662706,-130.1793594671159 A194.55,194.55 0 0 1 144.57882579662706,130.1793594671159" class="dialEngraving_V3cj"></path><path d="M147.96013475254918,-133.22390372604866 A199.1,199.1 0 0 1 147.96013475254918,133.22390372604866" class="dialEngraving_V3cj"></path><path d="M151.34144370847133,-136.2684479849815 A203.65,203.65 0 0 1 151.34144370847133,136.2684479849815" class="dialEngraving_V3cj"></path><path d="M154.72275266439348,-139.31299224391427 A208.2,208.2 0 0 1 154.72275266439348,139.31299224391427" class="dialEngraving_V3cj"></path><path d="M158.10406162031563,-142.3575365028471 A212.75,212.75 0 0 1 158.10406162031563,142.3575365028471" class="dialEngraving_V3cj"></path><path d="M161.48537057623778,-145.4020807617799 A217.3,217.3 0 0 1 161.48537057623778,145.4020807617799" class="dialEngraving_V3cj"></path><path d="M164.8666795321599,-148.4466250207127 A221.85,221.85 0 0 1 164.8666795321599,148.4466250207127" class="dialEngraving_V3cj"></path><path d="M168.24798848808206,-151.4911692796455 A226.4,226.4 0 0 1 168.24798848808206,151.4911692796455" class="dialEngraving_V3cj"></path><path d="M171.62929744400418,-154.5357135385783 A230.95,230.95 0 0 1 171.62929744400418,154.5357135385783" class="dialEngraving_V3cj"></path><path d="M175.01060639992633,-157.5802577975111 A235.5,235.5 0 0 1 175.01060639992633,157.5802577975111" class="dialEngraving_V3cj"></path><path d="M178.3919153558485,-160.62480205644394 A240.05,240.05 0 0 1 178.3919153558485,160.62480205644394" class="dialEngraving_V3cj"></path><path d="M181.77322431177063,-163.6693463153767 A244.6,244.6 0 0 1 181.77322431177063,163.6693463153767" class="dialEngraving_V3cj"></path><path d="M185.15453326769278,-166.71389057430954 A249.15,249.15 0 0 1 185.15453326769278,166.71389057430954" class="dialEngraving_V3cj"></path><path d="M188.5358422236149,-169.75843483324232 A253.7,253.7 0 0 1 188.5358422236149,169.75843483324232" class="dialEngraving_V3cj"></path><path d="M191.91715117953706,-172.80297909217515 A258.25,258.25 0 0 1 191.91715117953706,172.80297909217515" class="dialEngraving_V3cj"></path><path d="M195.2984601354592,-175.84752335110795 A262.8,262.8 0 0 1 195.2984601354592,175.84752335110795" class="dialEngraving_V3cj"></path><path d="M198.67976909138136,-178.89206761004075 A267.35,267.35 0 0 1 198.67976909138136,178.89206761004075" class="dialEngraving_V3cj"></path><path d="M202.06107804730348,-181.93661186897353 A271.9,271.9 0 0 1 202.06107804730348,181.93661186897353" class="dialEngraving_V3cj"></path></g><g class="dialSector_eKcn" data-active="false"><path d="M127.13481520818307,141.1975168407049 A190,190 0 0 1 -127.13481520818307,141.1975168407049" class="dialEngraving_V3cj"></path><path d="M130.1793594671159,144.57882579662706 A194.55,194.55 0 0 1 -130.1793594671159,144.57882579662706" class="dialEngraving_V3cj"></path><path d="M133.22390372604866,147.96013475254918 A199.1,199.1 0 0 1 -133.22390372604866,147.96013475254918" class="dialEngraving_V3cj"></path><path d="M136.2684479849815,151.34144370847133 A203.65,203.65 0 0 1 -136.2684479849815,151.34144370847133" class="dialEngraving_V3cj"></path><path d="M139.31299224391427,154.72275266439348 A208.2,208.2 0 0 1 -139.31299224391427,154.72275266439348" class="dialEngraving_V3cj"></path><path d="M142.3575365028471,158.10406162031563 A212.75,212.75 0 0 1 -142.3575365028471,158.10406162031563" class="dialEngraving_V3cj"></path><path d="M145.4020807617799,161.48537057623778 A217.3,217.3 0 0 1 -145.4020807617799,161.48537057623778" class="dialEngraving_V3cj"></path><path d="M148.4466250207127,164.8666795321599 A221.85,221.85 0 0 1 -148.4466250207127,164.8666795321599" class="dialEngraving_V3cj"></path><path d="M151.4911692796455,168.24798848808206 A226.4,226.4 0 0 1 -151.4911692796455,168.24798848808206" class="dialEngraving_V3cj"></path><path d="M154.5357135385783,171.62929744400418 A230.95,230.95 0 0 1 -154.5357135385783,171.62929744400418" class="dialEngraving_V3cj"></path><path d="M157.5802577975111,175.01060639992633 A235.5,235.5 0 0 1 -157.5802577975111,175.01060639992633" class="dialEngraving_V3cj"></path><path d="M160.62480205644394,178.3919153558485 A240.05,240.05 0 0 1 -160.62480205644394,178.3919153558485" class="dialEngraving_V3cj"></path><path d="M163.6693463153767,181.77322431177063 A244.6,244.6 0 0 1 -163.6693463153767,181.77322431177063" class="dialEngraving_V3cj"></path><path d="M166.71389057430954,185.15453326769278 A249.15,249.15 0 0 1 -166.71389057430954,185.15453326769278" class="dialEngraving_V3cj"></path><path d="M169.75843483324232,188.5358422236149 A253.7,253.7 0 0 1 -169.75843483324232,188.5358422236149" class="dialEngraving_V3cj"></path><path d="M172.80297909217515,191.91715117953706 A258.25,258.25 0 0 1 -172.80297909217515,191.91715117953706" class="dialEngraving_V3cj"></path><path d="M175.84752335110795,195.2984601354592 A262.8,262.8 0 0 1 -175.84752335110795,195.2984601354592" class="dialEngraving_V3cj"></path><path d="M178.89206761004075,198.67976909138136 A267.35,267.35 0 0 1 -178.89206761004075,198.67976909138136" class="dialEngraving_V3cj"></path><path d="M181.93661186897353,202.06107804730348 A271.9,271.9 0 0 1 -181.93661186897353,202.06107804730348" class="dialEngraving_V3cj"></path></g><g class="dialSector_eKcn" data-active="false"><path d="M-141.19751684070488,127.13481520818308 A190,190 0 0 1 -141.1975168407049,-127.13481520818307" class="dialEngraving_V3cj"></path><path d="M-144.57882579662703,130.1793594671159 A194.55,194.55 0 0 1 -144.57882579662706,-130.1793594671159" class="dialEngraving_V3cj"></path><path d="M-147.96013475254918,133.2239037260487 A199.1,199.1 0 0 1 -147.96013475254918,-133.22390372604866" class="dialEngraving_V3cj"></path><path d="M-151.34144370847133,136.26844798498152 A203.65,203.65 0 0 1 -151.34144370847133,-136.2684479849815" class="dialEngraving_V3cj"></path><path d="M-154.72275266439345,139.3129922439143 A208.2,208.2 0 0 1 -154.72275266439348,-139.31299224391427" class="dialEngraving_V3cj"></path><path d="M-158.1040616203156,142.35753650284713 A212.75,212.75 0 0 1 -158.10406162031563,-142.3575365028471" class="dialEngraving_V3cj"></path><path d="M-161.48537057623776,145.40208076177993 A217.3,217.3 0 0 1 -161.48537057623778,-145.4020807617799" class="dialEngraving_V3cj"></path><path d="M-164.86667953215988,148.44662502071273 A221.85,221.85 0 0 1 -164.8666795321599,-148.4466250207127" class="dialEngraving_V3cj"></path><path d="M-168.24798848808203,151.49116927964553 A226.4,226.4 0 0 1 -168.24798848808206,-151.4911692796455" class="dialEngraving_V3cj"></path><path d="M-171.62929744400418,154.53571353857834 A230.95,230.95 0 0 1 -171.62929744400418,-154.5357135385783" class="dialEngraving_V3cj"></path><path d="M-175.01060639992633,157.58025779751114 A235.5,235.5 0 0 1 -175.01060639992633,-157.5802577975111" class="dialEngraving_V3cj"></path><path d="M-178.39191535584848,160.62480205644394 A240.05,240.05 0 0 1 -178.3919153558485,-160.62480205644394" class="dialEngraving_V3cj"></path><path d="M-181.7732243117706,163.66934631537674 A244.6,244.6 0 0 1 -181.77322431177063,-163.6693463153767" class="dialEngraving_V3cj"></path><path d="M-185.15453326769276,166.71389057430957 A249.15,249.15 0 0 1 -185.15453326769278,-166.71389057430954" class="dialEngraving_V3cj"></path><path d="M-188.53584222361488,169.75843483324235 A253.7,253.7 0 0 1 -188.5358422236149,-169.75843483324232" class="dialEngraving_V3cj"></path><path d="M-191.91715117953703,172.80297909217518 A258.25,258.25 0 0 1 -191.91715117953706,-172.80297909217515" class="dialEngraving_V3cj"></path><path d="M-195.29846013545918,175.84752335110798 A262.8,262.8 0 0 1 -195.2984601354592,-175.84752335110795" class="dialEngraving_V3cj"></path><path d="M-198.67976909138133,178.89206761004078 A267.35,267.35 0 0 1 -198.67976909138136,-178.89206761004075" class="dialEngraving_V3cj"></path><path d="M-202.06107804730345,181.93661186897356 A271.9,271.9 0 0 1 -202.06107804730348,-181.93661186897353" class="dialEngraving_V3cj"></path></g><path d="M-123.03657992645925,-123.03657992645928 L-210.71782079359113,-210.7178207935912" class="dialDivider_d5lP"></path><path d="M123.03657992645928,-123.03657992645925 L210.7178207935912,-210.71782079359113" class="dialDivider_d5lP"></path><path d="M123.03657992645928,123.03657992645925 L210.7178207935912,210.71782079359113" class="dialDivider_d5lP"></path><path d="M-123.03657992645925,123.03657992645928 L-210.71782079359113,210.7178207935912" class="dialDivider_d5lP"></path><path d="M-5-5 0 0-5 5" transform="translate(1.7451216887849784e-14 -285) rotate(0)" class="dialArrow_YWUe"></path><path d="M-5-5 0 0-5 5" transform="translate(285 0) rotate(90)" class="dialArrow_YWUe"></path><path d="M-5-5 0 0-5 5" transform="translate(1.7451216887849784e-14 285) rotate(180)" class="dialArrow_YWUe"></path><path d="M-5-5 0 0-5 5" transform="translate(-285 3.490243377569957e-14) rotate(270)" class="dialArrow_YWUe"></path><g transform="translate(0 -232) rotate(0)"><rect x="-81" y="-24" width="162" height="61" class="dialLabelBackdrop_WwCK"></rect><text text-anchor="middle" class="dialLegendTitle_YUfn">PROVIDER NOTICE</text><text y="22" text-anchor="middle" class="dialLegendDetail_BONM">A model is retiring</text></g><g transform="translate(231 0) rotate(90)"><rect x="-81" y="-24" width="162" height="61" class="dialLabelBackdrop_WwCK"></rect><text text-anchor="middle" class="dialLegendTitle_YUfn">UI ALERT</text><text y="22" text-anchor="middle" class="dialLegendDetail_BONM">Find affected keys</text></g><g transform="translate(0 231) rotate(0)"><rect x="-81" y="-24" width="162" height="61" class="dialLabelBackdrop_WwCK"></rect><text text-anchor="middle" class="dialLegendTitle_YUfn">MIGRATE</text><text y="22" text-anchor="middle" class="dialLegendDetail_BONM">Move use cases</text></g><g transform="translate(-231 0) rotate(-90)"><rect x="-81" y="-24" width="162" height="61" class="dialLabelBackdrop_WwCK"></rect><text text-anchor="middle" class="dialLegendTitle_YUfn">RESOLVED</text><text y="22" text-anchor="middle" class="dialLegendDetail_BONM">Confirm zero traffic</text></g><g transform="translate(0 -102)" aria-label="Model providers"><g transform="translate(-80 0)"><title>OpenAI</title><circle r="18" fill="white"></circle><image href="/img/providers/openai_small.svg" x="-14" y="-14" width="28" height="28"></image></g><g transform="translate(-40 0)"><title>Anthropic</title><circle r="18" fill="white"></circle><image href="/img/providers/anthropic.svg" x="-14" y="-14" width="28" height="28"></image></g><g transform="translate(0 0)"><title>Google</title><circle r="18" fill="white"></circle><image href="/img/model-deprecation-alerts/google.png" x="-14" y="-14" width="28" height="28"></image></g><g transform="translate(40 0)"><title>Azure</title><circle r="18" fill="white"></circle><image href="/img/integrations/azure.svg" x="-14" y="-14" width="28" height="28"></image></g><g transform="translate(80 0)"><title>AWS</title><circle r="18" fill="white"></circle><image href="/img/cloud_icons/aws.svg" x="-14" y="-14" width="28" height="28"></image></g></g><text y="-51" text-anchor="middle" class="dialEyebrow_mGDs">MODEL LIFECYCLE</text><text y="-8" text-anchor="middle" class="dialTitle_sofu">Deprecation</text><text y="31" text-anchor="middle" class="dialTitle_sofu">alert</text><circle cx="-102" cy="76" r="3" fill="#ffd59b"></circle><text x="10" y="81" text-anchor="middle" class="dialStatus_AcBf">Review affected keys</text></g></svg></div></div></header><div class="article_BleV"><div class="byline_zktz"><div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-11-05T01:00:00.000Z">Nov 5, 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></div></div></div></div><div class="content_nVkR"><p>This blog post is about how you can do model lifecycle management with LiteLLM AI Gateway. We are giving you the following primitives to better manage model deprecations.</p><p>We heard from a lot of our production gateway users that model deprecation was a problem: for production use cases, it's hard to figure out how to prevent outages.</p><p>This helps prevent outages with:</p><ol>
<li>Alerting around model deprecations.</li>
<li>Emails around model deprecations.</li>
<li>Usage tracking for different models that are getting deprecated, so you can validate that traffic is going down once you migrate, and a recommended model to use.</li>
</ol><h2 class="anchor anchorWithStickyNavbar_LWe7" id="alerts-around-model-deprecations">Alerts around model deprecations<a href="https://docs.litellm.ai/blog/model-deprecation-alerts#alerts-around-model-deprecations" class="hash-link" aria-label="Direct link to Alerts around model deprecations" title="Direct link to Alerts around model deprecations">​</a></h2><p>Check the notification bell for model deprecations that need attention. Open <strong>Alerts</strong> under <strong>Observability</strong>, then select <strong>Model deprecations</strong>. You can see the provider, the model, its deprecation date, requests in the last 30 days, and when LiteLLM last saw traffic to it.</p><p>Open the alert to investigate the migration across teams. You can keep the alert open while you coordinate with the owners, then return to the same page to check progress.</p><figure class="screenshot_uMx7"><a href="https://docs.litellm.ai/img/model-deprecation-alerts/alerts-inbox.png" target="_blank" rel="noopener noreferrer" aria-label="Open full-size screenshot: LiteLLM Model deprecations inbox with provider logo, deadline, recent requests and recommended replacement"><img src="https://docs.litellm.ai/img/model-deprecation-alerts/alerts-inbox.png" alt="LiteLLM Model deprecations inbox with provider logo, deadline, recent requests and recommended replacement" loading="lazy"></a><figcaption><p>The Model deprecations inbox in the LiteLLM UI. Sample usage; the provider deadline and recommendation come from model metadata.</p></figcaption></figure><h2 class="anchor anchorWithStickyNavbar_LWe7" id="emails-around-model-deprecations">Emails around model deprecations<a href="https://docs.litellm.ai/blog/model-deprecation-alerts#emails-around-model-deprecations" class="hash-link" aria-label="Direct link to Emails around model deprecations" title="Direct link to Emails around model deprecations">​</a></h2><p>From the alert, click <strong>Set up email reminders</strong>, then <strong>Open Email Settings</strong>. This opens <strong>Logging &amp; Alerts → Email Alerts</strong>.</p><p>If your gateway already sends email, keep its delivery settings. Otherwise, enter the SMTP connection details from your email provider in <strong>Email Server Settings</strong>. Set <strong>Gateway URL</strong> to the public address owners use to reach your gateway and save. Enter <strong>TEST_EMAIL_ADDRESS</strong>, select <strong>Test Email Alerts</strong>, and confirm that the test email arrives.</p><p>In <strong>Email Notifications</strong>, turn on <strong>Model Deprecations</strong> and select <strong>Save Changes</strong>. This event is off by default.</p><p>LiteLLM schedules two reminders: <strong>30 days before</strong> and <strong>1 day before</strong> the provider's deprecation date, checked in UTC. It selects affected key owners and current team admins using requests from the last 30 days. Each recipient sees usage for their keys and teams they administer.</p><p>The email names the provider deprecating the model, shows the current and recommended models with provider logos, and gives the owner the migration steps. It includes the recommendation source, the provider notice, and a link to review usage in the gateway.</p><figure class="screenshot_uMx7"><a href="https://docs.litellm.ai/img/model-deprecation-alerts/email-reminder.png" target="_blank" rel="noopener noreferrer" aria-label="Open full-size screenshot: Model deprecation email naming Google as the provider, comparing the old and recommended models, and listing migration steps"><img src="https://docs.litellm.ai/img/model-deprecation-alerts/email-reminder.png" alt="Model deprecation email naming Google as the provider, comparing the old and recommended models, and listing migration steps" loading="lazy"></a><figcaption><p>The 30-day email template with sample usage. Owners can see what changes, when they need to act, and where to review the affected traffic.</p></figcaption></figure><p>Keep the gateway running on the reminder dates. The scheduler does not send a missed reminder later if the gateway is offline for the entire UTC date.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="track-usage-as-you-migrate">Track usage as you migrate<a href="https://docs.litellm.ai/blog/model-deprecation-alerts#track-usage-as-you-migrate" class="hash-link" aria-label="Direct link to Track usage as you migrate" title="Direct link to Track usage as you migrate">​</a></h2><p>Click <strong>Review impact</strong> to open the model. The <strong>Daily requests</strong> chart shows requests to that model over time, with a separate stack for each key. Compare the total bar height to check whether usage is falling, then inspect the colored stacks to find the keys that still send traffic.</p><p>Below the chart, inspect the affected keys, teams, owners, and tags used with that model. Filter by team when you need to coordinate one part of the migration. Use the key and owner list to follow up with the people responsible for each production use case.</p><figure class="screenshot_uMx7"><a href="https://docs.litellm.ai/img/model-deprecation-alerts/model-traffic-five-use-cases.png" target="_blank" rel="noopener noreferrer" aria-label="Open full-size screenshot: Model deprecation detail with daily requests stacked by key falling to zero, and five use-case keys across two teams"><img src="https://docs.litellm.ai/img/model-deprecation-alerts/model-traffic-five-use-cases.png" alt="Model deprecation detail with daily requests stacked by key falling to zero, and five use-case keys across two teams" loading="lazy"></a><figcaption><p>Actual LiteLLM UI with a seeded migration example: five use cases across two teams. Daily requests decline as the example keys move off the model. The final complete days show zero requests; the current day is partial.</p></figcaption></figure><p>You do not need to wait for the 30-day total to reach zero. That total includes historical requests. Compare the recent daily bars instead, and check a period that covers your use case. A weekly batch job needs a longer verification window than a service that sends requests every minute.</p><p>In this example, customer support, research, document search, invoice extraction, and weekly reports each have a key. As an owner migrates a use case, its color drops out of the daily bars. The key stays in the 30-day history so you can verify what changed.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="recommended-models">Recommended models<a href="https://docs.litellm.ai/blog/model-deprecation-alerts#recommended-models" class="hash-link" aria-label="Direct link to Recommended models" title="Direct link to Recommended models">​</a></h2><p>The alert shows the model to replace and the <strong>Recommended new model</strong>. LiteLLM reads the recommendation from its model cost map, or from the deployment's configured replacement. The UI identifies which source supplied it and links to the upstream provider's deprecation notice when one is recorded.</p><p>Use the provider notice to check the upstream deadline and migration guidance. The cost map records the recommendation; it does not establish that the new model meets your application's quality, latency, or cost requirements. Test the replacement with the workload behind each affected key before switching production traffic.</p><p>You can use <strong>Model routing</strong> to open the relevant model configuration. If your application chooses the model, update that application. Keep the alert open while owners make these changes.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="mark-the-alert-resolved">Mark the alert resolved<a href="https://docs.litellm.ai/blog/model-deprecation-alerts#mark-the-alert-resolved" class="hash-link" aria-label="Direct link to Mark the alert resolved" title="Direct link to Mark the alert resolved">​</a></h2><p>Return to <strong>Daily requests</strong> after the owners switch their applications or routing. Check that traffic to the old model reaches zero across the affected keys. Confirm the migration with owners of infrequent jobs before closing it.</p><p>Click <strong>Mark resolved</strong> when that work is complete. LiteLLM moves the alert to <strong>Resolved</strong>, so your open inbox shows the migrations that still need attention. New requests to the model reopen the alert.</p><figure class="screenshot_uMx7"><a href="https://docs.litellm.ai/img/model-deprecation-alerts/resolved-five-use-cases.png" target="_blank" rel="noopener noreferrer" aria-label="Open full-size screenshot: LiteLLM model migration marked resolved after the daily requests chart reaches zero"><img src="https://docs.litellm.ai/img/model-deprecation-alerts/resolved-five-use-cases.png" alt="LiteLLM model migration marked resolved after the daily requests chart reaches zero" loading="lazy"></a><figcaption><p>The same example migration after marking it resolved. Closing the alert records the team's decision; it does not change model routing.</p></figcaption></figure><p>For help operating LiteLLM across production teams and use cases, <a href="https://www.litellm.ai/contact" target="_blank" rel="noopener noreferrer">talk to us</a>. Read more about <a href="https://docs.litellm.ai/docs/proxy/alerting">gateway alerting</a>, <a href="https://docs.litellm.ai/docs/proxy/email">email notifications</a>, and <a href="https://docs.litellm.ai/docs/routing">model routing</a>.</p></div></div></div>
]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="observability" term="observability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Release cadence changes and an LTS version pilot]]></title>
        <id>https://docs.litellm.ai/blog/release-cadence-and-lts-pilot</id>
        <link href="https://docs.litellm.ai/blog/release-cadence-and-lts-pilot"/>
        <updated>2026-11-02T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Starting the week of November 2, 2026, release candidates and stable releases ship on Tuesday mornings, and LiteLLM is piloting a long-term support line on 1.108 for one month.]]></summary>
        <content type="html"><![CDATA[<p><em>Starting the week of November 2, 2026, LiteLLM release candidates and stable releases move from Saturday to Tuesday morning, and we are piloting a long-term support (LTS) line for one month.</em></p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="releases-move-to-tuesday">Releases move to Tuesday<a href="https://docs.litellm.ai/blog/release-cadence-and-lts-pilot#releases-move-to-tuesday" class="hash-link" aria-label="Direct link to Releases move to Tuesday" title="Direct link to Releases move to Tuesday">​</a></h2>
<p>Release candidates and stable releases now ship on Tuesday mornings instead of Saturdays, in line with the industry-standard Patch Tuesday release day. The <a href="https://docs.litellm.ai/docs/proxy/release_cycle">release cycle</a> page has the full weekly schedule.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="an-lts-pilot-on-1108">An LTS pilot on 1.108<a href="https://docs.litellm.ai/blog/release-cadence-and-lts-pilot#an-lts-pilot-on-1108" class="hash-link" aria-label="Direct link to An LTS pilot on 1.108" title="Direct link to An LTS pilot on 1.108">​</a></h2>
<p>We are also piloting a long-term support (LTS) line for one month. The first LTS line is 1.108.</p>
<p>The LTS line is for teams that want to stay on one version and keep getting fixes, without upgrading every week. It gets patch releases with LLM translation fixes, cost tracking fixes, and new endpoints.</p>
<p>We chose LLM translation and cost tracking so you can support new models with accurate pricing without upgrading to a later version.</p>
<p>While the pilot runs, the policy of patching the <a href="https://docs.litellm.ai/docs/enterprise/version_support">four most recent stable lines</a> is paused. The <a href="https://docs.litellm.ai/docs/enterprise/lts_pilot">LTS pilot</a> page has the details.</p>
<p><strong>Update (November 6):</strong> The <code>lts</code> image tag now always points to the latest LTS release. Pull <code>docker.litellm.ai/berriai/litellm:lts</code> to stay on the newest LTS patch, or pin a version such as <code>docker.litellm.ai/berriai/litellm:1.108.2</code>.</p>]]></content>
        <author>
            <name>Yuneng Jiang</name>
            <uri>https://www.linkedin.com/in/yuneng-david-jiang-455676139/</uri>
        </author>
        <category label="release" term="release"/>
        <category label="support" term="support"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How to build an agent with grounding on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/grounded-agent</id>
        <link href="https://docs.litellm.ai/blog/grounded-agent"/>
        <updated>2026-10-31T16:00:00.000Z</updated>
        <summary type="html"><![CDATA[Build a grounded chat agent in four steps with LiteLLM's AI Gateway. Connect your evidence, call a grounding guardrail, and show its verdict in chat.]]></summary>
        <content type="html"><![CDATA[<div class="root_MPVA" data-full-width="true"><header class="hero_tmYK"><div class="heroInner_cik1"><div class="heroNav_W6_S"><div class="brand_H7kp"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" width="150" height="36"><span>/ AGENTS</span></div><a href="https://docs.litellm.ai/blog">Back to the blog <span aria-hidden="true">↗</span></a></div><div class="heroMeta_t9UG"><span><i aria-hidden="true"></i> A DEVELOPER GUIDE BY LITELLM</span><span>PYTHON SDK / OCTOBER 2026</span></div><h1 class="heroTitle_CR2V"><span>BUILD AN AGENT WITH</span><strong>GROUNDING<svg class="heroArrow_Xn79" viewBox="0 0 100 100" fill="none" aria-hidden="true"><path d="M10 90 90 10M37 10h53v53"></path></svg></strong></h1><div class="heroIntro_NYw9"><p>Grounding checks whether an answer is supported<br class="desktopBreak_xcq5"> by the documents you give it.</p><a class="startLink_h61d" href="https://docs.litellm.ai/blog/grounded-agent#step-1-connect-to-your-gateway">Start building <span aria-hidden="true">↗</span></a></div><div class="heroStage_xLqB" data-playing="true" data-supported="true"><div class="sourcePanel_SxhY"><span class="stageLabel_NIJZ">01 / YOUR EVIDENCE</span><svg class="documentIcon_IerS" viewBox="0 0 58 66" fill="none" aria-hidden="true"><path d="M34 3H7v60h44V20L34 3Zm0 0v18h17M17 33h23M17 43h23M17 53h15"></path></svg><span class="sourceAmount_CEmJ">$500</span><strong>Home office equipment policy</strong><p>Employees receive a one-time home office equipment allowance of $500. Submit receipts within 30 days of purchase.</p><span class="sourceId_zqgz">home-office</span></div><div class="gatePanel_SXqX"><svg class="gate_Px1A" viewBox="0 0 280 230" fill="none" aria-hidden="true"><path class="gateGuide_C8KD" d="M0 55h280M0 175h280M80 0v230M200 0v230"></path><path class="gateStream_J6pt" d="M0 115h78M202 115h78M0 85h52l28 30m120 0 28 30h52M0 145h52l28-30m120 0 28-30h52"></path><g class="gateFrame_RIQG"><ellipse cx="129" cy="115" rx="40" ry="76"></ellipse><ellipse cx="140" cy="115" rx="40" ry="76"></ellipse><ellipse cx="151" cy="115" rx="40" ry="76"></ellipse><path d="M129 39h22m-22 152h22M89 115h102"></path></g><path class="gateCheck_huQ6" d="m123 115 12 12 24-29"></path><g class="gateParticles_pBA9"><circle cx="38" cy="76" r="2"></circle><circle cx="242" cy="76" r="2"></circle></g><g class="gateParticles_pBA9"><circle cx="38" cy="115" r="2"></circle><circle cx="242" cy="115" r="2"></circle></g><g class="gateParticles_pBA9"><circle cx="38" cy="154" r="2"></circle><circle cx="242" cy="154" r="2"></circle></g><text x="140" y="18" text-anchor="middle">ANSWER + EVIDENCE</text><text x="140" y="220" text-anchor="middle">YOUR GUARDRAIL</text></svg><span class="gateNative_jquj">native structured findings</span></div><div class="chatPanel_SACc"><div class="chatTop_tQUl"><span><img src="https://docs.litellm.ai/img/brand/litellm-monogram-blue.svg" alt="" width="20" height="20"> WORKPLACE ASSISTANT</span><span class="chatExample_dwPv">Recorded fixture</span></div><div class="chatQuestion_sG4U">How much can I spend on my home office?</div><div class="chatAnswer_gyzQ"><span class="assistantName_qzKR">YOUR AGENT</span><p>You receive a one-time home office allowance of <mark>$500</mark>. Submit your receipts within 30 days of purchase.</p></div><div class="heroVerdict_Y_6b" role="status" aria-live="polite"><svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="m5 12 4 4L19 6"></path></svg><div><strong>Grounded in your documents</strong><p>The policy supports the allowance and receipt deadline.</p><span>source_ids: ["<!-- -->home-office<!-- -->"]</span></div><code>true</code></div></div></div><div class="heroFoot_oT00"><div class="exampleSwitch_gxN0" role="group" aria-label="Recorded grounding example"><button type="button" aria-pressed="true">Supported answer<span aria-hidden="true">↗</span></button><button type="button" aria-pressed="false">Unsupported answer<span aria-hidden="true">↗</span></button></div><div class="motionControl_puqb"><span>RECORDED FIXTURE / NO MODEL CALLS</span><button type="button" aria-pressed="false">Pause motion</button></div></div></div></header><nav class="tutorialNav_bMT_" aria-label="Four tutorial steps"><a href="https://docs.litellm.ai/blog/grounded-agent#step-1-connect-to-your-gateway"><span>01</span>Connect your gateway<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M6 18 18 6M6 6h12v12"></path></svg></a><a href="https://docs.litellm.ai/blog/grounded-agent#step-2-retrieve-the-evidence"><span>02</span>Retrieve evidence<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M6 18 18 6M6 6h12v12"></path></svg></a><a href="https://docs.litellm.ai/blog/grounded-agent#step-3-generate-and-check-the-answer"><span>03</span>Generate and check<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M6 18 18 6M6 6h12v12"></path></svg></a><a href="https://docs.litellm.ai/blog/grounded-agent#step-4-show-the-result-in-chat"><span>04</span>Show the verdict<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M6 18 18 6M6 6h12v12"></path></svg></a></nav><div class="article_vezK"><div class="byline_SboO"><div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-10-31T16:00:00.000Z">Oct 31, 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></div></div></div></div><div class="content_zj0i"><p>Build an agent that answers questions from your documents, then checks each answer against the evidence before showing it in chat.</p><p>We will connect to a LiteLLM gateway, load a policy, generate and check an answer, then display the grounding result. The Python snippets form one async request handler. Start with one document; connect your retriever once you can inspect the complete flow.</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>Source preview</div><div class="admonitionContent_BuS1"><p>This guide uses the unreleased <a href="https://github.com/BerriAI/litellm/pull/49469" target="_blank" rel="noopener noreferrer">SDK helper #49469</a>, <a href="https://github.com/BerriAI/litellm/pull/49460" target="_blank" rel="noopener noreferrer">native endpoint response #49460</a>, and <a href="https://github.com/BerriAI/litellm/pull/49470" target="_blank" rel="noopener noreferrer">Bedrock assessment setting #49470</a>, for <a href="https://github.com/BerriAI/litellm/issues/49217" target="_blank" rel="noopener noreferrer">issue #49217</a>. Use that implementation for both your SDK and gateway until release. The template at the end pins the complete revision.</p></div></div><h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-connect-to-your-gateway">Step 1. Connect to your gateway<a href="https://docs.litellm.ai/blog/grounded-agent#step-1-connect-to-your-gateway" class="hash-link" aria-label="Direct link to Step 1. Connect to your gateway" title="Direct link to Step 1. Connect to your gateway">​</a></h2><p>Configure your SDK once. Use your gateway URL and a virtual key with access to the agent model and grounding guardrail:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>agent.py / connection</span><button type="button" aria-label="Copy agent.py / connection code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="agent.py / connection code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token keyword" style="color:#c2a7ff">import</span><span class="token plain"> os</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain"></span><span class="token keyword" style="color:#c2a7ff">import</span><span class="token plain"> litellm</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain" style="display:inline-block">
</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">litellm</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">api_base </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> os</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">environ</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token string" style="color:#a8d7ae">"LITELLM_API_BASE"</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain">litellm</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">api_key </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> os</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">environ</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token string" style="color:#a8d7ae">"LITELLM_API_KEY"</span><span class="token punctuation" style="color:#a6b5cc">]</span></span></span></code></pre></figure><p>We use a model named <code>agent</code> on the gateway. The <code>openai/</code> prefix below selects the OpenAI-compatible transport; the gateway can route <code>agent</code> to a model from another provider.</p><p>For the grounding check, use <a href="https://docs.litellm.ai/docs/proxy/guardrails/bedrock#contextual-grounding">Amazon Bedrock Guardrails through LiteLLM</a>. AWS maintains the assessment service, and you can use it with answers from other model providers. Add this to your gateway configuration:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>config.yaml / grounding</span><button type="button" aria-label="Copy config.yaml / grounding code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="config.yaml / grounding code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token key atrule">guardrails</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">  </span><span class="token punctuation" style="color:#a6b5cc">-</span><span class="token plain"> </span><span class="token key atrule">guardrail_name</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> answer</span><span class="token punctuation" style="color:#a6b5cc">-</span><span class="token plain">grounding</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">    </span><span class="token key atrule">litellm_params</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">      </span><span class="token key atrule">guardrail</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> bedrock</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain">      </span><span class="token key atrule">mode</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> post_call</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">6</span><span><span class="token plain">      </span><span class="token key atrule">default_on</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token boolean important" style="color:#efc48c">false</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">7</span><span><span class="token plain">      </span><span class="token key atrule">guardrailIdentifier</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> os.environ/BEDROCK_GUARDRAIL_ID</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">8</span><span><span class="token plain">      </span><span class="token key atrule">guardrailVersion</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> os.environ/BEDROCK_GUARDRAIL_VERSION</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">9</span><span><span class="token plain">      </span><span class="token key atrule">aws_region_name</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> os.environ/AWS_REGION_NAME</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">10</span><span><span class="token plain">      </span><span class="token key atrule">contextual_grounding_from_messages</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token boolean important" style="color:#efc48c">true</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">11</span><span><span class="token plain">      </span><span class="token key atrule">outputScope</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> FULL</span></span></span></code></pre></figure><p>Create an AWS guardrail with contextual grounding enabled. For conversational answers, choose Standard tier and its required cross-Region inference profile. Set the AWS filter action to <code>NONE</code> so your application can receive an unsupported finding and decide what to display. Set <code>outputScope: FULL</code> in LiteLLM to receive supported assessments too. See <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-contextual-grounding-check.html" target="_blank" rel="noopener noreferrer">AWS setup</a>, <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContextualGroundingFilterConfig.html" target="_blank" rel="noopener noreferrer">filter actions</a>, and <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ApplyGuardrail.html" target="_blank" rel="noopener noreferrer">full assessments</a>.</p><p><code>default_on: false</code> leaves this guardrail available for the explicit SDK call in step 3. You control when the check runs.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-retrieve-the-evidence">Step 2. Retrieve the evidence<a href="https://docs.litellm.ai/blog/grounded-agent#step-2-retrieve-the-evidence" class="hash-link" aria-label="Direct link to Step 2. Retrieve the evidence" title="Direct link to Step 2. Retrieve the evidence">​</a></h2><p>Start with a home office policy. Save this text as <code>home-office.md</code>:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>home-office.md</span><button type="button" aria-label="Copy home-office.md code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="home-office.md code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token plain">Employees receive a one-time home office equipment allowance of $500.</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">Submit receipts within 30 days of purchase.</span></span></span></code></pre></figure><p>Load the policy and keep it with the question:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>agent.py / evidence</span><button type="button" aria-label="Copy agent.py / evidence code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="agent.py / evidence code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token keyword" style="color:#c2a7ff">from</span><span class="token plain"> pathlib </span><span class="token keyword" style="color:#c2a7ff">import</span><span class="token plain"> Path</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain" style="display:inline-block">
</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">question </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"How much can I spend on my home office?"</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">evidence </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> Path</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token string" style="color:#a8d7ae">"home-office.md"</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">read_text</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain" style="display:inline-block">
</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">6</span><span><span class="token plain">source_messages </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">7</span><span><span class="token plain">    </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token string" style="color:#a8d7ae">"role"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"system"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"content"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> evidence</span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">8</span><span><span class="token plain">    </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token string" style="color:#a8d7ae">"role"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"user"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"content"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> question</span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">9</span><span><span class="token plain"></span><span class="token punctuation" style="color:#a6b5cc">]</span></span></span></code></pre></figure><p>Your agent and the grounding service must receive the same evidence. With <code>contextual_grounding_from_messages: true</code>, LiteLLM sends the system text to Bedrock as the grounding source and the user question as the query.</p><p>For your own documents, replace the file read with your retriever. Pass only documents the current user can access. Keep previous assistant answers out of the reference evidence.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-3-generate-and-check-the-answer">Step 3. Generate and check the answer<a href="https://docs.litellm.ai/blog/grounded-agent#step-3-generate-and-check-the-answer" class="hash-link" aria-label="Direct link to Step 3. Generate and check the answer" title="Direct link to Step 3. Generate and check the answer">​</a></h2><p>Ask your model to answer from that evidence:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>agent.py / answer</span><button type="button" aria-label="Copy agent.py / answer code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="agent.py / answer code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token plain">completion </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token keyword" style="color:#c2a7ff">await</span><span class="token plain"> litellm</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">acompletion</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">    model</span><span class="token operator" style="color:#c2a7ff">=</span><span class="token string" style="color:#a8d7ae">"openai/agent"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">    messages</span><span class="token operator" style="color:#c2a7ff">=</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">        </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token string" style="color:#a8d7ae">"role"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"system"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"content"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"Answer using only this policy:\n"</span><span class="token plain"> </span><span class="token operator" style="color:#c2a7ff">+</span><span class="token plain"> evidence</span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain">        </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token string" style="color:#a8d7ae">"role"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"user"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"content"</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"> question</span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">6</span><span><span class="token plain">    </span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">7</span><span><span class="token plain"></span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">8</span><span><span class="token plain">answer </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> completion</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">choices</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token number" style="color:#efc48c">0</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">message</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">content</span></span></span></code></pre></figure><p>Then call the grounding guardrail with the answer and source messages:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>agent.py / grounding</span><button type="button" aria-label="Copy agent.py / grounding code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="agent.py / grounding code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token plain">native_result </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token keyword" style="color:#c2a7ff">await</span><span class="token plain"> litellm</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">guardrails</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token builtin">apply</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">    </span><span class="token string" style="color:#a8d7ae">"answer-grounding"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">    response</span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain">answer</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">    messages</span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain">source_messages</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain"></span><span class="token punctuation" style="color:#a6b5cc">)</span></span></span></code></pre></figure><p><code>"answer-grounding"</code> selects the configured guardrail. <code>response=answer</code> tells the SDK to check generated output; the SDK infers the direction. You do not need to provide an input type or a response-format flag.</p><p>The call returns the guardrail's native structured findings, after LiteLLM's existing reporting sanitization. For Bedrock, the grounding assessment looks like this illustrative excerpt:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>Bedrock assessment</span><button type="button" aria-label="Copy Bedrock assessment code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="Bedrock assessment code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">  </span><span class="token property" style="color:#92cee3">"contextualGroundingPolicy"</span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">    </span><span class="token property" style="color:#92cee3">"filters"</span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">      </span><span class="token property" style="color:#92cee3">"type"</span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"GROUNDING"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain">      </span><span class="token property" style="color:#92cee3">"score"</span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token number" style="color:#efc48c">0.98</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">6</span><span><span class="token plain">      </span><span class="token property" style="color:#92cee3">"threshold"</span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token number" style="color:#efc48c">0.7</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">7</span><span><span class="token plain">      </span><span class="token property" style="color:#92cee3">"detected"</span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token boolean" style="color:#efc48c">false</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">8</span><span><span class="token plain">    </span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">9</span><span><span class="token plain">  </span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">10</span><span><span class="token plain"></span><span class="token punctuation" style="color:#a6b5cc">}</span></span></span></code></pre></figure><p>Bedrock compares the answer with the supplied evidence. It does not verify whether the source document itself is correct. Evaluate the check on supported, contradicted, and incomplete answers from your use case before using it to enforce policy.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="step-4-show-the-result-in-chat">Step 4. Show the result in chat<a href="https://docs.litellm.ai/blog/grounded-agent#step-4-show-the-result-in-chat" class="hash-link" aria-label="Direct link to Step 4. Show the result in chat" title="Direct link to Step 4. Show the result in chat">​</a></h2><p>Read the <code>GROUNDING</code> assessments. Require an assessment before showing a positive badge, and check the score against its configured threshold:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>agent.py / verdict</span><button type="button" aria-label="Copy agent.py / verdict code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="agent.py / verdict code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token plain">results </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> native_result </span><span class="token keyword" style="color:#c2a7ff">if</span><span class="token plain"> </span><span class="token builtin">isinstance</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain">native_result</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token builtin">list</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"> </span><span class="token keyword" style="color:#c2a7ff">else</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token plain">native_result</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">checks_by_result </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">    </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token plain">check</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">     </span><span class="token keyword" style="color:#c2a7ff">for</span><span class="token plain"> assessment </span><span class="token keyword" style="color:#c2a7ff">in</span><span class="token plain"> result</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">get</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token string" style="color:#a8d7ae">"assessments"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain">     </span><span class="token keyword" style="color:#c2a7ff">for</span><span class="token plain"> check </span><span class="token keyword" style="color:#c2a7ff">in</span><span class="token plain"> assessment</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">get</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token string" style="color:#a8d7ae">"contextualGroundingPolicy"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">get</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token string" style="color:#a8d7ae">"filters"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">6</span><span><span class="token plain">     </span><span class="token keyword" style="color:#c2a7ff">if</span><span class="token plain"> check</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token string" style="color:#a8d7ae">"type"</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"> </span><span class="token operator" style="color:#c2a7ff">==</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"GROUNDING"</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">7</span><span><span class="token plain">    </span><span class="token keyword" style="color:#c2a7ff">for</span><span class="token plain"> result </span><span class="token keyword" style="color:#c2a7ff">in</span><span class="token plain"> results</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">8</span><span><span class="token plain"></span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">9</span><span><span class="token plain" style="display:inline-block">
</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">10</span><span><span class="token plain">is_grounded </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token boolean" style="color:#efc48c">None</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">11</span><span><span class="token plain"></span><span class="token keyword" style="color:#c2a7ff">if</span><span class="token plain"> checks_by_result </span><span class="token keyword" style="color:#c2a7ff">and</span><span class="token plain"> </span><span class="token builtin">all</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain">checks_by_result</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token punctuation" style="color:#a6b5cc">:</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">12</span><span><span class="token plain">    is_grounded </span><span class="token operator" style="color:#c2a7ff">=</span><span class="token plain"> </span><span class="token builtin">all</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">13</span><span><span class="token plain">        check</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token string" style="color:#a8d7ae">"score"</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"> </span><span class="token operator" style="color:#c2a7ff">&gt;=</span><span class="token plain"> check</span><span class="token punctuation" style="color:#a6b5cc">[</span><span class="token string" style="color:#a8d7ae">"threshold"</span><span class="token punctuation" style="color:#a6b5cc">]</span><span class="token plain"> </span><span class="token keyword" style="color:#c2a7ff">and</span><span class="token plain"> </span><span class="token keyword" style="color:#c2a7ff">not</span><span class="token plain"> check</span><span class="token punctuation" style="color:#a6b5cc">.</span><span class="token plain">get</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token string" style="color:#a8d7ae">"detected"</span><span class="token punctuation" style="color:#a6b5cc">,</span><span class="token plain"> </span><span class="token boolean" style="color:#efc48c">False</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">14</span><span><span class="token plain">        </span><span class="token keyword" style="color:#c2a7ff">for</span><span class="token plain"> checks </span><span class="token keyword" style="color:#c2a7ff">in</span><span class="token plain"> checks_by_result</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">15</span><span><span class="token plain">        </span><span class="token keyword" style="color:#c2a7ff">for</span><span class="token plain"> check </span><span class="token keyword" style="color:#c2a7ff">in</span><span class="token plain"> checks</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">16</span><span><span class="token plain">    </span><span class="token punctuation" style="color:#a6b5cc">)</span></span></span></code></pre></figure><p>Check all returned chunks. Do not infer success from Bedrock's overall <code>action</code>: a report-only guardrail can return <code>NONE</code> with a negative grounding finding.</p><p>Return the answer and verdict from your chat backend. In your chat component, show the result beside the answer:</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>GroundingBadge.jsx</span><button type="button" aria-label="Copy GroundingBadge.jsx code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="GroundingBadge.jsx code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token keyword module" style="color:#c2a7ff">export</span><span class="token plain"> </span><span class="token keyword" style="color:#c2a7ff">function</span><span class="token plain"> </span><span class="token function maybe-class-name" style="color:#8cc7ff">GroundingBadge</span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token parameter punctuation" style="color:#a6b5cc">{</span><span class="token parameter">grounded</span><span class="token parameter punctuation" style="color:#a6b5cc">}</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain">  </span><span class="token keyword control-flow" style="color:#c2a7ff">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain">grounded </span><span class="token operator" style="color:#c2a7ff">==</span><span class="token plain"> </span><span class="token keyword null nil" style="color:#c2a7ff">null</span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">    </span><span class="token keyword control-flow" style="color:#c2a7ff">return</span><span class="token plain"> </span><span class="token tag punctuation" style="color:#a6b5cc">&lt;</span><span class="token tag">span</span><span class="token tag punctuation" style="color:#a6b5cc">&gt;</span><span class="token plain-text">Grounding check unavailable</span><span class="token tag punctuation" style="color:#a6b5cc">&lt;/</span><span class="token tag">span</span><span class="token tag punctuation" style="color:#a6b5cc">&gt;</span><span class="token punctuation" style="color:#a6b5cc">;</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">  </span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">5</span><span><span class="token plain" style="display:inline-block">
</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">6</span><span><span class="token plain">  </span><span class="token keyword control-flow" style="color:#c2a7ff">return</span><span class="token plain"> </span><span class="token punctuation" style="color:#a6b5cc">(</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">7</span><span><span class="token plain">    </span><span class="token tag punctuation" style="color:#a6b5cc">&lt;</span><span class="token tag">span</span><span class="token tag"> </span><span class="token tag attr-name" style="color:#92cee3">data-status</span><span class="token tag script language-javascript script-punctuation punctuation" style="color:#a6b5cc">=</span><span class="token tag script language-javascript punctuation" style="color:#a6b5cc">{</span><span class="token tag script language-javascript">grounded </span><span class="token tag script language-javascript operator" style="color:#c2a7ff">?</span><span class="token tag script language-javascript"> </span><span class="token tag script language-javascript string" style="color:#a8d7ae">"supported"</span><span class="token tag script language-javascript"> </span><span class="token tag script language-javascript operator" style="color:#c2a7ff">:</span><span class="token tag script language-javascript"> </span><span class="token tag script language-javascript string" style="color:#a8d7ae">"unsupported"</span><span class="token tag script language-javascript punctuation" style="color:#a6b5cc">}</span><span class="token tag punctuation" style="color:#a6b5cc">&gt;</span><span class="token plain-text"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">8</span><span><span class="token plain-text">      </span><span class="token punctuation" style="color:#a6b5cc">{</span><span class="token plain">grounded </span><span class="token operator" style="color:#c2a7ff">?</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"Supported by your documents"</span><span class="token plain"> </span><span class="token operator" style="color:#c2a7ff">:</span><span class="token plain"> </span><span class="token string" style="color:#a8d7ae">"Not supported"</span><span class="token punctuation" style="color:#a6b5cc">}</span><span class="token plain-text"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">9</span><span><span class="token plain-text">    </span><span class="token tag punctuation" style="color:#a6b5cc">&lt;/</span><span class="token tag">span</span><span class="token tag punctuation" style="color:#a6b5cc">&gt;</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">10</span><span><span class="token plain">  </span><span class="token punctuation" style="color:#a6b5cc">)</span><span class="token punctuation" style="color:#a6b5cc">;</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">11</span><span><span class="token plain"></span><span class="token punctuation" style="color:#a6b5cc">}</span></span></span></code></pre></figure><div class="verdictStates_bv4A" aria-label="Three grounding states in your product"><div data-status="grounded"><span>01 / SUPPORTED</span><strong>Grounded</strong><p>Show the source and the check's explanation.</p><code>is_grounded: true</code></div><div data-status="unsupported"><span>02 / UNSUPPORTED</span><strong>Not supported</strong><p>Explain the gap or ask the agent to retry.</p><code>is_grounded: false</code></div><div data-status="unavailable"><span>03 / CHECK FAILED</span><strong>Unavailable</strong><p>Keep this separate from a completed check.</p><code>no valid verdict</code></div></div><p>A timeout, missing assessment, or invalid result should produce <strong>Check unavailable</strong>, with no green badge. The template below includes typed response validation and those failure states.</p><p>Bedrock evaluates the supplied documents together. Label the references <strong>Documents checked</strong>; its response does not attribute an answer to an individual document. For an unsupported answer, you can show the gap, retrieve more evidence, or withhold the answer. Wait for the check before rendering if your product gates delivery on the result.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="deploy-the-complete-chat-template">Deploy the complete chat template<a href="https://docs.litellm.ai/blog/grounded-agent#deploy-the-complete-chat-template" class="hash-link" aria-label="Direct link to Deploy the complete chat template" title="Direct link to Deploy the complete chat template">​</a></h2><p>You have the core flow: evidence, answer, grounding call, and a verdict beside the response. <a href="https://github.com/BerriAI/litellm-grounded-agent-starter/generate" target="_blank" rel="noopener noreferrer">Use the template</a> to get the complete chat UI, a tool-calling document agent, and validated result handling in a separate repository.</p><figure class="window_qUdd"><figcaption class="bar_FTQV"><span class="filename_hLer"><svg class="fileIcon_TRuv" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M9.5 1.5H3v13h10V5L9.5 1.5Zm0 0V5H13M5.5 8h5m-5 3h3"></path></svg>Run the complete app</span><button type="button" aria-label="Copy Run the complete app code"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="5" y="5" width="8" height="9" rx="1"></rect><path d="M10 5V2H2v9h3"></path></svg>Copy</button></figcaption><pre class="pre_K07E" tabindex="0" aria-label="Run the complete app code"><code class="code_Jrxi"><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">1</span><span><span class="token function" style="color:#8cc7ff">git</span><span class="token plain"> clone https://github.com/BerriAI/litellm-grounded-agent-starter.git</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">2</span><span><span class="token plain"></span><span class="token builtin class-name" style="color:#8cc7ff">cd</span><span class="token plain"> litellm-grounded-agent-starter</span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">3</span><span><span class="token plain">uv </span><span class="token function" style="color:#8cc7ff">sync</span><span class="token plain"></span></span></span><span class="line_XlYe" style="color:#dce6f3"><span class="lineNumber_J_pN" aria-hidden="true">4</span><span><span class="token plain">uv run grounded-agent-demo</span></span></span></code></pre></figure><p>Open <a href="http://127.0.0.1:8502/" target="_blank" rel="noopener noreferrer">localhost:8502</a>. Choose <strong>Home office allowance</strong> for a supported answer, or <strong>Check an unsupported answer</strong> to see a negative verdict. This local demo uses fixed model and judge responses, labelled in the UI, so you can exercise the SDK, gateway, and chat without provider credentials.</p><p>For a live deployment, follow the template's Bedrock setup, replace the included documents with your retriever, and connect your models. The launcher supports local development; deploy the gateway and chat app with your platform's normal service configuration. Add sign-in and document authorization before sharing the app with coworkers. Live AWS execution remains unverified in this example; the template tests its adapter with representative responses.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="key-takeaways">Key takeaways<a href="https://docs.litellm.ai/blog/grounded-agent#key-takeaways" class="hash-link" aria-label="Direct link to Key takeaways" title="Direct link to Key takeaways">​</a></h2><p>Give your agent and grounding guardrail the same evidence. Call <code>litellm.guardrails.apply</code> after the answer exists, read the provider's assessment, and keep supported, unsupported, and failed checks distinct in your UI.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="frequently-asked-questions">Frequently asked questions<a href="https://docs.litellm.ai/blog/grounded-agent#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="can-i-use-an-existing-agent-and-guardrail">Can I use an existing agent and guardrail?<a href="https://docs.litellm.ai/blog/grounded-agent#can-i-use-an-existing-agent-and-guardrail" class="hash-link" aria-label="Direct link to Can I use an existing agent and guardrail?" title="Direct link to Can I use an existing agent and guardrail?">​</a></h3><p>Yes. Keep your framework and evaluation logic. Replace the answer-generation snippet with your agent's final answer, call <code>litellm.guardrails.apply</code>, and read your guardrail's result schema.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="does-litellm-generate-a-second-answer-for-the-check">Does LiteLLM generate a second answer for the check?<a href="https://docs.litellm.ai/blog/grounded-agent#does-litellm-generate-a-second-answer-for-the-check" class="hash-link" aria-label="Direct link to Does LiteLLM generate a second answer for the check?" title="Direct link to Does LiteLLM generate a second answer for the check?">​</a></h3><p>The SDK invokes your configured guardrail. Bedrock evaluates the supplied answer. A custom LLM judge makes an evaluation request; it does not regenerate the agent's answer to obtain the verdict.</p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="can-i-use-this-with-litellm-oss">Can I use this with LiteLLM OSS?<a href="https://docs.litellm.ai/blog/grounded-agent#can-i-use-this-with-litellm-oss" class="hash-link" aria-label="Direct link to Can I use this with LiteLLM OSS?" title="Direct link to Can I use this with LiteLLM OSS?">​</a></h3><p>The SDK changes and template are open source. Use the linked implementation revision for both the SDK and AI Gateway until release. <a href="https://litellm.ai/enterprise" target="_blank" rel="noopener noreferrer">LiteLLM Enterprise</a> adds controls and support for production deployments.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="recommended-reading">Recommended reading<a href="https://docs.litellm.ai/blog/grounded-agent#recommended-reading" class="hash-link" aria-label="Direct link to Recommended reading" title="Direct link to Recommended reading">​</a></h2><p><a href="https://docs.litellm.ai/docs/apply_guardrail">Call a guardrail directly</a>, <a href="https://docs.litellm.ai/docs/proxy/guardrails/bedrock#contextual-grounding">configure Bedrock grounding</a>, and <a href="https://docs.litellm.ai/docs/proxy/guardrails/custom_guardrail">write a custom guardrail</a>.</p></div></div></div>
]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="guardrails" term="guardrails"/>
        <category label="agents" term="agents"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing LiteLLM’s Unified Cost Accounting Engine]]></title>
        <id>https://docs.litellm.ai/blog/cost-infrastructure-makeover</id>
        <link href="https://docs.litellm.ai/blog/cost-infrastructure-makeover"/>
        <updated>2026-10-31T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[Consistent cost reporting, independently scalable accounting, and spend analysis by team, user, model, or custom dimensions.]]></summary>
        <content type="html"><![CDATA[<p><strong>Accurate, reliable AI spend tracking at scale.</strong></p>
<p>A spend total should be a number you can act on. You use it to set budgets and decide whether a workload is worth scaling. That confidence depends on the accounting behind it, especially when requests retry or a reporting update gets interrupted.</p>
<p>We’re rebuilding that accounting in LiteLLM. The <strong>Unified Cost Accounting Engine</strong> gives each finalized charge a durable record that budget enforcement and reporting can share. It also changes how we can scale spend processing, and how you can use that data in your own analytics stack.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="give-budgets-and-reports-the-same-source-of-truth">Give budgets and reports the same source of truth<a href="https://docs.litellm.ai/blog/cost-infrastructure-makeover#give-budgets-and-reports-the-same-source-of-truth" class="hash-link" aria-label="Direct link to Give budgets and reports the same source of truth" title="Direct link to Give budgets and reports the same source of truth">​</a></h2>
<p>Budget tracking and reporting need to agree on what a request costs. That sounds straightforward. In practice, usage arrives through different call paths, and a single caller request can involve multiple provider attempts. Updating a budget and writing a report are separate operations; either can be interrupted.</p>
<p>The new engine makes the charge itself the shared reference. UsageMeter records usage while preserving the distinction between a request and its provider attempts. CostCompiler then calculates the charge and saves the pricing context used to produce it.</p>
<div><figure class="uca-figure u8"><input class="u8-pause" type="checkbox" id="reliability-motion"><label class="u8-control" for="reliability-motion">Pause animation</label><div class="u8-art"><div class="u8-head"><span>01 / RELIABILITY</span><h3>Shared charges for budgets and reports</h3><p>Usage and pricing context remain available for recovery and reconciliation.</p></div><div class="u8-before"><b>BEFORE</b><span>Callbacks → budget updates</span><span>Async queues → spend writers</span></div><div class="u9-scroll" tabindex="0" role="region" aria-label="UsageMeter persists usage in PostgreSQL; CostCompiler reads usage and saves charges; BudgetEnforcer and CostAggregator consume finalized charges. Scroll horizontally on small screens."><svg class="u9-svg" viewBox="0 0 900 370" role="img" aria-label="UsageMeter persists usage in PostgreSQL; CostCompiler reads usage and saves charges; BudgetEnforcer and CostAggregator consume finalized charges"><defs><marker id="reliable-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto"><path d="M0 0L10 5L0 10Z" class="s-arrow"></path></marker></defs><text x="24" y="28" class="s-eyebrow">CAPTURE &amp; PRICE</text><text x="330" y="28" class="s-eyebrow">DURABLE RECORD</text><text x="664" y="28" class="s-eyebrow">APPLY THE SAME CHARGE</text><rect x="24" y="62" width="220" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="134" y="92" class="s-title">UsageMeter</text><text text-anchor="middle" x="134" y="114" class="s-label">Capture usage events</text><rect x="24" y="236" width="220" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="134" y="266" class="s-title">CostCompiler</text><text text-anchor="middle" x="134" y="288" class="s-label">Finalize charges + pricing</text><path d="M326 94 C326 72,576 72,576 94 V286 C576 308,326 308,326 286 Z" class="s-store"></path><path d="M326 94 C326 116,576 116,576 94" class="s-rim"></path><text text-anchor="middle" x="451" y="139" class="s-title">PostgreSQL</text><text text-anchor="middle" x="451" y="165" class="s-label">Usage events</text><text text-anchor="middle" x="451" y="188" class="s-label">Finalized charges</text><text text-anchor="middle" x="451" y="211" class="s-label">Pricing context</text><text text-anchor="middle" x="451" y="234" class="s-label">Pending delivery work</text><rect x="658" y="62" width="218" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="767" y="92" class="s-title">BudgetEnforcer</text><text text-anchor="middle" x="767" y="114" class="s-label">Settle budgets</text><rect x="658" y="236" width="218" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="767" y="266" class="s-title">CostAggregator</text><text text-anchor="middle" x="767" y="288" class="s-label">Update reporting</text><path d="M244 101H286V123H326" class="s-wire" marker-end="url(#reliable-arrow)"></path><path d="M244 101H286V123H326" class="s-flow"></path><path d="M326 248H244" class="s-wire" marker-end="url(#reliable-arrow)"></path><path d="M326 248H244" class="s-flow"></path><path d="M244 294H286V278H326" class="s-wire" marker-end="url(#reliable-arrow)"></path><path d="M244 294H286V278H326" class="s-flow"></path><text x="250" y="232" class="s-note">read usage</text><text x="250" y="329" class="s-note">save charge</text><path d="M576 123H616V101H658" class="s-wire" marker-end="url(#reliable-arrow)"></path><path d="M576 123H616V101H658" class="s-flow"></path><path d="M576 248H616V275H658" class="s-wire" marker-end="url(#reliable-arrow)"></path><path d="M576 248H616V275H658" class="s-flow"></path><text x="328" y="345" class="s-label">One finalized charge. Independent consumers.</text></svg></div><div class="u8-footer"><span>Consistent charges</span><span>Recoverable updates</span><span>Traceable pricing</span></div></div><figcaption>Settlement and reporting independently consume the same finalized charges. Animation illustrates delivery, not timing or throughput.</figcaption></figure></div>
<p><strong>Once that charge is saved, downstream systems use the same result.</strong> BudgetEnforcer applies it to budget settlement. CostAggregator uses it for reporting.</p>
<p>Suppose settlement succeeds, but the reporting write fails. The pending reporting work can resume from the durable record, with duplicate protection at each consumer. Committed usage survives a restart. Reports may briefly lag while they catch up, but recovery preserves the original charge. Active budget reservations remain separate from settled spend.</p>
<p>Saving the pricing context matters here, too. When rates change, you still have the inputs needed to explain an earlier charge.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="accounting-should-scale-on-its-own">Accounting should scale on its own<a href="https://docs.litellm.ai/blog/cost-infrastructure-makeover#accounting-should-scale-on-its-own" class="hash-link" aria-label="Direct link to Accounting should scale on its own" title="Direct link to Accounting should scale on its own">​</a></h2>
<p>As traffic grows, the proxy has more requests to serve. Spend processing grows with it, but its capacity needs can be different. A heavier reporting workload should be something you can address by adding aggregation capacity.</p>
<p>That is why this refactor separates the accounting components. With clear boundaries around compilation and downstream consumers, we can move that work into separate services and scale them independently of the proxy fleet.</p>
<div><figure class="uca-figure u8"><input class="u8-pause" type="checkbox" id="queue-motion"><label class="u8-control" for="queue-motion">Pause animation</label><div class="u8-art"><div class="u8-head"><span>02 / SCALABILITY · PLANNED EXTENSION</span><h3>Scale workers independently.</h3><p>Independent capacity for downstream accounting.</p></div><div class="u9-scroll" tabindex="0" role="region" aria-label="Planned deployment: proxy commits usage to PostgreSQL; relay and queue deliver pending work to independent compilation settlement and aggregation services. Scroll horizontally on small screens."><svg class="u9-svg" viewBox="0 0 900 500" role="img" aria-label="Planned deployment: proxy commits usage to PostgreSQL; relay and queue deliver pending work to independent compilation settlement and aggregation services"><defs><marker id="scaling-arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="5" markerHeight="5" orient="auto"><path d="M0 0L10 5L0 10Z" class="s-arrow"></path></marker></defs><rect x="20" y="22" width="240" height="270" rx="12" class="s-boundary"></rect><rect x="604" y="22" width="276" height="388" rx="12" class="s-boundary s-planned"></rect><text x="38" y="49" class="s-eyebrow">PROXY SERVICE</text><text x="622" y="49" class="s-eyebrow">ACCOUNTING SERVICES</text><rect x="38" y="72" width="204" height="82" rx="8" class="s-box"></rect><text text-anchor="middle" x="140" y="102" class="s-title">Request serving</text><text text-anchor="middle" x="140" y="124" class="s-label">Admission + reservations</text><rect x="38" y="185" width="204" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="140" y="215" class="s-title">UsageMeter</text><text text-anchor="middle" x="140" y="237" class="s-label">Commit usage</text><rect x="338" y="121" width="188" height="98" rx="8" class="s-box s-accent"></rect><text text-anchor="middle" x="432" y="151" class="s-title">Relay + queue</text><text text-anchor="middle" x="432" y="173" class="s-label">Redis Streams / MQ</text><rect x="622" y="72" width="240" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="742" y="102" class="s-title">Compilation workers</text><text text-anchor="middle" x="742" y="124" class="s-label">Persist finalized charges</text><rect x="622" y="190" width="240" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="742" y="220" class="s-title">Settlement workers</text><text text-anchor="middle" x="742" y="242" class="s-label">Apply saved charges</text><rect x="622" y="308" width="240" height="78" rx="8" class="s-box"></rect><text text-anchor="middle" x="742" y="338" class="s-title">Aggregation workers</text><text text-anchor="middle" x="742" y="360" class="s-label">Roll up saved charges</text><path d="M38 356 C38 334,526 334,526 356 V448 C526 470,38 470,38 448 Z" class="s-store"></path><path d="M38 356 C38 378,526 378,526 356" class="s-rim"></path><text text-anchor="middle" x="282" y="401" class="s-title">PostgreSQL · durable authority</text><text text-anchor="middle" x="282" y="427" class="s-label">Usage + charges + pending work</text><path d="M140 154V185" class="s-wire" marker-end="url(#scaling-arrow)"></path><path d="M140 263V340" class="s-wire" marker-end="url(#scaling-arrow)"></path><path d="M140 263V340" class="s-flow"></path><path d="M432 340V219" class="s-wire" marker-end="url(#scaling-arrow)"></path><path d="M432 340V219" class="s-flow"></path><text x="442" y="288" class="s-note">relay pending work</text><path d="M526 170H566V111H622" class="s-wire" marker-end="url(#scaling-arrow)"></path><path d="M526 170H566V111H622" class="s-flow"></path><path d="M566 170V229H622" class="s-wire" marker-end="url(#scaling-arrow)"></path><path d="M566 170V229H622" class="s-flow"></path><path d="M566 229V347H622" class="s-wire" marker-end="url(#scaling-arrow)"></path><path d="M566 229V347H622" class="s-flow"></path><path d="M742 410V447H526" class="s-wire" marker-end="url(#scaling-arrow)"></path><text x="614" y="473" class="s-note">Persist results / track delivery</text><text x="349" y="104" class="s-eyebrow">PLANNED TRANSPORT</text></svg></div><div class="u8-footer"><span>Durable capture → queued delivery → independent worker pools</span></div></div><figcaption>Proposed service boundaries. Request-time admission stays in the proxy; downstream budget settlement and reporting can move to workers.</figcaption></figure></div>
<p><strong>Redis Streams or another message queue is a planned next step.</strong> A relay can deliver pending work to dedicated workers, while PostgreSQL remains the authoritative record. Compilation workers persist the finalized charges; settlement and aggregation workers consume them with the same recovery and duplicate protection.</p>
<p>Request-time budget admission and reservations stay in the proxy. The opportunity is to move downstream accounting off the request-serving fleet, so its processing capacity can grow where it is needed.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="make-spend-data-useful-to-your-team">Make spend data useful to your team<a href="https://docs.litellm.ai/blog/cost-infrastructure-makeover#make-spend-data-useful-to-your-team" class="hash-link" aria-label="Direct link to Make spend data useful to your team" title="Direct link to Make spend data useful to your team">​</a></h2>
<p>A total tells you how much you spent. A breakdown helps you understand why it changed. You might compare spend across teams, then investigate the users or models behind an increase. Another organization may need to attribute costs by application or business unit.</p>
<p>CostAggregator gives us a place to support those different views without coupling accounting to a particular analytics database. <strong>Your reporting infrastructure can change while the finalized charges stay consistent.</strong></p>
<div><figure class="uca-figure u8"><div class="u8-art"><div class="u8-head"><span>03 / VISUALIZATION</span><h3>Spend attribution and reporting</h3><p>Analyze finalized charges in your preferred analytics infrastructure.</p></div><div class="u8-adapter-strip"><b>Finalized charges</b><span>→</span><b>CostAggregator</b><span>→</span><div>PostgreSQL <small>initial</small><br>ClickHouse / exports <small>planned</small></div></div><div class="u8-dashboard"><div class="u8-dash-head"><strong>Spend overview</strong><span>Illustrative analytics view · Sample data</span></div><div class="u8-filters"><span>Team: All teams</span><span>User: All users</span><span>Model: All models</span><span>Oct 24–30</span></div><div class="u8-metrics"><div><span>Total spend</span><strong>$14,000</strong></div><div><span>Teams</span><strong>3</strong></div><div><span>Active users</span><strong>4</strong></div></div><div class="u8-charts"><div><h4>Daily spend by team</h4><svg viewBox="0 0 460 230" role="img" aria-label="Illustrative daily spend: Engineering rises from 1000 to 1400 dollars; Product from 350 to 600; Support from 250 to 440 over seven days."><g class="u8-grid"><path d="M45 40H425M45 90H425M45 140H425M45 190H425"></path></g><g class="u8-axis"><text x="0" y="44">$1.5k</text><text x="0" y="94">$1k</text><text x="0" y="144">$500</text><text x="10" y="194">$0</text><text x="45" y="220">Oct 24</text><text x="220" y="220">Oct 27</text><text x="382" y="220">Oct 30</text></g><polyline class="u8-line" points="45,90.0 107,80.0 169,70.0 231,75.0 293,60.0 355,65.0 417,50.0"></polyline><polyline class="u8-line u8-line-two" points="45,155.0 107,150.0 169,145.0 231,148.0 293,142.0 355,140.0 417,130.0"></polyline><polyline class="u8-line u8-line-three" points="45,165.0 107,160.0 169,155.0 231,158.0 293,154.0 355,152.0 417,146.0"></polyline></svg><div class="u8-legend"><span>● Engineering</span><span>● Product</span><span>● Support</span></div></div><div><h4>Spend by user</h4><div class="u8-bar-row"><div><span>Alex · Engineering</span><b>$4,800</b></div><div class="u8-bar-track"><i style="width:100.0%"></i></div></div><div class="u8-bar-row"><div><span>Sam · Engineering</span><b>$3,600</b></div><div class="u8-bar-track"><i style="width:75.0%"></i></div></div><div class="u8-bar-row"><div><span>Jordan · Product</span><b>$3,200</b></div><div class="u8-bar-track"><i style="width:66.66666666666666%"></i></div></div><div class="u8-bar-row"><div><span>Casey · Support</span><b>$2,400</b></div><div class="u8-bar-track"><i style="width:50.0%"></i></div></div></div></div></div></div><figcaption>Illustrative rollups, not a shipped dashboard. All views use the same finalized accounting data.</figcaption></figure></div>
<p>PostgreSQL is the initial reporting destination. We’re planning ClickHouse and export adapters so you can bring the same accounting data into the infrastructure you already use. Each destination can build its own aggregates from saved charges, without implementing pricing again.</p>
<p>The sample dashboard illustrates team trends alongside user-level spend. The adapter design also creates a path to custom dimensions, provided those dimensions are captured in the accounting data. That opens up reporting shaped around your organization, rather than a fixed set of breakdowns.</p>
<div class="cost-launch-note"><p><strong>Coming soon</strong></p><p>We’re building the Unified Cost Accounting Engine now. If your team needs a particular reporting dimension or analytics integration, we’d like to hear about it.</p></div>]]></content>
        <author>
            <name>Joshua Valluru</name>
            <uri>https://github.com/joshua-berri</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="reliability" term="reliability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[What we are changing after October 21]]></title>
        <id>https://docs.litellm.ai/blog/security-changes-after-oct-21-2026</id>
        <link href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026"/>
        <updated>2026-10-30T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Why the controls built after March did not stop the v1.107.0 release, and the identity, credential and detection changes we are making in response.]]></summary>
        <content type="html"><![CDATA[<p>On October 21, 2026, our own release pipeline built, signed and published a malicious <code>litellm==1.107.0</code>. We published the <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain">root cause analysis</a> on October 23.</p>
<p>This post goes through what we learned and how we will prevent this from happening again. This includes - why the hardening we did after the March incident did not prevent this incident, what actually failed in October, and what we have changed and are committing to change.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="very-different-attacks">Very different attacks<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#very-different-attacks" class="hash-link" aria-label="Direct link to Very different attacks" title="Direct link to Very different attacks">​</a></h2>
<p>March and October look similar from the outside: a malicious LiteLLM package published through our own channels. However, the attacks took place through two substantially different surfaces, which is why the controls that we built after March did not prevent the October incident.</p>
<p><strong>March was a supply chain attack.</strong> A compromised third-party dependency (Trivy, used unpinned in our CI security scanning) ran inside our CI. It read the static PyPI, GHCR and Docker release credentials we kept in environment variables and used them to publish malicious packages. The attacker never had access to our GitHub organization. They had control of a build step, which in turn had our keys.</p>
<p><img decoding="async" loading="lazy" alt="CI/CD v2 architecture: BerriAI/litellm runs security scans and unit tests in isolated environments, a manually triggered release runs from the private BerriAI/project-releaser repository, and CircleCI runs E2E tests on main and litellm_ pull requests" src="https://docs.litellm.ai/assets/images/ci_cd_v2_architecture-09d56a6000d3360d956828defd479229.png" width="1586" height="992" class="img_ev3q"></p>
<p>We rebuilt the pipeline in response. <a href="https://docs.litellm.ai/blog/ci-cd-v2-improvements">CI/CD v2</a> isolated each stage, split validation and release into separate repositories, replaced static PyPI credentials with Trusted Publishing, signed container images with cosign, made release tags immutable, pinned every GitHub Action, and introduced automated scanning on every pull request. Our goal here was to keep untrusted code and long-lived credentials away from the release path.</p>
<p><strong>October was an infrastructure compromise.</strong> No dependency was compromised, and the attacker did not get in through CI. The attack started with an administrative API key for an internal experimental service, which had been inadvertently committed to a public repository in May. That service in turn held the GitHub CLI OAuth token of one of our two organization owners. With that token, the attacker was an organization owner.</p>
<p><img decoding="async" loading="lazy" alt="October attack chain: a deleted commit exposed the LiteLLM Agent Platform master key, its GitHub token let the attacker run workflows that exfiltrated other PATs, the attacker pointed project_releaser at a poisoned fork, and the bad release was published to GHCR, Docker and PyPI" src="https://docs.litellm.ai/assets/images/october_attack_chain-828666033c51ec3fbc35afbf3c424ec3.png" width="1983" height="793" class="img_ev3q"></p>
<p>An organization owner has the ability to change almost anything in the GitHub organization, including pipeline code, branch protections, required checks, and the requirements on who approves what. The attacker pushed a change to our private release repository so the pipeline pulled source from their fork instead of <code>BerriAI/litellm</code>, pushed it past branch protection with the owner token, dispatched the pipeline, and approved the production gate with a second stolen token. Our pipeline, otherwise unchanged, built the fork, signed the images with our cosign key, and published everything with our Trusted Publisher identity.</p>
<table><thead><tr><th></th><th>March 2026</th><th>October 2026</th></tr></thead><tbody><tr><td>Entry point</td><td data-label="March 2026">Compromised dependency running in CI</td><td data-label="October 2026">Leaked API key for an internal experimental service</td></tr><tr><td>What the attacker held</td><td data-label="March 2026">Static release credentials from CI environment variables</td><td data-label="October 2026">An organization owner's GitHub token, and subsequently additional tokens exfiltrated via throwaway workflows</td></tr><tr><td>What the pipeline did</td><td data-label="March 2026">Nothing; the attacker published directly with stolen keys</td><td data-label="October 2026">Built, signed and published attacker-controlled source through the normal path</td></tr><tr><td>What the artifacts looked like</td><td data-label="March 2026">Unsigned, published outside the pipeline</td><td data-label="October 2026">Validly signed, valid Trusted Publishing provenance</td></tr><tr><td>What the March controls did</td><td data-label="March 2026" data-inline="">Built in response</td><td data-label="October 2026">Worked as designed, and significantly lessened the impact (e.g. existing release tags could not be overwritten). But could not fully prevent this attack.</td></tr></tbody></table>
<p><strong>The controls we introduced after the March incident are effective in defending against supply chain attacks.</strong> Trusted Publishing and signing prove that an artifact came from our pipeline. The October incident does not call this into question: v1.107.0 did come from our pipeline - no pipeline controls can defend against an attacker who is an organization owner, because the owner owns the pipeline.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-were-changing">What we're changing<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#what-were-changing" class="hash-link" aria-label="Direct link to What we're changing" title="Direct link to What we're changing">​</a></h2>
<p>You can find our analysis of the root cause of the incident <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain">here</a>. The actions we are taking to address the primary factors that led to the incident span several categories.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="identity-and-privilege">Identity and privilege<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#identity-and-privilege" class="hash-link" aria-label="Direct link to Identity and privilege" title="Direct link to Identity and privilege">​</a></h3>
<p><strong>No human day-to-day account is an owner.</strong> Our GitHub enterprise and the release approval gate are held by a single dedicated account, associated only with a specific device in our office. That account is required to perform a release. Organization ownership for operational work is to be performed by dedicated owner accounts, separate from the accounts people use to write code. No owner account may authorize an OAuth application, or be used through the API or the <code>gh</code> CLI, and any token-based activity by an owner account raises an alert.</p>
<p><strong>Regular users can use agents. Regular users can never be owners or admins.</strong> We are not going to tell engineers to stop using Claude Code and similar tools. Instead we size the account to the risk. Everything on a developer's machine should be assumed readable by the agents running on it, so an agent on a regular user's machine can do regular-user things and nothing more. The same rule applies to Google Workspace: administrative roles move to dedicated admin accounts, separated from daily use.</p>
<p><strong>Internal builds exist behind an identity-aware proxy.</strong> Our experimental services are built fast, often with agent-heavy workflows. These systems should not be exposed to the Internet. All internal deployments now sit behind an identity-aware proxy.</p>
<p><strong>Phishing-resistant authentication everywhere.</strong> Okta SSO (requiring phishing-resistant MFA) is already enforced on our GitHub organization. We are extending it to all internal systems and to user provisioning and deprovisioning, so that access is granted and removed in one place.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="credentials">Credentials<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#credentials" class="hash-link" aria-label="Direct link to Credentials" title="Direct link to Credentials">​</a></h3>
<p><strong>Secret scanning and push protection on every repository.</strong> This applies to the <code>BerriAI</code> organization and to <code>LiteLLM-Labs</code>, the organization where we put experimental projects.</p>
<p><strong>Ticketing key revocations.</strong> The key that leaked in May and which subsequently resulted in the initial ingress on October 10th was not revoked. Secret scanning must open tickets automatically, and the ticket is only closed when revocation is confirmed.</p>
<p><strong>Automations never authenticate as a person.</strong> Automations will authenticate as a GitHub App or with a fine-grained, expiring token with minimal scopes, enforced via periodic token audits. Moreover, GitHub CLI OAuth tokens are never to be used outside of their intended scope: authorizing the GitHub CLI on a developer's machine.</p>
<p><strong>Secrets available in protected branches only.</strong> Repository-level secrets are moving into GitHub environments with deployment branch policies, so only workflows on protected branches can read them. While this would not have stopped the release, under the threat model of non-owner tokens being stolen, it would have stopped the exfiltration of additional tokens.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="detection-and-response">Detection and response<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#detection-and-response" class="hash-link" aria-label="Direct link to Detection and response" title="Direct link to Detection and response">​</a></h3>
<p><strong>Deeper investment in monitoring and alerting.</strong> GitHub audit logs for our organization now stream to Splunk, and alerting is in place. Alerts are now in place that trigger on all actions taken by the threat actor in GitHub. Further alerts are in development to trigger on policy violations and overrides which the threat actor did not specifically make use of, as well as anomaly detection such as unexpected geographic sources and impossible travel.</p>
<p><strong>Automatic release verification after shipping.</strong> A verifier running outside GitHub will download every published wheel, sdist and image, will check out the corresponding tag from <code>BerriAI/litellm</code>, and compare contents. On any difference, it alerts a human and automatically yanks the releases.</p>
<p><strong>Increasing our security team.</strong> We are looking for great security engineers to help us keep our community safe. If you're interested, please apply <a href="https://jobs.ashbyhq.com/litellm/93705fde-0daa-49ce-94be-4551d3ac662d" target="_blank" rel="noopener noreferrer">here</a>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="the-broader-program">The broader program<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#the-broader-program" class="hash-link" aria-label="Direct link to The broader program" title="Direct link to The broader program">​</a></h3>
<p>None of the following are relevant to the incident we just experienced, but are actions we are undertaking soon (or in some cases, have already begun) to improve our general security posture.</p>
<ul>
<li><strong>Chainguard Libraries for Python and Chainguard Catalog</strong>, to source our dependencies and build images from a hardened, continuously rebuilt supply chain. This is a defense against the March class of attack (a compromised upstream dependency), not the October class.</li>
<li><strong>Improvements in LiteLLM vulnerability posture</strong>, by engaging with HackerOne for a managed vulnerability disclosure program and front-line triage, and engaging with Trail of Bits to harden the application code itself.</li>
<li><strong>The LiteLLM Private Registry</strong>, <a href="https://docs.litellm.ai/blog/litellm-private-registry">announced on October 27</a>, will be used to deliver fixes for the most severe vulnerabilities ahead of public release. Note that the purpose of this registry is specifically for the distribution of embargoed vulnerability fixes, and does not represent a material security boundary with regard to releases.</li>
<li><strong>A FIPS 140-3 compliant image</strong> will be available in the near future for customers requiring FIPS-validated cryptographic operations.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="commitments-and-dates">Commitments and dates<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#commitments-and-dates" class="hash-link" aria-label="Direct link to Commitments and dates" title="Direct link to Commitments and dates">​</a></h2>
<p>We will update this table in place as items complete, and say so when they do not.</p>
<table><thead><tr><th>#</th><th>Commitment</th><th>Status</th><th>Target</th></tr></thead><tbody><tr><td data-label="#" data-inline="">1</td><td data-label="Commitment">Release approval held only by an account associated only with a specific physical device in our office</td><td data-label="Status" data-inline="">Complete</td><td data-label="Target" data-inline="">—</td></tr><tr><td data-label="#" data-inline="">2</td><td data-label="Commitment">Dedicated GitHub owner accounts, separate from day-to-day accounts; no tokens, OAuth apps, API or <code>gh</code> use from any owner account</td><td data-label="Status" data-inline="">Complete</td><td data-label="Target" data-inline="">—</td></tr><tr><td data-label="#" data-inline="">3</td><td data-label="Commitment">GitHub organization audit logs streaming to Splunk, with alerting</td><td data-label="Status" data-inline="">Complete</td><td data-label="Target" data-inline="">—</td></tr><tr><td data-label="#" data-inline="">4</td><td data-label="Commitment">Alert on any token-based activity from an owner account</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 15, 2026</td></tr><tr><td data-label="#" data-inline="">5</td><td data-label="Commitment">Policy: regular users may use agents and tools; regular users may never be owners or admins</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 15, 2026</td></tr><tr><td data-label="#" data-inline="">6</td><td data-label="Commitment">Google Workspace superadministrator roles moved to dedicated admin accounts with associated alerting</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Nov 15, 2026</td></tr><tr><td data-label="#" data-inline="">7</td><td data-label="Commitment">HackerOne managed vulnerability disclosure program with front-line triage live</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 15, 2026</td></tr><tr><td data-label="#" data-inline="">8</td><td data-label="Commitment">LiteLLM Private Registry in use for embargoed vulnerability fixes</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 15, 2026</td></tr><tr><td data-label="#" data-inline="">9</td><td data-label="Commitment">Okta SSO with phishing-resistant MFA for all internal systems, provisioning and deprovisioning (already enforced for all critical systems)</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">10</td><td data-label="Commitment">Secret scanning and push protection on every repository in <code>BerriAI</code> and <code>LiteLLM-Labs</code></td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">11</td><td data-label="Commitment">Ticketed revocation for every credential exposure; secret-scanning alerts open tickets automatically</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">12</td><td data-label="Commitment">Identity-aware proxy in front of all internal deployments (already enforced for most systems)</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">13</td><td data-label="Commitment">Alerts on every action the threat actor took in GitHub on October 10</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">14</td><td data-label="Commitment">Alerts on policy violations and overrides the threat actor did not make use of</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">15</td><td data-label="Commitment">Chainguard Libraries for Python and Chainguard Catalog in use for dependencies and build images</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">16</td><td data-label="Commitment">Trail of Bits application code hardening engagement, first round of fixes shipped</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Nov 30, 2026</td></tr><tr><td data-label="#" data-inline="">17</td><td data-label="Commitment">Organization-level restrictions on third-party OAuth apps and approval required for fine-grained personal access tokens</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">18</td><td data-label="Commitment">Enterprise-level rulesets protecting <code>main</code> and the release repository with no bypass actors</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">19</td><td data-label="Commitment">Post-publish verifier, running outside GitHub, comparing PyPI wheels and sdist against the tag and alerting a human on mismatch</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">20</td><td data-label="Commitment">Post-publish verifier extended to Docker Hub and GHCR images</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">21</td><td data-label="Commitment">Automatic yank or tag removal on verifier mismatch</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">22</td><td data-label="Commitment">Anomaly detection: unexpected geographic sources and impossible travel</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">23</td><td data-label="Commitment">Two security hires: security engineer and security operations</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Dec 31, 2026</td></tr><tr><td data-label="#" data-inline="">24</td><td data-label="Commitment">Automations that used human tokens stay off until rebuilt on GitHub Apps or scoped, expiring tokens</td><td data-label="Status" data-inline="">In progress</td><td data-label="Target" data-inline="">Jan 31, 2027</td></tr><tr><td data-label="#" data-inline="">25</td><td data-label="Commitment">Actions secrets moved from repository level into environments restricted to protected branches</td><td data-label="Status" data-inline="">Planned</td><td data-label="Target" data-inline="">Jan 31, 2027</td></tr></tbody></table>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="reaching-us">Reaching us<a href="https://docs.litellm.ai/blog/security-changes-after-oct-21-2026#reaching-us" class="hash-link" aria-label="Direct link to Reaching us" title="Direct link to Reaching us">​</a></h2>
<p>If you have questions about this post, or if there is any hardening you would like to see from us that is not on this list, please reach out to <a href="mailto:security@berri.ai" target="_blank" rel="noopener noreferrer">security@berri.ai</a>. We will read every suggestion and weigh it carefully. We do not commit to adopting all suggestions, and where we decline we will try to say why, but the list above is not closed, and some of the best ideas for it will come from the people who run LiteLLM in production.</p>
<p>Oliver Jensen
Director of Security, LiteLLM</p>]]></content>
        <author>
            <name>Oliver Jensen</name>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
        <category label="incident-report" term="incident-report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Use Hex to analyze LiteLLM costs, then set budgets and routing]]></title>
        <id>https://docs.litellm.ai/blog/hex-litellm-roi</id>
        <link href="https://docs.litellm.ai/blog/hex-litellm-roi"/>
        <updated>2026-10-30T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[Connect Hex to LiteLLM’s Postgres data, import a cost dashboard, then use the LiteLLM UI to set a budget or change model routing.]]></summary>
        <content type="html"><![CDATA[<div class="root_Vmnz" data-full-width="true"><header class="hero_khSY"><div class="heroInner_cjeh"><div class="heroMeta_N0At"><a href="https://docs.litellm.ai/blog">← Blog</a><span>COST REPORTING / HEX TEMPLATE</span></div><div class="brands_aIoS"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" width="150" height="36"><span aria-hidden="true">×</span><img src="https://docs.litellm.ai/img/hex/hex-logo.svg" alt="Hex" width="94" height="36"></div><svg class="art_p_hR" viewBox="0 0 1440 640" fill="none" aria-hidden="true"><defs><pattern id="hex-report-dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r=".7" fill="white" opacity=".27"></circle></pattern></defs><rect x="500" y="30" width="940" height="610" fill="url(#hex-report-dots)"></rect><g stroke="white" stroke-width="1" opacity=".22"><path d="M500 570 820 380 1110 550 1430 360M500 530 820 340 1110 510 1430 320M500 490 820 300 1110 470 1430 280M500 450 820 260 1110 430 1430 240"></path><path d="M820 260v120m290 50v120m320-310v120M500 450v120"></path><path d="M660 355v120m305-130v120m305-130v120" stroke-dasharray="3 7"></path></g><path d="m660 314 160-95 290 170 320-190" stroke="white" stroke-width="2" opacity=".58"></path><g fill="white" opacity=".8"><circle cx="660" cy="314" r="3"></circle><circle cx="820" cy="219" r="3"></circle><circle cx="1110" cy="389" r="3"></circle><circle cx="1430" cy="199" r="3"></circle></g></svg><h1><span class="title_o9dL">AI spend.</span><span class="subtitle_JM7r">Cost reporting, now in Hex.<span aria-hidden="true">↘</span></span></h1><div class="heroBottom_SMAT"><p>Connect Hex to your LiteLLM Postgres data.<br>Set budgets and routing in LiteLLM.</p><a href="https://app.hex.tech/01a18e4b-6e94-7328-831c-e5ab0e2e00e7/app/LiteLLM-AI-cost-and-ROI-demo-034p688gOAllaldLw72Oat/latest" target="_blank" rel="noopener noreferrer">View live Hex demo <span aria-hidden="true">↗</span></a></div><div class="heroFoot_dRCX"><span>TEAMS / MODELS / BUDGETS</span><span>OPEN TEMPLATE · V2.0.0</span></div></div></header><section class="showcase_O87n" aria-label="Hex dashboard preview"><div class="showcaseLabel_SDDt"><span>THE HEX BOARD</span><span>SYNTHETIC DEMO DATA</span></div><h2>Explore the live Hex dashboard.</h2><p><a href="https://app.hex.tech/01a18e4b-6e94-7328-831c-e5ab0e2e00e7/app/LiteLLM-AI-cost-and-ROI-demo-034p688gOAllaldLw72Oat/latest" target="_blank" rel="noopener noreferrer">Open the working demo ↗</a> · Synthetic data · No sign-in</p><img class="boardPreview_kQGf" src="https://docs.litellm.ai/img/hex/public-demo.png" alt="Hex board showing project spend, request volume, unit costs and daily trends with synthetic data"><figure id="cost-change-demo" class="costDemo_NIAl"><h3>See a model change raise unit cost.</h3><img src="https://docs.litellm.ai/img/hex/cost-change.gif" width="1120" height="480" alt="Zoomed Hex demo alternating between project model mix and the cost-change table, where document-review shows an 80 percent unit-cost increase"><figcaption>Model mix and seven-day cost changes in Hex. Synthetic demo data.</figcaption></figure><p class="demoNote_o0xt">The public demo includes synthetic timing metrics. The daily team template reports recorded costs, requests and usage; daily rows do not include latency.</p></section><div class="article_GP3C"><div class="byline_tFib"><div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-10-30T09:00:00.000Z">Oct 30, 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></div></div></div></div><div class="content_NlxH"><p>LiteLLM records AI costs in Postgres and maintains daily spend totals. Hex connects to that database and reads the totals. Use the dashboard to find a cost increase, then open LiteLLM to change routing or set a budget.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="1-connect-hex-to-your-litellm-postgres-database">1. Connect Hex to your LiteLLM Postgres database<a href="https://docs.litellm.ai/blog/hex-litellm-roi#1-connect-hex-to-your-litellm-postgres-database" class="hash-link" aria-label="Direct link to 1. Connect Hex to your LiteLLM Postgres database" title="Direct link to 1. Connect Hex to your LiteLLM Postgres database">​</a></h2><p>In Hex, open <strong>Settings → Data sources → + Connection → Postgres</strong>. Add a read-only connection to the database your LiteLLM gateway uses.</p><figure class="dataFlow_jqKW" aria-label="LiteLLM spend logs to Hex data flow"><div class="flowTitle_Twqk"><span>READ-ONLY DATA FLOW</span><span>EXISTING DAILY AGGREGATES</span></div><div class="flowSteps_m2mV"><div class="flowNode_ZGYQ"><small>01 / YOUR POSTGRES</small><strong>Daily spend</strong><code>LiteLLM_DailyTeamSpend</code><dl><dt>date + team_id</dt><dd>Day and team</dd><dt>model + spend</dt><dd>Recorded costs</dd><dt>api_requests</dt><dd>Daily requests</dd><dt>prompt_tokens + completion_tokens</dt><dd>Token usage</dd></dl></div><span class="flowArrow_DQAU" aria-hidden="true">→</span><div class="flowNode_ZGYQ"><small>02 / HEX SOURCE QUERY</small><strong>Team names</strong><code>LiteLLM_TeamTable</code><p>Join daily totals to team display names.<br>Keep ownership by stable team ID.</p><span class="flowTag__xfe">SQL included in the template</span><span class="flowTag__xfe">No database objects created</span></div><span class="flowArrow_DQAU" aria-hidden="true">→</span><div class="flowNode_ZGYQ"><small>03 / YOUR HEX APP</small><strong>Cost reporting</strong><div class="miniBars_tr4z" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div><p>Team costs. Model mix.<br>Daily trends. Cost changes.</p><span class="flowTag__xfe">Refresh with a scheduled run</span></div></div><figcaption>LiteLLM writes the daily totals in Postgres. Hex reads reporting columns from these two existing tables. You change budgets and routing in LiteLLM; Hex does not write to the gateway.</figcaption></figure><p>The template reads two existing tables: <strong>LiteLLM_DailyTeamSpend</strong> for costs and usage, and <strong>LiteLLM_TeamTable</strong> for team display names. It groups the results by day, team and model. Give the reader access to those reporting fields. It does not need your key table, prompts or responses.</p><p><a href="https://docs.litellm.ai/docs/observability/hex#connect-postgres">Connection details and SQL permissions</a>.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="2-add-the-template-and-inspect-your-costs">2. Add the template and inspect your costs<a href="https://docs.litellm.ai/blog/hex-litellm-roi#2-add-the-template-and-inspect-your-costs" class="hash-link" aria-label="Direct link to 2. Add the template and inspect your costs" title="Direct link to 2. Add the template and inspect your costs">​</a></h2><p>Open the <a href="https://app.hex.tech/01a18e4b-6e94-7328-831c-e5ab0e2e00e7/app/LiteLLM-AI-cost-and-ROI-demo-034p688gOAllaldLw72Oat/latest" target="_blank" rel="noopener noreferrer">live Hex demo</a> first. You can filter it without signing in. Its records are synthetic.</p><p>To use your own data, download the Postgres template below. In <strong>Hex Home</strong>, click <strong>+ → Upload project</strong>, then click <strong>Upload</strong> in the dialog and choose the <code>.hex.yaml</code> file. Select your Postgres connection on the <strong>Source</strong> SQL cell and <strong>Run all</strong>.</p><p><img decoding="async" loading="lazy" alt="Hex dialog for uploading a YAML project" src="https://docs.litellm.ai/assets/images/import-project-9e9c07bafa56112ea7f95c11ca22fe4c.png" width="600" height="390" class="img_ev3q"></p><div id="get-the-template"></div><div class="downloads_Ysh_" data-template-downloads="true"><a href="https://app.hex.tech/01a18e4b-6e94-7328-831c-e5ab0e2e00e7/app/LiteLLM-AI-cost-and-ROI-demo-034p688gOAllaldLw72Oat/latest" target="_blank" rel="noopener noreferrer"><span class="downloadMeta_qx8L">LIVE / SYNTHETIC DATA</span><strong>Open the Hex dashboard <span aria-hidden="true">↗</span></strong><span>Explore the working demo. No sign-in or download.</span></a><a href="https://docs.litellm.ai/hex/litellm_team_cost_postgres.hex.yaml" download=""><span class="downloadMeta_qx8L">TEMPLATE / YOUR DATABASE</span><strong>Download the template <span aria-hidden="true">↓</span></strong><span>Import this YAML project into Hex, then select your connection.</span></a></div><p>Filter by team. Compare recorded spend, request volume and cost per thousand requests, then open <strong>Models and cost changes</strong>. In the demo, the Legal team's document-review workload switches models and unit cost rises 80%.</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="3-take-an-action-in-litellm">3. Take an action in LiteLLM<a href="https://docs.litellm.ai/blog/hex-litellm-roi#3-take-an-action-in-litellm" class="hash-link" aria-label="Direct link to 3. Take an action in LiteLLM" title="Direct link to 3. Take an action in LiteLLM">​</a></h2><p>Use Hex to investigate the increase. Apply the change through your LiteLLM gateway.</p><table><thead><tr><th>Your decision</th><th>In the LiteLLM UI</th></tr></thead><tbody><tr><td data-label="Your decision" data-inline="">Try a cheaper model</td><td data-label="In the LiteLLM UI">Open <strong>Teams → your team → Settings → Edit Settings → Model Aliases</strong>. Change the model behind an alias your application already calls, then save. Evaluate the candidate on your workload first.</td></tr><tr><td data-label="Your decision">Route by request complexity</td><td data-label="In the LiteLLM UI">Open <strong>Models + Endpoints → Auto Router → Add Auto Router</strong>. Choose the models for each tier, test routing and connections, then save. Configure your application or team alias to call that router.</td></tr><tr><td data-label="Your decision" data-inline="">Set a spending limit</td><td data-label="In the LiteLLM UI">Open <strong>Teams → your team → Settings → Edit Settings</strong>. Set <strong>Max Budget (USD)</strong> and <strong>Reset Budget</strong>, then save.</td></tr></tbody></table><p>For example, select <strong>Legal</strong> in LiteLLM and set <strong>Max Budget (USD)</strong> to <strong>1000</strong> and <strong>Reset Budget</strong> to <strong>monthly</strong> (30 days). This limits new spend; it does not change recorded costs.</p><p><img decoding="async" loading="lazy" alt="Set Legal’s budget in the LiteLLM team settings" src="https://docs.litellm.ai/assets/images/litellm-budget-edit-dfc11d65c57bcf018e93e56368be7afb.png" width="930" height="466" class="img_ev3q"></p><p><em>Current LiteLLM UI with synthetic local gateway data.</em></p><p>After saving, check the team's budget status. Then refresh Hex after LiteLLM updates its daily totals to compare the next complete period. Set a Hex scheduled run if you want the report to refresh on a schedule.</p><p><img decoding="async" loading="lazy" alt="Legal’s budget status after saving" src="https://docs.litellm.ai/assets/images/litellm-budget-saved-fc93669f29710da9555f09bd8d1957fb.png" width="944" height="402" class="img_ev3q"></p><p><a href="https://docs.litellm.ai/docs/auto_router/setup">Auto Router setup</a> · <a href="https://docs.litellm.ai/docs/proxy/team_budgets">Team budgets</a></p></div></div></div>
]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="observability" term="observability"/>
        <category label="cost tracking" term="cost tracking"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing the LiteLLM Private Registry]]></title>
        <id>https://docs.litellm.ai/blog/litellm-private-registry</id>
        <link href="https://docs.litellm.ai/blog/litellm-private-registry"/>
        <updated>2026-10-27T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM is committing to a private registry to provide early access to fixes for the most severe security vulnerabilities, ahead of public release.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM Private Registry: private fixes for the most severe vulnerabilities" src="https://docs.litellm.ai/assets/images/header-58a174a03b6f6664443203a45ed980f9.png" width="2400" height="1260" class="img_ev3q"></p>
<p>We are committed to continuously improving the security of LiteLLM, for both our open-source community and enterprise customers.</p>
<p>With AI agents, publicly releasing a security patch can give attackers an immediate blueprint for exploiting the vulnerability, before users have had time to upgrade.</p>
<p>To address this, we're introducing a LiteLLM Private Registry in the coming weeks. For the most severe vulnerabilities, we'll first distribute fixes privately, giving organizations time to upgrade before publishing the patch and security advisory publicly.</p>
<p><strong>Our commitment to open source remains unchanged.</strong> All security fixes will continue to be released publicly.</p>
<!-- -->
<p>We recently piloted this approach, standing up a temporary private registry to ship a fix for a critical vulnerability to our enterprise customers ahead of public disclosure. The pilot was successful: customers had access to patched builds with reasonable time to upgrade before threat actors had the information needed to craft attacks against them.</p>
<p>We learned a great deal running it, and we are committing to making a private registry a permanent part of how we protect LiteLLM customers. This post covers what we did, what we learned, and what comes next.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-we-built-it">Why we built it<a href="https://docs.litellm.ai/blog/litellm-private-registry#why-we-built-it" class="hash-link" aria-label="Direct link to Why we built it" title="Direct link to Why we built it">​</a></h2>
<p>The threat landscape has changed rapidly for open source products in the last few months. Improvements in AI capabilities have effectively turned any public open source release containing a security fix into a de-facto vulnerability disclosure. Anyone can point a model at our patch diffs as they come out, prompting it to identify fixed vulnerabilities. We now operate under the assumption that attack traffic, that previously followed advisories, now follows releases.</p>
<p>On October 6, we completed a fix for a critical vulnerability in LiteLLM that affected only deployments running with an enterprise license. An unauthenticated attacker who could reach the proxy over HTTP could escalate to proxy admin. In some configurations, proxy admins can execute arbitrary code on the host, so for those deployments the impact was remote code execution.</p>
<p>The vulnerability was limited to enterprise deployments, which created an opportunity to test the idea of running a private registry.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-the-pilot-worked">How the pilot worked<a href="https://docs.litellm.ai/blog/litellm-private-registry#how-the-pilot-worked" class="hash-link" aria-label="Direct link to How the pilot worked" title="Direct link to How the pilot worked">​</a></h2>
<p>On October 6, we stood up a private package registry and began publishing patched LiteLLM releases to it. We attempted to notify every enterprise, and allocated credentials to pull the fixed versions. Throughout the embargo period we continued to publish new releases to both the private registry and our public channels, so customers who upgraded through the registry could stay current with new releases and bugfixes.</p>
<p>The embargo ended today, October 27. Patched versions (<code>v1.103.10</code>,  <code>v1.104.8</code>, <code>v1.105.6</code>, <code>v1.106.5</code>) have been published to PyPI, GHCR, and Docker Hub, and the public advisory is available as <a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-w4c7-34wj-hqm8" target="_blank" rel="noopener noreferrer">GHSA-w4c7-34wj-hqm8</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-we-learned">What we learned<a href="https://docs.litellm.ai/blog/litellm-private-registry#what-we-learned" class="hash-link" aria-label="Direct link to What we learned" title="Direct link to What we learned">​</a></h2>
<p>This was our first attempt at running a private registry, and we learnt valuable lessons along the way. Three in particular are worth discussing:</p>
<p><strong>Large burden on release engineering.</strong> Every release and bugfix backport during the embargo period had to be built, tested and published twice: once for public channels and once for the private registry. The embargo period coincided with a period in which we significantly increased backport releases, which meant that for three weeks, release engineering spent most of their time just implementing and testing backports. This is workable in an emergency situation, but is not sustainable long-term.</p>
<p><strong>A stable v2 is needed.</strong> Our priority was getting the fix into customers' hands as fast as possible, which is reflected in some of the choices around image delivery. They do not lay the correct foundation for a long-term resource. As such, the registry we used for this pilot will be retired and replaced with one designed from the start for the way we now know we want to use it.</p>
<p><strong>Proactive communication/assistance was essential.</strong> Building the registry and publishing to it turned out to be the easy part. Making sure every affected customer knew the fix existed, knew how to get it, and had actually applied it was where we struggled, and it is the reason the embargo ran a week longer than we intended. This problem is ancillary to the implementation of a private registry, but nonetheless one that it highlighted and one that we must solve.</p>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>Next steps</div><div class="admonitionContent_BuS1"><p>LiteLLM is committing to a permanent private registry. In the next few weeks, we will detail how this process will work. In addition to including our enterprise customers, we are evaluating how we can support OSS users with this registry.</p><p>If you have any feedback on this, we welcome it at <a href="https://github.com/BerriAI/litellm/discussions/48643" target="_blank" rel="noopener noreferrer">this GitHub discussion</a>.</p></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-advisory">The advisory<a href="https://docs.litellm.ai/blog/litellm-private-registry#the-advisory" class="hash-link" aria-label="Direct link to The advisory" title="Direct link to The advisory">​</a></h2>
<p>The public security advisory for this vulnerability is published on GitHub as <a href="https://github.com/BerriAI/litellm/security/advisories/GHSA-w4c7-34wj-hqm8" target="_blank" rel="noopener noreferrer">GHSA-w4c7-34wj-hqm8</a>.</p>
<p>If you run LiteLLM with an enterprise license and have not yet upgraded, please do so now. If you are an enterprise customer and did not receive a notification during the embargo period, we would like to hear from you so we can fix the gap: write to us at <a href="mailto:security@berri.ai" target="_blank" rel="noopener noreferrer">security@berri.ai</a>.</p>
<p>If you want to be notified of future security releases, you can subscribe to our security mailing list, linked from the SECURITY.md in the LiteLLM repository.</p>]]></content>
        <author>
            <name>Oliver Jensen</name>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Morph open-weight models on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/morph-provider</id>
        <link href="https://docs.litellm.ai/blog/morph-provider"/>
        <updated>2026-10-27T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use Morph's Kimi, GLM, and DeepSeek models through LiteLLM with tool calling, structured output, streaming, and prompt-cache cost tracking.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM and Morph" src="https://docs.litellm.ai/assets/images/hero-95ddf3d90131a2f9ea1a36d602deae23.png" width="2400" height="1254" class="img_ev3q"></p>
<p>You can now use Morph's open-weight chat models through LiteLLM, alongside its existing Fast Apply models. Route requests to Kimi K3, GLM-5.3, or DeepSeek V4.1 Flash with the <code>morph/</code> prefix and a Morph API key.</p>
<!-- -->
<p><a href="https://www.morphllm.com/" target="_blank" rel="noopener noreferrer">Morph</a> serves these models on an inference stack optimized for code generation. The integration supports tool calling, structured output, reasoning controls, and streaming. Through the LiteLLM AI Gateway, you can manage model access, budgets, and request logs in the same place as your other providers.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Get started<a href="https://docs.litellm.ai/blog/morph-provider#get-started" class="hash-link" aria-label="Direct link to Get started" title="Direct link to Get started">​</a></h2>
<p>Set <code>MORPH_API_KEY</code> in the gateway's environment and add a model to <code>config.yaml</code>.</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"> morph</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">deepseek</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"> morph/morph</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">dsv41flash</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/MORPH_API_KEY</span><br></span></code></pre></div></div>
<p>Your application can then request <code>morph-deepseek</code> through the gateway's <code>/v1/chat/completions</code> endpoint. For installation and a complete request example, see the <a href="https://docs.litellm.ai/docs/providers/morph">Morph provider guide</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="available-models">Available models<a href="https://docs.litellm.ai/blog/morph-provider#available-models" class="hash-link" aria-label="Direct link to Available models" title="Direct link to Available models">​</a></h2>
<p>Morph offers Kimi K3 and Kimi K3 Fast, GLM-5.3 and GLM-5.3-Flash, DeepSeek V4.1 Flash and its 1017 version, and DeepSeek V4 Flash 0731. Morph documents a 1M-token context window for these models.</p>
<p>DeepSeek V4.1 Flash Abliterated is also available to accounts with <a href="https://docs.morphllm.com/sdk/components/fast-models#deepseek-uncensored" target="_blank" rel="noopener noreferrer">Morph's approval</a>. The existing <code>morph-v3-fast</code> and <code>morph-v3-large</code> models remain available for applying code edits.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="prompt-caching">Prompt caching<a href="https://docs.litellm.ai/blog/morph-provider#prompt-caching" class="hash-link" aria-label="Direct link to Prompt caching" title="Direct link to Prompt caching">​</a></h2>
<p>Morph caches repeated prompt prefixes automatically. LiteLLM reads the returned token usage and applies the model's cached-input rate. New prefixes cost the normal input rate, with no extra cache-write charge.</p>
<p>For conversations, reuse an <code>x-session-id</code> header across turns to improve cache hit rates. Keep stable prompts and tool definitions at the beginning of each request. The provider guide shows how to pass the header and read cached-token counts from streamed responses.</p>
<p>See <a href="https://www.morphllm.com/pricing" target="_blank" rel="noopener noreferrer">Morph's pricing</a> for rates and the <a href="https://docs.litellm.ai/docs/providers/morph">provider guide</a> for cache accounting details.</p>]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <author>
            <name>Ryan Crabbe</name>
            <uri>https://www.linkedin.com/in/ryan-crabbe-0b9687214</uri>
        </author>
    </entry>
    <entry>
        <title type="html"><![CDATA[Abliterated models on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/abliterated-models</id>
        <link href="https://docs.litellm.ai/blog/abliterated-models"/>
        <updated>2026-10-26T19:00:00.000Z</updated>
        <summary type="html"><![CDATA[Call abliterated models from Refuseless and Abliteration through LiteLLM, with gateway access controls, streaming, tool calls, and cached-token pricing.]]></summary>
        <content type="html"><![CDATA[<div class="root_AgCz" data-full-width="true"><header class="hero_lVby"><div class="heroMeta_A7lx"><a href="https://docs.litellm.ai/blog">← Blog</a><span>REFUSELESS / ABLITERATION</span></div><div class="art_SDmH" aria-hidden="true"><canvas></canvas></div><h1><span class="title_R04M">Abliterated</span><span class="subtitle_GrEP">models on LiteLLM<span aria-hidden="true">↘</span></span></h1><div class="heroBottom_b8fm"><p>Refuseless and Abliteration.<br>Through your LiteLLM gateway.</p><a href="https://docs.litellm.ai/blog/abliterated-models#get-started">Try a model <span aria-hidden="true">↓</span></a></div></header><div class="article_J6mb"><div class="byline_JA8n"><div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-10-26T19:00:00.000Z">Oct 26, 2026</time></span><div class="authors_hW1g"><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>AI Product Engineer, LiteLLM</small></span></span></div></div></div></div><div class="intro_tRAS"><p>Abliterated models from Refuseless and Abliteration are now available through LiteLLM.</p><p>Call them through the same gateway as your other models, with streaming, tool calls, structured output, and cached-token pricing. Your configured access controls, budgets, and rate limits still apply.</p></div><nav class="contents_HjwP" aria-label="In this post"><a href="https://docs.litellm.ai/blog/abliterated-models#abliteration">01 / The models</a><a href="https://docs.litellm.ai/blog/abliterated-models#providers">02 / Providers</a><a href="https://docs.litellm.ai/blog/abliterated-models#get-started">03 / Try it</a></nav><section id="abliteration" class="section_pW6k" aria-labelledby="abliteration-title"><div class="sectionLabel_ZtR7"><span>01</span>THE MODELS</div><div class="sectionBody_IYsw"><h2 id="abliteration-title">What is an abliterated model?</h2><p>Abliteration modifies the weights of an open-weight model to reduce its learned refusal behavior. Developers identify directions in the model's internal representations associated with refusal, then suppress those directions.</p><p><a href="https://arxiv.org/abs/2406.11717">Arditi and colleagues demonstrated this in 13 chat models</a> in 2024. Hosted providers may use different methods. Reducing refusals can also change answer quality, so evaluate the modified model on the tasks you want it to perform.</p><p>You can use these models for security research, red-teaming, and other workflows where a standard chat model refuses prompts you need to explore. The provider hosts the modified weights; LiteLLM connects your application to its API.</p></div></section><section id="providers" class="section_pW6k" aria-labelledby="providers-title"><div class="sectionLabel_ZtR7"><span>02</span>PROVIDERS</div><div class="sectionBody_IYsw"><h2 id="providers-title">Supported providers</h2><div class="provider_gstf"><h3><a href="https://docs.litellm.ai/docs/providers/refuseless">Refuseless<span aria-hidden="true"> ↗</span></a></h3><p>Refuseless serves three abliterated GLM and DeepSeek models, plus two models with original weights. Use the <code>refuseless/</code> prefix in LiteLLM.</p><div class="tableScroll_UpMI" role="region" aria-label="Refuseless model prices" tabindex="0"><table><caption>USD per million tokens</caption><thead><tr><th scope="col">Model</th><th scope="col">Input</th><th scope="col">Cached input</th><th scope="col">Output</th></tr></thead><tbody><tr><th scope="row"><strong>GLM 5.3</strong><code>glm-5.3-abliterated</code></th><td data-label="Input">$1.25</td><td data-label="Cached input">$0.25</td><td data-label="Output">$2.25</td></tr><tr><th scope="row"><strong>GLM 5.3 Flash</strong><code>glm-5.3-flash-abliterated</code></th><td data-label="Input">$0.25</td><td data-label="Cached input">$0.15</td><td data-label="Output">$0.80</td></tr><tr><th scope="row"><strong>DeepSeek V4.1 Flash</strong><code>deepseek-v4.1-flash-abliterated</code></th><td data-label="Input">$0.22</td><td data-label="Cached input">$0.045</td><td data-label="Output">$0.75</td></tr><tr><th scope="row"><strong>DeepSeek V4.1 Flash Fast</strong><span class="modelNote_qr3s">Original weights</span><code>deepseek-v4.1-flash-fast</code></th><td data-label="Input">$0.05</td><td data-label="Cached input">$0.003</td><td data-label="Output">$0.15</td></tr><tr><th scope="row"><strong>MiniMax M3.1 Flash</strong><span class="modelNote_qr3s">Original weights</span><code>minimax-m3.1-flash</code></th><td data-label="Input">$0.05</td><td data-label="Cached input">$0.002</td><td data-label="Output">$0.25</td></tr></tbody></table></div></div><div class="provider_gstf"><h3><a href="https://docs.litellm.ai/docs/providers/abliteration">Abliteration<span aria-hidden="true"> ↗</span></a></h3><p>Use the <code>abliteration/</code> prefix. Large v2 is the recommended text model and always uses reasoning. The base and Large Flash models also accept images.</p><div class="tableScroll_UpMI" role="region" aria-label="Abliteration model prices" tabindex="0"><table><caption>USD per million tokens</caption><thead><tr><th scope="col">Model</th><th scope="col">Input</th><th scope="col">Cached input</th><th scope="col">Output</th></tr></thead><tbody><tr><th scope="row"><strong>Base</strong><code>abliterated-model</code></th><td data-label="Input">$1.00</td><td data-label="Cached input">$0.10</td><td data-label="Output">$3.00</td></tr><tr><th scope="row"><strong>Large v2</strong><code>abliterated-model-large-v2</code></th><td data-label="Input">$3.00</td><td data-label="Cached input">$0.30</td><td data-label="Output">$5.00</td></tr><tr><th scope="row"><strong>Large Flash</strong><code>abliterated-model-large-flash</code></th><td data-label="Input">$1.00</td><td data-label="Cached input">$0.10</td><td data-label="Output">$2.00</td></tr></tbody></table></div></div><p class="caption_br7i">Published rates as of October 26, 2026, before account discounts or separate charges such as web search. See the <a href="https://docs.litellm.ai/docs/providers/refuseless">Refuseless</a> and <a href="https://docs.litellm.ai/docs/providers/abliteration">Abliteration</a> guides for context limits, reasoning options, and the full model catalogs.</p></div></section><section id="get-started" class="section_pW6k" aria-labelledby="get-started-title"><div class="sectionLabel_ZtR7"><span>03</span>TRY IT</div><div class="sectionBody_IYsw"><h2 id="get-started-title">Add a model to your gateway</h2><p>Create a key with <a href="https://refuseless.com/">Refuseless</a> or <a href="https://abliteration.ai/">Abliteration</a>. Set the matching <code>REFUSELESS_API_KEY</code> or <code>ABLITERATION_API_KEY</code> environment variable on your LiteLLM gateway.</p><figure class="route_cQqo"><div><strong>Your application</strong><small>LiteLLM virtual key</small></div><span aria-hidden="true">→</span><div><strong>LiteLLM</strong><small>Access, budgets, routing</small></div><span aria-hidden="true">→</span><div><strong>Provider</strong><small>Refuseless or Abliteration</small></div><figcaption>Your provider key stays on the gateway.</figcaption></figure><p>Add either or both deployments to your existing <code>model_list</code>, keeping your gateway's authentication settings.</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 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"> refuseless</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">chat</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"> refuseless/glm</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5.3</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">abliterated</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/REFUSELESS_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"> abliteration</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">chat</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"> abliteration/abliterated</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">model</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">large</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">v2</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/ABLITERATION_API_KEY</span><br></span></code></pre></div></div><p>Restart the gateway. Set <code>LITELLM_BASE_URL</code> to its base URL without a trailing slash and <code>LITELLM_API_KEY</code> to a key with access to the deployment. Then send a request:</p><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">Chat completion</div><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 "$LITELLM_BASE_URL/v1/chat/completions" \</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">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "refuseless-chat",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "messages": [{"role": "user", "content": "Explain how DNS works."}],</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "reasoning_effort": "low"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div><p>The response includes the answer in <code>choices[0].message.content</code> and token counts in <code>usage</code>. To call Abliteration, change <code>model</code> to <code>abliteration-chat</code>.</p><p class="caption_br7i">Starting a new gateway or using the Python SDK? Follow the <a href="https://docs.litellm.ai/docs/providers/refuseless">Refuseless guide</a> or <a href="https://docs.litellm.ai/docs/providers/abliteration">Abliteration guide</a>.</p></div></section><footer class="end_pBdZ"><p>Choose your provider.</p><div><a href="https://docs.litellm.ai/docs/providers/refuseless">Refuseless docs ↗</a><a href="https://docs.litellm.ai/docs/providers/abliteration">Abliteration docs ↗</a></div></footer></div></div>
]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[GPT-6.1 Terra API Pricing and Day 0 Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gpt-6-1-terra</id>
        <link href="https://docs.litellm.ai/blog/gpt-6-1-terra"/>
        <updated>2026-10-26T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[GPT-6.1 Terra costs $1 per 1M input tokens and $5 per 1M output tokens, half the price of GPT-6.1 Sol. LiteLLM supports it on day 0.]]></summary>
        <content type="html"><![CDATA[
<!-- -->
<p>LiteLLM now supports <a href="https://openai.com/index/introducing-gpt-6-1-terra/" target="_blank" rel="noopener noreferrer">GPT-6.1 Terra</a> on Day 0. Use it through the LiteLLM AI Gateway with the same config as every other OpenAI model. Spend, rate limits and logs are in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="gpt-61-terra-pricing">GPT-6.1 Terra pricing<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#gpt-61-terra-pricing" class="hash-link" aria-label="Direct link to GPT-6.1 Terra pricing" title="Direct link to GPT-6.1 Terra pricing">​</a></h2>
<ul>
<li><strong>Input:</strong> $1.00 / MTok, or $2.00 / MTok above 272K input tokens</li>
<li><strong>Output:</strong> $5.00 / MTok, or $7.50 / MTok above 272K input tokens</li>
<li><strong>Cache read:</strong> $0.05 / MTok, or $0.10 / MTok above 272K input tokens</li>
<li><strong>Batch and Flex:</strong> 50% off. Fast mode costs 2x.</li>
</ul>
<p>Per OpenAI, these prices are 50% lower than the prices of GPT-5.6 Terra and GPT-6.1 Sol.</p>
<table><thead><tr><th>Model</th><th>Input / MTok</th><th>Output / MTok</th></tr></thead><tbody><tr><td data-label="Model" data-inline=""><strong>GPT-6.1 Terra</strong></td><td data-label="Input / MTok" data-inline=""><strong>$1.00</strong></td><td data-label="Output / MTok" data-inline=""><strong>$5.00</strong></td></tr><tr><td data-label="Model" data-inline="">GPT-6.1 Sol</td><td data-label="Input / MTok" data-inline="">$2.00</td><td data-label="Output / MTok" data-inline="">$10.00</td></tr><tr><td data-label="Model" data-inline="">GPT-5.6 Terra</td><td data-label="Input / MTok" data-inline="">$2.00</td><td data-label="Output / MTok" data-inline="">$12.00</td></tr></tbody></table>
<p>Prices on every provider: <a href="https://models.litellm.ai/models" target="_blank" rel="noopener noreferrer">https://models.litellm.ai/models</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-gpt-61-terra">What's new in GPT-6.1 Terra<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#whats-new-in-gpt-61-terra" class="hash-link" aria-label="Direct link to What's new in GPT-6.1 Terra" title="Direct link to What's new in GPT-6.1 Terra">​</a></h2>
<ul>
<li><strong>50.3% on Terminal-Bench 4.0</strong> at max effort, more than double GPT-5.6 Terra's 21.5%, per OpenAI</li>
<li><strong>Fewer factual errors:</strong> on OpenAI's error-inducing prompts at low effort, the error rate fell from 53.6% to 16.7%</li>
<li><strong>Reasoning effort from <code>none</code> to <code>max</code></strong>, with <code>medium</code> as the default</li>
<li><strong>1.05M-token context window</strong> (922K input) and up to 128K output tokens</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-gpt-61-terra-with-litellm">Use GPT-6.1 Terra with LiteLLM<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#use-gpt-61-terra-with-litellm" class="hash-link" aria-label="Direct link to Use GPT-6.1 Terra with LiteLLM" title="Direct link to Use GPT-6.1 Terra with LiteLLM">​</a></h2>
<p>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>
<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">terra</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">terra</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:v1.106.2 \</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-terra",</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": "Read this invoice and list the line items."}</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": "low"</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-terra"</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">"Read this invoice and list the line items."</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">"low"</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>
<p>OpenAI serves tool calling for this model through the Responses API. When reasoning is on, LiteLLM sends a <code>/chat/completions</code> request with tools to <code>/v1/responses</code> for you.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="faq">FAQ<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-much-does-gpt-61-terra-cost">How much does GPT-6.1 Terra cost?<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#how-much-does-gpt-61-terra-cost" class="hash-link" aria-label="Direct link to How much does GPT-6.1 Terra cost?" title="Direct link to How much does GPT-6.1 Terra cost?">​</a></h3>
<p>$1.00 per 1M input tokens and $5.00 per 1M output tokens. Cache reads cost $0.05 per 1M tokens. Above 272K input tokens, the prices are $2.00, $7.50 and $0.10.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-context-window-of-gpt-61-terra">What is the context window of GPT-6.1 Terra?<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#what-is-the-context-window-of-gpt-61-terra" class="hash-link" aria-label="Direct link to What is the context window of GPT-6.1 Terra?" title="Direct link to What is the context window of GPT-6.1 Terra?">​</a></h3>
<p>1,050,000 tokens, with up to 922,000 input tokens and 128,000 output tokens.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-call-gpt-61-terra-with-an-openai-compatible-api">How do I call GPT-6.1 Terra with an OpenAI-compatible API?<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#how-do-i-call-gpt-61-terra-with-an-openai-compatible-api" class="hash-link" aria-label="Direct link to How do I call GPT-6.1 Terra with an OpenAI-compatible API?" title="Direct link to How do I call GPT-6.1 Terra with an OpenAI-compatible API?">​</a></h3>
<p>Add <code>openai/gpt-6.1-terra</code> to your LiteLLM config. Then send a standard <code>/chat/completions</code> request to the proxy with <code>"model": "gpt-6.1-terra"</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions/48443" target="_blank" rel="noopener noreferrer">GitHub discussion #48443</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="references">References<a href="https://docs.litellm.ai/blog/gpt-6-1-terra#references" class="hash-link" aria-label="Direct link to References" title="Direct link to References">​</a></h2>
<ul>
<li>LiteLLM pricing for <code>gpt-6.1-terra</code>: <a href="https://github.com/BerriAI/litellm/pull/48429" target="_blank" rel="noopener noreferrer">PR #48429</a></li>
</ul>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-6.1" term="gpt-6.1"/>
        <category label="gpt-6.1-terra" term="gpt-6.1-terra"/>
        <category label="pricing" term="pricing"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-6.1 Terra" term="card_title:GPT-6.1 Terra"/>
        <category label="card_summary:Half the price of GPT-6.1 Sol at $1 / $5 per 1M tokens, 50.3% on Terminal-Bench 4.0, 1.05M context." term="card_summary:Half the price of GPT-6.1 Sol at $1 / $5 per 1M tokens, 50.3% on Terminal-Bench 4.0, 1.05M context."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Rust Migration: /v1/messages end-to-end in Rust by Dec 1]]></title>
        <id>https://docs.litellm.ai/blog/rust-migration-rerouted</id>
        <link href="https://docs.litellm.ai/blog/rust-migration-rerouted"/>
        <updated>2026-10-26T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[By December 1st, the proxy will handle Anthropic messages requests 20x faster]]></summary>
        <content type="html"><![CDATA[<p>The Rust migration is being slightly rerouted to get the largest performance improvements to the largest portion of requests as quickly as possible. We will be focusing on <code>/v1/messages</code> requests to providers which natively support Anthropic-style APIs, with the most common set of proxy features enabled. By December 1st, you can expect the proxy to handle these requests with common configurations with about 20x less latency.</p>
<!-- -->
<p>Earlier, LiteLLM's path towards having a proxy server that runs blazingly fast in Rust was to build from the bottom up. We would first port over the translation layer which handles putting a request from one provider in terms of another. Then, we would port over the core routing logic which selects a particular deployment for a given request. Finally, we would migrate the actual proxy webserver.</p>
<p>Doing things that way gives us the cleanest set of lines across which to move dependencies, but it also means that users wait a longer time in order to see the real payoff. If the translation layer and router are ported, a request will still have to:</p>
<ul>
<li>pass through the FastAPI server and auth on the way in</li>
<li>check the cache on the way in, and populate it on the way out</li>
<li>be provided to callbacks in order to mutate headers, strip sensitive information from the body, or write out to spend logs</li>
</ul>
<p>These things take up a significant portion of the time taken in a request, and so even if we make other parts of the request 10-50x faster, we will still end up with only an overall performance gain of ~2x.
In some cases, the poorly defined boundary of what needs to be <em>provided</em> to a callback can actually mean that we make things slightly worse due to crossing the Python-Rust boundary repeatedly!</p>
<p><img decoding="async" loading="lazy" alt="Three bars share one time scale. The Python cold-profile stages total 48.1 ms. An illustrative partial Rust migration reduces routing and translation from 17.0 ms to 0.85 ms, for about 32.0 ms overall. Messages with everything in Rust take 1.7 ms on the hot path." src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDQwIiBoZWlnaHQ9IjU2NSIgdmlld0JveD0iMCAwIDEwNDAgNTY1IiByb2xlPSJpbWciIGFyaWEtbGFiZWxsZWRieT0idGl0bGUgZGVzYyI+Cjx0aXRsZSBpZD0idGl0bGUiPlJlcXVlc3QgdGltZSB3aXRoIFB5dGhvbiBhbmQgUnVzdDwvdGl0bGU+CjxkZXNjIGlkPSJkZXNjIj5UaHJlZSBhbGlnbmVkIHJlcXVlc3QtdGltZSBiYXJzIHVzZSBhIGNvbW1vbiBzY2FsZS4gVGhlIGN1cnJlbnQgUHl0aG9uIGNvbGQtcGF0aCBzdGFnZXMgdG90YWwgNDguMSBtcy4gVGhlIGlsbHVzdHJhdGl2ZSBwYXJ0aWFsIG1pZ3JhdGlvbiBtb3ZlcyB0aGUgYXV0aG9yLWNvbmZpcm1lZCAxNy4wIG1zIHJvdXRlciBhbmQgdHJhbnNsYXRpb24gcG9ydGlvbiB0byBSdXN0IGF0IGEgMjB4IHNwZWVkdXAsIGZvciAwLjg1IG1zIG9mIFJ1c3Qgd29yayBhbmQgMzEuOTUgbXMgdG90YWwsIGRpc3BsYXllZCBhcyAzMi4wIG1zLiBBIHRoaXJkIGJhciwgTWVzc2FnZXMgd2l0aCBldmVyeXRoaW5nIGluIFJ1c3QsIHVzZXMgdGhlIGF1dGhvci1wcm92aWRlZCAxLjcgbXMgUnVzdCBob3QtcGF0aCB0b3RhbC4gQ29sZC1wcm9maWxlIHN0YWdlcywgdGhlIG1vZGVsZWQgcGFydGlhbCBtaWdyYXRpb24sIGFuZCB0aGUgbWVhc3VyZWQgaG90LXBhdGggdG90YWwgYXJlIGlkZW50aWZpZWQgc2VwYXJhdGVseS4gTm8gYnJlYWtkb3duIGZyb20gdGhlIFJ1c3QgY29sZCBwYXRoIGlzIHJldXNlZCBmb3IgdGhlIGhvdCBwYXRoLjwvZGVzYz4KPGRlZnM+PG1hcmtlciBpZD0iYXJyb3ciIHZpZXdCb3g9IjAgMCAxMCAxMCIgcmVmWD0iOSIgcmVmWT0iNSIgbWFya2VyV2lkdGg9IjciIG1hcmtlckhlaWdodD0iNyIgb3JpZW50PSJhdXRvLXN0YXJ0LXJldmVyc2UiPjxwYXRoIGQ9Ik0yIDFMOSA1TDIgOSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjb250ZXh0LXN0cm9rZSIgc3Ryb2tlLXdpZHRoPSIxLjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L21hcmtlcj48L2RlZnM+CjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDQwIiBoZWlnaHQ9IjU2NSIgcng9IjAiIGZpbGw9IiNmYmZjZmUiIHN0cm9rZT0iI2ZiZmNmZSIgc3Ryb2tlLXdpZHRoPSIxLjMiLz4KPHJlY3QgeD0iNDAiIHk9IjIyIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHJ4PSIyIiBmaWxsPSIjZGZlOGYzIiBzdHJva2U9IiM5ZGIyY2UiIHN0cm9rZS13aWR0aD0iMS4zIi8+Cjx0ZXh0IHg9IjY3IiB5PSIzNiIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTciIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCIgZmlsbD0iIzU5NzE4OSI+UHl0aG9uIC8gcHJvdmlkZXIgd29yazwvdGV4dD4KPHJlY3QgeD0iMzY1IiB5PSIyMiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiByeD0iMiIgZmlsbD0iIzEyM2VjOSIgc3Ryb2tlPSIjMTIzZWM5IiBzdHJva2Utd2lkdGg9IjEuMyIvPgo8dGV4dCB4PSIzOTIiIHk9IjM2IiBmb250LWZhbWlseT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNyIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0IiBmaWxsPSIjNTk3MTg5Ij5Xb3JrIHBvcnRlZCB0byBSdXN0PC90ZXh0Pgo8dGV4dCB4PSI0MCIgeT0iODQiIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjIzIiBmb250LXdlaWdodD0iNTAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiIGZpbGw9IiMxODMzNGIiPkN1cnJlbnQgUHl0aG9uIHBhdGggKGNvbGQgcHJvZmlsZSk8L3RleHQ+Cjx0ZXh0IHg9IjEwMDAiIHk9Ijg0IiBmb250LWZhbWlseT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMyIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9ImVuZCIgZmlsbD0iIzE4MzM0YiI+NDguMSBtczwvdGV4dD4KPHJlY3QgeD0iNDAiIHk9IjEwNiIgd2lkdGg9IjQ1My4wNTYxMzMwNTYxMzMxIiBoZWlnaHQ9IjcyIiByeD0iMCIgZmlsbD0iI2RmZThmMyIgc3Ryb2tlPSIjZmJmY2ZlIiBzdHJva2Utd2lkdGg9IjEuMyIvPgo8dGV4dCB4PSIyNjYuNTI4MDY2NTI4MDY2NiIgeT0iMTM3IiBmb250LWZhbWlseT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMSIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzE4MzM0YiI+U2VydmVyICsgYXV0aDwvdGV4dD4KPHRleHQgeD0iMjY2LjUyODA2NjUyODA2NjYiIHk9IjE2MSIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTgiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IiM1OTcxODkiPjIyLjcgbXM8L3RleHQ+CjxyZWN0IHg9IjQ5My4wNTYxMzMwNTYxMzMxIiB5PSIxMDYiIHdpZHRoPSIxMTEuNzY3MTUxNzY3MTUxNzciIGhlaWdodD0iNzIiIHJ4PSIwIiBmaWxsPSIjZGZlOGYzIiBzdHJva2U9IiNmYmZjZmUiIHN0cm9rZS13aWR0aD0iMS4zIi8+Cjx0ZXh0IHg9IjU0OC45Mzk3MDg5Mzk3MDkiIHk9IjEzNyIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTgiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IiMxODMzNGIiPkhvb2tzPC90ZXh0Pgo8dGV4dCB4PSI1NDguOTM5NzA4OTM5NzA5IiB5PSIxNjEiIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE3IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjNTk3MTg5Ij41LjYgbXM8L3RleHQ+CjxyZWN0IHg9IjYwNC44MjMyODQ4MjMyODQ5IiB5PSIxMDYiIHdpZHRoPSIzMzkuMjkzMTM5MjkzMTM5MyIgaGVpZ2h0PSI3MiIgcng9IjAiIGZpbGw9IiMxMjNlYzkiIHN0cm9rZT0iI2ZiZmNmZSIgc3Ryb2tlLXdpZHRoPSIxLjMiLz4KPHRleHQgeD0iNzc0LjQ2OTg1NDQ2OTg1NDYiIHk9IjEzNyIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjEiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IndoaXRlIj5Sb3V0aW5nICsgdHJhbnNsYXRpb248L3RleHQ+Cjx0ZXh0IHg9Ijc3NC40Njk4NTQ0Njk4NTQ2IiB5PSIxNjEiIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE4IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZGNlNWZmIj4xNy4wIG1zPC90ZXh0Pgo8cmVjdCB4PSI5NDQuMTE2NDI0MTE2NDI0MiIgeT0iMTA2IiB3aWR0aD0iNTUuODgzNTc1ODgzNTc1ODkiIGhlaWdodD0iNzIiIHJ4PSIwIiBmaWxsPSIjZGZlOGYzIiBzdHJva2U9IiNmYmZjZmUiIHN0cm9rZS13aWR0aD0iMS4zIi8+CjxwYXRoIGQ9Ik05NzIuMDU4MjEyMDU4MjEyMiAxNzhWMjAwSDk0NC4wNTgyMTIwNTgyMTIyIiBmaWxsPSJub25lIiBzdHJva2U9IiM1OTcxODkiIHN0cm9rZS13aWR0aD0iMS4yIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHRleHQgeD0iOTM0LjA1ODIxMjA1ODIxMjIiIHk9IjIwNyIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTciIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJlbmQiIGZpbGw9IiM1OTcxODkiPlByb3ZpZGVyICsgcmVzcG9uc2UsIDIuOCBtczwvdGV4dD4KPHRleHQgeD0iNDAiIHk9IjI2NCIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjMiIGZvbnQtd2VpZ2h0PSI1MDAiIHRleHQtYW5jaG9yPSJzdGFydCIgZmlsbD0iIzE4MzM0YiI+Um91dGluZyBhbmQgdHJhbnNsYXRpb24gaW4gUnVzdCAoaWxsdXN0cmF0aXZlKTwvdGV4dD4KPHRleHQgeD0iMTAwMCIgeT0iMjY0IiBmb250LWZhbWlseT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMyIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9ImVuZCIgZmlsbD0iIzE4MzM0YiI+MzIuMCBtczwvdGV4dD4KPHJlY3QgeD0iNDAiIHk9IjI4NiIgd2lkdGg9IjQ1My4wNTYxMzMwNTYxMzMxIiBoZWlnaHQ9IjcyIiByeD0iMCIgZmlsbD0iI2RmZThmMyIgc3Ryb2tlPSIjZmJmY2ZlIiBzdHJva2Utd2lkdGg9IjEuMyIvPgo8dGV4dCB4PSIyNjYuNTI4MDY2NTI4MDY2NiIgeT0iMzE3IiBmb250LWZhbWlseT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMSIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0iIzE4MzM0YiI+U2VydmVyICsgYXV0aDwvdGV4dD4KPHRleHQgeD0iMjY2LjUyODA2NjUyODA2NjYiIHk9IjM0MSIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTgiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IiM1OTcxODkiPjIyLjcgbXM8L3RleHQ+CjxyZWN0IHg9IjQ5My4wNTYxMzMwNTYxMzMxIiB5PSIyODYiIHdpZHRoPSIxMTEuNzY3MTUxNzY3MTUxNzciIGhlaWdodD0iNzIiIHJ4PSIwIiBmaWxsPSIjZGZlOGYzIiBzdHJva2U9IiNmYmZjZmUiIHN0cm9rZS13aWR0aD0iMS4zIi8+Cjx0ZXh0IHg9IjU0OC45Mzk3MDg5Mzk3MDkiIHk9IjMxNyIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTgiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IiMxODMzNGIiPkhvb2tzPC90ZXh0Pgo8dGV4dCB4PSI1NDguOTM5NzA4OTM5NzA5IiB5PSIzNDEiIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjE3IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjNTk3MTg5Ij41LjYgbXM8L3RleHQ+CjxyZWN0IHg9IjYwNC44MjMyODQ4MjMyODQ5IiB5PSIyODYiIHdpZHRoPSIxNi45NjQ2NTY5NjQ2NTY5NjQiIGhlaWdodD0iNzIiIHJ4PSIwIiBmaWxsPSIjMTIzZWM5IiBzdHJva2U9IiNmYmZjZmUiIHN0cm9rZS13aWR0aD0iMS4zIi8+CjxwYXRoIGQ9Ik02MTMuMzA1NjEzMzA1NjEzNCAzNThWMzg4SDczMy4zMDU2MTMzMDU2MTM0IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMjNlYzkiIHN0cm9rZS13aWR0aD0iMS40IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHRleHQgeD0iNzQzLjMwNTYxMzMwNTYxMzQiIHk9IjM5NSIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTkiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCIgZmlsbD0iIzEyM2VjOSI+MC44NSBtcyBpbiBSdXN0PC90ZXh0Pgo8cmVjdCB4PSI2MjEuNzg3OTQxNzg3OTQxOCIgeT0iMjg2IiB3aWR0aD0iNTUuODgzNTc1ODgzNTc1ODkiIGhlaWdodD0iNzIiIHJ4PSIwIiBmaWxsPSIjZGZlOGYzIiBzdHJva2U9IiNmYmZjZmUiIHN0cm9rZS13aWR0aD0iMS4zIi8+Cjx0ZXh0IHg9IjQwIiB5PSI0NDQiIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjIzIiBmb250LXdlaWdodD0iNTAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiIGZpbGw9IiMxODMzNGIiPk1lc3NhZ2VzIHdpdGggZXZlcnl0aGluZyBpbiBSdXN0PC90ZXh0Pgo8dGV4dCB4PSIxMDAwIiB5PSI0NDQiIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjIzIiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0iZW5kIiBmaWxsPSIjMTgzMzRiIj4xLjcgbXM8L3RleHQ+CjxyZWN0IHg9IjQwIiB5PSI0NjYiIHdpZHRoPSIzMy45MjkzMTM5MjkzMTM5MyIgaGVpZ2h0PSI3MiIgcng9IjAiIGZpbGw9IiMxMjNlYzkiIHN0cm9rZT0iI2ZiZmNmZSIgc3Ryb2tlLXdpZHRoPSIxLjMiLz4KPHRleHQgeD0iOTMuOTI5MzEzOTI5MzEzOTMiIHk9IjUwOSIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjEiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCIgZmlsbD0iIzEyM2VjOSI+SG90IHBhdGg8L3RleHQ+Cjwvc3ZnPgo=" width="1040" height="565" class="img_ev3q"></p>
<p>We want to give our users an incredible experience as quickly as possible. That means that we will migrate the hot path of as large a portion of our requests, and then gradually expand to include more configurations and requests in this fast track. For now, the focus is the path for requests to <code>/v1/messages</code> which are routed to a provider that natively supports <code>/v1/messages</code>.</p>
<p><img decoding="async" loading="lazy" alt="One request stream splits into blue fast-path candidates and gray Python requests at the top. Horizontally aligned layers show endpoint, routing strategy, callbacks, and providers. Blue means eligible so far; further requests branch into the left side of the Python lane between each layer, including endpoint and routing. The remaining blue requests reach Rust. Endpoints, routing strategies, and providers each allow one choice. Callbacks allow any combination of supported options, including both S3 logs and spend logging. Bedrock and Vertex AI eligibility applies to Anthropic models. Traffic widths are illustrative and have no numeric labels." src="https://docs.litellm.ai/assets/images/rust-request-mix-8d6a7edae02c70f52b00a5327547d27d.svg" width="1040" height="1400" class="img_ev3q"></p>
<p>Once we have this written, you can expect <code>/v1/messages</code> requests with ~1.5 milliseconds of latency. We have updated, more representative benchmarks with all of these common features which will be made available soon.</p>
<p>We will implement this by having a Rust server written in Axum sitting in front of all requests.
There will be Rust implementations of the callbacks and router, used by both Python and Rust.
The Python modules will just be a thin shell around the business logic, which lives in Rust.
That way, we ensure that the Rust and Python implementations are entirely compatible.</p>
<p>A request will come in and go to the Axum server. Early on, the server will check if it knows how to handle the request. If it does, it passes through the fast path. If the Axum server <em>cannot</em> handle the request, the request will be forwarded to a Python worker on the same host. This is almost the exact same mechanism that is currently used by our existing Python implementation to share requests across different instances of the ASGI server.</p>
<p><img decoding="async" loading="lazy" alt="Requests enter Axum, which sends supported requests directly to providers and forwards the rest to four Python workers on a separate local port. Rust and Python share Redis and Postgres." src="https://docs.litellm.ai/assets/images/rust-python-architecture-0f86031821ce4c6acf509ffb9393eeac.svg" width="1040" height="620" class="img_ev3q"></p>
<p>We recommend running LiteLLM with 4 workers running on a host with 4 vCPUs. With this setup, the initiating Uvicorn process starts listening on the appropriate port, then spawns 4 worker processes. The workers communicate amongst themselves via Redis and our Postgres database. They do not keep meaningful persistent state. The incoming connections are automatically split among the workers by the operating system, as they all have a handle to the port from before the split.</p>
<p>The Rust server will be able to run alongside the Python servers in a similar manner, and it speaks the exact same Redis and Postgres protocols, so we will ensure seamless failover.</p>
<p>By December 1st, you will be able to run this server for yourself on a standard configuration and see the speed improvements! Stay posted for more updates on how we are approaching this.</p>]]></content>
        <author>
            <name>Nate Armstrong</name>
            <uri>https://www.linkedin.com/in/naterarmstrong/</uri>
        </author>
        <category label="rust" term="rust"/>
        <category label="rust-migration" term="rust-migration"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[OpenCode Go is now a LiteLLM provider]]></title>
        <id>https://docs.litellm.ai/blog/opencode-go</id>
        <link href="https://docs.litellm.ai/blog/opencode-go"/>
        <updated>2026-10-24T19:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use your OpenCode Go subscription through LiteLLM. Connect once, route models to the right API, preserve sessions, and track estimated usage.]]></summary>
        <content type="html"><![CDATA[<div class="root_SW89" data-full-width="true"><header class="hero_vwyP"><div class="inner_Pq5H"><div class="masthead_TK_O"><a aria-label="Back to the LiteLLM blog" href="https://docs.litellm.ai/blog"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" width="136"></a><span>NEW PROVIDER / OCTOBER 2026</span></div><div class="heroTitle_fMv7"><h1>OpenCode Go.<br><span>Now in LiteLLM.</span></h1><img class="goMark_XGfH" src="https://docs.litellm.ai/img/integrations/opencode.svg" alt="" width="148" height="148"></div><p class="heroIntro__fdC">Your Go subscription, through one gateway. Choose a model, keep your client, and let LiteLLM handle the API format and session.</p><div class="heroFlow_cGfP" aria-label="Your coding agent connects to LiteLLM, which connects to OpenCode Go"><span>Your coding agent</span><span aria-hidden="true">→</span><strong>LiteLLM</strong><span aria-hidden="true">→</span><span>OpenCode Go</span></div><div class="heroFooter_R8uJ"><a href="https://docs.litellm.ai/blog/opencode-go#setup">Start using Go <span aria-hidden="true">↗</span></a><a href="https://docs.litellm.ai/blog/opencode-go#provider">See what’s new <span aria-hidden="true">↓</span></a><code>opencode_go/&lt;model&gt;</code></div></div></header><section id="provider" class="section_osXR" aria-labelledby="provider-title"><div class="sectionLabel_FU0O"><span>01</span>THE PROVIDER</div><div class="overview_YLf2"><div><h2 id="provider-title">One connection to your Go models.</h2><p>OpenCode Go is a hosted model service available through Go and Go Plus subscriptions. It gives you access to models from multiple providers. The OpenCode app is a coding agent that can use Go, or connect to other providers.</p><p>The new <code>opencode_go/</code> provider brings Go into LiteLLM’s SDK and AI Gateway. Use your Console key and a Go model ID. LiteLLM selects the right upstream API, preserves the conversation’s session, and records estimated usage under OpenCode Go.</p></div><dl class="features_O14f"><div><dt>Model routing</dt><dd>Chat Completions, Responses, Messages, and Gemini formats, selected from model metadata.</dd></div><div><dt>Model discovery</dt><dd>Fetch available model IDs from Go, with support for a configured gateway endpoint.</dd></div><div><dt>Usage visibility</dt><dd>Published token and cache rates in LiteLLM’s catalog, including supported context tiers.</dd></div></dl></div><div class="explorer_NALp"><div class="explorerHeading_mpoQ"><h3>Choose the model. Keep your client.</h3><span>ILLUSTRATED REQUEST FLOW</span></div><div class="modelChoices_aMVQ" role="group" aria-label="Example Go model"><button type="button" aria-pressed="true">GLM-5.3-Flash</button><button type="button" aria-pressed="false">GPT 6 Luna</button><button type="button" aria-pressed="false">Claude Haiku 5.5</button><button type="button" aria-pressed="false">Gemini 4 Argon</button></div><div class="route_HsYV" aria-live="polite" aria-atomic="true"><div><span>YOUR CLIENT</span><strong>Chat Completions</strong><code>/v1/chat/completions</code></div><span class="arrow_BS2j" aria-hidden="true">→</span><div class="gateway_z5KF"><span>LITELLM</span><strong>opencode_go/</strong><code>glm-5.3-flash</code></div><span class="arrow_BS2j" aria-hidden="true">→</span><div><span>OPENCODE GO</span><strong>Chat Completions</strong><code>/chat/completions</code></div></div><p class="caption_ECh0">The selected model determines the upstream format. Your client can also send native Responses or Anthropic Messages requests. This illustration makes no API calls.</p></div></section><section id="setup" class="section_osXR" aria-labelledby="setup-title"><div class="sectionLabel_FU0O"><span>02</span>GET STARTED</div><h2 id="setup-title">From a Go account to a first reply.</h2><p class="intro_mWdg">You need an active Go or Go Plus subscription and an API key from <a href="https://opencode.ai/console">OpenCode Console</a>. The Console key authenticates LiteLLM to Go; signing in to the OpenCode app alone does not authenticate your gateway.</p><div class="tabs_ot5p" role="group" aria-label="Setup method"><button type="button" aria-pressed="true">AI Gateway + OpenCode</button><button type="button" aria-pressed="false">Python SDK</button></div><div><div class="step_Nf1R"><div><span class="stepNumber_bEi1">01</span><h3>Install and set your keys</h3><p>Run these commands in the shell that will host LiteLLM. Replace the placeholders with your Console key and a long, random gateway key.</p><p>The OpenCode key stays on the gateway. Clients use the LiteLLM key.</p></div><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">Terminal</div><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">pip install --upgrade 'litellm[proxy]'</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">export OPENCODE_API_KEY="your-opencode-api-key"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">export LITELLM_MASTER_KEY="your-litellm-gateway-key"</span><br></span></code></pre></div></div></div><div class="step_Nf1R"><div><span class="stepNumber_bEi1">02</span><h3>Add a Go model</h3><p>Save this as <code>config.yaml</code>. The client calls the alias <code>go</code>; LiteLLM calls the configured Go model. You do not need to set an upstream base URL.</p><p>For an existing gateway, add the model entry to your current configuration and keep your existing authentication settings.</p></div><div><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 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"> go</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"> opencode_go/glm</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">5.3</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/OPENCODE_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 key atrule" style="color:#22863A">general_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">master_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/LITELLM_MASTER_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="codeBlockTitle_OeMC">Start the local gateway</div><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 config.yaml --host 127.0.0.1 --port 4000</span><br></span></code></pre></div></div></div></div><div class="step_Nf1R"><div><span class="stepNumber_bEi1">03</span><h3>Send a request</h3><p>In another terminal, set the same <code>LITELLM_MASTER_KEY</code> and run this request.</p><p>A successful response contains a greeting in <code>choices[0].message.content</code> and token counts in <code>usage</code>. Reuse the session ID for later turns in this conversation.</p></div><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">First request</div><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://localhost:4000/v1/chat/completions \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_MASTER_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 'x-litellm-session-id: go-demo' \</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": "go",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "messages": [{"role": "user", "content": "Say hello."}]</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div></div><div class="step_Nf1R"><div><span class="stepNumber_bEi1">04</span><h3>Connect the OpenCode app</h3><p>With <a href="https://opencode.ai/docs/">OpenCode installed</a>, add this to your project’s <code>opencode.json</code>, or merge the entry into its existing <code>provider</code> object.</p><p>Start <code>opencode</code> from that project in a shell with your gateway key set. Run <code>/models</code>, choose <strong>Go · GLM-5.3-Flash</strong> under <strong>LiteLLM Go</strong>, and send a message.</p><p>OpenCode talks to your local LiteLLM gateway. LiteLLM sends the request to Go.</p></div><div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">opencode.json</div><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">"$schema"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"https://opencode.ai/config.json"</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">"provider"</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">"litellm-go"</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">"npm"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"@ai-sdk/openai-compatible"</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">"name"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"LiteLLM Go"</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">"options"</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">"baseURL"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"http://localhost:4000/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 property" style="color:#005CC5">"apiKey"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"{env:LITELLM_MASTER_KEY}"</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">"models"</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">"go"</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 property" style="color:#005CC5">"name"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Go · GLM-5.3-Flash"</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><br></span></code></pre></div></div></div></div></section><section id="sessions" class="section_osXR" aria-labelledby="sessions-title"><div class="sectionLabel_FU0O"><span>03</span>THE SESSION FIX</div><div class="twoColumns_qfGS"><div><h2 id="sessions-title">Keep the conversation together.</h2><p>Go uses a stable session ID to route a conversation efficiently and support prompt caching. Losing that ID at the gateway can cause a missing-session error.</p><p>Alongside the provider, we added automatic forwarding of a supplied session ID as <code>x-opencode-session</code>. This also covers existing OpenAI and Anthropic configurations that point to supported OpenCode endpoints.</p></div><div class="sessionPanel_zE8d"><span>YOUR REQUEST</span><code>x-litellm-session-id: go-demo</code><span class="downArrow_fl6r" aria-hidden="true">↓</span><span>REQUEST TO OPENCODE GO</span><code>x-opencode-session: go-demo</code><p>An explicit OpenCode session header takes precedence. LiteLLM does not invent a session ID when none is supplied.</p></div></div><p class="caption_ECh0">Use <code>litellm_session_id</code> in the SDK or <code>x-litellm-session-id</code> at the gateway. Keep it stable within a conversation and use a different ID for a new conversation. <a href="https://github.com/BerriAI/litellm/pull/48121">Read the session fix ↗</a></p></section><section id="usage" class="section_osXR" aria-labelledby="usage-title"><div class="sectionLabel_FU0O"><span>04</span>USAGE AND LIMITS</div><div class="twoColumns_qfGS"><div><h2 id="usage-title">Track usage.<br>Understand your allowance.</h2><p>LiteLLM estimates request cost using Go’s published token rates. That gives you a consistent value for logs and gateway budgets.</p><p>Your Go subscription, remaining allowance, rolling limits, and resets stay with OpenCode. A LiteLLM cost estimate is not an extra invoice charge, and its budget counter does not mirror your plan’s remaining allowance.</p></div><div class="usageSummary_IFFp"><div><span>LiteLLM</span><strong>Tokens + estimated usage cost</strong></div><div><span>OpenCode Console</span><strong>Subscription + actual allowance</strong></div><p>Rates and model availability can change. DeepSeek estimates use the published peak rate, so off-peak requests can cost less in Console. Check the <a href="https://opencode.ai/v2/docs/console/go/">current Go rate card</a> for plan details.</p></div></div></section><section class="section_osXR proof_n_Z3" aria-labelledby="proof-title"><div><div class="sectionLabel_FU0O"><span>05</span>TESTED END TO END</div><h2 id="proof-title">Real models.<br>Real tool calls.</h2><p>We tested all three incoming APIs against four upstream formats, including Gemini: 12 combinations returning responses and token usage.</p><p>We also ran streamed tool calls, tool-result follow-ups, and file reads in OpenCode. The screenshot shows a recorded file-read test through the gateway.</p><a href="https://github.com/BerriAI/litellm/pull/48140">See the implementation and test evidence ↗</a></div><figure><img src="https://docs.litellm.ai/img/opencode-go/file-read.png" alt="Recorded OpenCode test: the read tool opens proof.txt and returns OpenCode Go works through LiteLLM using the Go Messages model." width="1280" height="720" loading="lazy"><figcaption>Recorded October 24, 2026. The test file contains only the sentence shown.</figcaption></figure></section><footer class="footer_QPt5"><div><span>OPENCODE GO × LITELLM</span><h2>Pick a model.<br>Build with the client you use.</h2></div><a href="https://docs.litellm.ai/docs/providers/opencode_go">Open the provider guide <span aria-hidden="true">↗</span></a></footer></div>
]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="providers" term="providers"/>
        <category label="tutorial" term="tutorial"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[The attack chain behind the v1.107.0 LiteLLM release]]></title>
        <id>https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain</id>
        <link href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain"/>
        <updated>2026-10-23T21:00:00.000Z</updated>
        <summary type="html"><![CDATA[How an internal key committed to a public repository in May led to three stolen GitHub tokens and the compromised litellm v1.107.0 release.]]></summary>
        <content type="html"><![CDATA[<p>On October 21, our release pipeline published a compromised <code>litellm==1.107.0</code> to PyPI and to our container registries. The <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026">incident post</a> covers the affected artifacts and what to do if you ran them. We have completed our investigation into the actions taken by the threat actor, and can confidently assert the timeline and sequence of events that led to the publication of the malicious <code>v1.107.0</code> release.</p>
<p>We posted regular status updates during our investigation yesterday reflecting the scenario to the best of our knowledge as the investigation proceeded. The investigation was ongoing, and some assumptions and beliefs in those updates were later proven to be inaccurate or incomplete. This post is the canonical source of truth.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="narrative">Narrative<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#narrative" class="hash-link" aria-label="Direct link to Narrative" title="Direct link to Narrative">​</a></h2>
<p>On May 27, 2026, a configuration file <a href="https://github.com/LiteLLM-Labs/lite-harness/blob/e10b14a/harnesses/opencode/opencode.json" target="_blank" rel="noopener noreferrer">was committed</a> to the public <code>LiteLLM-Labs/lite-harness</code> repository which inadvertently contained an administrative key to an internal deployment of LiteLLM Agent Platform. The mistake was quickly identified. About three hours later a follow-up commit deleted the file and the keys were noted as requiring revocation, but the original commit stayed in the repository's public history until October 22. Because of human error, nobody followed through on revoking the administrative key to the LiteLLM Agent Platform, so it was still valid more than four months later.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="github-owner-access">GitHub Owner Access<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#github-owner-access" class="hash-link" aria-label="Direct link to GitHub Owner Access" title="Direct link to GitHub Owner Access">​</a></h3>
<p>On October 10th, the threat actor used this key to gain control of our LiteLLM Agent Platform deployment. LiteLLM Agent Platform is an experimental project for self-hosted cloud agents to file PRs to GitHub repositories. In order to create PRs, the system was configured with a GitHub authentication token. The threat actor used their access to extract this GitHub token.</p>
<p>Unfortunately, the token configured in our LiteLLM Agent Platform was not a Personal Access Token scoped to the appropriate repositories and capabilities, but was the GitHub CLI OAuth token associated with our GitHub organization owner. Note that GitHub CLI tokens are not scoped, are post-2fa, and not subject to GitHub's "super-user" 2fa reauth flows associated with sensitive organization or repository actions. From this point on, the threat actor had owner capabilities over our GitHub organization.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="exfiltrating-additional-tokens">Exfiltrating additional tokens<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#exfiltrating-additional-tokens" class="hash-link" aria-label="Direct link to Exfiltrating additional tokens" title="Direct link to Exfiltrating additional tokens">​</a></h3>
<p>Using the access provided by the Github CLI OAuth token, the threat actor began to perform additional credential exfiltration actions. They authored commits into branches on internal repositories to execute workflows designed to exfiltrate any tokens and secrets configured to be available to CI in our repositories. In so doing, they acquired similar GitHub CLI Oauth tokens associated with two engineers with maintainer privileges.</p>
<p>They also acquired tokens to several other internal systems. Reviewing the actor's activity on these other systems shows attempts to identify and exfiltrate additional keys and tokens, with a primary focus on upstream inference API tokens.</p>
<p>While we have traced out all tokens we believe the threat actor could have accessed, we are revoking every token associated with every internal system and vendor platform. This incident has provided a strong illustration of the risks associated with failing to rotate a potentially exposed key.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="building-and-signing-the-malicious-release">Building and Signing the Malicious Release<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#building-and-signing-the-malicious-release" class="hash-link" aria-label="Direct link to Building and Signing the Malicious Release" title="Direct link to Building and Signing the Malicious Release">​</a></h3>
<p>Having access to multiple GitHub identities, the threat actor was now in a position to be able to make changes to our repositories without being overly noisy, concealing changes within proper-seeming proposals and approvals. Our release workflows live in the private <code>BerriAI/project-releaser</code> repository, and they checked out their source with <code>BerriAI</code> hardcoded as the repository owner, so no workflow input could point a build at a fork. To build from their lookalike fork, the threat actor had to change the workflows themselves. They wrote commit <code>9cf97e9</code>, which added a <code>source_owner</code> input that defaults to <code>BerriAI</code> but accepts any organization. Branch protection on <code>main</code> rejected the push, since it requires a pull request, two passing checks, and approval from the workflow's codeowner. The threat actor then used the organization owner's token, which can override branch protection, to push the commit to <code>main</code> anyway. With that change on <code>main</code>, they dispatched the staging workflow with the source set to <code>Berri-AI/litellm</code>, their fork in the lookalike <code>Berri-AI</code> organization.</p>
<p>In typical operation, building and publishing a release requires being kicked off by an authorized engineer and being approved by a special account locked to a physical device in our office. This restriction was relaxed earlier this week to accommodate the temporary push for more frequent releases and bugfix backports, allowing any two engineers to trigger and approve a release. As such, the threat actor used one of the tokens to trigger the release (after having repointed the deployer to their malicious repository), and another to approve it.</p>
<p>It is worth noting, however, that armed with a token belonging to an organization owner, the threat actor could very well have relaxed this restriction (or removed it entirely) themselves. However, we believe they used the separate tokens in order to evade detection by way of noisy audit logs.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="aftermath-and-containent">Aftermath and Containent<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#aftermath-and-containent" class="hash-link" aria-label="Direct link to Aftermath and Containent" title="Direct link to Aftermath and Containent">​</a></h3>
<p>The malicious releases were published to our public registries at around 4:40 AM PDT (11:40 UTC). We became aware of the malicious releases shortly before 6 AM (13:00 UTC) and immediately began the process to remove them. The PyPi releases were frozen by 6:23 AM PDT (13:23 UTC). The Docker images took us a bit longer as we worked to wake the inviduals with access to our Docker registry, and were removed by 7:20 AM PDT (14:20 UTC).</p>
<p>In response, at the beginning of our investigation, we took the following temporary mitigation approaches:</p>
<ul>
<li>We immediately locked our public registries to prevent additional images from being published.</li>
<li>As soon as we suspected GitHub accounts were compromised, we removed <em>all</em> members from our GitHub organization, with the exception of a single specific account temporarily promoted to owner which we could be confident was not affected.</li>
<li>We began operating in a mode which assumes that every possible token, key, or authenticator belonging to our organization was exfiltrated.</li>
</ul>
<p>As investigations began to shed light on the scope and details of the attack, we were able to begin laying out a roadmap necessary for secure account and process reinstatement.</p>
<p>At this point, we are confident in our ability to safely issue a release by EOD today, providing our users with a fix for removing the eMudhra certificate authority from our trust store. We understand it has been frustrating that we have been slow to issue a release to remediate this high-profile issue. We will only issue releases when we can be confident in their safety.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="process-improvements">Process Improvements<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#process-improvements" class="hash-link" aria-label="Direct link to Process Improvements" title="Direct link to Process Improvements">​</a></h3>
<p>We know many of you want to hear what we’ve learned and what we’re changing. We’ll share that next week.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="timeline">Timeline<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#timeline" class="hash-link" aria-label="Direct link to Timeline" title="Direct link to Timeline">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="compromised-credentials">Compromised Credentials<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#compromised-credentials" class="hash-link" aria-label="Direct link to Compromised Credentials" title="Direct link to Compromised Credentials">​</a></h3>
<table><thead><tr><th>Credential</th><th>How the attacker got it</th><th>What it was used for</th></tr></thead><tbody><tr><td data-label="Credential">Administrative key for the LiteLLM Agent Platform, an internal alpha service</td><td data-label="How the attacker got it">Committed to a public repository on May 27</td><td data-label="What it was used for">Reading the Agent Platform API</td></tr><tr><td data-label="Credential">GitHub CLI token of a GitHub organization owner</td><td data-label="How the attacker got it">Returned by the Agent Platform API on October 10</td><td data-label="What it was used for">Pushing the exfiltration branches, changing the release workflow, running the staging build, force-pushing the cover-up</td></tr><tr><td data-label="Credential">GitHub CLI token of a second maintainer, stored as the <code>GH_TOKEN</code> secret of <code>BerriAI/litellm</code></td><td data-label="How the attacker got it">Posted to the attacker's endpoint by a throwaway workflow on October 10</td><td data-label="What it was used for">Approving the production gate</td></tr><tr><td data-label="Credential">GitHub CLI token of a third maintainer, stored as the <code>RELEASE_PLEASE_TOKEN</code> secret of <code>BerriAI/litellm-auto</code></td><td data-label="How the attacker got it">Posted to the same endpoint by a second throwaway workflow on October 10</td><td data-label="What it was used for">Deleting the release run records</td></tr></tbody></table>
<p>Our first post suspected the tokens were taken from the logs of an internal LiteLLM deployment. The request logs show the first token came from a different service, described in step 1.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="detailed-timeline">Detailed Timeline<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#detailed-timeline" class="hash-link" aria-label="Direct link to Detailed Timeline" title="Direct link to Detailed Timeline">​</a></h2>
<p>All times in UTC.</p>
<table><thead><tr><th>Time (UTC)</th><th>Step</th><th>Credential</th><th>Event</th></tr></thead><tbody><tr><td data-label="Time (UTC)" data-inline="">May 27, 18:53:14</td><td data-label="Step" data-inline="">0</td><td data-label="Credential" data-inline="">none</td><td data-label="Event"><code>opencode.json</code> with the LiteLLM Agent Platform administrative key is committed to the public <code>LiteLLM-Labs/lite-harness</code> repository</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 10, 21:13 to 21:28</td><td data-label="Step" data-inline="">1</td><td data-label="Credential" data-inline="">LAP key</td><td data-label="Event">The attacker calls the Agent Platform API from <code>69.48.229.143</code></td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 10, 21:27:10</td><td data-label="Step" data-inline="">1</td><td data-label="Credential" data-inline="">LAP key</td><td data-label="Event"><code>GET /api/v1/managed_agents/agents?limit=100</code> returns the owner's GitHub CLI token</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 10, 22:11:45</td><td data-label="Step" data-inline="">2</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">Workflow run on branch <code>ci-tmp-a351cc</code> of <code>BerriAI/litellm</code> posts six secrets, <code>GH_TOKEN</code> among them, to <code>webhook.site</code></td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 10, 22:12:09</td><td data-label="Step" data-inline="">3</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">Workflow run on branch <code>ci-tmp-be33e9</code> of <code>BerriAI/litellm-auto</code> posts <code>RELEASE_PLEASE_TOKEN</code> to the same endpoint</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 10, 22:14:14</td><td data-label="Step" data-inline="">2</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">The <code>BerriAI/litellm</code> run is deleted</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 10, 22:14:31</td><td data-label="Step" data-inline="">3</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">The <code>BerriAI/litellm-auto</code> run is deleted</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 12, 12:08-12:30</td><td data-label="Step" data-inline="">3</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">Workflows are run on a variety of private repos, posting all repository secrets to the same endpoint</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 10:08:29</td><td data-label="Step" data-inline="">4</td><td data-label="Credential">Second maintainer's token</td><td data-label="Event">Push of commit <code>9cf97e9</code> to <code>main</code> of <code>BerriAI/project-releaser</code> is rejected by branch protection</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 10:08:34</td><td data-label="Step" data-inline="">4</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">The same push succeeds by overriding branch protection</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 10:46:39</td><td data-label="Step" data-inline="">4</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">Staging workflow dispatched with the source set to the lookalike <code>Berri-AI/litellm</code> at commit <code>20535d8f</code></td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 11:08:09</td><td data-label="Step" data-inline="">4</td><td data-label="Credential" data-inline="">none</td><td data-label="Event" data-inline="">Staging run finishes</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 11:08:53</td><td data-label="Step" data-inline="">4</td><td data-label="Credential" data-inline="">none</td><td data-label="Event">Production release pipeline starts</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 11:11:18</td><td data-label="Step" data-inline="">5</td><td data-label="Credential">Second maintainer's token</td><td data-label="Event">Production environment gate approved from <code>199.91.221.39</code></td></tr><tr><td data-label="Time (UTC)">Oct 21, 11:39:51 to 11:40:13</td><td data-label="Step" data-inline="">5</td><td data-label="Credential" data-inline="">none</td><td data-label="Event">Seven <code>litellm==1.107.0</code> wheels are published to PyPI</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 11:46:56</td><td data-label="Step" data-inline="">5</td><td data-label="Credential" data-inline="">none</td><td data-label="Event">Docker Hub and GHCR images are published</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 11:53:49</td><td data-label="Step" data-inline="">6</td><td data-label="Credential" data-inline="">Third maintainer's token</td><td data-label="Event">Production run record deleted</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 11:54:01</td><td data-label="Step" data-inline="">6</td><td data-label="Credential" data-inline="">Third maintainer's token</td><td data-label="Event">Staging run record deleted</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 12:06:41</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event"><a href="https://github.com/LidorMachluf" target="_blank" rel="noopener noreferrer">LidorMachluf</a> publishes <a href="https://github.com/BerriAI/litellm/issues/47826" target="_blank" rel="noopener noreferrer">issue #47826</a> identifying the compromise</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 12:09:38</td><td data-label="Step" data-inline="">7</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event">Revert commit <code>285fbdc5</code> pushed to <code>main</code> by overriding branch protection</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 12:24:52</td><td data-label="Step" data-inline="">7</td><td data-label="Credential" data-inline="">Owner's token</td><td data-label="Event"><code>main</code> force-pushed back to <code>d687b69</code>, overriding the force-push block</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 13:02</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">LiteLLM begins incident response</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, by 13:23</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">PyPI quarantines <code>litellm==1.107.0</code></td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 13:50</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">LiteLLM adopts LidorMachluf's issue as the communication channel for status updates</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, by 13:51</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">The affected GHCR tags are made unavailable</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 14:19</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">LiteLLM identifies the release workflow as compromised and removes all GitHub permissions</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 14:20</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">Docker Hub tags <code>v1.107.0</code>, <code>latest</code>, <code>main-latest</code>, and <code>main-stable</code> are removed or repointed to verified clean images</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 21, 18:20</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">LiteLLM publishes the <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026">incident post</a></td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 22, 17:38</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">The Socket team reaches out with their independent <a href="https://socket.dev/blog/litellm-attack-timeline" target="_blank" rel="noopener noreferrer">investigation</a> into the malicious workflows used for credential exfiltration and release publication</td></tr><tr><td data-label="Time (UTC)" data-inline="">Oct 23, 21:00</td><td data-label="Step" data-inline="">-</td><td data-label="Credential" data-inline="">-</td><td data-label="Event">LiteLLM publishes this root cause analysis</td></tr></tbody></table>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="annotated-events">Annotated Events<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#annotated-events" class="hash-link" aria-label="Direct link to Annotated Events" title="Direct link to Annotated Events">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-1-the-lap-key-returns-a-github-token-october-10-2113-to-2128">Step 1: the LAP key returns a GitHub token (October 10, 21:13 to 21:28)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-1-the-lap-key-returns-a-github-token-october-10-2113-to-2128" class="hash-link" aria-label="Direct link to Step 1: the LAP key returns a GitHub token (October 10, 21:13 to 21:28)" title="Direct link to Step 1: the LAP key returns a GitHub token (October 10, 21:13 to 21:28)">​</a></h3>
<p>From <code>69.48.229.143</code>, the attacker called the Agent Platform API with the administrative key that had been committed to source.</p>
<ol>
<li>Between 21:13 and 21:28 the attacker made a series of authenticated requests to the API.</li>
<li>At 21:27:10 a request to <code>GET /api/v1/managed_agents/agents?limit=100</code> returned the configuration of every managed agent.</li>
<li>That response contained the GitHub CLI OAuth token of one of our two GitHub organization owners.</li>
</ol>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-2-a-throwaway-branch-exfiltrates-the-ci-secrets-of-berriailitellm-october-10-2211">Step 2: a throwaway branch exfiltrates the CI secrets of BerriAI/litellm (October 10, 22:11)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-2-a-throwaway-branch-exfiltrates-the-ci-secrets-of-berriailitellm-october-10-2211" class="hash-link" aria-label="Direct link to Step 2: a throwaway branch exfiltrates the CI secrets of BerriAI/litellm (October 10, 22:11)" title="Direct link to Step 2: a throwaway branch exfiltrates the CI secrets of BerriAI/litellm (October 10, 22:11)">​</a></h3>
<p>With the owner's token, the attacker turned a repository's own CI into the exfiltration channel.</p>
<ol>
<li>The attacker pushed commit <code>b69bc36</code> on a branch named <code>ci-tmp-a351cc</code> to <code>BerriAI/litellm</code>.</li>
<li>Its workflow run started at 22:11:45 and posted six repository secrets to an attacker-controlled <code>webhook.site</code> endpoint.</li>
<li>One of them, <code>GH_TOKEN</code>, held the GitHub CLI OAuth token of a second maintainer.</li>
<li>At 22:14:14 the attacker deleted the run with the owner's token.</li>
</ol>
<p>The GitHub audit log records a hash of the token behind each action, and the hash of <code>GH_TOKEN</code> matches the token that approved the release in step 5.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-3-further-exfiltrations-october-10-2212-october-12-1208-1230">Step 3: Further exfiltrations (October 10, 22:12; October 12 12:08-12:30)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-3-further-exfiltrations-october-10-2212-october-12-1208-1230" class="hash-link" aria-label="Direct link to Step 3: Further exfiltrations (October 10, 22:12; October 12 12:08-12:30)" title="Direct link to Step 3: Further exfiltrations (October 10, 22:12; October 12 12:08-12:30)">​</a></h3>
<ol>
<li>Twenty-four seconds after step 2, commit <code>78d968b</code> on branch <code>ci-tmp-be33e9</code> in <code>BerriAI/litellm-auto</code> ran a workflow that posted <code>RELEASE_PLEASE_TOKEN</code> to the same endpoint.</li>
<li>That secret held the GitHub CLI OAuth token of a third maintainer.</li>
<li>The run was deleted at 22:14:31.</li>
</ol>
<p>Its token hash matches the token that deleted the release runs in step 6.</p>
<p>In addition, the attacker ran a second round of exfiltrations two days later across a variety of private repos. This includes commit <code>1a6e3c1</code>, which exfiltrated some minimally sensitive secrets and minimally funded provider keys used in our CI testing. See the details in the <a href="https://socket.dev/blog/litellm-attack-timeline#Secrets-Targeted" target="_blank" rel="noopener noreferrer">Socket report</a>.</p>
<p>The additional secrets were not involved in the path taken towards the poisoned artifacts, and were resolved by rotating involved tokens and auditing security logs for access.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-4-the-release-workflow-is-pointed-at-a-fork-october-21-1008-to-1108">Step 4: the release workflow is pointed at a fork (October 21, 10:08 to 11:08)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-4-the-release-workflow-is-pointed-at-a-fork-october-21-1008-to-1108" class="hash-link" aria-label="Direct link to Step 4: the release workflow is pointed at a fork (October 21, 10:08 to 11:08)" title="Direct link to Step 4: the release workflow is pointed at a fork (October 21, 10:08 to 11:08)">​</a></h3>
<p>Our releases are built by workflows in the private <code>BerriAI/project-releaser</code> repository. From <code>199.91.221.39</code>, the attacker changed where those workflows take their source from.</p>
<ol>
<li>The attacker authored commit <code>9cf97e9</code> ("ci: release from a fork source repository") as the organization owner. Before this commit, the release workflows hardcoded <code>BerriAI</code> as the source owner. The commit replaced it with a new <code>source_owner</code> input, which let the release workflow build from a source repository other than <code>BerriAI/litellm</code>.</li>
<li>At 10:08:29 a push of that commit to <code>main</code> with the second maintainer's token was rejected by branch protection, which requires a pull request, two passing checks, and approval from the codeowner for this workflow.</li>
<li>At 10:08:34 the attacker disables branch protections and then force-pushes with the owner's token.</li>
<li>At 10:46:39 the attacker dispatched the staging workflow at <code>9cf97e9</code>, as the owner, with the source set to the lookalike <code>Berri-AI/litellm</code> at commit <code>20535d8f</code>.</li>
<li>The staging run finished at 11:08:09 and the production release pipeline started at 11:08:53.</li>
</ol>
<p>Commit <code>20535d8f</code> exists only on the attacker's fork, but it opens at <code>github.com/BerriAI/litellm/commit/20535d8f</code> because GitHub serves a fork's commits through the repository it was forked from.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-5-the-production-gate-is-approved-with-a-stolen-token-111118">Step 5: the production gate is approved with a stolen token (11:11:18)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-5-the-production-gate-is-approved-with-a-stolen-token-111118" class="hash-link" aria-label="Direct link to Step 5: the production gate is approved with a stolen token (11:11:18)" title="Direct link to Step 5: the production gate is approved with a stolen token (11:11:18)">​</a></h3>
<ol>
<li>The second maintainer's token approved the production environment gate of the release run, from <code>199.91.221.39</code>.</li>
<li>The pipeline signed and published <code>v1.107.0</code> built from the fork commit.</li>
<li>Seven PyPI wheels went out between 11:39:51 and 11:40:13.</li>
<li>The Docker Hub and GHCR images went out at 11:46:56.</li>
</ol>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-6-the-run-records-are-deleted-1153">Step 6: the run records are deleted (11:53)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-6-the-run-records-are-deleted-1153" class="hash-link" aria-label="Direct link to Step 6: the run records are deleted (11:53)" title="Direct link to Step 6: the run records are deleted (11:53)">​</a></h3>
<ol>
<li>The third maintainer's token deleted the production run record at 11:53:49.</li>
<li>It deleted the staging run record at 11:54:01.</li>
</ol>
<p>Both deletions removed the workflow logs from the repository.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="step-7-the-workflow-history-is-force-pushed-clean-1209-to-1224">Step 7: the workflow history is force-pushed clean (12:09 to 12:24)<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#step-7-the-workflow-history-is-force-pushed-clean-1209-to-1224" class="hash-link" aria-label="Direct link to Step 7: the workflow history is force-pushed clean (12:09 to 12:24)" title="Direct link to Step 7: the workflow history is force-pushed clean (12:09 to 12:24)">​</a></h3>
<p>With the owner's token, again by overriding branch protection, the attacker removed the change from the visible history.</p>
<ol>
<li>At 12:09:32 the attacker committed a revert of <code>9cf97e9</code>, commit <code>285fbdc5</code>, and pushed it at 12:09:38.</li>
<li>At 12:24:52 they force-pushed <code>main</code> back to <code>d687b69</code>, the commit before the change, overriding GitHub's force-push block as well.</li>
</ol>
<p><code>main</code> then showed neither the change nor the revert. Both commits are still retrievable by SHA, and the organization audit log recorded each override.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="acknowledgements">Acknowledgements<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#acknowledgements" class="hash-link" aria-label="Direct link to Acknowledgements" title="Direct link to Acknowledgements">​</a></h2>
<p>We would like to thank <a href="https://github.com/LidorMachluf" target="_blank" rel="noopener noreferrer">Lidor Machluf from Upwind Security</a> for his service to the open source community by catching the malicious release within 20 minutes of publication, maintaining a thorough writeup of the issue, and keeping it up to date with ongoing analysis and information.</p>
<p>We would also like to thank Karlo Zanki and the Socket Threat Research team for sharing their investigation with us and coordinating on disclosure of their findings.</p>
<p>Additionally, we want to give a big thanks to Asritha Bodepudi and Evan Sultanik at <a href="https://trailofbits.com/" target="_blank" rel="noopener noreferrer">Trail of Bits</a>, who have been assisting us with internal security audits as part of <a href="https://trailofbits.com/patch-the-planet/" target="_blank" rel="noopener noreferrer">Patch the Planet</a> and were also very helpful in addressing, investigating, and communicating about this incident.</p>
<p>Finally, we are very grateful to Ryan McGeehan of R10N Security for his advice, assistance, and contacts across the industry to quickly get otherwise inaccessible information about our cloud accounts, which was enormously helpful in confirming or ruling out potential attack paths.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="indicators">Indicators<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#indicators" class="hash-link" aria-label="Direct link to Indicators" title="Direct link to Indicators">​</a></h2>
<table><thead><tr><th>Indicator</th><th>Value</th><th>Where it appears</th></tr></thead><tbody><tr><td data-label="Indicator" data-inline="">IP address</td><td data-label="Value" data-inline=""><code>69.48.229.143</code></td><td data-label="Where it appears">Agent Platform API requests on October 10</td></tr><tr><td data-label="Indicator" data-inline="">IP address</td><td data-label="Value" data-inline=""><code>199.91.221.39</code></td><td data-label="Where it appears"><code>BerriAI/project-releaser</code> pushes and the gate approval on October 21</td></tr><tr><td data-label="Indicator" data-inline="">Lookalike organization</td><td data-label="Value" data-inline=""><code>Berri-AI</code></td><td data-label="Where it appears">Fork of <code>BerriAI/litellm</code> used as the release source</td></tr><tr><td data-label="Indicator" data-inline="">Commit</td><td data-label="Value" data-inline=""><code>20535d8f</code></td><td data-label="Where it appears">The fork commit the release was built from</td></tr><tr><td data-label="Indicator" data-inline="">Branch</td><td data-label="Value" data-inline=""><code>ci-tmp-a351cc</code></td><td data-label="Where it appears"><code>BerriAI/litellm</code>, workflow posting secrets to <code>webhook.site</code></td></tr><tr><td data-label="Indicator" data-inline="">Branch</td><td data-label="Value" data-inline=""><code>ci-tmp-be33e9</code></td><td data-label="Where it appears"><code>BerriAI/litellm-auto</code>, workflow posting secrets to <code>webhook.site</code></td></tr><tr><td data-label="Indicator" data-inline="">Commit</td><td data-label="Value" data-inline=""><code>9cf97e9</code></td><td data-label="Where it appears"><code>BerriAI/project-releaser</code>, the workflow change, outside the history of <code>main</code></td></tr><tr><td data-label="Indicator" data-inline="">Commit</td><td data-label="Value" data-inline=""><code>285fbdc5</code></td><td data-label="Where it appears"><code>BerriAI/project-releaser</code>, the revert, outside the history of <code>main</code></td></tr></tbody></table>
<p>The compromised artifacts were live for about two hours before they were pulled. The <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026">incident post</a> lists the affected versions, how to check for exposure, and the cleanup steps. If you discover a security issue in LiteLLM, please report it through our <a href="https://github.com/BerriAI/litellm/security" target="_blank" rel="noopener noreferrer">bug bounty program</a>.</p>]]></content>
        <author>
            <name>Oliver Jensen</name>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <category label="security" term="security"/>
        <category label="incident-report" term="incident-report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Tokenize text across vLLM and Watsonx]]></title>
        <id>https://docs.litellm.ai/blog/unified-tokenize</id>
        <link href="https://docs.litellm.ai/blog/unified-tokenize"/>
        <updated>2026-10-23T20:00:00.000Z</updated>
        <summary type="html"><![CDATA[Choose token counting for prompt budgets or /tokenize to inspect tokens. Use one request format across vLLM and Watsonx through LiteLLM.]]></summary>
        <content type="html"><![CDATA[<div data-blog-summary="true" hidden=""><p>Send text to vLLM or Watsonx through one LiteLLM tokenization interface. Your app passes a model name, such as <code>llama-3.1-8b</code>, and a prompt to <code>/tokenize</code>. Configure the provider URL and credentials in your gateway.</p><p>Choose another configured model by changing <code>model</code>; keep the same endpoint and JSON fields. Read the token count, numeric IDs and token strings where the provider supplies them. LiteLLM runs the provider integration in Rust and reuses shared HTTP clients.</p><p>To run the examples, use a build containing <a href="https://github.com/BerriAI/litellm/pull/48079" target="_blank" rel="noopener noreferrer">PR #48079</a> and its compiled Rust extension. Use token counting for context limits and input cost estimates. Choose /tokenize to inspect a text string’s token list or compare tokenizer settings across deployments.</p></div>
<div class="root_BhC1" data-full-width="true"><header class="hero_R96K"><div class="heroInner_Itz0"><div class="heroTop_kzAX"><a aria-label="Back to the LiteLLM blog" href="https://docs.litellm.ai/blog"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" width="136" height="27" alt="LiteLLM"></a><span>OCTOBER 2026</span></div><div class="heroTitle_J9RZ"><h1>/tokenize</h1><p class="heroSubtitle_MIUA">One API for<br> vLLM + Watsonx</p></div><p class="heroIntro_RVQ2">Choose a model. Inspect your prompt’s tokens through the same API for vLLM and Watsonx.</p><figure class="scene_PEPy" aria-label="A prompt flows through LiteLLM to a unified JSON response"><div class="stage_bf0E"><svg class="canvas_r8aa" viewBox="0 0 696 300" aria-hidden="true" focusable="false"><g><path d="M329 112C395 112 450 150 522 150S620 104 696 104" class="routeGuide_RCp4"></path><path d="M329 112C395 112 450 150 522 150S620 104 696 104" class="movingDots_ugiT" style="--delay:0s"></path></g><g><path d="M329 142C395 142 450 150 522 150S620 134 696 134" class="routeGuide_RCp4"></path><path d="M329 142C395 142 450 150 522 150S620 134 696 134" class="movingDots_ugiT" style="--delay:-0.25s"></path></g><g><path d="M329 172C395 172 450 150 522 150S620 164 696 164" class="routeGuide_RCp4"></path><path d="M329 172C395 172 450 150 522 150S620 164 696 164" class="movingDots_ugiT" style="--delay:-0.5s"></path></g><g><path d="M329 202C395 202 450 150 522 150S620 194 696 194" class="routeGuide_RCp4"></path><path d="M329 202C395 202 450 150 522 150S620 194 696 194" class="movingDots_ugiT" style="--delay:-0.75s"></path></g><g transform="translate(174 150)"><g class="dots_VCAD"><path d="M-155.00,-49.00h.01 M-151.07,-49.69h.01 M-147.13,-50.38h.01 M-143.20,-51.07h.01 M-139.26,-51.75h.01 M-135.33,-52.44h.01 M-131.39,-53.13h.01 M-127.46,-53.82h.01 M-123.52,-54.51h.01 M-119.59,-55.20h.01 M-115.66,-55.89h.01 M-111.72,-56.57h.01 M-107.79,-57.26h.01 M-103.85,-57.95h.01 M-99.92,-58.64h.01 M-95.98,-59.33h.01 M-92.05,-60.02h.01 M-88.11,-60.70h.01 M-84.18,-61.39h.01 M-80.25,-62.08h.01 M-76.31,-62.77h.01 M-72.38,-63.46h.01 M-68.44,-64.15h.01 M-64.51,-64.84h.01 M-60.57,-65.52h.01 M-56.64,-66.21h.01 M-52.70,-66.90h.01 M-48.77,-67.59h.01 M-44.84,-68.28h.01 M-40.90,-68.97h.01 M-36.97,-69.66h.01 M-33.03,-70.34h.01 M-29.10,-71.03h.01 M-25.16,-71.72h.01 M-21.23,-72.41h.01 M-17.30,-73.10h.01 M-13.36,-73.79h.01 M-9.43,-74.48h.01 M-5.49,-75.16h.01 M-1.56,-75.85h.01 M2.38,-76.54h.01 M6.31,-77.23h.01 M10.25,-77.92h.01 M14.18,-78.61h.01 M18.11,-79.30h.01 M22.05,-79.98h.01 M25.98,-80.67h.01 M29.92,-81.36h.01 M33.85,-82.05h.01 M37.79,-82.74h.01 M41.72,-83.43h.01 M45.66,-84.11h.01 M49.59,-84.80h.01 M53.52,-85.49h.01 M57.46,-86.18h.01 M61.39,-86.87h.01 M65.33,-87.56h.01 M69.26,-88.25h.01 M73.20,-88.93h.01 M77.13,-89.62h.01 M81.07,-90.31h.01 M85.00,-91.00h.01 M85.00,-91.00h.01 M86.75,-87.50h.01 M88.50,-84.00h.01 M90.25,-80.50h.01 M92.00,-77.00h.01 M93.75,-73.50h.01 M95.50,-70.00h.01 M97.25,-66.50h.01 M99.00,-63.00h.01 M100.75,-59.50h.01 M102.50,-56.00h.01 M104.25,-52.50h.01 M106.00,-49.00h.01 M107.75,-45.50h.01 M109.50,-42.00h.01 M111.25,-38.50h.01 M113.00,-35.00h.01 M114.75,-31.50h.01 M116.50,-28.00h.01 M118.25,-24.50h.01 M120.00,-21.00h.01 M121.75,-17.50h.01 M123.50,-14.00h.01 M125.25,-10.50h.01 M127.00,-7.00h.01 M128.75,-3.50h.01 M130.50,0.00h.01 M132.25,3.50h.01 M134.00,7.00h.01 M135.75,10.50h.01 M137.50,14.00h.01 M139.25,17.50h.01 M141.00,21.00h.01 M142.75,24.50h.01 M144.50,28.00h.01 M146.25,31.50h.01 M148.00,35.00h.01 M149.75,38.50h.01 M151.50,42.00h.01 M153.25,45.50h.01 M155.00,49.00h.01 M155.00,49.00h.01 M151.07,49.69h.01 M147.13,50.38h.01 M143.20,51.07h.01 M139.26,51.75h.01 M135.33,52.44h.01 M131.39,53.13h.01 M127.46,53.82h.01 M123.52,54.51h.01 M119.59,55.20h.01 M115.66,55.89h.01 M111.72,56.57h.01 M107.79,57.26h.01 M103.85,57.95h.01 M99.92,58.64h.01 M95.98,59.33h.01 M92.05,60.02h.01 M88.11,60.70h.01 M84.18,61.39h.01 M80.25,62.08h.01 M76.31,62.77h.01 M72.38,63.46h.01 M68.44,64.15h.01 M64.51,64.84h.01 M60.57,65.52h.01 M56.64,66.21h.01 M52.70,66.90h.01 M48.77,67.59h.01 M44.84,68.28h.01 M40.90,68.97h.01 M36.97,69.66h.01 M33.03,70.34h.01 M29.10,71.03h.01 M25.16,71.72h.01 M21.23,72.41h.01 M17.30,73.10h.01 M13.36,73.79h.01 M9.43,74.48h.01 M5.49,75.16h.01 M1.56,75.85h.01 M-2.38,76.54h.01 M-6.31,77.23h.01 M-10.25,77.92h.01 M-14.18,78.61h.01 M-18.11,79.30h.01 M-22.05,79.98h.01 M-25.98,80.67h.01 M-29.92,81.36h.01 M-33.85,82.05h.01 M-37.79,82.74h.01 M-41.72,83.43h.01 M-45.66,84.11h.01 M-49.59,84.80h.01 M-53.52,85.49h.01 M-57.46,86.18h.01 M-61.39,86.87h.01 M-65.33,87.56h.01 M-69.26,88.25h.01 M-73.20,88.93h.01 M-77.13,89.62h.01 M-81.07,90.31h.01 M-85.00,91.00h.01 M-85.00,91.00h.01 M-86.75,87.50h.01 M-88.50,84.00h.01 M-90.25,80.50h.01 M-92.00,77.00h.01 M-93.75,73.50h.01 M-95.50,70.00h.01 M-97.25,66.50h.01 M-99.00,63.00h.01 M-100.75,59.50h.01 M-102.50,56.00h.01 M-104.25,52.50h.01 M-106.00,49.00h.01 M-107.75,45.50h.01 M-109.50,42.00h.01 M-111.25,38.50h.01 M-113.00,35.00h.01 M-114.75,31.50h.01 M-116.50,28.00h.01 M-118.25,24.50h.01 M-120.00,21.00h.01 M-121.75,17.50h.01 M-123.50,14.00h.01 M-125.25,10.50h.01 M-127.00,7.00h.01 M-128.75,3.50h.01 M-130.50,0.00h.01 M-132.25,-3.50h.01 M-134.00,-7.00h.01 M-135.75,-10.50h.01 M-137.50,-14.00h.01 M-139.25,-17.50h.01 M-141.00,-21.00h.01 M-142.75,-24.50h.01 M-144.50,-28.00h.01 M-146.25,-31.50h.01 M-148.00,-35.00h.01 M-149.75,-38.50h.01 M-151.50,-42.00h.01 M-153.25,-45.50h.01 M-155.00,-49.00h.01" transform="translate(-12 26)" class="faintDots_j5Lm"></path><path d="M-155.00,-49.00h.01 M-151.07,-49.69h.01 M-147.13,-50.38h.01 M-143.20,-51.07h.01 M-139.26,-51.75h.01 M-135.33,-52.44h.01 M-131.39,-53.13h.01 M-127.46,-53.82h.01 M-123.52,-54.51h.01 M-119.59,-55.20h.01 M-115.66,-55.89h.01 M-111.72,-56.57h.01 M-107.79,-57.26h.01 M-103.85,-57.95h.01 M-99.92,-58.64h.01 M-95.98,-59.33h.01 M-92.05,-60.02h.01 M-88.11,-60.70h.01 M-84.18,-61.39h.01 M-80.25,-62.08h.01 M-76.31,-62.77h.01 M-72.38,-63.46h.01 M-68.44,-64.15h.01 M-64.51,-64.84h.01 M-60.57,-65.52h.01 M-56.64,-66.21h.01 M-52.70,-66.90h.01 M-48.77,-67.59h.01 M-44.84,-68.28h.01 M-40.90,-68.97h.01 M-36.97,-69.66h.01 M-33.03,-70.34h.01 M-29.10,-71.03h.01 M-25.16,-71.72h.01 M-21.23,-72.41h.01 M-17.30,-73.10h.01 M-13.36,-73.79h.01 M-9.43,-74.48h.01 M-5.49,-75.16h.01 M-1.56,-75.85h.01 M2.38,-76.54h.01 M6.31,-77.23h.01 M10.25,-77.92h.01 M14.18,-78.61h.01 M18.11,-79.30h.01 M22.05,-79.98h.01 M25.98,-80.67h.01 M29.92,-81.36h.01 M33.85,-82.05h.01 M37.79,-82.74h.01 M41.72,-83.43h.01 M45.66,-84.11h.01 M49.59,-84.80h.01 M53.52,-85.49h.01 M57.46,-86.18h.01 M61.39,-86.87h.01 M65.33,-87.56h.01 M69.26,-88.25h.01 M73.20,-88.93h.01 M77.13,-89.62h.01 M81.07,-90.31h.01 M85.00,-91.00h.01 M85.00,-91.00h.01 M86.75,-87.50h.01 M88.50,-84.00h.01 M90.25,-80.50h.01 M92.00,-77.00h.01 M93.75,-73.50h.01 M95.50,-70.00h.01 M97.25,-66.50h.01 M99.00,-63.00h.01 M100.75,-59.50h.01 M102.50,-56.00h.01 M104.25,-52.50h.01 M106.00,-49.00h.01 M107.75,-45.50h.01 M109.50,-42.00h.01 M111.25,-38.50h.01 M113.00,-35.00h.01 M114.75,-31.50h.01 M116.50,-28.00h.01 M118.25,-24.50h.01 M120.00,-21.00h.01 M121.75,-17.50h.01 M123.50,-14.00h.01 M125.25,-10.50h.01 M127.00,-7.00h.01 M128.75,-3.50h.01 M130.50,0.00h.01 M132.25,3.50h.01 M134.00,7.00h.01 M135.75,10.50h.01 M137.50,14.00h.01 M139.25,17.50h.01 M141.00,21.00h.01 M142.75,24.50h.01 M144.50,28.00h.01 M146.25,31.50h.01 M148.00,35.00h.01 M149.75,38.50h.01 M151.50,42.00h.01 M153.25,45.50h.01 M155.00,49.00h.01 M155.00,49.00h.01 M151.07,49.69h.01 M147.13,50.38h.01 M143.20,51.07h.01 M139.26,51.75h.01 M135.33,52.44h.01 M131.39,53.13h.01 M127.46,53.82h.01 M123.52,54.51h.01 M119.59,55.20h.01 M115.66,55.89h.01 M111.72,56.57h.01 M107.79,57.26h.01 M103.85,57.95h.01 M99.92,58.64h.01 M95.98,59.33h.01 M92.05,60.02h.01 M88.11,60.70h.01 M84.18,61.39h.01 M80.25,62.08h.01 M76.31,62.77h.01 M72.38,63.46h.01 M68.44,64.15h.01 M64.51,64.84h.01 M60.57,65.52h.01 M56.64,66.21h.01 M52.70,66.90h.01 M48.77,67.59h.01 M44.84,68.28h.01 M40.90,68.97h.01 M36.97,69.66h.01 M33.03,70.34h.01 M29.10,71.03h.01 M25.16,71.72h.01 M21.23,72.41h.01 M17.30,73.10h.01 M13.36,73.79h.01 M9.43,74.48h.01 M5.49,75.16h.01 M1.56,75.85h.01 M-2.38,76.54h.01 M-6.31,77.23h.01 M-10.25,77.92h.01 M-14.18,78.61h.01 M-18.11,79.30h.01 M-22.05,79.98h.01 M-25.98,80.67h.01 M-29.92,81.36h.01 M-33.85,82.05h.01 M-37.79,82.74h.01 M-41.72,83.43h.01 M-45.66,84.11h.01 M-49.59,84.80h.01 M-53.52,85.49h.01 M-57.46,86.18h.01 M-61.39,86.87h.01 M-65.33,87.56h.01 M-69.26,88.25h.01 M-73.20,88.93h.01 M-77.13,89.62h.01 M-81.07,90.31h.01 M-85.00,91.00h.01 M-85.00,91.00h.01 M-86.75,87.50h.01 M-88.50,84.00h.01 M-90.25,80.50h.01 M-92.00,77.00h.01 M-93.75,73.50h.01 M-95.50,70.00h.01 M-97.25,66.50h.01 M-99.00,63.00h.01 M-100.75,59.50h.01 M-102.50,56.00h.01 M-104.25,52.50h.01 M-106.00,49.00h.01 M-107.75,45.50h.01 M-109.50,42.00h.01 M-111.25,38.50h.01 M-113.00,35.00h.01 M-114.75,31.50h.01 M-116.50,28.00h.01 M-118.25,24.50h.01 M-120.00,21.00h.01 M-121.75,17.50h.01 M-123.50,14.00h.01 M-125.25,10.50h.01 M-127.00,7.00h.01 M-128.75,3.50h.01 M-130.50,0.00h.01 M-132.25,-3.50h.01 M-134.00,-7.00h.01 M-135.75,-10.50h.01 M-137.50,-14.00h.01 M-139.25,-17.50h.01 M-141.00,-21.00h.01 M-142.75,-24.50h.01 M-144.50,-28.00h.01 M-146.25,-31.50h.01 M-148.00,-35.00h.01 M-149.75,-38.50h.01 M-151.50,-42.00h.01 M-153.25,-45.50h.01 M-155.00,-49.00h.01" transform="translate(-6 13)" class="faintDots_j5Lm"></path></g><g class="dots_VCAD"><path d="M-155.00,-49.00h.01 M-151.07,-49.69h.01 M-147.13,-50.38h.01 M-143.20,-51.07h.01 M-139.26,-51.75h.01 M-135.33,-52.44h.01 M-131.39,-53.13h.01 M-127.46,-53.82h.01 M-123.52,-54.51h.01 M-119.59,-55.20h.01 M-115.66,-55.89h.01 M-111.72,-56.57h.01 M-107.79,-57.26h.01 M-103.85,-57.95h.01 M-99.92,-58.64h.01 M-95.98,-59.33h.01 M-92.05,-60.02h.01 M-88.11,-60.70h.01 M-84.18,-61.39h.01 M-80.25,-62.08h.01 M-76.31,-62.77h.01 M-72.38,-63.46h.01 M-68.44,-64.15h.01 M-64.51,-64.84h.01 M-60.57,-65.52h.01 M-56.64,-66.21h.01 M-52.70,-66.90h.01 M-48.77,-67.59h.01 M-44.84,-68.28h.01 M-40.90,-68.97h.01 M-36.97,-69.66h.01 M-33.03,-70.34h.01 M-29.10,-71.03h.01 M-25.16,-71.72h.01 M-21.23,-72.41h.01 M-17.30,-73.10h.01 M-13.36,-73.79h.01 M-9.43,-74.48h.01 M-5.49,-75.16h.01 M-1.56,-75.85h.01 M2.38,-76.54h.01 M6.31,-77.23h.01 M10.25,-77.92h.01 M14.18,-78.61h.01 M18.11,-79.30h.01 M22.05,-79.98h.01 M25.98,-80.67h.01 M29.92,-81.36h.01 M33.85,-82.05h.01 M37.79,-82.74h.01 M41.72,-83.43h.01 M45.66,-84.11h.01 M49.59,-84.80h.01 M53.52,-85.49h.01 M57.46,-86.18h.01 M61.39,-86.87h.01 M65.33,-87.56h.01 M69.26,-88.25h.01 M73.20,-88.93h.01 M77.13,-89.62h.01 M81.07,-90.31h.01 M85.00,-91.00h.01 M85.00,-91.00h.01 M86.75,-87.50h.01 M88.50,-84.00h.01 M90.25,-80.50h.01 M92.00,-77.00h.01 M93.75,-73.50h.01 M95.50,-70.00h.01 M97.25,-66.50h.01 M99.00,-63.00h.01 M100.75,-59.50h.01 M102.50,-56.00h.01 M104.25,-52.50h.01 M106.00,-49.00h.01 M107.75,-45.50h.01 M109.50,-42.00h.01 M111.25,-38.50h.01 M113.00,-35.00h.01 M114.75,-31.50h.01 M116.50,-28.00h.01 M118.25,-24.50h.01 M120.00,-21.00h.01 M121.75,-17.50h.01 M123.50,-14.00h.01 M125.25,-10.50h.01 M127.00,-7.00h.01 M128.75,-3.50h.01 M130.50,0.00h.01 M132.25,3.50h.01 M134.00,7.00h.01 M135.75,10.50h.01 M137.50,14.00h.01 M139.25,17.50h.01 M141.00,21.00h.01 M142.75,24.50h.01 M144.50,28.00h.01 M146.25,31.50h.01 M148.00,35.00h.01 M149.75,38.50h.01 M151.50,42.00h.01 M153.25,45.50h.01 M155.00,49.00h.01 M155.00,49.00h.01 M151.07,49.69h.01 M147.13,50.38h.01 M143.20,51.07h.01 M139.26,51.75h.01 M135.33,52.44h.01 M131.39,53.13h.01 M127.46,53.82h.01 M123.52,54.51h.01 M119.59,55.20h.01 M115.66,55.89h.01 M111.72,56.57h.01 M107.79,57.26h.01 M103.85,57.95h.01 M99.92,58.64h.01 M95.98,59.33h.01 M92.05,60.02h.01 M88.11,60.70h.01 M84.18,61.39h.01 M80.25,62.08h.01 M76.31,62.77h.01 M72.38,63.46h.01 M68.44,64.15h.01 M64.51,64.84h.01 M60.57,65.52h.01 M56.64,66.21h.01 M52.70,66.90h.01 M48.77,67.59h.01 M44.84,68.28h.01 M40.90,68.97h.01 M36.97,69.66h.01 M33.03,70.34h.01 M29.10,71.03h.01 M25.16,71.72h.01 M21.23,72.41h.01 M17.30,73.10h.01 M13.36,73.79h.01 M9.43,74.48h.01 M5.49,75.16h.01 M1.56,75.85h.01 M-2.38,76.54h.01 M-6.31,77.23h.01 M-10.25,77.92h.01 M-14.18,78.61h.01 M-18.11,79.30h.01 M-22.05,79.98h.01 M-25.98,80.67h.01 M-29.92,81.36h.01 M-33.85,82.05h.01 M-37.79,82.74h.01 M-41.72,83.43h.01 M-45.66,84.11h.01 M-49.59,84.80h.01 M-53.52,85.49h.01 M-57.46,86.18h.01 M-61.39,86.87h.01 M-65.33,87.56h.01 M-69.26,88.25h.01 M-73.20,88.93h.01 M-77.13,89.62h.01 M-81.07,90.31h.01 M-85.00,91.00h.01 M-85.00,91.00h.01 M-86.75,87.50h.01 M-88.50,84.00h.01 M-90.25,80.50h.01 M-92.00,77.00h.01 M-93.75,73.50h.01 M-95.50,70.00h.01 M-97.25,66.50h.01 M-99.00,63.00h.01 M-100.75,59.50h.01 M-102.50,56.00h.01 M-104.25,52.50h.01 M-106.00,49.00h.01 M-107.75,45.50h.01 M-109.50,42.00h.01 M-111.25,38.50h.01 M-113.00,35.00h.01 M-114.75,31.50h.01 M-116.50,28.00h.01 M-118.25,24.50h.01 M-120.00,21.00h.01 M-121.75,17.50h.01 M-123.50,14.00h.01 M-125.25,10.50h.01 M-127.00,7.00h.01 M-128.75,3.50h.01 M-130.50,0.00h.01 M-132.25,-3.50h.01 M-134.00,-7.00h.01 M-135.75,-10.50h.01 M-137.50,-14.00h.01 M-139.25,-17.50h.01 M-141.00,-21.00h.01 M-142.75,-24.50h.01 M-144.50,-28.00h.01 M-146.25,-31.50h.01 M-148.00,-35.00h.01 M-149.75,-38.50h.01 M-151.50,-42.00h.01 M-153.25,-45.50h.01 M-155.00,-49.00h.01" transform="translate(-7 13)" class="faintDots_j5Lm"></path><path d="M-146.37,-44.17h.01 M-143.45,-38.33h.01 M-140.54,-32.50h.01 M-137.62,-26.67h.01 M-134.70,-20.83h.01 M-131.79,-15.00h.01 M-128.87,-9.17h.01 M-125.95,-3.33h.01 M-123.04,2.50h.01 M-120.12,8.33h.01 M-117.20,14.17h.01 M-114.29,20.00h.01 M-111.37,25.83h.01 M-108.45,31.67h.01 M-105.54,37.50h.01 M-102.62,43.33h.01 M-99.70,49.17h.01 M-96.79,55.00h.01 M-93.87,60.83h.01 M-90.95,66.67h.01 M-88.04,72.50h.01 M-85.12,78.33h.01 M-82.20,84.17h.01 M-140.65,-45.17h.01 M-137.74,-39.33h.01 M-134.82,-33.50h.01 M-131.90,-27.67h.01 M-128.99,-21.83h.01 M-126.07,-16.00h.01 M-123.15,-10.17h.01 M-120.24,-4.33h.01 M-117.32,1.50h.01 M-114.40,7.33h.01 M-111.49,13.17h.01 M-108.57,19.00h.01 M-105.65,24.83h.01 M-102.74,30.67h.01 M-99.82,36.50h.01 M-96.90,42.33h.01 M-93.99,48.17h.01 M-91.07,54.00h.01 M-88.15,59.83h.01 M-85.24,65.67h.01 M-82.32,71.50h.01 M-79.40,77.33h.01 M-76.49,83.17h.01 M-134.94,-46.17h.01 M-132.02,-40.33h.01 M-129.11,-34.50h.01 M-126.19,-28.67h.01 M-123.27,-22.83h.01 M-120.36,-17.00h.01 M-117.44,-11.17h.01 M-114.52,-5.33h.01 M-111.61,0.50h.01 M-108.69,6.33h.01 M-105.77,12.17h.01 M-102.86,18.00h.01 M-99.94,23.83h.01 M-97.02,29.67h.01 M-94.11,35.50h.01 M-91.19,41.33h.01 M-88.27,47.17h.01 M-85.36,53.00h.01 M-82.44,58.83h.01 M-79.52,64.67h.01 M-76.61,70.50h.01 M-73.69,76.33h.01 M-70.77,82.17h.01 M-129.23,-47.17h.01 M-126.31,-41.33h.01 M-123.39,-35.50h.01 M-120.48,-29.67h.01 M-117.56,-23.83h.01 M-114.64,-18.00h.01 M-111.73,-12.17h.01 M-108.81,-6.33h.01 M-105.89,-0.50h.01 M-102.98,5.33h.01 M-100.06,11.17h.01 M-97.14,17.00h.01 M-94.23,22.83h.01 M-91.31,28.67h.01 M-88.39,34.50h.01 M-85.48,40.33h.01 M-82.56,46.17h.01 M-79.64,52.00h.01 M-76.73,57.83h.01 M-73.81,63.67h.01 M-70.89,69.50h.01 M-67.98,75.33h.01 M-65.06,81.17h.01 M-123.51,-48.17h.01 M-120.60,-42.33h.01 M-117.68,-36.50h.01 M-114.76,-30.67h.01 M-111.85,-24.83h.01 M-108.93,-19.00h.01 M-106.01,-13.17h.01 M-103.10,-7.33h.01 M-100.18,-1.50h.01 M-97.26,4.33h.01 M-94.35,10.17h.01 M-91.43,16.00h.01 M-88.51,21.83h.01 M-85.60,27.67h.01 M-82.68,33.50h.01 M-79.76,39.33h.01 M-76.85,45.17h.01 M-73.93,51.00h.01 M-71.01,56.83h.01 M-68.10,62.67h.01 M-65.18,68.50h.01 M-62.26,74.33h.01 M-59.35,80.17h.01 M-117.80,-49.17h.01 M-114.88,-43.33h.01 M-111.96,-37.50h.01 M-109.05,-31.67h.01 M-106.13,-25.83h.01 M-103.21,-20.00h.01 M-100.30,-14.17h.01 M-97.38,-8.33h.01 M-94.46,-2.50h.01 M-91.55,3.33h.01 M-88.63,9.17h.01 M-85.71,15.00h.01 M-82.80,20.83h.01 M-79.88,26.67h.01 M-76.96,32.50h.01 M-74.05,38.33h.01 M-71.13,44.17h.01 M-68.21,50.00h.01 M-65.30,55.83h.01 M-62.38,61.67h.01 M-59.46,67.50h.01 M-56.55,73.33h.01 M-53.63,79.17h.01 M-112.08,-50.17h.01 M-109.17,-44.33h.01 M-106.25,-38.50h.01 M-103.33,-32.67h.01 M-100.42,-26.83h.01 M-97.50,-21.00h.01 M-94.58,-15.17h.01 M-91.67,-9.33h.01 M-88.75,-3.50h.01 M-85.83,2.33h.01 M-82.92,8.17h.01 M-80.00,14.00h.01 M-77.08,19.83h.01 M-74.17,25.67h.01 M-71.25,31.50h.01 M-68.33,37.33h.01 M-65.42,43.17h.01 M-62.50,49.00h.01 M-59.58,54.83h.01 M-56.67,60.67h.01 M-53.75,66.50h.01 M-50.83,72.33h.01 M-47.92,78.17h.01 M-106.37,-51.17h.01 M-103.45,-45.33h.01 M-100.54,-39.50h.01 M-97.62,-33.67h.01 M-94.70,-27.83h.01 M-91.79,-22.00h.01 M-88.87,-16.17h.01 M-85.95,-10.33h.01 M-83.04,-4.50h.01 M-80.12,1.33h.01 M-77.20,7.17h.01 M-74.29,13.00h.01 M-71.37,18.83h.01 M-68.45,24.67h.01 M-65.54,30.50h.01 M-62.62,36.33h.01 M-59.70,42.17h.01 M-56.79,48.00h.01 M-53.87,53.83h.01 M-50.95,59.67h.01 M-48.04,65.50h.01 M-45.12,71.33h.01 M-42.20,77.17h.01 M-100.65,-52.17h.01 M-97.74,-46.33h.01 M-94.82,-40.50h.01 M-91.90,-34.67h.01 M-88.99,-28.83h.01 M-86.07,-23.00h.01 M-83.15,-17.17h.01 M-80.24,-11.33h.01 M-77.32,-5.50h.01 M-74.40,0.33h.01 M-71.49,6.17h.01 M-68.57,12.00h.01 M-65.65,17.83h.01 M-62.74,23.67h.01 M-59.82,29.50h.01 M-56.90,35.33h.01 M-53.99,41.17h.01 M-51.07,47.00h.01 M-48.15,52.83h.01 M-45.24,58.67h.01 M-42.32,64.50h.01 M-39.40,70.33h.01 M-36.49,76.17h.01 M-94.94,-53.17h.01 M-92.02,-47.33h.01 M-89.11,-41.50h.01 M-86.19,-35.67h.01 M-83.27,-29.83h.01 M-80.36,-24.00h.01 M-77.44,-18.17h.01 M-74.52,-12.33h.01 M-71.61,-6.50h.01 M-68.69,-0.67h.01 M-65.77,5.17h.01 M-62.86,11.00h.01 M-59.94,16.83h.01 M-57.02,22.67h.01 M-54.11,28.50h.01 M-51.19,34.33h.01 M-48.27,40.17h.01 M-45.36,46.00h.01 M-42.44,51.83h.01 M-39.52,57.67h.01 M-36.61,63.50h.01 M-33.69,69.33h.01 M-30.77,75.17h.01 M-89.23,-54.17h.01 M-86.31,-48.33h.01 M-83.39,-42.50h.01 M-80.48,-36.67h.01 M-77.56,-30.83h.01 M-74.64,-25.00h.01 M-71.73,-19.17h.01 M-68.81,-13.33h.01 M-65.89,-7.50h.01 M-62.98,-1.67h.01 M-60.06,4.17h.01 M-57.14,10.00h.01 M-54.23,15.83h.01 M-51.31,21.67h.01 M-48.39,27.50h.01 M-45.48,33.33h.01 M-42.56,39.17h.01 M-39.64,45.00h.01 M-36.73,50.83h.01 M-33.81,56.67h.01 M-30.89,62.50h.01 M-27.98,68.33h.01 M-25.06,74.17h.01 M-83.51,-55.17h.01 M-80.60,-49.33h.01 M-77.68,-43.50h.01 M-74.76,-37.67h.01 M-71.85,-31.83h.01 M-68.93,-26.00h.01 M-66.01,-20.17h.01 M-63.10,-14.33h.01 M-60.18,-8.50h.01 M-57.26,-2.67h.01 M-54.35,3.17h.01 M-51.43,9.00h.01 M-48.51,14.83h.01 M-45.60,20.67h.01 M-42.68,26.50h.01 M-39.76,32.33h.01 M-36.85,38.17h.01 M-33.93,44.00h.01 M-31.01,49.83h.01 M-28.10,55.67h.01 M-25.18,61.50h.01 M-22.26,67.33h.01 M-19.35,73.17h.01 M-77.80,-56.17h.01 M-74.88,-50.33h.01 M-71.96,-44.50h.01 M-69.05,-38.67h.01 M-66.13,-32.83h.01 M-63.21,-27.00h.01 M-60.30,-21.17h.01 M-57.38,-15.33h.01 M-54.46,-9.50h.01 M-51.55,-3.67h.01 M-48.63,2.17h.01 M-45.71,8.00h.01 M-42.80,13.83h.01 M-39.88,19.67h.01 M-36.96,25.50h.01 M-34.05,31.33h.01 M-31.13,37.17h.01 M-28.21,43.00h.01 M-25.30,48.83h.01 M-22.38,54.67h.01 M-19.46,60.50h.01 M-16.55,66.33h.01 M-13.63,72.17h.01 M-72.08,-57.17h.01 M-69.17,-51.33h.01 M-66.25,-45.50h.01 M-63.33,-39.67h.01 M-60.42,-33.83h.01 M-57.50,-28.00h.01 M-54.58,-22.17h.01 M-51.67,-16.33h.01 M-48.75,-10.50h.01 M-45.83,-4.67h.01 M-42.92,1.17h.01 M-40.00,7.00h.01 M-37.08,12.83h.01 M-34.17,18.67h.01 M-31.25,24.50h.01 M-28.33,30.33h.01 M-25.42,36.17h.01 M-22.50,42.00h.01 M-19.58,47.83h.01 M-16.67,53.67h.01 M-13.75,59.50h.01 M-10.83,65.33h.01 M-7.92,71.17h.01 M-66.37,-58.17h.01 M-63.45,-52.33h.01 M-60.54,-46.50h.01 M-57.62,-40.67h.01 M-54.70,-34.83h.01 M-51.79,-29.00h.01 M-48.87,-23.17h.01 M-45.95,-17.33h.01 M-43.04,-11.50h.01 M-40.12,-5.67h.01 M-37.20,0.17h.01 M-34.29,6.00h.01 M-31.37,11.83h.01 M-28.45,17.67h.01 M-25.54,23.50h.01 M-22.62,29.33h.01 M-19.70,35.17h.01 M-16.79,41.00h.01 M-13.87,46.83h.01 M-10.95,52.67h.01 M-8.04,58.50h.01 M-5.12,64.33h.01 M-2.20,70.17h.01 M-60.65,-59.17h.01 M-57.74,-53.33h.01 M-54.82,-47.50h.01 M-51.90,-41.67h.01 M-48.99,-35.83h.01 M-46.07,-30.00h.01 M-43.15,-24.17h.01 M-40.24,-18.33h.01 M-37.32,-12.50h.01 M-34.40,-6.67h.01 M-31.49,-0.83h.01 M-28.57,5.00h.01 M-25.65,10.83h.01 M-22.74,16.67h.01 M-19.82,22.50h.01 M-16.90,28.33h.01 M-13.99,34.17h.01 M-11.07,40.00h.01 M-8.15,45.83h.01 M-5.24,51.67h.01 M-2.32,57.50h.01 M0.60,63.33h.01 M3.51,69.17h.01 M-54.94,-60.17h.01 M-52.02,-54.33h.01 M-49.11,-48.50h.01 M-46.19,-42.67h.01 M-43.27,-36.83h.01 M-40.36,-31.00h.01 M-37.44,-25.17h.01 M-34.52,-19.33h.01 M-31.61,-13.50h.01 M-28.69,-7.67h.01 M-25.77,-1.83h.01 M-22.86,4.00h.01 M-19.94,9.83h.01 M-17.02,15.67h.01 M-14.11,21.50h.01 M-11.19,27.33h.01 M-8.27,33.17h.01 M-5.36,39.00h.01 M-2.44,44.83h.01 M0.48,50.67h.01 M3.39,56.50h.01 M6.31,62.33h.01 M9.23,68.17h.01 M-49.23,-61.17h.01 M-46.31,-55.33h.01 M-43.39,-49.50h.01 M-40.48,-43.67h.01 M-37.56,-37.83h.01 M-34.64,-32.00h.01 M-31.73,-26.17h.01 M-28.81,-20.33h.01 M-25.89,-14.50h.01 M-22.98,-8.67h.01 M-20.06,-2.83h.01 M-17.14,3.00h.01 M-14.23,8.83h.01 M-11.31,14.67h.01 M-8.39,20.50h.01 M-5.48,26.33h.01 M-2.56,32.17h.01 M0.36,38.00h.01 M3.27,43.83h.01 M6.19,49.67h.01 M9.11,55.50h.01 M12.02,61.33h.01 M14.94,67.17h.01 M-43.51,-62.17h.01 M-40.60,-56.33h.01 M-37.68,-50.50h.01 M-34.76,-44.67h.01 M-31.85,-38.83h.01 M-28.93,-33.00h.01 M-26.01,-27.17h.01 M-23.10,-21.33h.01 M-20.18,-15.50h.01 M-17.26,-9.67h.01 M-14.35,-3.83h.01 M-11.43,2.00h.01 M-8.51,7.83h.01 M-5.60,13.67h.01 M-2.68,19.50h.01 M0.24,25.33h.01 M3.15,31.17h.01 M6.07,37.00h.01 M8.99,42.83h.01 M11.90,48.67h.01 M14.82,54.50h.01 M17.74,60.33h.01 M20.65,66.17h.01 M-37.80,-63.17h.01 M-34.88,-57.33h.01 M-31.96,-51.50h.01 M-29.05,-45.67h.01 M-26.13,-39.83h.01 M-23.21,-34.00h.01 M-20.30,-28.17h.01 M-17.38,-22.33h.01 M-14.46,-16.50h.01 M-11.55,-10.67h.01 M-8.63,-4.83h.01 M-5.71,1.00h.01 M-2.80,6.83h.01 M0.12,12.67h.01 M3.04,18.50h.01 M5.95,24.33h.01 M8.87,30.17h.01 M11.79,36.00h.01 M14.70,41.83h.01 M17.62,47.67h.01 M20.54,53.50h.01 M23.45,59.33h.01 M26.37,65.17h.01 M-32.08,-64.17h.01 M-29.17,-58.33h.01 M-26.25,-52.50h.01 M-23.33,-46.67h.01 M-20.42,-40.83h.01 M-17.50,-35.00h.01 M-14.58,-29.17h.01 M-11.67,-23.33h.01 M-8.75,-17.50h.01 M-5.83,-11.67h.01 M-2.92,-5.83h.01 M0.00,0.00h.01 M2.92,5.83h.01 M5.83,11.67h.01 M8.75,17.50h.01 M11.67,23.33h.01 M14.58,29.17h.01 M17.50,35.00h.01 M20.42,40.83h.01 M23.33,46.67h.01 M26.25,52.50h.01 M29.17,58.33h.01 M32.08,64.17h.01 M-26.37,-65.17h.01 M-23.45,-59.33h.01 M-20.54,-53.50h.01 M-17.62,-47.67h.01 M-14.70,-41.83h.01 M-11.79,-36.00h.01 M-8.87,-30.17h.01 M-5.95,-24.33h.01 M-3.04,-18.50h.01 M-0.12,-12.67h.01 M2.80,-6.83h.01 M5.71,-1.00h.01 M8.63,4.83h.01 M11.55,10.67h.01 M14.46,16.50h.01 M17.38,22.33h.01 M20.30,28.17h.01 M23.21,34.00h.01 M26.13,39.83h.01 M29.05,45.67h.01 M31.96,51.50h.01 M34.88,57.33h.01 M37.80,63.17h.01 M-20.65,-66.17h.01 M-17.74,-60.33h.01 M-14.82,-54.50h.01 M-11.90,-48.67h.01 M-8.99,-42.83h.01 M-6.07,-37.00h.01 M-3.15,-31.17h.01 M-0.24,-25.33h.01 M2.68,-19.50h.01 M5.60,-13.67h.01 M8.51,-7.83h.01 M11.43,-2.00h.01 M14.35,3.83h.01 M17.26,9.67h.01 M20.18,15.50h.01 M23.10,21.33h.01 M26.01,27.17h.01 M28.93,33.00h.01 M31.85,38.83h.01 M34.76,44.67h.01 M37.68,50.50h.01 M40.60,56.33h.01 M43.51,62.17h.01 M-14.94,-67.17h.01 M-12.02,-61.33h.01 M-9.11,-55.50h.01 M-6.19,-49.67h.01 M-3.27,-43.83h.01 M-0.36,-38.00h.01 M2.56,-32.17h.01 M5.48,-26.33h.01 M8.39,-20.50h.01 M11.31,-14.67h.01 M14.23,-8.83h.01 M17.14,-3.00h.01 M20.06,2.83h.01 M22.98,8.67h.01 M25.89,14.50h.01 M28.81,20.33h.01 M31.73,26.17h.01 M34.64,32.00h.01 M37.56,37.83h.01 M40.48,43.67h.01 M43.39,49.50h.01 M46.31,55.33h.01 M49.23,61.17h.01 M-9.23,-68.17h.01 M-6.31,-62.33h.01 M-3.39,-56.50h.01 M-0.48,-50.67h.01 M2.44,-44.83h.01 M5.36,-39.00h.01 M8.27,-33.17h.01 M11.19,-27.33h.01 M14.11,-21.50h.01 M17.02,-15.67h.01 M19.94,-9.83h.01 M22.86,-4.00h.01 M25.77,1.83h.01 M28.69,7.67h.01 M31.61,13.50h.01 M34.52,19.33h.01 M37.44,25.17h.01 M40.36,31.00h.01 M43.27,36.83h.01 M46.19,42.67h.01 M49.11,48.50h.01 M52.02,54.33h.01 M54.94,60.17h.01 M-3.51,-69.17h.01 M-0.60,-63.33h.01 M2.32,-57.50h.01 M5.24,-51.67h.01 M8.15,-45.83h.01 M11.07,-40.00h.01 M13.99,-34.17h.01 M16.90,-28.33h.01 M19.82,-22.50h.01 M22.74,-16.67h.01 M25.65,-10.83h.01 M28.57,-5.00h.01 M31.49,0.83h.01 M34.40,6.67h.01 M37.32,12.50h.01 M40.24,18.33h.01 M43.15,24.17h.01 M46.07,30.00h.01 M48.99,35.83h.01 M51.90,41.67h.01 M54.82,47.50h.01 M57.74,53.33h.01 M60.65,59.17h.01 M2.20,-70.17h.01 M5.12,-64.33h.01 M8.04,-58.50h.01 M10.95,-52.67h.01 M13.87,-46.83h.01 M16.79,-41.00h.01 M19.70,-35.17h.01 M22.62,-29.33h.01 M25.54,-23.50h.01 M28.45,-17.67h.01 M31.37,-11.83h.01 M34.29,-6.00h.01 M37.20,-0.17h.01 M40.12,5.67h.01 M43.04,11.50h.01 M45.95,17.33h.01 M48.87,23.17h.01 M51.79,29.00h.01 M54.70,34.83h.01 M57.62,40.67h.01 M60.54,46.50h.01 M63.45,52.33h.01 M66.37,58.17h.01 M7.92,-71.17h.01 M10.83,-65.33h.01 M13.75,-59.50h.01 M16.67,-53.67h.01 M19.58,-47.83h.01 M22.50,-42.00h.01 M25.42,-36.17h.01 M28.33,-30.33h.01 M31.25,-24.50h.01 M34.17,-18.67h.01 M37.08,-12.83h.01 M40.00,-7.00h.01 M42.92,-1.17h.01 M45.83,4.67h.01 M48.75,10.50h.01 M51.67,16.33h.01 M54.58,22.17h.01 M57.50,28.00h.01 M60.42,33.83h.01 M63.33,39.67h.01 M66.25,45.50h.01 M69.17,51.33h.01 M72.08,57.17h.01 M13.63,-72.17h.01 M16.55,-66.33h.01 M19.46,-60.50h.01 M22.38,-54.67h.01 M25.30,-48.83h.01 M28.21,-43.00h.01 M31.13,-37.17h.01 M34.05,-31.33h.01 M36.96,-25.50h.01 M39.88,-19.67h.01 M42.80,-13.83h.01 M45.71,-8.00h.01 M48.63,-2.17h.01 M51.55,3.67h.01 M54.46,9.50h.01 M57.38,15.33h.01 M60.30,21.17h.01 M63.21,27.00h.01 M66.13,32.83h.01 M69.05,38.67h.01 M71.96,44.50h.01 M74.88,50.33h.01 M77.80,56.17h.01 M19.35,-73.17h.01 M22.26,-67.33h.01 M25.18,-61.50h.01 M28.10,-55.67h.01 M31.01,-49.83h.01 M33.93,-44.00h.01 M36.85,-38.17h.01 M39.76,-32.33h.01 M42.68,-26.50h.01 M45.60,-20.67h.01 M48.51,-14.83h.01 M51.43,-9.00h.01 M54.35,-3.17h.01 M57.26,2.67h.01 M60.18,8.50h.01 M63.10,14.33h.01 M66.01,20.17h.01 M68.93,26.00h.01 M71.85,31.83h.01 M74.76,37.67h.01 M77.68,43.50h.01 M80.60,49.33h.01 M83.51,55.17h.01 M25.06,-74.17h.01 M27.98,-68.33h.01 M30.89,-62.50h.01 M33.81,-56.67h.01 M36.73,-50.83h.01 M39.64,-45.00h.01 M42.56,-39.17h.01 M45.48,-33.33h.01 M48.39,-27.50h.01 M51.31,-21.67h.01 M54.23,-15.83h.01 M57.14,-10.00h.01 M60.06,-4.17h.01 M62.98,1.67h.01 M65.89,7.50h.01 M68.81,13.33h.01 M71.73,19.17h.01 M74.64,25.00h.01 M77.56,30.83h.01 M80.48,36.67h.01 M83.39,42.50h.01 M86.31,48.33h.01 M89.23,54.17h.01 M30.77,-75.17h.01 M33.69,-69.33h.01 M36.61,-63.50h.01 M39.52,-57.67h.01 M42.44,-51.83h.01 M45.36,-46.00h.01 M48.27,-40.17h.01 M51.19,-34.33h.01 M54.11,-28.50h.01 M57.02,-22.67h.01 M59.94,-16.83h.01 M62.86,-11.00h.01 M65.77,-5.17h.01 M68.69,0.67h.01 M71.61,6.50h.01 M74.52,12.33h.01 M77.44,18.17h.01 M80.36,24.00h.01 M83.27,29.83h.01 M86.19,35.67h.01 M89.11,41.50h.01 M92.02,47.33h.01 M94.94,53.17h.01 M36.49,-76.17h.01 M39.40,-70.33h.01 M42.32,-64.50h.01 M45.24,-58.67h.01 M48.15,-52.83h.01 M51.07,-47.00h.01 M53.99,-41.17h.01 M56.90,-35.33h.01 M59.82,-29.50h.01 M62.74,-23.67h.01 M65.65,-17.83h.01 M68.57,-12.00h.01 M71.49,-6.17h.01 M74.40,-0.33h.01 M77.32,5.50h.01 M80.24,11.33h.01 M83.15,17.17h.01 M86.07,23.00h.01 M88.99,28.83h.01 M91.90,34.67h.01 M94.82,40.50h.01 M97.74,46.33h.01 M100.65,52.17h.01 M42.20,-77.17h.01 M45.12,-71.33h.01 M48.04,-65.50h.01 M50.95,-59.67h.01 M53.87,-53.83h.01 M56.79,-48.00h.01 M59.70,-42.17h.01 M62.62,-36.33h.01 M65.54,-30.50h.01 M68.45,-24.67h.01 M71.37,-18.83h.01 M74.29,-13.00h.01 M77.20,-7.17h.01 M80.12,-1.33h.01 M83.04,4.50h.01 M85.95,10.33h.01 M88.87,16.17h.01 M91.79,22.00h.01 M94.70,27.83h.01 M97.62,33.67h.01 M100.54,39.50h.01 M103.45,45.33h.01 M106.37,51.17h.01 M47.92,-78.17h.01 M50.83,-72.33h.01 M53.75,-66.50h.01 M56.67,-60.67h.01 M59.58,-54.83h.01 M62.50,-49.00h.01 M65.42,-43.17h.01 M68.33,-37.33h.01 M71.25,-31.50h.01 M74.17,-25.67h.01 M77.08,-19.83h.01 M80.00,-14.00h.01 M82.92,-8.17h.01 M85.83,-2.33h.01 M88.75,3.50h.01 M91.67,9.33h.01 M94.58,15.17h.01 M97.50,21.00h.01 M100.42,26.83h.01 M103.33,32.67h.01 M106.25,38.50h.01 M109.17,44.33h.01 M112.08,50.17h.01 M53.63,-79.17h.01 M56.55,-73.33h.01 M59.46,-67.50h.01 M62.38,-61.67h.01 M65.30,-55.83h.01 M68.21,-50.00h.01 M71.13,-44.17h.01 M74.05,-38.33h.01 M76.96,-32.50h.01 M79.88,-26.67h.01 M82.80,-20.83h.01 M85.71,-15.00h.01 M88.63,-9.17h.01 M91.55,-3.33h.01 M94.46,2.50h.01 M97.38,8.33h.01 M100.30,14.17h.01 M103.21,20.00h.01 M106.13,25.83h.01 M109.05,31.67h.01 M111.96,37.50h.01 M114.88,43.33h.01 M117.80,49.17h.01 M59.35,-80.17h.01 M62.26,-74.33h.01 M65.18,-68.50h.01 M68.10,-62.67h.01 M71.01,-56.83h.01 M73.93,-51.00h.01 M76.85,-45.17h.01 M79.76,-39.33h.01 M82.68,-33.50h.01 M85.60,-27.67h.01 M88.51,-21.83h.01 M91.43,-16.00h.01 M94.35,-10.17h.01 M97.26,-4.33h.01 M100.18,1.50h.01 M103.10,7.33h.01 M106.01,13.17h.01 M108.93,19.00h.01 M111.85,24.83h.01 M114.76,30.67h.01 M117.68,36.50h.01 M120.60,42.33h.01 M123.51,48.17h.01 M65.06,-81.17h.01 M67.98,-75.33h.01 M70.89,-69.50h.01 M73.81,-63.67h.01 M76.73,-57.83h.01 M79.64,-52.00h.01 M82.56,-46.17h.01 M85.48,-40.33h.01 M88.39,-34.50h.01 M91.31,-28.67h.01 M94.23,-22.83h.01 M97.14,-17.00h.01 M100.06,-11.17h.01 M102.98,-5.33h.01 M105.89,0.50h.01 M108.81,6.33h.01 M111.73,12.17h.01 M114.64,18.00h.01 M117.56,23.83h.01 M120.48,29.67h.01 M123.39,35.50h.01 M126.31,41.33h.01 M129.23,47.17h.01 M70.77,-82.17h.01 M73.69,-76.33h.01 M76.61,-70.50h.01 M79.52,-64.67h.01 M82.44,-58.83h.01 M85.36,-53.00h.01 M88.27,-47.17h.01 M91.19,-41.33h.01 M94.11,-35.50h.01 M97.02,-29.67h.01 M99.94,-23.83h.01 M102.86,-18.00h.01 M105.77,-12.17h.01 M108.69,-6.33h.01 M111.61,-0.50h.01 M114.52,5.33h.01 M117.44,11.17h.01 M120.36,17.00h.01 M123.27,22.83h.01 M126.19,28.67h.01 M129.11,34.50h.01 M132.02,40.33h.01 M134.94,46.17h.01 M76.49,-83.17h.01 M79.40,-77.33h.01 M82.32,-71.50h.01 M85.24,-65.67h.01 M88.15,-59.83h.01 M91.07,-54.00h.01 M93.99,-48.17h.01 M96.90,-42.33h.01 M99.82,-36.50h.01 M102.74,-30.67h.01 M105.65,-24.83h.01 M108.57,-19.00h.01 M111.49,-13.17h.01 M114.40,-7.33h.01 M117.32,-1.50h.01 M120.24,4.33h.01 M123.15,10.17h.01 M126.07,16.00h.01 M128.99,21.83h.01 M131.90,27.67h.01 M134.82,33.50h.01 M137.74,39.33h.01 M140.65,45.17h.01 M82.20,-84.17h.01 M85.12,-78.33h.01 M88.04,-72.50h.01 M90.95,-66.67h.01 M93.87,-60.83h.01 M96.79,-55.00h.01 M99.70,-49.17h.01 M102.62,-43.33h.01 M105.54,-37.50h.01 M108.45,-31.67h.01 M111.37,-25.83h.01 M114.29,-20.00h.01 M117.20,-14.17h.01 M120.12,-8.33h.01 M123.04,-2.50h.01 M125.95,3.33h.01 M128.87,9.17h.01 M131.79,15.00h.01 M134.70,20.83h.01 M137.62,26.67h.01 M140.54,32.50h.01 M143.45,38.33h.01 M146.37,44.17h.01" class="surfaceDots_wioV"></path><path d="M-155.00,-49.00h.01 M-151.07,-49.69h.01 M-147.13,-50.38h.01 M-143.20,-51.07h.01 M-139.26,-51.75h.01 M-135.33,-52.44h.01 M-131.39,-53.13h.01 M-127.46,-53.82h.01 M-123.52,-54.51h.01 M-119.59,-55.20h.01 M-115.66,-55.89h.01 M-111.72,-56.57h.01 M-107.79,-57.26h.01 M-103.85,-57.95h.01 M-99.92,-58.64h.01 M-95.98,-59.33h.01 M-92.05,-60.02h.01 M-88.11,-60.70h.01 M-84.18,-61.39h.01 M-80.25,-62.08h.01 M-76.31,-62.77h.01 M-72.38,-63.46h.01 M-68.44,-64.15h.01 M-64.51,-64.84h.01 M-60.57,-65.52h.01 M-56.64,-66.21h.01 M-52.70,-66.90h.01 M-48.77,-67.59h.01 M-44.84,-68.28h.01 M-40.90,-68.97h.01 M-36.97,-69.66h.01 M-33.03,-70.34h.01 M-29.10,-71.03h.01 M-25.16,-71.72h.01 M-21.23,-72.41h.01 M-17.30,-73.10h.01 M-13.36,-73.79h.01 M-9.43,-74.48h.01 M-5.49,-75.16h.01 M-1.56,-75.85h.01 M2.38,-76.54h.01 M6.31,-77.23h.01 M10.25,-77.92h.01 M14.18,-78.61h.01 M18.11,-79.30h.01 M22.05,-79.98h.01 M25.98,-80.67h.01 M29.92,-81.36h.01 M33.85,-82.05h.01 M37.79,-82.74h.01 M41.72,-83.43h.01 M45.66,-84.11h.01 M49.59,-84.80h.01 M53.52,-85.49h.01 M57.46,-86.18h.01 M61.39,-86.87h.01 M65.33,-87.56h.01 M69.26,-88.25h.01 M73.20,-88.93h.01 M77.13,-89.62h.01 M81.07,-90.31h.01 M85.00,-91.00h.01 M85.00,-91.00h.01 M86.75,-87.50h.01 M88.50,-84.00h.01 M90.25,-80.50h.01 M92.00,-77.00h.01 M93.75,-73.50h.01 M95.50,-70.00h.01 M97.25,-66.50h.01 M99.00,-63.00h.01 M100.75,-59.50h.01 M102.50,-56.00h.01 M104.25,-52.50h.01 M106.00,-49.00h.01 M107.75,-45.50h.01 M109.50,-42.00h.01 M111.25,-38.50h.01 M113.00,-35.00h.01 M114.75,-31.50h.01 M116.50,-28.00h.01 M118.25,-24.50h.01 M120.00,-21.00h.01 M121.75,-17.50h.01 M123.50,-14.00h.01 M125.25,-10.50h.01 M127.00,-7.00h.01 M128.75,-3.50h.01 M130.50,0.00h.01 M132.25,3.50h.01 M134.00,7.00h.01 M135.75,10.50h.01 M137.50,14.00h.01 M139.25,17.50h.01 M141.00,21.00h.01 M142.75,24.50h.01 M144.50,28.00h.01 M146.25,31.50h.01 M148.00,35.00h.01 M149.75,38.50h.01 M151.50,42.00h.01 M153.25,45.50h.01 M155.00,49.00h.01 M155.00,49.00h.01 M151.07,49.69h.01 M147.13,50.38h.01 M143.20,51.07h.01 M139.26,51.75h.01 M135.33,52.44h.01 M131.39,53.13h.01 M127.46,53.82h.01 M123.52,54.51h.01 M119.59,55.20h.01 M115.66,55.89h.01 M111.72,56.57h.01 M107.79,57.26h.01 M103.85,57.95h.01 M99.92,58.64h.01 M95.98,59.33h.01 M92.05,60.02h.01 M88.11,60.70h.01 M84.18,61.39h.01 M80.25,62.08h.01 M76.31,62.77h.01 M72.38,63.46h.01 M68.44,64.15h.01 M64.51,64.84h.01 M60.57,65.52h.01 M56.64,66.21h.01 M52.70,66.90h.01 M48.77,67.59h.01 M44.84,68.28h.01 M40.90,68.97h.01 M36.97,69.66h.01 M33.03,70.34h.01 M29.10,71.03h.01 M25.16,71.72h.01 M21.23,72.41h.01 M17.30,73.10h.01 M13.36,73.79h.01 M9.43,74.48h.01 M5.49,75.16h.01 M1.56,75.85h.01 M-2.38,76.54h.01 M-6.31,77.23h.01 M-10.25,77.92h.01 M-14.18,78.61h.01 M-18.11,79.30h.01 M-22.05,79.98h.01 M-25.98,80.67h.01 M-29.92,81.36h.01 M-33.85,82.05h.01 M-37.79,82.74h.01 M-41.72,83.43h.01 M-45.66,84.11h.01 M-49.59,84.80h.01 M-53.52,85.49h.01 M-57.46,86.18h.01 M-61.39,86.87h.01 M-65.33,87.56h.01 M-69.26,88.25h.01 M-73.20,88.93h.01 M-77.13,89.62h.01 M-81.07,90.31h.01 M-85.00,91.00h.01 M-85.00,91.00h.01 M-86.75,87.50h.01 M-88.50,84.00h.01 M-90.25,80.50h.01 M-92.00,77.00h.01 M-93.75,73.50h.01 M-95.50,70.00h.01 M-97.25,66.50h.01 M-99.00,63.00h.01 M-100.75,59.50h.01 M-102.50,56.00h.01 M-104.25,52.50h.01 M-106.00,49.00h.01 M-107.75,45.50h.01 M-109.50,42.00h.01 M-111.25,38.50h.01 M-113.00,35.00h.01 M-114.75,31.50h.01 M-116.50,28.00h.01 M-118.25,24.50h.01 M-120.00,21.00h.01 M-121.75,17.50h.01 M-123.50,14.00h.01 M-125.25,10.50h.01 M-127.00,7.00h.01 M-128.75,3.50h.01 M-130.50,0.00h.01 M-132.25,-3.50h.01 M-134.00,-7.00h.01 M-135.75,-10.50h.01 M-137.50,-14.00h.01 M-139.25,-17.50h.01 M-141.00,-21.00h.01 M-142.75,-24.50h.01 M-144.50,-28.00h.01 M-146.25,-31.50h.01 M-148.00,-35.00h.01 M-149.75,-38.50h.01 M-151.50,-42.00h.01 M-153.25,-45.50h.01 M-155.00,-49.00h.01" class="edgeDots_R91v"></path><path d="M-100.40,-12.88h.01 M-96.80,-13.51h.01 M-93.20,-14.14h.01 M-89.60,-14.77h.01 M-86.00,-15.40h.01 M-82.40,-16.03h.01 M-78.80,-16.66h.01 M-75.20,-17.29h.01 M-71.60,-17.92h.01 M-68.00,-18.55h.01 M-64.40,-19.18h.01 M-60.80,-19.81h.01 M-57.20,-20.44h.01 M-53.60,-21.07h.01 M-50.00,-21.70h.01 M-46.40,-22.33h.01 M-42.80,-22.96h.01 M-39.20,-23.59h.01 M-35.60,-24.22h.01 M-32.00,-24.85h.01 M-28.40,-25.48h.01 M-24.80,-26.11h.01 M-21.20,-26.74h.01 M-17.60,-27.37h.01 M-14.00,-28.00h.01 M-10.40,-28.63h.01 M-6.80,-29.26h.01 M-3.20,-29.89h.01 M0.40,-30.52h.01 M4.00,-31.15h.01 M7.60,-31.78h.01 M11.20,-32.41h.01 M14.80,-33.04h.01 M18.40,-33.67h.01 M22.00,-34.30h.01 M25.60,-34.93h.01 M29.20,-35.56h.01 M32.80,-36.19h.01 M36.40,-36.82h.01 M40.00,-37.45h.01 M43.60,-38.08h.01 M47.20,-38.71h.01 M50.80,-39.34h.01 M54.40,-39.97h.01 M58.00,-40.60h.01 M61.60,-41.23h.01 M65.20,-41.86h.01 M68.80,-42.49h.01 M72.40,-43.12h.01 M-88.50,10.92h.01 M-84.90,10.29h.01 M-81.30,9.66h.01 M-77.70,9.03h.01 M-74.10,8.40h.01 M-70.50,7.77h.01 M-66.90,7.14h.01 M-63.30,6.51h.01 M-59.70,5.88h.01 M-56.10,5.25h.01 M-52.50,4.62h.01 M-48.90,3.99h.01 M-45.30,3.36h.01 M-41.70,2.73h.01 M-38.10,2.10h.01 M-34.50,1.47h.01 M-30.90,0.84h.01 M-27.30,0.21h.01 M-23.70,-0.42h.01 M-20.10,-1.05h.01 M-16.50,-1.68h.01 M-12.90,-2.31h.01 M-9.30,-2.94h.01 M-5.70,-3.57h.01 M-2.10,-4.20h.01 M1.50,-4.83h.01 M5.10,-5.46h.01 M8.70,-6.09h.01 M12.30,-6.72h.01 M15.90,-7.35h.01 M19.50,-7.98h.01 M23.10,-8.61h.01 M26.70,-9.24h.01 M30.30,-9.87h.01 M33.90,-10.50h.01 M37.50,-11.13h.01 M41.10,-11.76h.01 M44.70,-12.39h.01 M48.30,-13.02h.01 M51.90,-13.65h.01 M55.50,-14.28h.01 M59.10,-14.91h.01 M62.70,-15.54h.01 M66.30,-16.17h.01 M69.90,-16.80h.01 M73.50,-17.43h.01 M77.10,-18.06h.01 M80.70,-18.69h.01 M84.30,-19.32h.01 M-76.60,34.72h.01 M-73.04,34.10h.01 M-69.48,33.47h.01 M-65.92,32.85h.01 M-62.35,32.23h.01 M-58.79,31.60h.01 M-55.23,30.98h.01 M-51.67,30.36h.01 M-48.11,29.73h.01 M-44.55,29.11h.01 M-40.99,28.49h.01 M-37.43,27.86h.01 M-33.86,27.24h.01 M-30.30,26.62h.01 M-26.74,25.99h.01 M-23.18,25.37h.01 M-19.62,24.75h.01 M-16.06,24.13h.01 M-12.50,23.50h.01 M-8.94,22.88h.01 M-5.37,22.26h.01 M-1.81,21.63h.01 M1.75,21.01h.01 M5.31,20.39h.01 M8.87,19.76h.01 M12.43,19.14h.01 M15.99,18.52h.01 M19.55,17.89h.01 M23.12,17.27h.01 M26.68,16.65h.01 M30.24,16.02h.01 M33.80,15.40h.01" class="inkDots_zDRc"></path></g></g><g transform="translate(522 150)"><g class="dots_VCAD"><path d="M22.00,0.00h.01 M21.97,3.86h.01 M21.87,7.72h.01 M21.72,11.56h.01 M21.50,15.38h.01 M21.21,19.17h.01 M20.87,22.93h.01 M20.47,26.65h.01 M20.00,30.32h.01 M19.48,33.93h.01 M18.89,37.48h.01 M18.25,40.97h.01 M17.56,44.38h.01 M16.80,47.71h.01 M16.00,50.96h.01 M15.14,54.11h.01 M14.23,57.17h.01 M13.27,60.12h.01 M12.27,62.97h.01 M11.22,65.70h.01 M10.12,68.31h.01 M8.99,70.80h.01 M7.81,73.16h.01 M6.60,75.39h.01 M5.35,77.49h.01 M4.07,79.44h.01 M2.76,81.26h.01 M1.42,82.92h.01 M0.05,84.44h.01 M-1.34,85.80h.01 M-2.75,87.01h.01 M-4.18,88.06h.01 M-5.63,88.96h.01 M-7.08,89.69h.01 M-8.55,90.26h.01 M-10.03,90.67h.01 M-11.51,90.92h.01 M-13.00,91.00h.01 M-14.49,90.92h.01 M-15.97,90.67h.01 M-17.45,90.26h.01 M-18.92,89.69h.01 M-20.37,88.96h.01 M-21.82,88.06h.01 M-23.25,87.01h.01 M-24.66,85.80h.01 M-26.05,84.44h.01 M-27.42,82.92h.01 M-28.76,81.26h.01 M-30.07,79.44h.01 M-31.35,77.49h.01 M-32.60,75.39h.01 M-33.81,73.16h.01 M-34.99,70.80h.01 M-36.12,68.31h.01 M-37.22,65.70h.01 M-38.27,62.97h.01 M-39.27,60.12h.01 M-40.23,57.17h.01 M-41.14,54.11h.01 M-42.00,50.96h.01 M-42.80,47.71h.01 M-43.56,44.38h.01 M-44.25,40.97h.01 M-44.89,37.48h.01 M-45.48,33.93h.01 M-46.00,30.32h.01 M-46.47,26.65h.01 M-46.87,22.93h.01 M-47.21,19.17h.01 M-47.50,15.38h.01 M-47.72,11.56h.01 M-47.87,7.72h.01 M-47.97,3.86h.01 M-48.00,0.00h.01 M-47.97,-3.86h.01 M-47.87,-7.72h.01 M-47.72,-11.56h.01 M-47.50,-15.38h.01 M-47.21,-19.17h.01 M-46.87,-22.93h.01 M-46.47,-26.65h.01 M-46.00,-30.32h.01 M-45.48,-33.93h.01 M-44.89,-37.48h.01 M-44.25,-40.97h.01 M-43.56,-44.38h.01 M-42.80,-47.71h.01 M-42.00,-50.96h.01 M-41.14,-54.11h.01 M-40.23,-57.17h.01 M-39.27,-60.12h.01 M-38.27,-62.97h.01 M-37.22,-65.70h.01 M-36.12,-68.31h.01 M-34.99,-70.80h.01 M-33.81,-73.16h.01 M-32.60,-75.39h.01 M-31.35,-77.49h.01 M-30.07,-79.44h.01 M-28.76,-81.26h.01 M-27.42,-82.92h.01 M-26.05,-84.44h.01 M-24.66,-85.80h.01 M-23.25,-87.01h.01 M-21.82,-88.06h.01 M-20.37,-88.96h.01 M-18.92,-89.69h.01 M-17.45,-90.26h.01 M-15.97,-90.67h.01 M-14.49,-90.92h.01 M-13.00,-91.00h.01 M-11.51,-90.92h.01 M-10.03,-90.67h.01 M-8.55,-90.26h.01 M-7.08,-89.69h.01 M-5.63,-88.96h.01 M-4.18,-88.06h.01 M-2.75,-87.01h.01 M-1.34,-85.80h.01 M0.05,-84.44h.01 M1.42,-82.92h.01 M2.76,-81.26h.01 M4.07,-79.44h.01 M5.35,-77.49h.01 M6.60,-75.39h.01 M7.81,-73.16h.01 M8.99,-70.80h.01 M10.12,-68.31h.01 M11.22,-65.70h.01 M12.27,-62.97h.01 M13.27,-60.12h.01 M14.23,-57.17h.01 M15.14,-54.11h.01 M16.00,-50.96h.01 M16.80,-47.71h.01 M17.56,-44.38h.01 M18.25,-40.97h.01 M18.89,-37.48h.01 M19.48,-33.93h.01 M20.00,-30.32h.01 M20.47,-26.65h.01 M20.87,-22.93h.01 M21.21,-19.17h.01 M21.50,-15.38h.01 M21.72,-11.56h.01 M21.87,-7.72h.01 M21.97,-3.86h.01" class="ringDots_YIHW"></path><path d="M35.00,0.00h.01 M34.97,3.86h.01 M34.87,7.72h.01 M34.72,11.56h.01 M34.50,15.38h.01 M34.21,19.17h.01 M33.87,22.93h.01 M33.47,26.65h.01 M33.00,30.32h.01 M32.48,33.93h.01 M31.89,37.48h.01 M31.25,40.97h.01 M30.56,44.38h.01 M29.80,47.71h.01 M29.00,50.96h.01 M28.14,54.11h.01 M27.23,57.17h.01 M26.27,60.12h.01 M25.27,62.97h.01 M24.22,65.70h.01 M23.12,68.31h.01 M21.99,70.80h.01 M20.81,73.16h.01 M19.60,75.39h.01 M18.35,77.49h.01 M17.07,79.44h.01 M15.76,81.26h.01 M14.42,82.92h.01 M13.05,84.44h.01 M11.66,85.80h.01 M10.25,87.01h.01 M8.82,88.06h.01 M7.37,88.96h.01 M5.92,89.69h.01 M4.45,90.26h.01 M2.97,90.67h.01 M1.49,90.92h.01 M0.00,91.00h.01 M-1.49,90.92h.01 M-2.97,90.67h.01 M-4.45,90.26h.01 M-5.92,89.69h.01 M-7.37,88.96h.01 M-8.82,88.06h.01 M-10.25,87.01h.01 M-11.66,85.80h.01 M-13.05,84.44h.01 M-14.42,82.92h.01 M-15.76,81.26h.01 M-17.07,79.44h.01 M-18.35,77.49h.01 M-19.60,75.39h.01 M-20.81,73.16h.01 M-21.99,70.80h.01 M-23.12,68.31h.01 M-24.22,65.70h.01 M-25.27,62.97h.01 M-26.27,60.12h.01 M-27.23,57.17h.01 M-28.14,54.11h.01 M-29.00,50.96h.01 M-29.80,47.71h.01 M-30.56,44.38h.01 M-31.25,40.97h.01 M-31.89,37.48h.01 M-32.48,33.93h.01 M-33.00,30.32h.01 M-33.47,26.65h.01 M-33.87,22.93h.01 M-34.21,19.17h.01 M-34.50,15.38h.01 M-34.72,11.56h.01 M-34.87,7.72h.01 M-34.97,3.86h.01 M-35.00,0.00h.01 M-34.97,-3.86h.01 M-34.87,-7.72h.01 M-34.72,-11.56h.01 M-34.50,-15.38h.01 M-34.21,-19.17h.01 M-33.87,-22.93h.01 M-33.47,-26.65h.01 M-33.00,-30.32h.01 M-32.48,-33.93h.01 M-31.89,-37.48h.01 M-31.25,-40.97h.01 M-30.56,-44.38h.01 M-29.80,-47.71h.01 M-29.00,-50.96h.01 M-28.14,-54.11h.01 M-27.23,-57.17h.01 M-26.27,-60.12h.01 M-25.27,-62.97h.01 M-24.22,-65.70h.01 M-23.12,-68.31h.01 M-21.99,-70.80h.01 M-20.81,-73.16h.01 M-19.60,-75.39h.01 M-18.35,-77.49h.01 M-17.07,-79.44h.01 M-15.76,-81.26h.01 M-14.42,-82.92h.01 M-13.05,-84.44h.01 M-11.66,-85.80h.01 M-10.25,-87.01h.01 M-8.82,-88.06h.01 M-7.37,-88.96h.01 M-5.92,-89.69h.01 M-4.45,-90.26h.01 M-2.97,-90.67h.01 M-1.49,-90.92h.01 M-0.00,-91.00h.01 M1.49,-90.92h.01 M2.97,-90.67h.01 M4.45,-90.26h.01 M5.92,-89.69h.01 M7.37,-88.96h.01 M8.82,-88.06h.01 M10.25,-87.01h.01 M11.66,-85.80h.01 M13.05,-84.44h.01 M14.42,-82.92h.01 M15.76,-81.26h.01 M17.07,-79.44h.01 M18.35,-77.49h.01 M19.60,-75.39h.01 M20.81,-73.16h.01 M21.99,-70.80h.01 M23.12,-68.31h.01 M24.22,-65.70h.01 M25.27,-62.97h.01 M26.27,-60.12h.01 M27.23,-57.17h.01 M28.14,-54.11h.01 M29.00,-50.96h.01 M29.80,-47.71h.01 M30.56,-44.38h.01 M31.25,-40.97h.01 M31.89,-37.48h.01 M32.48,-33.93h.01 M33.00,-30.32h.01 M33.47,-26.65h.01 M33.87,-22.93h.01 M34.21,-19.17h.01 M34.50,-15.38h.01 M34.72,-11.56h.01 M34.87,-7.72h.01 M34.97,-3.86h.01" class="ringDots_YIHW"></path><path d="M48.00,0.00h.01 M47.97,3.86h.01 M47.87,7.72h.01 M47.72,11.56h.01 M47.50,15.38h.01 M47.21,19.17h.01 M46.87,22.93h.01 M46.47,26.65h.01 M46.00,30.32h.01 M45.48,33.93h.01 M44.89,37.48h.01 M44.25,40.97h.01 M43.56,44.38h.01 M42.80,47.71h.01 M42.00,50.96h.01 M41.14,54.11h.01 M40.23,57.17h.01 M39.27,60.12h.01 M38.27,62.97h.01 M37.22,65.70h.01 M36.12,68.31h.01 M34.99,70.80h.01 M33.81,73.16h.01 M32.60,75.39h.01 M31.35,77.49h.01 M30.07,79.44h.01 M28.76,81.26h.01 M27.42,82.92h.01 M26.05,84.44h.01 M24.66,85.80h.01 M23.25,87.01h.01 M21.82,88.06h.01 M20.37,88.96h.01 M18.92,89.69h.01 M17.45,90.26h.01 M15.97,90.67h.01 M14.49,90.92h.01 M13.00,91.00h.01 M11.51,90.92h.01 M10.03,90.67h.01 M8.55,90.26h.01 M7.08,89.69h.01 M5.63,88.96h.01 M4.18,88.06h.01 M2.75,87.01h.01 M1.34,85.80h.01 M-0.05,84.44h.01 M-1.42,82.92h.01 M-2.76,81.26h.01 M-4.07,79.44h.01 M-5.35,77.49h.01 M-6.60,75.39h.01 M-7.81,73.16h.01 M-8.99,70.80h.01 M-10.12,68.31h.01 M-11.22,65.70h.01 M-12.27,62.97h.01 M-13.27,60.12h.01 M-14.23,57.17h.01 M-15.14,54.11h.01 M-16.00,50.96h.01 M-16.80,47.71h.01 M-17.56,44.38h.01 M-18.25,40.97h.01 M-18.89,37.48h.01 M-19.48,33.93h.01 M-20.00,30.32h.01 M-20.47,26.65h.01 M-20.87,22.93h.01 M-21.21,19.17h.01 M-21.50,15.38h.01 M-21.72,11.56h.01 M-21.87,7.72h.01 M-21.97,3.86h.01 M-22.00,0.00h.01 M-21.97,-3.86h.01 M-21.87,-7.72h.01 M-21.72,-11.56h.01 M-21.50,-15.38h.01 M-21.21,-19.17h.01 M-20.87,-22.93h.01 M-20.47,-26.65h.01 M-20.00,-30.32h.01 M-19.48,-33.93h.01 M-18.89,-37.48h.01 M-18.25,-40.97h.01 M-17.56,-44.38h.01 M-16.80,-47.71h.01 M-16.00,-50.96h.01 M-15.14,-54.11h.01 M-14.23,-57.17h.01 M-13.27,-60.12h.01 M-12.27,-62.97h.01 M-11.22,-65.70h.01 M-10.12,-68.31h.01 M-8.99,-70.80h.01 M-7.81,-73.16h.01 M-6.60,-75.39h.01 M-5.35,-77.49h.01 M-4.07,-79.44h.01 M-2.76,-81.26h.01 M-1.42,-82.92h.01 M-0.05,-84.44h.01 M1.34,-85.80h.01 M2.75,-87.01h.01 M4.18,-88.06h.01 M5.63,-88.96h.01 M7.08,-89.69h.01 M8.55,-90.26h.01 M10.03,-90.67h.01 M11.51,-90.92h.01 M13.00,-91.00h.01 M14.49,-90.92h.01 M15.97,-90.67h.01 M17.45,-90.26h.01 M18.92,-89.69h.01 M20.37,-88.96h.01 M21.82,-88.06h.01 M23.25,-87.01h.01 M24.66,-85.80h.01 M26.05,-84.44h.01 M27.42,-82.92h.01 M28.76,-81.26h.01 M30.07,-79.44h.01 M31.35,-77.49h.01 M32.60,-75.39h.01 M33.81,-73.16h.01 M34.99,-70.80h.01 M36.12,-68.31h.01 M37.22,-65.70h.01 M38.27,-62.97h.01 M39.27,-60.12h.01 M40.23,-57.17h.01 M41.14,-54.11h.01 M42.00,-50.96h.01 M42.80,-47.71h.01 M43.56,-44.38h.01 M44.25,-40.97h.01 M44.89,-37.48h.01 M45.48,-33.93h.01 M46.00,-30.32h.01 M46.47,-26.65h.01 M46.87,-22.93h.01 M47.21,-19.17h.01 M47.50,-15.38h.01 M47.72,-11.56h.01 M47.87,-7.72h.01 M47.97,-3.86h.01" class="edgeDots_R91v"></path><path d="M-13-91h26M-13 91h26" class="gateEdges_FFiH"></path><path d="M0-12 12 0 0 12-12 0Z" class="gateCore_Xf56"></path><circle r="2" class="coreDot_a7Ci"></circle></g></g></svg><div class="output_FkUc"><div class="outputHeading_Aay0"><span>response.json</span><span>vLLM example</span></div><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">"model"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"meta-llama/Llama-3.1-8B-Instruct"</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">"count"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">2</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">"token_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 number" style="color:#005CC5">101</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">102</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">"tokens"</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 string" style="color:#C6105F">"Hello"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">" world"</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></div></div><div class="labels_JKgD"><button type="button" class="input_ucUn" aria-label="Replay tokenization of Hello world"><span class="eyebrow_KG6J">01 / YOUR PROMPT</span><strong>Hello world</strong><span class="replay_ZtRX">Replay flow <span aria-hidden="true">↗</span></span></button><div class="label__pxR"><span class="eyebrow_KG6J">02 / LITELLM</span><strong>/tokenize</strong><span class="providerLogos_OuB1"><span class="label_D_jF"><span class="logo_T4h6" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" stroke-linecap="square" stroke-miterlimit="10" viewBox="0 0 96 96" focusable="false"><clipPath id="a"><path d="M0 0h96v96H0z"></path></clipPath><g clip-path="url(#a)"><path fill="#d9d9d9" fill-rule="evenodd" d="M41.05 80.271h1.89v2.331h-1.89z"></path><path fill="#d9d9d9" fill-rule="evenodd" d="M42.222 81.451h1.89v2.331h-1.89z"></path><g filter="url(#b)"><use xlink:href="#c" transform="translate(0 2)"></use></g><defs><filter id="b" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="c" fill="#d9d9d9" fill-rule="evenodd" d="M42.224 28.47v55.308L14.571 28.47z"></path><g filter="url(#d)"><use xlink:href="#e" transform="translate(0 2)"></use></g><defs><filter id="d" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="e" fill="#d9d9d9" fill-rule="evenodd" d="M42.223 83.778h21.73l18.653-70.386-25.575 13.462z"></path><g filter="url(#f)"><use xlink:href="#g" transform="translate(0 2)"></use></g><defs><filter id="f" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="g" fill="#fdb515" fill-rule="evenodd" d="M41.048 27.294v55.307L13.394 27.294z"></path><g filter="url(#h)"><use xlink:href="#i" transform="translate(0 2)"></use></g><defs><filter id="h" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="i" fill="#30a2ff" fill-rule="evenodd" d="M41.047 82.601h21.73L81.43 12.215 55.855 25.677z"></path></g></svg></span><span>vLLM</span></span><span class="label_D_jF"><span class="logo_T4h6" aria-hidden="true"><img src="https://docs.litellm.ai/img/integrations/ibm.png" alt="" width="32" height="32"></span><span>Watsonx</span></span></span></div><div class="label__pxR outputLabel_DMs3"><span class="eyebrow_KG6J">03 / YOUR TOKENS</span><strong>One response format</strong><span class="providers_iQqR">Count, token IDs and text</span></div></div><figcaption class="caption_TP8w">Illustrative vLLM response. Your model determines the tokens and IDs. Watsonx uses the same fields with <code>token_ids: null</code>.</figcaption></figure><div class="heroActions_REjd"><a href="https://docs.litellm.ai/blog/unified-tokenize#choose-api">Tokenize vs. token counting <span aria-hidden="true">↓</span></a><a href="https://docs.litellm.ai/blog/unified-tokenize#setup">SDK and curl examples <span aria-hidden="true">↗</span></a><span>PROMPT → TOKEN COUNT, IDS + TEXT</span></div></div></header><section id="choose-api" class="section_Pv2J" aria-labelledby="choose-api-title"><div class="sectionLabel_SSZC"><span>01</span>CHOOSE AN API</div><h2 id="choose-api-title">/tokenize vs. token counting</h2><ul class="apiChoices_Dfdm"><li><strong>Check prompt size.</strong> Use<!-- --> <a href="https://docs.litellm.ai/api-reference/#/llm%20utils/token_counter_utils_token_counter_post" target="_blank" rel="noopener noreferrer"><code>/utils/token_counter</code></a> <!-- -->to check context limits or estimate input cost.</li><li><strong>See how your text splits.</strong> Use<!-- --> <a href="https://docs.litellm.ai/blog/unified-tokenize#interface"><code>/tokenize</code></a> <!-- -->to inspect token text and available IDs. Find why a URL takes so many tokens, or check for tokenizer changes after a vLLM rollout.</li></ul></section><section id="interface" class="section_Pv2J" aria-labelledby="interface-title"><div class="sectionLabel_SSZC"><span>02</span>ONE REQUEST ACROSS PROVIDERS</div><div class="sectionHeading_mJBa"><h2 id="interface-title">Send a prompt and read the tokens</h2><p>Pick a model below and watch the <code>model</code> field change. Send the same JSON fields to the same endpoint for either provider.</p></div><div class="requestDemo_mg8v"><figure class="demo_K5p6" aria-label="Unified tokenize API example"><div class="providers_zn0l"><span>Choose a model</span><div class="selector_OUIc" role="group" aria-label="Supported tokenization providers"><button type="button" aria-pressed="true"><span class="label_D_jF"><span class="logo_T4h6" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" stroke-linecap="square" stroke-miterlimit="10" viewBox="0 0 96 96" focusable="false"><clipPath id="a"><path d="M0 0h96v96H0z"></path></clipPath><g clip-path="url(#a)"><path fill="#d9d9d9" fill-rule="evenodd" d="M41.05 80.271h1.89v2.331h-1.89z"></path><path fill="#d9d9d9" fill-rule="evenodd" d="M42.222 81.451h1.89v2.331h-1.89z"></path><g filter="url(#b)"><use xlink:href="#c" transform="translate(0 2)"></use></g><defs><filter id="b" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="c" fill="#d9d9d9" fill-rule="evenodd" d="M42.224 28.47v55.308L14.571 28.47z"></path><g filter="url(#d)"><use xlink:href="#e" transform="translate(0 2)"></use></g><defs><filter id="d" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="e" fill="#d9d9d9" fill-rule="evenodd" d="M42.223 83.778h21.73l18.653-70.386-25.575 13.462z"></path><g filter="url(#f)"><use xlink:href="#g" transform="translate(0 2)"></use></g><defs><filter id="f" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="g" fill="#fdb515" fill-rule="evenodd" d="M41.048 27.294v55.307L13.394 27.294z"></path><g filter="url(#h)"><use xlink:href="#i" transform="translate(0 2)"></use></g><defs><filter id="h" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="i" fill="#30a2ff" fill-rule="evenodd" d="M41.047 82.601h21.73L81.43 12.215 55.855 25.677z"></path></g></svg></span><span>vLLM</span></span><span class="modelName_nLam">llama-3.1-8b</span></button><button type="button" aria-pressed="false"><span class="label_D_jF"><span class="logo_T4h6" aria-hidden="true"><img src="https://docs.litellm.ai/img/integrations/ibm.png" alt="" width="32" height="32"></span><span>Watsonx</span></span><span class="modelName_nLam">granite-3.3-8b</span></button></div></div><div class="stage_bB3I"><section class="editor_txmn" aria-label="Client request"><div class="panelHeading_rvka"><span>Pass the model you want to tokenize for</span><code>POST /tokenize</code></div><div class="canvas_ivvH" data-code-window="true"><div class="window_Z037" role="group" aria-label="request.json"><div class="titleBar_s0Zv"><span class="windowDots_U95V" aria-hidden="true"><i></i><i></i><i></i></span><span class="filename_AN_F">request.json</span></div><div class="windowCode_mi3B"><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">"model"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"llama-3.1-8b"</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">"prompt"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"Hello world"</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></div></div></div><p class="modelHint_BFSC"><code>model</code> matches <code>model_name</code> in your<!-- --> <a href="https://docs.litellm.ai/blog/unified-tokenize#setup">gateway config</a>. This request calls<!-- --> <strong>vLLM</strong>.</p></section><section class="editor_txmn" aria-label="vLLM example response"><div class="panelHeading_rvka"><span>vLLM<!-- --> response</span><span>Illustrative output</span></div><div class="canvas_ivvH" data-code-window="true"><div class="window_Z037" role="group" aria-label="response.json"><div class="titleBar_s0Zv"><span class="windowDots_U95V" aria-hidden="true"><i></i><i></i><i></i></span><span class="filename_AN_F">response.json</span></div><div class="windowCode_mi3B"><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">"model"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"meta-llama/Llama-3.1-8B-Instruct"</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">"count"</span><span class="token operator" style="color:#D73A49">:</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">2</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">"token_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 number" style="color:#005CC5">101</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token number" style="color:#005CC5">102</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">"tokens"</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 string" style="color:#C6105F">"Hello"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">" world"</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></div></div></div></section></div><figcaption class="caption_H50x">Change <code>model</code> to choose another configured model. Keep the same endpoint and JSON fields across providers.<span class="srOnly_u1lE" aria-live="polite" aria-atomic="true">llama-3.1-8b<!-- --> on <!-- -->vLLM<!-- --> selected. The request model is<!-- --> <!-- -->llama-3.1-8b<!-- -->.</span></figcaption></figure></div><p class="routingNote_R3U0">To choose between models on each call, give each one a different<!-- --> <code>model_name</code> in your gateway config, then send that name in<!-- --> <code>model</code>. Use a name your API key can access. To change providers without a client update, keep the alias and change its provider configuration.</p><div id="token-ids" class="explainer_YwjY"><div class="heading_uFl3"><span>FOLLOW ONE TOKEN</span><h3>A token ID is a vocabulary entry number</h3><p>A tokenizer splits text into pieces called tokens. Each piece has an entry in that tokenizer’s vocabulary, with a number called its token ID. Click either piece below to follow the lookup.</p></div><div class="diagram_qt2h"><div class="step_N83x"><span class="stepLabel_HkFO">01 / SPLIT THE TEXT</span><div class="prompt_XRDP">"<!-- -->Hello world<!-- -->"</div><div role="group" aria-label="Select a token" class="tokens_kGFn"><button type="button" aria-pressed="true">"Hello"</button><button type="button" aria-pressed="false">" world"</button></div><p>The second piece includes the space before “world”.</p></div><div class="step_N83x"><span class="stepLabel_HkFO">02 / LOOK UP EACH PIECE</span><table class="vocabulary_WvLc"><caption>Made-up vocabulary for this example</caption><thead><tr><th scope="col">Token text</th><th scope="col">Token ID</th></tr></thead><tbody><tr data-selected="true"><td>"Hello"</td><td>101</td></tr><tr data-selected="false"><td>" world"</td><td>102</td></tr></tbody></table></div><div class="step_N83x"><span class="stepLabel_HkFO">03 / KEEP THE SAME ORDER</span><div class="ids_yzI3" aria-label="Token IDs: 101, 102"><span>[</span><span data-selected="true">101</span><span>,</span><span data-selected="false">102</span><span>]</span></div><p><strong>Count: <!-- -->2<!-- --> tokens.</strong> Count the entries in the list. The numbers 101 and 102 identify those entries.</p></div></div><p class="selection_qLGq" aria-live="polite" aria-atomic="true">You selected <code>"Hello"</code>. Look up that piece in the vocabulary to get ID<!-- --> <code>101</code>, then put it in position<!-- --> <!-- -->1<!-- --> of the output list.</p><div class="takeaway_Dty7"><h4>Why does a model need the number?</h4><p>Models calculate with numbers. When you send a prompt for inference, the model uses each token ID to look up a learned vector: a list of numbers that represents that token. It processes those vectors to predict the next token. A /tokenize call stops at the token list; it does not generate a reply.</p><p>These IDs are made up to show the lookup. Your tokenizer can split the text differently and use different numbers. An ID only makes sense with its matching vocabulary. vLLM returns IDs; Watsonx returns token text with <code>token_ids: null</code>.</p></div></div></section><section id="performance" class="rustSection_Z8P9" aria-labelledby="rust-title"><div class="sectionLabel_SSZC"><span>03</span>RUST PERFORMANCE</div><div class="sectionHeading_mJBa"><h2 id="rust-title">Built in Rust</h2><p>Rust handles authentication, provider requests and response translation. We measured the SDK’s native request path against a local test server.</p></div><figure class="benchmark_tcfD"><div class="masthead_ST92"><span>SDK / RUST / LOCAL BENCHMARK</span><span>RECORDED ON <!-- -->APPLE M4 MAX</span></div><div class="performance_oWze"><div class="speedLines_yWUH" aria-hidden="true"></div><div class="primaryMetric_w_bO"><span class="metricLabel_zxO5">MEDIAN LATENCY / LOCAL vLLM ADAPTER TEST</span><div class="latency_arLT" role="group" aria-label="0.51 milliseconds median latency"><strong aria-hidden="true">.51</strong><span aria-hidden="true">ms</span></div><span class="measurementNote_LOzd">One request at a time</span></div><dl class="secondaryMetrics_bggh"><div><dt>95th percentile</dt><dd>0.61<!-- --> <span>ms</span></dd></div><div><dt>Throughput</dt><dd>1,870<span>requests / sec</span></dd></div></dl></div><div class="controls_IE4a"><span class="controlLabel_ApN1">CONCURRENT REQUESTS</span><div class="selections_aBOu" role="group" aria-label="Benchmark concurrency"><button type="button" aria-pressed="true" aria-label="1 concurrent requests">1</button><button type="button" aria-pressed="false" aria-label="8 concurrent requests">8</button><button type="button" aria-pressed="false" aria-label="32 concurrent requests">32</button></div><span class="recorded_Y_k8">Recorded measurements</span><span class="srOnly_NTzS" aria-live="polite" aria-atomic="true">1<!-- --> concurrent requests: <!-- -->0.51<!-- --> milliseconds median, <!-- -->0.61<!-- --> milliseconds at the 95th percentile,<!-- -->1,870<!-- --> <!-- -->requests per second.</span></div><div class="raceway_Qkrf"><div class="racewayHeader_O3gs"><span>REQUEST PATH / ANIMATED ILLUSTRATION</span></div><div class="route_HALj" role="img" aria-label="The Python SDK sends a request through Rust to a local HTTP test server and receives the shared response format."><div class="tracks_SXVJ" aria-hidden="true"><div class="track_qoZy"><span style="--delay:0s"></span><span style="--delay:-0.6s"></span></div><div class="track_qoZy"><span style="--delay:-0.32s"></span><span style="--delay:-0.9199999999999999s"></span></div><div class="track_qoZy"><span style="--delay:-0.64s"></span><span style="--delay:-1.24s"></span></div></div><div class="nodes_z5ue" aria-hidden="true"><div class="node_qmiD"><span>01</span><strong>SDK</strong><small>Python</small></div><div class="node_qmiD rustNode_N327"><span>02</span><strong>RUST</strong><small>Native integration</small></div><div class="node_qmiD"><span>03</span><strong>LOCAL</strong><small>HTTP test server</small></div></div><div class="returnPath_lSsx" aria-hidden="true"><span>←</span><span>shared response format</span><span>←</span></div></div><p class="animationNote_UuCs">Animation illustrates the path, not request timing.</p></div><figcaption class="caption_mfJh"><div class="scope_YGFV"><strong>SDK → Rust → local HTTP test server</strong><p>Public async SDK calls through the vLLM adapter with a fixed two-token response. Includes the Python/Rust bridge, loopback HTTP and response translation. Excludes real token computation, internet latency and the proxy server.</p></div><details class="methods_otox"><summary>Test conditions and raw measurements</summary><p>Apple M4 Max<!-- -->, <!-- -->macOS 15.5<!-- -->, Python<!-- --> <!-- -->3.12.13<!-- -->. Optimized Rust release build at<!-- --> <a href="https://github.com/BerriAI/litellm/commit/5f68bf4893f38a3c287ee83bb82aaf84f5c4f885">5f68bf4</a>.</p><p>4,096<!-- --> <!-- -->requests per trial, <!-- -->3<!-- --> trials per concurrency level, after<!-- --> <!-- -->256<!-- --> warmup calls. We show the trial with median throughput and that trial’s latency percentiles. Workers start their next call after the previous call completes.</p><a href="https://github.com/BerriAI/litellm-docs/blob/main/blog/unified-tokenize/results.json">Read the raw measurements <span aria-hidden="true">↗</span></a></details><a class="sourceLink_rz2h" href="https://github.com/BerriAI/litellm-docs/blob/main/blog/unified-tokenize/benchmark.py">Run the benchmark <span aria-hidden="true">↗</span></a></figcaption></figure></section><section id="setup" class="section_Pv2J" aria-labelledby="setup-title"><div class="sectionLabel_SSZC"><span>04</span>MAKE YOUR FIRST CALL</div><div class="sectionHeading_mJBa"><h2 id="setup-title">Call /tokenize</h2><p>Choose a provider and copy the setup. Use a gateway alias to keep provider configuration out of your client.</p></div><aside class="requirement_Jd3Q" aria-label="Build requirement"><strong>Build requirement</strong><p>Use a build containing <a href="https://github.com/BerriAI/litellm/pull/48079">PR #48079</a> and its compiled Rust extension to run these examples.</p></aside><div class="setupPanel_rxRn"><div class="controls_tT9e"><div role="group" aria-label="Example provider" class="buttonGroup_oSvs"><button type="button" aria-pressed="true"><span class="label_D_jF"><span class="logo_T4h6" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" stroke-linecap="square" stroke-miterlimit="10" viewBox="0 0 96 96" focusable="false"><clipPath id="a"><path d="M0 0h96v96H0z"></path></clipPath><g clip-path="url(#a)"><path fill="#d9d9d9" fill-rule="evenodd" d="M41.05 80.271h1.89v2.331h-1.89z"></path><path fill="#d9d9d9" fill-rule="evenodd" d="M42.222 81.451h1.89v2.331h-1.89z"></path><g filter="url(#b)"><use xlink:href="#c" transform="translate(0 2)"></use></g><defs><filter id="b" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="c" fill="#d9d9d9" fill-rule="evenodd" d="M42.224 28.47v55.308L14.571 28.47z"></path><g filter="url(#d)"><use xlink:href="#e" transform="translate(0 2)"></use></g><defs><filter id="d" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="e" fill="#d9d9d9" fill-rule="evenodd" d="M42.223 83.778h21.73l18.653-70.386-25.575 13.462z"></path><g filter="url(#f)"><use xlink:href="#g" transform="translate(0 2)"></use></g><defs><filter id="f" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="g" fill="#fdb515" fill-rule="evenodd" d="M41.048 27.294v55.307L13.394 27.294z"></path><g filter="url(#h)"><use xlink:href="#i" transform="translate(0 2)"></use></g><defs><filter id="h" filterUnits="userSpaceOnUse"><feGaussianBlur in="SourceAlpha" result="blur" stdDeviation="2"></feGaussianBlur><feComponentTransfer color-interpolation-filters="sRGB" in="blur"><feFuncR slope="0" type="linear"></feFuncR><feFuncG slope="0" type="linear"></feFuncG><feFuncB slope="0" type="linear"></feFuncB><feFuncA slope="0" type="linear"></feFuncA></feComponentTransfer></filter></defs><path id="i" fill="#30a2ff" fill-rule="evenodd" d="M41.047 82.601h21.73L81.43 12.215 55.855 25.677z"></path></g></svg></span><span>vLLM</span></span></button><button type="button" aria-pressed="false"><span class="label_D_jF"><span class="logo_T4h6" aria-hidden="true"><img src="https://docs.litellm.ai/img/integrations/ibm.png" alt="" width="32" height="32"></span><span>Watsonx</span></span></button></div><div role="group" aria-label="Example interface" class="buttonGroup_oSvs"><button type="button" aria-pressed="true">Gateway + curl</button><button type="button" aria-pressed="false">Python SDK</button><button type="button" aria-pressed="false">Async SDK</button></div></div><div class="setupContent_ZX6Q"><p>Use a model available on your <!-- -->vLLM<!-- --> deployment and set the environment variables below<!-- -->; omit api_key if your vLLM server does not require it<!-- -->.</p><div class="codeGrid_uNl6"><div><div class="codeLabel_qK4e">PROVIDER CONFIGURATION</div><div class="canvas_ivvH" data-code-window="true"><div class="window_Z037" role="group" aria-label="config.yaml"><div class="titleBar_s0Zv"><span class="windowDots_U95V" aria-hidden="true"><i></i><i></i><i></i></span><span class="filename_AN_F">config.yaml</span></div><div class="windowCode_mi3B"><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"> llama</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">3.1</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">8b</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"> hosted_vllm/meta</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">llama/Llama</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">3.1</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">8B</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">Instruct</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/HOSTED_VLLM_API_BASE</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/HOSTED_VLLM_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 key atrule" style="color:#22863A">general_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">master_key</span><span class="token punctuation" style="color:#393A34">:</span><span class="token plain"> os.environ/LITELLM_MASTER_KEY</span><br></span></code></pre></div></div></div></div></div></div><div><div class="codeLabel_qK4e">PASS YOUR MODEL</div><div class="canvas_ivvH" data-code-window="true"><div class="window_Z037" role="group" aria-label="request.sh"><div class="titleBar_s0Zv"><span class="windowDots_U95V" aria-hidden="true"><i></i><i></i><i></i></span><span class="filename_AN_F">request.sh</span></div><div class="windowCode_mi3B"><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://localhost:4000/tokenize \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  --fail-with-body \</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  -H "Authorization: Bearer $LITELLM_MASTER_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": "llama-3.1-8b",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "prompt": "Hello world"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div></div></div></div><p class="caption_GByB">Start with<!-- --> <code>litellm --config config.yaml --port 4000</code>. Change the provider configuration and restart to use the same alias with another provider.</p></div></div></div></div></section><section class="section_Pv2J" aria-labelledby="response-title"><div class="sectionLabel_SSZC"><span>05</span>RESPONSE FORMAT</div><div class="sectionHeading_mJBa"><h2 id="response-title">Supported providers and output fields</h2><p>Keep your parsing code when you switch providers. Token values and counts depend on the model; numeric IDs do not transfer between tokenizers.</p></div><div class="tableWrap_eOAl"><table><caption>Provider support</caption><thead><tr><th scope="col">Provider</th><th scope="col">Count</th><th scope="col">Numeric token IDs</th><th scope="col">Token strings</th></tr></thead><tbody><tr><th scope="row">vLLM</th><td>Returned</td><td>Returned</td><td>When supplied by the server</td></tr><tr><th scope="row">Watsonx</th><td>Returned</td><td><code>null</code></td><td>Returned by default</td></tr></tbody></table></div><p class="caption_GByB">Both <code>/tokenize</code> and <code>/v1/tokenize</code> return<!-- --> <code>model</code>, <code>count</code>, <code>token_ids</code> and<!-- --> <code>tokens</code>. Send one text prompt per call. For count-only workflows, see <a href="https://docs.litellm.ai/docs/count_tokens">token counting</a>.</p></section><footer class="footer_ZsQr"><div><span class="codeLabel_qK4e">BUILD WITH /tokenize</span><h2>Configure your first provider</h2></div><div><a class="footerPrimary_ykmj" href="https://docs.litellm.ai/docs/tokenize">Explore the API guide <span aria-hidden="true">↗</span></a><a class="footerSecondary_DGWC" href="https://github.com/BerriAI/litellm/pull/48079">Review the implementation ↗</a></div></footer></div>]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[October Townhall Updates: 426 Bug Fixes, 88.4% Coverage, and the Decisions API]]></title>
        <id>https://docs.litellm.ai/blog/october-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/october-townhall-updates"/>
        <updated>2026-10-23T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A recap of the October LiteLLM town hall: security changes that need action before you upgrade, 426 bug fixes, test coverage at 88.4%, the Decisions API, Lens, Moyai, and LiteLLM Relay.]]></summary>
        <content type="html"><![CDATA[<p>Thank you to everyone who joined our October town hall. We covered security, stability and performance work, and the product updates from the month.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="security">Security<a href="https://docs.litellm.ai/blog/october-townhall-updates#security" class="hash-link" aria-label="Direct link to Security" title="Direct link to Security">​</a></h2>
<p>On October 21 our release pipeline published a compromised <code>litellm==1.107.0</code>. The <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain" target="_blank" rel="noopener noreferrer">attack chain post</a> has the full record and what to do.</p>
<p>We shipped 65 security fixes in stable releases between September 24 and October 12, broken down by category:</p>
<table><thead><tr><th>Category</th><th>Fixes</th></tr></thead><tbody><tr><td data-label="Category">Credential / secret / PII</td><td data-label="Fixes" data-inline="">18</td></tr><tr><td data-label="Category" data-inline="">General hardening</td><td data-label="Fixes" data-inline="">18</td></tr><tr><td data-label="Category">Quota / budget / rate limits</td><td data-label="Fixes" data-inline="">15</td></tr><tr><td data-label="Category" data-inline="">Access control / authz</td><td data-label="Fixes" data-inline="">14</td></tr></tbody></table>
<p><strong>Three changes need action before you upgrade.</strong></p>
<table><thead><tr><th>Change</th><th>Version</th></tr></thead><tbody><tr><td data-label="Change">The proxy does not start without a strong master key</td><td data-label="Version" data-inline="">v1.104.0</td></tr><tr><td data-label="Change">STDIO MCP servers are off. <code>LITELLM_ENABLE_MCP_STDIO=true</code> turns them on</td><td data-label="Version" data-inline="">v1.104.0</td></tr><tr><td data-label="Change"><code>/sso/debug</code> is off. <code>ENABLE_SSO_DEBUG=true</code> turns it on</td><td data-label="Version" data-inline="">v1.105.0</td></tr></tbody></table>
<ul>
<li>We are doubling the security team with a second dedicated headcount.</li>
<li>The focus moves from reactive to proactive.</li>
<li>We are formalising how we handle vulnerabilities, disclosures and customer security requests.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="stability">Stability<a href="https://docs.litellm.ai/blog/october-townhall-updates#stability" class="hash-link" aria-label="Direct link to Stability" title="Direct link to Stability">​</a></h2>
<p>In October we shipped <strong>426 bug fixes</strong>.</p>
<table><thead><tr><th>Area</th><th>Fixes</th></tr></thead><tbody><tr><td data-label="Area" data-inline="">Providers</td><td data-label="Fixes" data-inline="">120</td></tr><tr><td data-label="Area">Spend, budgets, observability</td><td data-label="Fixes" data-inline="">94</td></tr><tr><td data-label="Area" data-inline="">Proxy core</td><td data-label="Fixes" data-inline="">82</td></tr><tr><td data-label="Area" data-inline="">Streaming / realtime</td><td data-label="Fixes" data-inline="">40</td></tr><tr><td data-label="Area" data-inline="">UI, auth, SSO</td><td data-label="Fixes" data-inline="">40</td></tr><tr><td data-label="Area" data-inline="">MCP gateway</td><td data-label="Fixes" data-inline="">27</td></tr><tr><td data-label="Area" data-inline="">Other / SDK</td><td data-label="Fixes" data-inline="">23</td></tr></tbody></table>
<p>Providers took the largest share, which is where a model release or an API change shows up first.</p>
<ul>
<li><strong>Coverage.</strong> 83.5% in September, <strong>88.4%</strong> today.</li>
<li><strong>User journeys.</strong> Up from 521 to 7,048 covered, against a 600 target for October.</li>
<li><strong>Every release</strong> now runs 7,048 integration tests, 877 end to end tests and 3 performance benchmarks.</li>
<li><strong>Roadmap.</strong> Tracked in <a href="https://github.com/BerriAI/litellm/issues/30484" target="_blank" rel="noopener noreferrer">issue #30484</a>.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="where-the-gateway-got-faster">Where the gateway got faster<a href="https://docs.litellm.ai/blog/october-townhall-updates#where-the-gateway-got-faster" class="hash-link" aria-label="Direct link to Where the gateway got faster" title="Direct link to Where the gateway got faster">​</a></h3>
<table><thead><tr><th>Metric</th><th>Before</th><th>After</th></tr></thead><tbody><tr><td data-label="Metric">Time to first byte on 440K-token prompts</td><td data-label="Before" data-inline="">553 ms</td><td data-label="After" data-inline="">35 ms</td></tr><tr><td data-label="Metric">Redis round trips per request</td><td data-label="Before" data-inline="">22</td><td data-label="After" data-inline="">8</td></tr><tr><td data-label="Metric">Usage page load with 5,000+ keys</td><td data-label="Before" data-inline="">6+ min</td><td data-label="After" data-inline="">3.2 s</td></tr></tbody></table>
<p>The <code>litellm-core</code> install is also 65.6 MB smaller.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="rust-path">Rust path<a href="https://docs.litellm.ai/blog/october-townhall-updates#rust-path" class="hash-link" aria-label="Direct link to Rust path" title="Direct link to Rust path">​</a></h3>
<p>OCR runs on Rust by default, and <code>/v1/messages</code> is opt-in behind a flag.</p>
<p><img decoding="async" loading="lazy" alt="Rust migration timeline: 22 percent of major APIs built as of v1.106 rc2 on October 13, rising through the end to end /messages milestones on November 7 and November 21 toward the 100 percent goal on December 31" src="https://docs.litellm.ai/assets/images/rust-path-8acd5d09c69f228cd3759c926711a438.png" width="1600" height="845" class="img_ev3q"></p>
<ul>
<li><code>/v1/messages</code> still has a Python dependency to migrate, so the speed arrives with the end to end path.</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 22%.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="product">Product<a href="https://docs.litellm.ai/blog/october-townhall-updates#product" class="hash-link" aria-label="Direct link to Product" title="Direct link to Product">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="decisions-api">Decisions API<a href="https://docs.litellm.ai/blog/october-townhall-updates#decisions-api" class="hash-link" aria-label="Direct link to Decisions API" title="Direct link to Decisions API">​</a></h3>
<p><code>/v1/decisions</code> asks a yes/no, multiple-choice or score question about an input and returns a probability for each answer.</p>
<ul>
<li>Keys, budgets, spend, fallbacks and guardrails all apply.</li>
<li>Providers: OpenAI, Perplexity, TypeSafe Jev, OpenRouter, Cloudflare, vLLM, Azure AI, Strands Decider, Databricks, Fireworks AI, Laya, Bespoke and Nace.</li>
<li><strong>JevRank</strong> puts those models behind the rerank API, so you swap a rerank call without a change to your application. The <a href="https://docs.litellm.ai/blog/jevrank" target="_blank" rel="noopener noreferrer">JevRank post</a> has the SciFact results.</li>
<li>See the <a href="https://docs.litellm.ai/docs/decisions" target="_blank" rel="noopener noreferrer">decisions docs</a> for setup.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="auto-router">Auto Router<a href="https://docs.litellm.ai/blog/october-townhall-updates#auto-router" class="hash-link" aria-label="Direct link to Auto Router" title="Direct link to Auto Router">​</a></h3>
<ul>
<li>Use any decision model as the classifier.</li>
<li>Self-hosted OSS classifiers, Laya and Bespoke Nimble, arrive next release.</li>
<li>Context compaction is on by default. Prompt-cache cost routing is opt-in.</li>
<li>Tokens, cost and savings per router land next release.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="lens">Lens<a href="https://docs.litellm.ai/blog/october-townhall-updates#lens" class="hash-link" aria-label="Direct link to Lens" title="Direct link to Lens">​</a></h3>
<p>Lens uses AI agents to read your agent traces and find recurring failures. Teams run hundreds of agents and 200K or more traces, which nobody reads by hand.</p>
<p><img decoding="async" loading="lazy" alt="Lens investigation card: five runs ended before the requested answer was delivered, with a what-happened summary, a what-to-do-next step and per-run evidence quotes" src="https://docs.litellm.ai/assets/images/lens-631a4d4c6e6d49cdd4c19afedc19f97e.png" width="1600" height="845" class="img_ev3q"></p>
<ul>
<li>It found 11 of the 11 expected failure patterns in a 99,797-span test set.</li>
<li>Beta. Request early access, or deploy from source at <a href="https://github.com/BerriAI/lens" target="_blank" rel="noopener noreferrer">github.com/BerriAI/lens</a>.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="moyai">Moyai<a href="https://docs.litellm.ai/blog/october-townhall-updates#moyai" class="hash-link" aria-label="Direct link to Moyai" title="Direct link to Moyai">​</a></h3>
<p>Moyai is an open source coding agent that runs in your cloud. Give it a task from Slack or the browser, then review the pull request it opens.</p>
<p><img decoding="async" loading="lazy" alt="Moyai open source cloud agent, showing the harnesses and providers it runs through, including Claude Code, Codex, OpenCode, Deep Agents, Anthropic, OpenAI, Google, Mistral and Fireworks" src="https://docs.litellm.ai/assets/images/moyai-5add753e5524c029d3b33186f870736c.png" width="1600" height="845" class="img_ev3q"></p>
<ul>
<li>Our own Devin bill passed $101k in one month, and it grew with the team.</li>
<li>Moyai is an estimated 79% lower cost.</li>
<li>It needs Modal, a LiteLLM gateway and a virtual key: <a href="https://github.com/BerriAI/moyai" target="_blank" rel="noopener noreferrer">github.com/BerriAI/moyai</a>.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="litellm-relay">LiteLLM Relay<a href="https://docs.litellm.ai/blog/october-townhall-updates#litellm-relay" class="hash-link" aria-label="Direct link to LiteLLM Relay" title="Direct link to LiteLLM Relay">​</a></h3>
<p>Relay connects to your existing Jamf, Intune or Kandji MDM and installs on every corporate Mac, then points Claude Code, Claude Desktop and Codex at LiteLLM.</p>
<p><img decoding="async" loading="lazy" alt="LiteLLM Relay flow: connect Relay to your MDM, Relay points Claude Code, Claude Desktop and Codex at LiteLLM, each employee signs in once with company SSO, every employee gets their own gateway credential, and Relay holds credentials in memory only" src="https://docs.litellm.ai/assets/images/relay-77715bbf206f26478897ee1dfe7514c3.png" width="1600" height="845" class="img_ev3q"></p>
<ul>
<li>Each employee signs in once with company SSO and gets their own gateway credential, so IT never hands out virtual keys.</li>
<li>Relay holds credentials in memory only.</li>
<li>New since September: per-user SSO sign-in, Claude Desktop support, and Relay MCP for gateway MCP tools in Claude Code and Codex.</li>
<li>macOS early beta at <a href="https://github.com/LiteLLM-Labs/litellm-relay" target="_blank" rel="noopener noreferrer">github.com/LiteLLM-Labs/litellm-relay</a>.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="claude-code-and-codex-through-the-gateway">Claude Code and Codex through the gateway<a href="https://docs.litellm.ai/blog/october-townhall-updates#claude-code-and-codex-through-the-gateway" class="hash-link" aria-label="Direct link to Claude Code and Codex through the gateway" title="Direct link to Claude Code and Codex through the gateway">​</a></h3>
<ul>
<li>In Claude Code, run <code>/login</code> and pick "Cloud gateway". In Codex, sign in with <code>lite codex</code>.</li>
<li>Refresh tokens land next release and keep you signed in for 14 days. Before, users signed in every 24 hours.</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="handoff-our-cloud-agent-workshop">Handoff, our cloud agent workshop<a href="https://docs.litellm.ai/blog/october-townhall-updates#handoff-our-cloud-agent-workshop" class="hash-link" aria-label="Direct link to Handoff, our cloud agent workshop" title="Direct link to Handoff, our cloud agent workshop">​</a></h3>
<p>Handoff runs remote from October 26 to November 9. Sign up at <a href="https://handoff.litellm.ai/" target="_blank" rel="noopener noreferrer">handoff.litellm.ai</a>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="roadmap">Roadmap<a href="https://docs.litellm.ai/blog/october-townhall-updates#roadmap" class="hash-link" aria-label="Direct link to Roadmap" title="Direct link to Roadmap">​</a></h3>
<ul>
<li><strong>Now.</strong> Harden CI/CD and product security, complete the Rust migration by December 1, and reduce regressions.</li>
<li><strong>Next one to two months.</strong> Resolve more than a thousand open GitHub issues and improve the developer experience.</li>
<li><strong>Next three to six months.</strong> The core workflows for developers who build production agents on LiteLLM.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="were-hiring">We're hiring<a href="https://docs.litellm.ai/blog/october-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 have open roles across the core gateway, and two new security roles. 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>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="security" term="security"/>
        <category label="reliability" term="reliability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Contained: Oct 21, 2026 LiteLLM release v1.107.0 Compromised]]></title>
        <id>https://docs.litellm.ai/blog/security-incident-oct-21-2026</id>
        <link href="https://docs.litellm.ai/blog/security-incident-oct-21-2026"/>
        <updated>2026-10-21T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM release v1.107.0 was compromised by a malicious actor.]]></summary>
        <content type="html"><![CDATA[<blockquote>
<p><strong>Status:</strong> Incident contained, investigation located <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain">here</a></p>
</blockquote>
<blockquote>
<p><strong>Last updated:</strong> October 21, 2026 20:30 UTC</p>
</blockquote>
<p>In the early morning of October 21, LiteLLM's release pipeline was compromised
and pushed v1.107.0 to the docker registry and PyPi. This version contained
compiled malware which steals credentials and loads remote-code execution tools.
All previous versions are safe, and the impacted releases have been pulled.
<strong>Enterprise Customers running the private enterprise release of LiteLLM were not impacted.</strong></p>
<p><strong>Update (20:30 UTC):</strong> We believe we have identified the attack chain which facilitated this attack. The attacker had to compromise multiple independent security controls to be successful. See <strong>How this happened</strong> below.</p>
<p><strong>Update (October 23, 21:50 UTC):</strong> This post was written while our investigation was ongoing. Some our assumptions and beliefs reflected in our status updates and the text below were later discovered to be inaccurate or incomplete. We have left them in their original form as a record of our investigation, but have posted a canonical record <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p><strong>Update (October 30):</strong> The commit that rotated our cosign image signing key on October 23 now shows as verified on GitHub, and we added the new key's fingerprint to this post. See <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#image-signing-key-rotation">Image signing key rotation</a>.</p>
<!-- -->
<hr>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="tldr">TLDR;<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#tldr" class="hash-link" aria-label="Direct link to TLDR;" title="Direct link to TLDR;">​</a></h2>
<ul>
<li>A malicious <code>litellm==1.107.0</code> package was published to PyPI and was live for approximately 2 hours (11:39 UTC to 13:23 UTC). <strong>It has since been pulled.</strong></li>
<li>Docker images <code>v1.107.0</code>, <code>latest</code>, <code>main-latest</code>, and <code>main-stable</code> were compromised from 11:46 UTC to 14:20 UTC. <strong>The <code>v1.107.0</code> image was removed, and the others were pointed at secure sources.</strong></li>
<li><strong>Enterprise Customers running the private enterprise release of LiteLLM were not impacted.</strong></li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="overview">Overview<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#overview" class="hash-link" aria-label="Direct link to Overview" title="Direct link to Overview">​</a></h2>
<p>At around 4:40 AM PDT (11:40 UTC) October 21, LiteLLM's release pipeline was compromised
and pushed v1.107.0 to the docker registry and PyPi. This version contained
compiled malware which steals credentials and loads remote-code execution tools.
All previous versions are safe, and the impacted releases have been pulled.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="confirmed-affected-versions">Confirmed Affected Versions<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#confirmed-affected-versions" class="hash-link" aria-label="Direct link to Confirmed Affected Versions" title="Direct link to Confirmed Affected Versions">​</a></h2>
<p>The following LiteLLM artifacts were impacted:</p>
<ul>
<li><strong>PyPI: <code>litellm==1.107.0</code></strong>: all seven wheels, live from 11:39:51 to 13:23 UTC</li>
<li><strong>Docker Hub: <code>v1.107.0</code>, <code>latest</code>, <code>main-latest</code>, and <code>main-stable</code></strong>: pointed to compromised image index <code>sha256:1bbcb1443bc962e45f5aad53fe3d2c30600e0379715fb6c664cdd3ac126c339e</code> from 11:46:56 to 14:20 UTC</li>
<li><strong>GHCR: <code>v1.107.0</code>, <code>latest</code>, <code>main-latest</code>, and <code>main-stable</code></strong>: pointed to the compromised image indexes below from 11:46:56 UTC until they were made unavailable by 13:51 UTC<!-- -->
<ul>
<li><code>ghcr.io/berriai/litellm</code>: <code>sha256:1bbcb1443bc9…</code></li>
<li><code>ghcr.io/berriai/litellm-database</code>: <code>sha256:c00f9d92c427…</code></li>
<li><code>ghcr.io/berriai/litellm-non_root</code>: <code>sha256:7b00e91cd2fe…</code></li>
</ul>
</li>
</ul>
<p>The official <code>v1.107.0</code> source tag in GitHub does not contain the malicious files. The compromised artifacts were built from an attacker-controlled repository.</p>
<p>If you installed or ran any of these artifacts, review the recommendations below immediately.</p>
<p>Note: These artifacts have already been removed from PyPI, Docker Hub, and GHCR.</p>
<hr>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="who-is-affected">Who is affected<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#who-is-affected" class="hash-link" aria-label="Direct link to Who is affected" title="Direct link to Who is affected">​</a></h2>
<p>You are affected if you used an unpinned version of LiteLLM between 11:39 and 13:23 UTC via pip or if you used the docker image <code>v1.107.0</code>, <code>latest</code>, <code>main-latest</code>, or <code>main-stable</code> between 11:46 and 14:20 UTC.</p>
<p><strong>OSS Users</strong></p>
<p>If you ran <code>pip install</code> on LiteLLM v1.107.0 or started the docker image in the compromised interval, assume it is compromised.</p>
<p>For the time being, please pin your version to 1.106.2 or any explicit version published prior to now.</p>
<p><strong>Enterprise Customers</strong></p>
<p>There currently exists a private LiteLLM registry for enterprise customers, in which we are distributing an embargoed release that remediates a vulnerability whose disclosure date is scheduled for October 27. Our private registry is not affected. If you are an enterprise customer pulling from our private registry you are not affected.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-check-if-you-are-affected">How to check if you are affected<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#how-to-check-if-you-are-affected" class="hash-link" aria-label="Direct link to How to check if you are affected" title="Direct link to How to check if you are affected">​</a></h3>
<p>If you ran <code>pip install</code> on LiteLLM v1.107.0 or started the docker image in the compromised interval, assume it is compromised.</p>
<ul>
<li>If an environment started Python with litellm==1.107.0, treat that environment as compromised. You can check with <code>pip show litellm</code>.</li>
<li>If a container executed affected image digest sha256:1bbcb1443bc962e45f5aad53fe3d2c30600e0379715fb6c664cdd3ac126c339e, treat it as compromised.</li>
<li>Search filesystem evidence for litellm-1.107.0.dist-info, cook.pth, and sitecustomize.py. Finding one confirms exposure, but not finding one does not prove the environment is clean.</li>
</ul>
<p>We will be posting more detail on how specifically to find indication of compromise. For now, you can find details of the attack and our initial responses in this <a href="https://github.com/BerriAI/litellm/issues/47826#issue-5960147552" target="_blank" rel="noopener noreferrer">GitHub Issue</a>.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-to-do-if-you-are-affected">What to do if you are affected<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#what-to-do-if-you-are-affected" class="hash-link" aria-label="Direct link to What to do if you are affected" title="Direct link to What to do if you are affected">​</a></h3>
<p>These instructions are courtesy of <a href="https://github.com/LidorMachluf" target="_blank" rel="noopener noreferrer">LidorMachluf</a>, who helped us to detect this incident.</p>
<p><strong>Don't start with <code>pip install</code>.</strong> Any Python start in the affected environment runs <code>cook.pth</code> and <code>sitecustomize.py</code> again, and that includes running pip.</p>
<ol>
<li>From the shell, delete <code>cook.pth</code>, <code>cook.py</code>, <code>sitecustomize.py</code> and any matching <code>__pycache__/cook*.pyc</code> and <code>sitecustomize*.pyc</code> from <strong>every</strong> affected site-packages.</li>
<li>Kill the detached python daemon (it holds <code>/tmp/remote_code_loader.lock</code>).</li>
<li>Reinstall pinned to <code>litellm==1.106.2</code>. Rebuilding images and venvs from scratch is better.</li>
<li><strong>If 1.107.0 was ever installed on a host with outbound internet, assume the exfil succeeded.</strong> If the marker file exists, the exfil is confirmed. If it doesn't, that proves nothing: containers and tmp cleanup remove it.</li>
<li>Rotate everything listed above that the host could reach. In particular:<!-- -->
<ul>
<li>the instance/task IAM role</li>
<li><strong>every provider key stored in the LiteLLM proxy DB</strong>, plus the master and virtual keys</li>
<li>the <code>DATABASE_URL</code> password</li>
<li>any secret that was in the environment of any process on the host</li>
</ul>
</li>
<li>Check CloudTrail for <code>GetCallerIdentity</code> from the instance role around install time, then for use of the role's credentials from outside your infrastructure.</li>
</ol>
<hr>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-this-happened">How this happened?<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#how-this-happened" class="hash-link" aria-label="Direct link to How this happened?" title="Direct link to How this happened?">​</a></h2>
<div class="theme-admonition theme-admonition-tip admonition_xJq3 alert alert--success"><div class="admonitionHeading_Gvgb"><span class="admonitionIcon_Rf37"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>Notice</div><div class="admonitionContent_BuS1"><p>This post was written while our investigation was ongoing. Some our assumptions and beliefs reflected in our status updates and the text below were later discovered to be inaccurate or incomplete. We have left them in their original form as a record of our investigation, but have posted a canonical record <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain" target="_blank" rel="noopener noreferrer">here</a>.</p></div></div>
<p>After the prior incident in March, we <a href="https://docs.litellm.ai/blog/ci-cd-v2-improvements">meaningfully hardened our CI release pipeline</a>. We moved releases to a private repo, have a strict set of workflows used in order to create them via Trusted GitHub Publishers, made our docker release tags immutable, and are signing docker images.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="normal-release-flow">Normal release flow<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#normal-release-flow" class="hash-link" aria-label="Direct link to Normal release flow" title="Direct link to Normal release flow">​</a></h3>
<ol>
<li><strong>Cut a release-candidate branch and tag.</strong> This happens on Friday at 3AM, and the branch and tag do not change.</li>
<li><strong>Qualify the release candidate.</strong> We run the code through our integration tests, both publicly through CircleCI and privately through Buildkite, and check that everything is correct.</li>
<li><strong>Create artifacts.</strong> This step is a GitHub workflow that runs in a private repo, and creates artifacts based on the SHA that has been qualified. This must be done by an engineer with write permissions to the private release repo.</li>
<li><strong>Deploy artifacts to testing environment.</strong> We run a second round of testing against the produced artifacts.</li>
<li><strong>Publish the artifacts.</strong> This is a GitHub workflow that uses Trusted GitHub Publishers to publish the artifacts made in the previous step. Publishing can only be performed by an account locked to a specific laptop physically located within our office at all times. No docker image is rebuilt at publish time.</li>
</ol>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-it-was-undermined">How it was undermined<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#how-it-was-undermined" class="hash-link" aria-label="Direct link to How it was undermined" title="Direct link to How it was undermined">​</a></h3>
<ol>
<li>On Monday, we temporarily expanded release permissions to allow two internal engineers to publish daily bugfix backports for customers.</li>
<li>The attacker had access to three sets of developer GitHub CLI credentials (<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#github-cli-oauth-token-exposure">more on this below</a>). One of these had the ability to run GitHub workflows.</li>
<li>The attacker tried to merge a change to allow the releaser to be pointed at a different source repository, but was unable to due to our protections. One of the tokens held by the attacker belonged to one of our two GitHub organization owners. The attacker used this to disable branch protections and force push the change.</li>
<li>Finally, they ran the compromised workflow, pointed at a lookalike repository (<code>Berri-AI/litellm</code> instead of <code>BerriAI/litellm</code>), which signed and published the poisoned artifacts.</li>
</ol>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="github-cli-oauth-token-exposure">GitHub CLI OAuth token exposure<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#github-cli-oauth-token-exposure" class="hash-link" aria-label="Direct link to GitHub CLI OAuth token exposure" title="Direct link to GitHub CLI OAuth token exposure">​</a></h3>
<p>After a thorough investigation, we have observed specific situations in which Claude Code will embed a user's GitHub CLI OAuth token into a response body, and in situations where response bodies are logged, these tokens may appear in LiteLLM logs.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="access-to-our-internal-litellm-deployment">Access to our internal LiteLLM deployment<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#access-to-our-internal-litellm-deployment" class="hash-link" aria-label="Direct link to Access to our internal LiteLLM deployment" title="Direct link to Access to our internal LiteLLM deployment">​</a></h3>
<p>We identified an unexpected, innocuously named user account in our internal LiteLLM deployment, which was exposed to the public internet. We believe the attacker gained access to this deployment, obtained the GitHub CLI OAuth tokens from its logs, and subsequently used those credentials to compromise our release workflow.</p>
<p>We have not yet confirmed how the attacker gained access to our internal deployment, but currently suspect it was through a recently patched vulnerability.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="continued-investigation">Continued investigation<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#continued-investigation" class="hash-link" aria-label="Direct link to Continued investigation" title="Direct link to Continued investigation">​</a></h3>
<p>We are still working on confirming some of the above, and identifying a timeline. We will post additional details as we discover them.</p>
<p>Sincerely,
Oliver, Krrish, and Ishaan</p>
<hr>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="timeline">Timeline<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#timeline" class="hash-link" aria-label="Direct link to Timeline" title="Direct link to Timeline">​</a></h2>
<p>All times are UTC on October 21, 2026.</p>
<ul>
<li>10:08:29: GitHub branch protection rejected an unauthorized modification to our private release workflow because it had not passed the required pull-request and status-check process.</li>
<li>10:08:34: A credential associated with a privileged developer account was used to override those protections and apply workflow commit 9cf97e935aeaf791b9c8db224a2bb3ee156134ce.</li>
<li>10:46:39: The modified workflow started an official staging run. It used the attacker-controlled source repository Berri-AI/litellm at commit 20535d8fa11f786a6c24df7488a0e449ed5f09ad.</li>
<li>11:08:09: The staging run completed successfully.</li>
<li>11:08:53: The production release pipeline began.</li>
<li>11:11:18: A credential associated with a second developer account was used to satisfy the production approval gate.</li>
<li>11:39:51–11:40:13: Seven malicious litellm==1.107.0 wheels were uploaded to PyPI. The official 1.107.0 source tag did not contain the malicious files.</li>
<li>11:46:56: Container publication jobs ran for the same release. The published Docker image included malicious content from the attacker-controlled source.</li>
<li>11:53:49–11:54:01: Credentials associated with a third developer account were used to delete the production and staging workflow records. This limited the workflow logs available for investigation.</li>
<li>12:09:38–12:24:52: The unauthorized workflow revision was removed, and the release workflow was restored to its preceding revision.</li>
<li>By 13:23: PyPI had removed litellm==1.107.0.</li>
<li>13:51: A registry verification found the affected GHCR tags unavailable. Docker Hub tags v1.107.0, latest, main-latest, and main-stable still resolved to compromised image index sha256:1bbcb1443bc962e45f5aad53fe3d2c30600e0379715fb6c664cdd3ac126c339e.</li>
<li>14:20: All affected Docker Hub tags and image variants were removed or repointed to verified clean artifacts.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="response-and-remediation">Response and Remediation<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#response-and-remediation" class="hash-link" aria-label="Direct link to Response and Remediation" title="Direct link to Response and Remediation">​</a></h2>
<p>We have already taken the following steps:</p>
<ul>
<li>Removed compromised packages from PyPI</li>
<li>Revoked maintainer credentials to minimal necessary while we investigate the scope of compromise</li>
</ul>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="image-signing-key-rotation">Image signing key rotation<a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#image-signing-key-rotation" class="hash-link" aria-label="Direct link to Image signing key rotation" title="Direct link to Image signing key rotation">​</a></h3>
<p>We believe the private half of our previous cosign key was exposed when the attacker <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026-attack-chain#exfiltrating-additional-tokens">exfiltrated additional tokens</a>, so on October 23 we replaced it with a new key in <a href="https://github.com/BerriAI/litellm/commit/e82a3c646908ba0a6ee0beddc4310d7a6cac4065" target="_blank" rel="noopener noreferrer">commit <code>e82a3c6</code></a>, merged in <a href="https://github.com/BerriAI/litellm/pull/48103" target="_blank" rel="noopener noreferrer">PR #48103</a>. The first releases signed with the new key, <code>v1.103.8</code>, <code>v1.104.6</code>, <code>v1.105.4</code> and <code>v1.106.3</code>, went out on October 24, and every later release uses it too.</p>
<p>The SHA-256 fingerprint of the new public key file, <code>cosign.pub</code>, is:</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">e3fe3e08c44b16407fe0b37c43b4f8b603b3a0f4ee74c29e647bc022d762c2c0</span><br></span></code></pre></div></div>
<p>Check that the key you verify with matches it:</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 -sL https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub | shasum -a 256</span><br></span></code></pre></div></div>
<p>Earlier images are signed with the previous key from <a href="https://github.com/BerriAI/litellm/commit/0112e53046018d726492c814b3644b7d376029d0" target="_blank" rel="noopener noreferrer">commit <code>0112e53</code></a>. Trust a signature from the previous key only on an image published before the <code>v1.107.0</code> release on October 21. The compromised <code>v1.107.0</code> images also carry a valid signature from the previous key, so check their digests against the <a href="https://docs.litellm.ai/blog/security-incident-oct-21-2026#confirmed-affected-versions">affected versions</a> above. See the <a href="https://docs.litellm.ai/docs/proxy/docker_image_security">Docker image security guide</a> for the full verify commands.</p>
<hr>
<p>If you discover a security issue in LiteLLM, please report it through our <a href="https://github.com/BerriAI/litellm/security" target="_blank" rel="noopener noreferrer">bug bounty program</a>.</p>]]></content>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Oliver Jensen</name>
        </author>
        <author>
            <name>Nate Armstrong</name>
            <uri>https://www.linkedin.com/in/naterarmstrong/</uri>
        </author>
        <category label="security" term="security"/>
        <category label="incident-report" term="incident-report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[JevRank: decision models through LiteLLM’s rerank API]]></title>
        <id>https://docs.litellm.ai/blog/jevrank</id>
        <link href="https://docs.litellm.ai/blog/jevrank"/>
        <updated>2026-10-20T16:00:00.000Z</updated>
        <summary type="html"><![CDATA[Preview JevRank for low-cost reranking with Perplexity and TypeSafe decision models. Explore SciFact results, reproducible data and LiteLLM setup.]]></summary>
        <content type="html"><![CDATA[<div class="root_R9CW" data-full-width="true"><header class="launchHero_nz_F"><div class="launchInner_azUf"><div class="launchTop_ynEk"><a aria-label="Back to the LiteLLM blog" href="https://docs.litellm.ai/blog"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" width="136" alt="LiteLLM"></a><span>PREVIEW / OCTOBER 2026</span></div><div class="launchTitle_f4XO"><h1>JevRank</h1><p>Decision models<br> for reranking</p></div><p class="launchIntro_AQ7C">Turn Perplexity and TypeSafe decision models into rerankers. Keep your query, your documents and your LiteLLM endpoint.</p><p class="researchCredit_WzW1">JevRank builds on the decision-model reranking research of Jakob Gruber at <a href="https://www.swietelsky.com/">Swietelsky AG</a>.</p><figure class="dottedFlow_rXLf"><div class="flowProviders_QBXE"><span>DECISION MODELS</span><span><img src="https://docs.litellm.ai/img/jevrank/typesafe.png" width="22" height="22" alt="">TypeSafe Jev</span><span><img src="https://docs.litellm.ai/img/jevrank/perplexity-ai.svg" width="22" height="22" alt="">Perplexity</span></div><canvas class="flowCanvas_mq87" role="img" aria-label="Dotted document surfaces converge through JevRank and emerge as an ordered stack. Decision probabilities become relevance scores; the original document indices stay attached."></canvas><figcaption class="flowLabels_a2Yj"><span><small>01 / INPUT</small><strong>Query + passages</strong><code>query, documents[]</code></span><span><small>02 / TRANSFORM</small><strong>JevRank</strong><code>probabilities → scores</code></span><span><small>03 / OUTPUT</small><strong>Ranked passages</strong><code>index, relevance_score</code></span></figcaption><button class="motionControl_RMcG" type="button" aria-label="Pause flow animation">Pause motion</button></figure><div class="launchFooter_VbsO"><a href="https://docs.litellm.ai/blog/jevrank#benchmark">Read the benchmark <span aria-hidden="true">↓</span></a><a href="https://docs.litellm.ai/blog/jevrank#setup">Try the preview <span aria-hidden="true">↗</span></a><span>QUERY + DOCUMENTS → RELEVANCE SCORES</span></div></div></header><section id="benchmark" class="staticBenchmark_ebas" aria-labelledby="benchmark-title"><div class="eyebrow_P0O0"><span>01</span>BENCHMARK</div><h2 id="benchmark-title">Benchmark results</h2><p class="sectionIntro_Tlxy">In a SciFact reference benchmark, Perplexity Flash and Cohere Rerank 4 Pro both scored <strong>0.775 nDCG@10</strong>. Their projected costs were <strong>$73 versus $2,500 per million queries</strong>, about 34× lower for Flash.</p><figure class="figure_NgyB" aria-labelledby=":Rh6mn8l:-title"><figcaption class="figureHeading_FSyn" id=":Rh6mn8l:-title">Reference benchmark</figcaption><table class="comparison_yd8u"><caption class="srOnly_LvO_">Four reference configurations, ordered by reranking cost from lowest to highest.<!-- --> Quality uses a zero-to-one nDCG@10 scale. Projected cost uses a zero-to-2,500 USD scale per million queries.</caption><thead><tr><th scope="col">Model <span>Method and result origin</span></th><th scope="col">Ranking quality <span>nDCG@10 · higher is better</span></th><th scope="col">Reranking cost <span>USD / 1M queries · lower is better</span></th></tr></thead><tbody><tr class="valueRow_dFTQ"><th scope="row"><div class="model_U83Y"><img class="logo_vq4V" src="https://docs.litellm.ai/img/jevrank/perplexity-ai.svg" width="26" height="26" alt=""><div><span class="modelName_VcCc">Perplexity Decider Flash v1.2 (JevRank)</span><span class="valueTag_in_I">Lowest reference cost</span><span class="modelMeta_lnti">Multiple choice<!-- --> <span aria-hidden="true">·</span> <span class="reference_Bh2l">Reference</span></span></div></div></th><td><span class="srOnly_LvO_">nDCG at 10: </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Quality ↑</span><span class="value_kDon">0.775</span></div><div class="track_Ptq9" aria-hidden="true"><span class="bar_pLTl emphasisBar_s_IS" style="width:77.5%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></div></div></td><td><span class="srOnly_LvO_">Projected reranking cost per million queries:<!-- --> </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Cost / 1M queries ↓</span><span class="value_kDon">$73</span></div><div class="track_Ptq9 costTrack_X_nf" aria-hidden="true"><span class="bar_pLTl emphasisBar_s_IS" style="width:2.92%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></div></div></td></tr><tr><th scope="row"><div class="model_U83Y"><img class="logo_vq4V" src="https://docs.litellm.ai/img/jevrank/perplexity-ai.svg" width="26" height="26" alt=""><div><span class="modelName_VcCc">Perplexity Decider v1.2 (JevRank)</span><span class="modelMeta_lnti">Multiple choice<!-- --> <span aria-hidden="true">·</span> <span class="reference_Bh2l">Reference</span></span></div></div></th><td><span class="srOnly_LvO_">nDCG at 10: </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Quality ↑</span><span class="value_kDon">0.777</span></div><div class="track_Ptq9" aria-hidden="true"><span class="bar_pLTl" style="width:77.7%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></div></div></td><td><span class="srOnly_LvO_">Projected reranking cost per million queries:<!-- --> </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Cost / 1M queries ↓</span><span class="value_kDon">$146</span></div><div class="track_Ptq9 costTrack_X_nf" aria-hidden="true"><span class="bar_pLTl" style="width:5.84%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></div></div></td></tr><tr><th scope="row"><div class="model_U83Y"><img class="logo_vq4V" src="https://docs.litellm.ai/img/jevrank/typesafe.png" width="26" height="26" alt=""><div><span class="modelName_VcCc">TypeSafe Jev 1.14 (JevRank)</span><span class="modelMeta_lnti">Per document<!-- --> <span aria-hidden="true">·</span> <span class="reference_Bh2l">Reference</span></span></div></div></th><td><span class="srOnly_LvO_">nDCG at 10: </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Quality ↑</span><span class="value_kDon">0.776</span></div><div class="track_Ptq9" aria-hidden="true"><span class="bar_pLTl" style="width:77.60000000000001%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></div></div></td><td><span class="srOnly_LvO_">Projected reranking cost per million queries:<!-- --> </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Cost / 1M queries ↓</span><span class="value_kDon">≈$580</span></div><div class="track_Ptq9 costTrack_X_nf" aria-hidden="true"><span class="bar_pLTl" style="width:23.200000000000003%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></div></div></td></tr><tr><th scope="row"><div class="model_U83Y"><img class="logo_vq4V" src="https://docs.litellm.ai/img/jevrank/cohere.svg" width="26" height="26" alt=""><div><span class="modelName_VcCc">Cohere Rerank 4 Pro</span><span class="modelMeta_lnti">Rerank API<!-- --> <span aria-hidden="true">·</span> <span class="reference_Bh2l">Reference</span></span></div></div></th><td><span class="srOnly_LvO_">nDCG at 10: </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Quality ↑</span><span class="value_kDon">0.775</span></div><div class="track_Ptq9" aria-hidden="true"><span class="bar_pLTl baselineBar_f0A_" style="width:77.5%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></div></div></td><td><span class="srOnly_LvO_">Projected reranking cost per million queries:<!-- --> </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Cost / 1M queries ↓</span><span class="value_kDon">$2,500</span></div><div class="track_Ptq9 costTrack_X_nf" aria-hidden="true"><span class="bar_pLTl baselineBar_f0A_" style="width:100%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></div></div></td></tr></tbody><tfoot aria-hidden="true"><tr><td></td><td><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></td><td><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></td></tr></tfoot></table><div class="evidenceNote_lcki"><p><strong>SciFact · 300 queries · 20 candidates · October 2026.</strong> <!-- -->Reference results via OpenRouter. Flash costs $73 versus Cohere Pro’s $2,500 per million queries, about 34× lower. These are reference results, not our LiteLLM run.</p><p>Costs exclude gateway overhead; Jev 1.14 is projected from a rounded per-1K cost. Small score gaps do not establish a quality win.</p></div></figure><div class="staticCopy_jHwZ"><h2>Our SciFact benchmark</h2><p>We ran 6,000 document decisions through LiteLLM with Jev 1.13.0. On the same BM25 candidates, nDCG@10 improved from<!-- --> <strong>0.686 to 0.768</strong>, at an estimated<!-- --> <strong>$0.575 per 1,000 queries</strong>.</p><p>All 300 queries completed. We measured<!-- --> <strong>0.50 s median latency</strong> and<!-- --> <strong>1.15 s at p95</strong>, with eight calls in flight per query. Jev placed a relevant document first for 68% of queries, compared with<!-- --> <a href="https://docs.litellm.ai/benchmarks/jevrank/independent-audit.json">55% for BM25</a>.</p></div><figure class="figure_NgyB" aria-labelledby=":Rp6mn8l:-title"><figcaption class="figureHeading_FSyn" id=":Rp6mn8l:-title">LiteLLM benchmark</figcaption><table class="comparison_yd8u"><caption class="srOnly_LvO_">Two results measured by LiteLLM: TypeSafe Jev 1.13.0 and the local BM25 baseline.<!-- --> Quality uses a zero-to-one nDCG@10 scale. Projected cost uses a zero-to-2,500 USD scale per million queries.</caption><thead><tr><th scope="col">Model <span>Method and result origin</span></th><th scope="col">Ranking quality <span>nDCG@10 · higher is better</span></th><th scope="col">Reranking cost <span>USD / 1M queries · lower is better</span></th></tr></thead><tbody><tr><th scope="row"><div class="model_U83Y"><img class="logo_vq4V" src="https://docs.litellm.ai/img/jevrank/typesafe.png" width="26" height="26" alt=""><div><span class="modelName_VcCc">TypeSafe Jev 1.13.0 (JevRank)</span><span class="modelMeta_lnti">Per document<!-- --> <span aria-hidden="true">·</span> <span class="measured_kwCd">LiteLLM run</span></span></div></div></th><td><span class="srOnly_LvO_">nDCG at 10: </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Quality ↑</span><span class="value_kDon">0.768</span></div><div class="track_Ptq9" aria-hidden="true"><span class="bar_pLTl emphasisBar_s_IS" style="width:76.76260618846086%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></div></div></td><td><span class="srOnly_LvO_">Projected reranking cost per million queries:<!-- --> </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Cost / 1M queries ↓</span><span class="value_kDon">≈$575</span></div><div class="track_Ptq9 costTrack_X_nf" aria-hidden="true"><span class="bar_pLTl emphasisBar_s_IS" style="width:23.0157704%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></div></div></td></tr><tr><th scope="row"><div class="model_U83Y"><span class="textMark_Qyf6" aria-hidden="true">BM25</span><div><span class="modelName_VcCc">BM25</span><span class="modelMeta_lnti">Local retrieval<!-- --> <span aria-hidden="true">·</span> <span class="measured_kwCd">LiteLLM run</span></span></div></div></th><td><span class="srOnly_LvO_">nDCG at 10: </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Quality ↑</span><span class="value_kDon">0.686</span></div><div class="track_Ptq9" aria-hidden="true"><span class="bar_pLTl baselineBar_f0A_ emphasisBar_s_IS" style="width:68.63002612489066%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></div></div></td><td><span class="srOnly_LvO_">Projected reranking cost per million queries:<!-- --> </span><div><div class="metricTop_qTkv"><span class="mobileLabel_jb9c">Cost / 1M queries ↓</span><span class="value_kDon">No rerank calls</span></div><div class="track_Ptq9 costTrack_X_nf" aria-hidden="true"><span class="bar_pLTl baselineBar_f0A_ emphasisBar_s_IS" style="width:0%"></span></div><div class="mobileScale_ONZH"><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></div></div></td></tr></tbody><tfoot aria-hidden="true"><tr><td></td><td><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">0</span><span style="left:25%">0.25</span><span style="left:50%">0.5</span><span style="left:75%">0.75</span><span style="left:100%">1</span></div></td><td><div class="scale_KJtK" aria-hidden="true"><span style="left:0%">$0</span><span style="left:20%">$500</span><span style="left:40%">$1,000</span><span style="left:60%">$1,500</span><span style="left:80%">$2,000</span><span style="left:100%">$2,500</span></div></td></tr></tfoot></table><div class="evidenceNote_lcki"><p><strong>SciFact · 300 queries · 20 BM25 candidates per query.</strong> <!-- -->Measured through LiteLLM. Jev’s cost is estimated from reported tokens and excludes gateway overhead. BM25 adds no reranking calls.</p><p>The reference run’s retrieval settings and candidate identity were not verified to match this run.</p></div></figure><figure class="figure_NgyB" aria-labelledby=":Rt6mn8l:-title"><figcaption class="figureHeading_FSyn"><span id=":Rt6mn8l:-title">Cost vs. ranking quality</span><a href="https://docs.litellm.ai/benchmarks/jevrank/jevrank-cost-quality.svg" target="_blank" rel="noopener noreferrer">Download figure <span aria-hidden="true">↗</span></a></figcaption><div class="plotTop_IEFV"><span>Quality (nDCG@10) ↑</span><span>Hollow: reference <span aria-hidden="true">·</span> Solid: LiteLLM run</span></div><svg class="widePlot_IMAT" viewBox="0 0 960 500" aria-hidden="true" focusable="false"><g><line class="gridLine_X2gV" x1="66" y1="440" x2="928" y2="440"></line><text class="axisText_GDOL" x="56" y="444" text-anchor="end">0</text></g><g><line class="gridLine_X2gV" x1="66" y1="360" x2="928" y2="360"></line><text class="axisText_GDOL" x="56" y="364" text-anchor="end">0.25</text></g><g><line class="gridLine_X2gV" x1="66" y1="280" x2="928" y2="280"></line><text class="axisText_GDOL" x="56" y="284" text-anchor="end">0.5</text></g><g><line class="gridLine_X2gV" x1="66" y1="200" x2="928" y2="200"></line><text class="axisText_GDOL" x="56" y="204" text-anchor="end">0.75</text></g><g><line class="gridLine_X2gV" x1="66" y1="120" x2="928" y2="120"></line><text class="axisText_GDOL" x="56" y="124" text-anchor="end">1</text></g><g><line class="gridLine_X2gV" x1="66" y1="120" x2="66" y2="440"></line><text class="axisText_GDOL" x="66" y="462" text-anchor="middle">$0</text></g><g><line class="gridLine_X2gV" x1="238.4" y1="120" x2="238.4" y2="440"></line><text class="axisText_GDOL" x="238.4" y="462" text-anchor="middle">$0.5k</text></g><g><line class="gridLine_X2gV" x1="410.8" y1="120" x2="410.8" y2="440"></line><text class="axisText_GDOL" x="410.8" y="462" text-anchor="middle">$1k</text></g><g><line class="gridLine_X2gV" x1="583.2" y1="120" x2="583.2" y2="440"></line><text class="axisText_GDOL" x="583.2" y="462" text-anchor="middle">$1.5k</text></g><g><line class="gridLine_X2gV" x1="755.6" y1="120" x2="755.6" y2="440"></line><text class="axisText_GDOL" x="755.6" y="462" text-anchor="middle">$2k</text></g><g><line class="gridLine_X2gV" x1="928" y1="120" x2="928" y2="440"></line><text class="axisText_GDOL" x="928" y="462" text-anchor="middle">$2.5k</text></g><line class="axisLine_Xc_E" x1="66" y1="120" x2="66" y2="440"></line><line class="axisLine_Xc_E" x1="66" y1="440" x2="928" y2="440"></line><g><polyline class="leader_PJbe" points="91.1704,192 91,83 77,83 77,65"></polyline><circle class="point_Qgwh" cx="91.1704" cy="192" r="5"></circle></g><g><polyline class="leader_PJbe" points="116.3408,191.35999999999999 116,101 341,101 341,65"></polyline><circle class="point_Qgwh" cx="116.3408" cy="191.35999999999999" r="5"></circle></g><g><polyline class="leader_PJbe" points="265.98400000000004,191.68 310,192 310,160 330,160"></polyline><circle class="point_Qgwh" cx="265.98400000000004" cy="191.68" r="5"></circle></g><g><polyline class="leader_PJbe" points="928,192 928,83 727,83 727,65"></polyline><circle class="point_Qgwh baselinePoint_jGWl" cx="928" cy="192" r="5"></circle></g><g><polyline class="leader_PJbe" points="264.395940848,194.35966019692523 264,295 350,295"></polyline><circle class="point_Qgwh measuredPoint_uiRX" cx="264.395940848" cy="194.35966019692523" r="5"></circle></g><g><polyline class="leader_PJbe" points="66,220.38391640034988 82,240 82,360 90,360"></polyline><circle class="point_Qgwh measuredPoint_uiRX baselinePoint_jGWl" cx="66" cy="220.38391640034988" r="5"></circle></g><g class="plotLabel_nzwq" transform="translate(66 32)"><image href="/img/jevrank/perplexity-ai.svg" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">Perplexity Flash v1.2</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">Reference<!-- --> · <!-- -->0.775<!-- --> ·<!-- --> <!-- -->$73 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(330 32)"><image href="/img/jevrank/perplexity-ai.svg" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">Perplexity Decider v1.2</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">Reference<!-- --> · <!-- -->0.777<!-- --> ·<!-- --> <!-- -->$146 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(340 145)"><image href="/img/jevrank/typesafe.png" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">TypeSafe Jev 1.14</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">Reference<!-- --> · <!-- -->0.776<!-- --> ·<!-- --> <!-- -->≈$580 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(716 32)"><image href="/img/jevrank/cohere.svg" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">Cohere Rerank 4 Pro</tspan></text><text class="plotDetail__C_3" x="30" y="32">Reference<!-- --> · <!-- -->0.775<!-- --> ·<!-- --> <!-- -->$2,500 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(360 280)"><image href="/img/jevrank/typesafe.png" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">TypeSafe Jev 1.13.0</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">LiteLLM run<!-- --> · <!-- -->0.768<!-- --> ·<!-- --> <!-- -->≈$575 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(100 345)"><text class="plotModel_T1mA" x="0" y="14"><tspan x="0" dy="0">BM25</tspan></text><text class="plotDetail__C_3" x="0" y="32">LiteLLM run<!-- --> · <!-- -->0.686<!-- --> ·<!-- --> <!-- -->No rerank calls</text></g><text class="axisTitle___il" x="497" y="491" text-anchor="middle">Projected cost / 1M queries (USD) →</text></svg><svg class="compactPlot_uiz3" viewBox="0 0 340 570" aria-hidden="true" focusable="false"><g><line class="gridLine_X2gV" x1="36" y1="510" x2="322" y2="510"></line><text class="axisText_GDOL" x="26" y="514" text-anchor="end">0</text></g><g><line class="gridLine_X2gV" x1="36" y1="420" x2="322" y2="420"></line><text class="axisText_GDOL" x="26" y="424" text-anchor="end">0.25</text></g><g><line class="gridLine_X2gV" x1="36" y1="330" x2="322" y2="330"></line><text class="axisText_GDOL" x="26" y="334" text-anchor="end">0.5</text></g><g><line class="gridLine_X2gV" x1="36" y1="240" x2="322" y2="240"></line><text class="axisText_GDOL" x="26" y="244" text-anchor="end">0.75</text></g><g><line class="gridLine_X2gV" x1="36" y1="150" x2="322" y2="150"></line><text class="axisText_GDOL" x="26" y="154" text-anchor="end">1</text></g><g><line class="gridLine_X2gV" x1="36" y1="150" x2="36" y2="510"></line><text class="axisText_GDOL" x="36" y="532" text-anchor="middle">$0</text></g><g><line class="gridLine_X2gV" x1="150.4" y1="150" x2="150.4" y2="510"></line><text class="axisText_GDOL" x="150.4" y="532" text-anchor="middle">$1k</text></g><g><line class="gridLine_X2gV" x1="264.8" y1="150" x2="264.8" y2="510"></line><text class="axisText_GDOL" x="264.8" y="532" text-anchor="middle">$2k</text></g><g><line class="gridLine_X2gV" x1="322" y1="150" x2="322" y2="510"></line><text class="axisText_GDOL" x="322" y="532" text-anchor="middle">$2.5k</text></g><line class="axisLine_Xc_E" x1="36" y1="150" x2="36" y2="510"></line><line class="axisLine_Xc_E" x1="36" y1="510" x2="322" y2="510"></line><g><polyline class="leader_PJbe" points="44.3512,231 44,65 59,65 59,50"></polyline><circle class="point_Qgwh" cx="44.3512" cy="231" r="4"></circle></g><g><polyline class="leader_PJbe" points="52.7024,230.27999999999997 53,130 86,130 86,115"></polyline><circle class="point_Qgwh" cx="52.7024" cy="230.27999999999997" r="4"></circle></g><g><polyline class="leader_PJbe" points="102.352,230.64 114,211 120,211"></polyline><circle class="point_Qgwh" cx="102.352" cy="230.64" r="4"></circle></g><g><polyline class="leader_PJbe" points="322,231 322,275 141,275 141,285"></polyline><circle class="point_Qgwh baselinePoint_jGWl" cx="322" cy="231" r="4"></circle></g><g><polyline class="leader_PJbe" points="101.825103344,233.6546177215409 101,345 111,345 111,355"></polyline><circle class="point_Qgwh measuredPoint_uiRX" cx="101.825103344" cy="233.6546177215409" r="4"></circle></g><g><polyline class="leader_PJbe" points="36,262.93190595039357 42,281 42,451"></polyline><circle class="point_Qgwh measuredPoint_uiRX baselinePoint_jGWl" cx="36" cy="262.93190595039357" r="4"></circle></g><g class="plotLabel_nzwq" transform="translate(48 20)"><image href="/img/jevrank/perplexity-ai.svg" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">Perplexity Flash v1.2</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">Reference<!-- --> · <!-- -->0.775<!-- --> ·<!-- --> <!-- -->$73 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(75 85)"><image href="/img/jevrank/perplexity-ai.svg" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">Perplexity Decider v1.2</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">Reference<!-- --> · <!-- -->0.777<!-- --> ·<!-- --> <!-- -->$146 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(130 180)"><image href="/img/jevrank/typesafe.png" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">TypeSafe Jev 1.14</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">Reference<!-- --> · <!-- -->0.776<!-- --> ·<!-- --> <!-- -->≈$580 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(130 295)"><image href="/img/jevrank/cohere.svg" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">Cohere Rerank 4 Pro</tspan></text><text class="plotDetail__C_3" x="30" y="32">Reference<!-- --> · <!-- -->0.775<!-- --> ·<!-- --> <!-- -->$2,500 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(100 365)"><image href="/img/jevrank/typesafe.png" width="22" height="22" preserveAspectRatio="xMidYMid meet"></image><text class="plotModel_T1mA" x="30" y="14"><tspan x="30" dy="0">TypeSafe Jev 1.13.0</tspan><tspan x="30" dy="16">(JevRank)</tspan></text><text class="plotDetail__C_3" x="30" y="48">LiteLLM run<!-- --> · <!-- -->0.768<!-- --> ·<!-- --> <!-- -->≈$575 / 1M</text></g><g class="plotLabel_nzwq" transform="translate(48 435)"><text class="plotModel_T1mA" x="0" y="14"><tspan x="0" dy="0">BM25</tspan></text><text class="plotDetail__C_3" x="0" y="32">LiteLLM run<!-- --> · <!-- -->0.686<!-- --> ·<!-- --> <!-- -->No rerank calls</text></g><text class="axisTitle___il" x="179" y="561" text-anchor="middle">Projected cost / 1M queries (USD) →</text></svg><details class="plotData_odri"><summary>View exact chart data</summary><div class="dataScroll_FWWK"><table class="dataTable_NyYt"><caption class="srOnly_LvO_">Cost vs. ranking quality for all six configurations. Quality is nDCG at10; costs are USD per million queries.</caption><thead><tr><th scope="col">Model and method</th><th scope="col">Origin</th><th scope="col">nDCG@10</th><th scope="col">Cost / 1M</th></tr></thead><tbody><tr><th scope="row">Perplexity Decider Flash v1.2 (JevRank)<span>Multiple choice</span></th><td>Reference</td><td>0.775</td><td>$73</td></tr><tr><th scope="row">Perplexity Decider v1.2 (JevRank)<span>Multiple choice</span></th><td>Reference</td><td>0.777</td><td>$146</td></tr><tr><th scope="row">TypeSafe Jev 1.14 (JevRank)<span>Per document</span></th><td>Reference</td><td>0.776</td><td>≈$580</td></tr><tr><th scope="row">Cohere Rerank 4 Pro<span>Rerank API</span></th><td>Reference</td><td>0.775</td><td>$2,500</td></tr><tr><th scope="row">TypeSafe Jev 1.13.0 (JevRank)<span>Per document</span></th><td>LiteLLM run</td><td>0.7676260618846087</td><td>≈$575.39426</td></tr><tr><th scope="row">BM25<span>Local retrieval</span></th><td>LiteLLM run</td><td>0.6863002612489066</td><td>No rerank calls</td></tr></tbody></table></div></details><p class="plotNote_ENoV">Both axes start at zero. Lines connect labels to their actual data points. Reference and measured candidate protocols may differ. BM25 has no reranking calls; retrieval itself is not asserted to be free.</p><div class="evidenceNote_lcki"><p>Reference results via OpenRouter; solid points are our LiteLLM run. Costs exclude gateway overhead. The 34× comparison applies only to reference Flash versus reference Cohere Pro; nearby scores do not establish a quality win.</p></div></figure></section><details class="recordedSupplement_KXoc"><summary>Recorded examples<!-- --> <span>Improvement, unchanged ranking and regression</span></summary><section id="recorded-demo" class="demo_K7pc" aria-labelledby="demo-title"><div class="sectionHeading_Fgiu"><div><div class="eyebrow_P0O0"><span>02</span>EXAMPLES</div><h2 id="demo-title">Recorded examples</h2></div><span class="recordedBadge_nJK2"><span></span>Recorded · Jev 1.13.0</span></div><p class="sectionIntro_Tlxy">Explore three saved queries, including an improvement, an unchanged first result and a regression. The scores come from our benchmark. These controls make no model calls.</p><div class="demoPanel_lrTp"><div class="exampleButtons_ozL3" role="group" aria-label="Recorded query example"><button type="button" aria-pressed="true">Plant roots</button><button type="button" aria-pressed="false">Fruit flies</button><button type="button" aria-pressed="false">Bacterial cells</button></div><div class="query_IKEH"><span>QUERY <!-- -->702</span><p>Localization of PIN1 in the roots of Arabidopsis does not require VPS9a</p></div><div class="rankingToolbar_Iliq"><div class="switch_oMCq" role="group" aria-label="Document ranking"><button type="button" aria-pressed="true">BM25 retrieval</button><button type="button" aria-pressed="false">After JevRank</button></div><span aria-live="polite">First relevant result:<!-- --> <strong>#<!-- -->3</strong></span></div><ol class="documentList_y0XO"><li class=""><span class="rank_iZv3">1</span><div class="documentCopy_jl6T"><div><strong>Local, Efflux-Dependent Auxin Gradients as a Common Module for Plant Organ Formation</strong></div><p>Plants, compared to animals, exhibit an amazing adaptability and plasticity in their development. This is largely dependent on the ability of plants to form new organs, such as lateral roots, leaves, and flowers during postembryonic…</p><span class="documentMeta_lPI2">Document <!-- -->16557565</span></div></li><li class=""><span class="rank_iZv3">2</span><div class="documentCopy_jl6T"><div><strong>A molecular framework for plant regeneration.</strong></div><p>Plants and some animals have a profound capacity to regenerate organs from adult tissues. Molecular mechanisms for regeneration have, however, been largely unexplored. Here we investigate a local regeneration response in Arabidopsis roots.…</p><span class="documentMeta_lPI2">Document <!-- -->38675228</span></div></li><li class="relevantDocument_gcwq"><span class="rank_iZv3">3</span><div class="documentCopy_jl6T"><div><strong>Generation of cell polarity in plants links endocytosis, auxin distribution and cell fate decisions</strong><span class="relevantBadge_TSG1">Judged relevant · SciFact</span></div><p>Dynamically polarized membrane proteins define different cell boundaries and have an important role in intercellular communication—a vital feature of multicellular development. Efflux carriers for the signalling molecule auxin from the PIN…</p><span class="documentMeta_lPI2">Document <!-- -->4350400</span></div></li><li class=""><span class="rank_iZv3">4</span><div class="documentCopy_jl6T"><div><strong>The rice FISH BONE gene encodes a tryptophan aminotransferase, which affects pleiotropic auxin-related processes.</strong></div><p>Auxin is a fundamental plant hormone and its localization within organs plays pivotal roles in plant growth and development. Analysis of many Arabidopsis mutants that were defective in auxin biosynthesis revealed that the indole-3-pyruvic…</p><span class="documentMeta_lPI2">Document <!-- -->19950357</span></div></li><li class=""><span class="rank_iZv3">5</span><div class="documentCopy_jl6T"><div><strong>The WUSCHEL-related homeobox gene WOX11 is required to activate shoot-borne crown root development in rice.</strong></div><p>In rice (Oryza sativa), the shoot-borne crown roots are the major root type and are initiated at lower stem nodes as part of normal plant development. However, the regulatory mechanism of crown root development is poorly understood. In…</p><span class="documentMeta_lPI2">Document <!-- -->20402596</span></div></li></ol><div class="demoFooter_Y14q"><button type="button">Show all 20 candidates<!-- --> <span aria-hidden="true">↓</span></button><span>0.46<!-- --> s ·<!-- --> <!-- -->$0.51<!-- --> estimated / 1K queries at this query’s length</span></div></div><p class="caption_RK0l">SciFact labels evidence relevance, including supporting and refuting evidence. The model’s scores can disagree with those judgments.<!-- --> <a href="https://docs.litellm.ai/benchmarks/jevrank/query-examples.json">Download these examples ↗</a></p></section></details><section id="how-it-works" class="section_KzYh" aria-labelledby="method-title"><div class="header_wfJR"><span class="eyebrow_v6Cj">03 / SCORING</span><h2 id="method-title">How JevRank works</h2><p>Follow one recorded TypeSafe Jev request from input to ranking. We show three of the 20 passages from SciFact query 702.</p></div><div class="accessibleExample_FotI"><p>Recorded query: <!-- -->Localization of PIN1 in the roots of Arabidopsis does not require VPS9a</p><ol><li>Input index <!-- -->0<!-- -->: <!-- -->Local, Efflux-Dependent Auxin Gradients as a Common Module for Plant Organ Formation<!-- -->. Jev relevance score <!-- -->0.14<!-- -->; output rank<!-- --> <!-- -->2<!-- -->.</li><li>Input index <!-- -->1<!-- -->: <!-- -->A molecular framework for plant regeneration.<!-- -->. Jev relevance score <!-- -->0.12<!-- -->; output rank<!-- --> <!-- -->3<!-- -->.</li><li>Input index <!-- -->2<!-- -->: <!-- -->Generation of cell polarity in plants links endocytosis, auxin distribution and cell fate decisions<!-- -->. Jev relevance score <!-- -->0.39<!-- -->; output rank<!-- --> <!-- -->1<!-- -->.</li></ol></div><div class="story_F75g" data-enhanced="false"><div class="stickyVisual_PDX1"><nav class="stepNav__hrQ" aria-label="Reranking walkthrough"><a href="https://docs.litellm.ai/blog/jevrank#rerank-input" aria-current="step"><span>0<!-- -->1</span> <!-- -->Input</a><a href="https://docs.litellm.ai/blog/jevrank#rerank-scores"><span>0<!-- -->2</span> <!-- -->Score</a><a href="https://docs.litellm.ai/blog/jevrank#rerank-output"><span>0<!-- -->3</span> <!-- -->Rank</a></nav><div class="progress_W__8" aria-hidden="true"><span></span></div><div aria-hidden="true"><div class="scene_zJGZ" data-stage="1"><div class="sceneTop_rL0V"><span>0<!-- -->1<!-- --> / <!-- -->Input</span><span>query + documents[]</span></div><div class="query_nPXW"><span class="fieldLabel_FqwC">QUERY 702</span><p>Localization of PIN1 in the roots of Arabidopsis does not require VPS9a</p></div><div class="modelConnection_Ysod"><svg viewBox="0 0 600 54" preserveAspectRatio="none" aria-hidden="true"><path d="M300 0V11M300 43V54M300 49H14V54M300 49H586V54"></path><circle cx="300" cy="5" r="2"></circle><circle cx="300" cy="49" r="2"></circle></svg><span class="model_tox1"><img src="https://docs.litellm.ai/img/jevrank/typesafe.png" alt="" width="20" height="20">TypeSafe Jev 1.13.0</span></div><div class="documents_kg7o"><div class="document_d_s8" style="--slot:0;--score:0.14" data-document-index="0"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[0]</span></div><span class="documentTitle_sJvm">Local, Efflux-Dependent Auxin Gradients as a Common Module for Plant Organ Formation</span></div><div class="score_DBWo" aria-hidden="true"><span>0.14</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->2</span></div><div class="document_d_s8" style="--slot:1;--score:0.12" data-document-index="1"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[1]</span></div><span class="documentTitle_sJvm">A molecular framework for plant regeneration.</span></div><div class="score_DBWo" aria-hidden="true"><span>0.12</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->3</span></div><div class="document_d_s8 followed_dK7x" style="--slot:2;--score:0.39" data-document-index="2"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[2]</span><span>Follow this passage</span></div><span class="documentTitle_sJvm">Generation of cell polarity in plants links endocytosis, auxin distribution and cell fate decisions</span></div><div class="score_DBWo" aria-hidden="true"><span>0.39</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->1</span></div></div><div class="sceneFooter_x8OO"><span>Original indexes: [0, 1, 2]</span><span>3 of 20 passages shown</span></div></div></div><p class="recordedNote_katc">Recorded · TypeSafe Jev 1.13.0 · Scroll to follow the passage</p></div><div><div id="rerank-input" class="step_PbhN" data-active="true"><span class="stepNumber_O_bz">0<!-- -->1</span><h3>Send a query and documents</h3><p>Call LiteLLM’s rerank API with your query and candidate passages. Keep their input order: you will use these indexes to find each document in the response.</p><p class="stepDetail_YOA4">Follow index 2, the passage about cell polarity. It starts third in this recorded request.</p><div class="linearVisual_Msvu"><div class="scene_zJGZ" data-stage="1"><div class="sceneTop_rL0V"><span>0<!-- -->1<!-- --> / <!-- -->Input</span><span>query + documents[]</span></div><div class="query_nPXW"><span class="fieldLabel_FqwC">QUERY 702</span><p>Localization of PIN1 in the roots of Arabidopsis does not require VPS9a</p></div><div class="modelConnection_Ysod"><svg viewBox="0 0 600 54" preserveAspectRatio="none" aria-hidden="true"><path d="M300 0V11M300 43V54M300 49H14V54M300 49H586V54"></path><circle cx="300" cy="5" r="2"></circle><circle cx="300" cy="49" r="2"></circle></svg><span class="model_tox1"><img src="https://docs.litellm.ai/img/jevrank/typesafe.png" alt="" width="20" height="20">TypeSafe Jev 1.13.0</span></div><div class="documents_kg7o"><div class="document_d_s8" style="--slot:0;--score:0.14" data-document-index="0"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[0]</span></div><span class="documentTitle_sJvm">Local, Efflux-Dependent Auxin Gradients as a Common Module for Plant Organ Formation</span></div><div class="score_DBWo" aria-hidden="true"><span>0.14</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->2</span></div><div class="document_d_s8" style="--slot:1;--score:0.12" data-document-index="1"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[1]</span></div><span class="documentTitle_sJvm">A molecular framework for plant regeneration.</span></div><div class="score_DBWo" aria-hidden="true"><span>0.12</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->3</span></div><div class="document_d_s8 followed_dK7x" style="--slot:2;--score:0.39" data-document-index="2"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[2]</span><span>Follow this passage</span></div><span class="documentTitle_sJvm">Generation of cell polarity in plants links endocytosis, auxin distribution and cell fate decisions</span></div><div class="score_DBWo" aria-hidden="true"><span>0.39</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->1</span></div></div><div class="sceneFooter_x8OO"><span>Original indexes: [0, 1, 2]</span><span>3 of 20 passages shown</span></div></div></div></div><div id="rerank-scores" class="step_PbhN" data-active="false"><span class="stepNumber_O_bz">0<!-- -->2</span><h3>Score each document</h3><p>For TypeSafe Jev, LiteLLM asks the same relevance question for each passage. Jev returns a probability for each answer.</p><p class="stepDetail_YOA4">Jev assigned index 2 a score of 0.39, compared with 0.14 and 0.12 for the other two passages. These independent scores do not need to sum to one.</p><div class="linearVisual_Msvu"><div class="scene_zJGZ" data-stage="2"><div class="sceneTop_rL0V"><span>0<!-- -->2<!-- --> / <!-- -->Score</span><span>P(relevant) per passage</span></div><div class="query_nPXW"><span class="fieldLabel_FqwC">QUERY 702</span><p>Localization of PIN1 in the roots of Arabidopsis does not require VPS9a</p></div><div class="modelConnection_Ysod"><svg viewBox="0 0 600 54" preserveAspectRatio="none" aria-hidden="true"><path d="M300 0V11M300 43V54M300 49H14V54M300 49H586V54"></path><circle cx="300" cy="5" r="2"></circle><circle cx="300" cy="49" r="2"></circle></svg><span class="model_tox1"><img src="https://docs.litellm.ai/img/jevrank/typesafe.png" alt="" width="20" height="20">TypeSafe Jev 1.13.0</span></div><div class="documents_kg7o"><div class="document_d_s8" style="--slot:0;--score:0.14" data-document-index="0"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[0]</span></div><span class="documentTitle_sJvm">Local, Efflux-Dependent Auxin Gradients as a Common Module for Plant Organ Formation</span></div><div class="score_DBWo" aria-hidden="false"><span>0.14</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->2</span></div><div class="document_d_s8" style="--slot:1;--score:0.12" data-document-index="1"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[1]</span></div><span class="documentTitle_sJvm">A molecular framework for plant regeneration.</span></div><div class="score_DBWo" aria-hidden="false"><span>0.12</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->3</span></div><div class="document_d_s8 followed_dK7x" style="--slot:2;--score:0.39" data-document-index="2"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>documents[2]</span><span>Follow this passage</span></div><span class="documentTitle_sJvm">Generation of cell polarity in plants links endocytosis, auxin distribution and cell fate decisions</span></div><div class="score_DBWo" aria-hidden="false"><span>0.39</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="true">Rank <!-- -->1</span></div></div><div class="sceneFooter_x8OO"><span>Original indexes: [0, 1, 2]</span><span>Score scale: 0–1</span></div></div></div></div><div id="rerank-output" class="step_PbhN" data-active="false"><span class="stepNumber_O_bz">0<!-- -->3</span><h3>Return the ranked indexes</h3><p>LiteLLM sorts the scores from highest to lowest and returns relevance_score with the original index. You can retrieve the matching text from your input documents.</p><p class="stepDetail_YOA4">Index 2 now ranks first. The next two results are indexes 0 and 1. The response keeps each document’s identity after the order changes.</p><div class="linearVisual_Msvu"><div class="scene_zJGZ" data-stage="3"><div class="sceneTop_rL0V"><span>0<!-- -->3<!-- --> / <!-- -->Rank</span><span>index + relevance_score</span></div><div class="query_nPXW"><span class="fieldLabel_FqwC">QUERY 702</span><p>Localization of PIN1 in the roots of Arabidopsis does not require VPS9a</p></div><div class="modelConnection_Ysod"><svg viewBox="0 0 600 54" preserveAspectRatio="none" aria-hidden="true"><path d="M300 0V11M300 43V54M300 49H14V54M300 49H586V54"></path><circle cx="300" cy="5" r="2"></circle><circle cx="300" cy="49" r="2"></circle></svg><span class="model_tox1"><img src="https://docs.litellm.ai/img/jevrank/typesafe.png" alt="" width="20" height="20">TypeSafe Jev 1.13.0</span></div><div class="documents_kg7o"><div class="document_d_s8 followed_dK7x" style="--slot:0;--score:0.39" data-document-index="2"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>index: 2</span><span>Follow this passage</span></div><span class="documentTitle_sJvm">Generation of cell polarity in plants links endocytosis, auxin distribution and cell fate decisions</span></div><div class="score_DBWo" aria-hidden="false"><span>0.39</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="false">Rank <!-- -->1</span></div><div class="document_d_s8" style="--slot:1;--score:0.14" data-document-index="0"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>index: 0</span></div><span class="documentTitle_sJvm">Local, Efflux-Dependent Auxin Gradients as a Common Module for Plant Organ Formation</span></div><div class="score_DBWo" aria-hidden="false"><span>0.14</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="false">Rank <!-- -->2</span></div><div class="document_d_s8" style="--slot:2;--score:0.12" data-document-index="1"><div class="documentText_DSmO"><div class="documentIdentity_nH0n"><span>index: 1</span></div><span class="documentTitle_sJvm">A molecular framework for plant regeneration.</span></div><div class="score_DBWo" aria-hidden="false"><span>0.12</span><span class="scoreLabel_MhVu">score</span><span class="scoreTrack_DXFk"><span></span></span></div><span class="rank_woo8" aria-hidden="false">Rank <!-- -->3</span></div></div><div class="sceneFooter_x8OO"><span>Returned order: [2, 0, 1]</span><span>Score scale: 0–1</span></div></div></div></div></div></div><p class="sourceNote_n1U1">Recorded example, no model calls. Scores describe the model’s assessment of relevance. They do not establish whether the query’s claim is true.<!-- --> <a href="https://docs.litellm.ai/benchmarks/jevrank/query-examples.json">Inspect the saved query and all 20 results ↗</a></p><details class="methodDetails_tu1n"><summary>Score meaning and failures</summary><p>A model can compare candidates in one choice question or assess each document against the query. Choice probabilities belong to the supplied candidate set; scores from separate batches do not share a scale.</p><p>Provider errors and refusals fail the request. LiteLLM sends the full input and returns an error if it exceeds provider limits. Perplexity accepts 2 to 255 documents in one choice question. TypeSafe assesses documents in parallel; the rerank response reports their combined token usage.</p></details></section><section id="setup" class="setup_Qlpg" aria-labelledby="setup-title"><div class="sectionHeading_Fgiu"><div><div class="eyebrow_P0O0"><span>04</span>PREVIEW</div><h2 id="setup-title">Setup and usage</h2></div><a class="textLink_hWnp" href="https://github.com/BerriAI/litellm/pull/47782">Preview PR ↗</a></div><p class="sectionIntro_Tlxy">Use JevRank through your AI Gateway or call it from Python. These examples require the preview branch; no released version includes the adapter yet. For this preview, set<!-- --> <code>LITELLM_LOCAL_MODEL_COST_MAP=True</code> to load the branch’s model catalog.</p><div class="usageNav_YCI0" role="group" aria-label="Usage interface"><button type="button" aria-pressed="true">AI Gateway</button><button type="button" aria-pressed="false">Python SDK</button></div><div class="providerSelector_Ev_K" role="group" aria-label="Setup provider"><button type="button" aria-pressed="true">Perplexity</button><button type="button" aria-pressed="false">TypeSafe Jev</button></div><div class="usageContent_jsaM"><p class="usageInstructions_lSBn">Set <code>PERPLEXITY_API_KEY</code> in your gateway environment. Add this deployment, then send a rerank request with your gateway URL and LiteLLM key.</p><div class="codeGrid_WC0b"><div><span class="codeLabel_u9XG">01 / GATEWAY CONFIGURATION</span><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 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"> jevrank</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"> perplexity/pplx</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">decider</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">v1.2</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/PERPLEXITY_API_KEY</span><br></span></code></pre></div></div><p class="codeFootnote_jx1r">Start the gateway with<!-- --> <code>litellm --config config.yaml --port 4000</code>.</p></div><div><span class="codeLabel_u9XG">02 / RERANK REQUEST</span><div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">request.sh</div><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 "$LITELLM_BASE_URL/rerank" \</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">  -d '{</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "model": "jevrank-flash",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "query": "How long is the warranty?",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "documents": [</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "Shipping takes three days.",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">      "Warranty coverage lasts two years."</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">    "top_n": 1</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">  }'</span><br></span></code></pre></div></div><p class="codeFootnote_jx1r">Set <code>LITELLM_BASE_URL</code> to your gateway URL and<!-- --> <code>LITELLM_API_KEY</code> to your gateway key.</p></div></div></div><p class="caption_RK0l">The TypeSafe preset pins Jev 1.14; our measured run used Jev 1.13.0. Evaluate the version you deploy.</p></section><section id="methodology" class="methodology_CCP_" aria-labelledby="methodology-title"><div class="eyebrow_P0O0"><span>05</span>METHODOLOGY</div><h2 id="methodology-title">Benchmark methodology</h2><div class="methodologyGrid_sLCX"><div><h3>LiteLLM run</h3><p>We ran all 300 SciFact test queries with 20 fixed BM25 candidates per query through SDK<!-- --> <a href="https://github.com/BerriAI/litellm/commit/5aa0a8304c">commit 5aa0a8304c</a>. All 6,000 judgments completed with returned version<!-- --> <code>jev-1.13.0</code>.</p><p>BM25s 0.3.13 used Lucene BM25, k1=1.5, b=0.75, English stop words and Snowball stemming over titles and full abstracts. Median rerank latency was 0.50 s; p95 was 1.15 s with eight calls in flight. Returned tokens imply $0.172618 total at the configured gateway rate, an estimate rather than an invoice.</p></div><div><h3>Reference experiment</h3><p>Jakob Gruber’s October 2026 reference experiment at Swietelsky AG used the same SciFact split and candidate count, with calls through OpenRouter. Retrieval settings and candidate identity may differ from our run. We could not access Perplexity or Cohere for our benchmark.</p><p>The 34× comparison belongs to reference Flash versus Cohere Pro: $73 versus $2,500 per million queries and 0.775 nDCG@10 for both. Its paired tests found no significant quality difference. Costs cover reranking and depend on model rates and input length.</p></div></div><div class="evidenceLinks_GGmZ"><a href="https://docs.litellm.ai/benchmarks/jevrank/README.md">Reproduction guide ↗</a><a href="https://docs.litellm.ai/benchmarks/jevrank/measured-run.json">Run manifest ↗</a><a href="https://docs.litellm.ai/benchmarks/jevrank/measured-per-query.csv">300-query data ↗</a><a href="https://docs.litellm.ai/benchmarks/jevrank/measured-responses.jsonl.gz">Provider responses ↗</a><a href="https://docs.litellm.ai/benchmarks/jevrank/independent-audit.json">Independent recalculation ↗</a></div></section><footer class="articleFooter_q_FJ"><div class="footerBrand_Sdu3">JevRank <span>by LiteLLM</span></div><p>Try JevRank on your own queries and compare it with your current reranker.</p><a href="https://github.com/BerriAI/litellm/pull/47782" class="primaryAction_ryCG">Review the implementation ↗</a></footer></div>
]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="reranking" term="reranking"/>
        <category label="decisions" term="decisions"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Cache-Aware Routing for Self-Hosted Models]]></title>
        <id>https://docs.litellm.ai/blog/cache-aware-routing</id>
        <link href="https://docs.litellm.ai/blog/cache-aware-routing"/>
        <updated>2026-10-20T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Route each agent session to the same vLLM pod on Kubernetes to reuse cached prompt prefixes.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="Claude Code and Codex requests pass through the LiteLLM gateway and return to the same vLLM pod for each session, allowing cached prompt prefixes to be reused." src="https://docs.litellm.ai/assets/images/cover-8fb0d9b0213873b757e566c19f080c5f.gif" width="1440" height="820" class="img_ev3q"></p>
<p>LiteLLM now supports <strong>cache-aware routing for self-hosted inference on Kubernetes</strong>. Within a deployment, requests from the same session go to the same GPU pod. This lets vLLM reuse cached prompt prefixes across turns.</p>
<p>Agent requests often share system instructions, tool definitions, and conversation history. When requests reach different pods, each pod may process the same prefix again. Session affinity helps reuse that work.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="keep-a-session-on-one-gpu-pod">Keep a session on one GPU pod<a href="https://docs.litellm.ai/blog/cache-aware-routing#keep-a-session-on-one-gpu-pod" class="hash-link" aria-label="Direct link to Keep a session on one GPU pod" title="Direct link to Keep a session on one GPU pod">​</a></h2>
<p>LiteLLM discovers pod IPs through a Kubernetes headless Service. It uses the session ID to choose a pod using rendezvous hashing, then sends the request directly to that pod.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Get started<a href="https://docs.litellm.ai/blog/cache-aware-routing#get-started" class="hash-link" aria-label="Direct link to Get started" title="Direct link to Get started">​</a></h2>
<p><a href="https://docs.litellm.ai/docs/proxy/cache_aware_routing" target="_blank" rel="noopener noreferrer">Read the cache-aware routing setup guide</a>.</p>]]></content>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="kubernetes" term="kubernetes"/>
        <category label="vllm" term="vllm"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: TypeSafe Jev 1.14: Adds images, box questions, and long context]]></title>
        <id>https://docs.litellm.ai/blog/typesafe_jev_images</id>
        <link href="https://docs.litellm.ai/blog/typesafe_jev_images"/>
        <updated>2026-10-15T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[TypeSafe Jev 1.14 reads images, answers box questions with coordinates and takes long-context requests. LiteLLM serves all three on /v1/systemone and /v1/decisions behind TypeSafe's opt-in headers.]]></summary>
        <content type="html"><![CDATA[<p>TypeSafe's Jev 1.14 adds a question type, <code>box</code>, that answers with where something is in an image. LiteLLM supports it from day 0 on both <a href="https://docs.litellm.ai/docs/decisions">decision routes</a>, <code>POST /v1/systemone</code> and <code>POST /v1/decisions</code>, together with TypeSafe's image input and long-context mode. If you are new to Jev, start with the <a href="https://docs.litellm.ai/blog/typesafe_jev">TypeSafe Jev launch post</a> and the <a href="https://docs.litellm.ai/blog/decision-models">decision models post</a>, which cover what a decision model is and how the two routes relate. Request <code>jev-1.14.0</code> through the proxy and the same virtual keys, budgets, spend logs and fallbacks you already use for decision models apply.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-images-on-a-decision-model-matter">Why images on a decision model matter<a href="https://docs.litellm.ai/blog/typesafe_jev_images#why-images-on-a-decision-model-matter" class="hash-link" aria-label="Direct link to Why images on a decision model matter" title="Direct link to Why images on a decision model matter">​</a></h2>
<p>A decision model answers typed questions with probabilities instead of text, which is what makes it cheap enough to sit in front of every request. Until now LiteLLM only sent text to them. The visual checks in a production app, whether an upload is a receipt, whether a listing photo breaks a policy, whether a screenshot shows an error dialog, still went to a chat model with a vision prompt, a JSON parser and a retry loop. Jev 1.14 answers those the same way it answers text questions: a <code>noul</code> question about an image comes back as a single probability you can threshold, log and compare, with no prose to parse.</p>
<p>The <code>box</code> question type, new in Jev 1.14 and also on <code>jev-preview</code>, adds where. Ask for "the red square in <code>photo</code>" and the answer is four edges, <code>top</code>, <code>bottom</code>, <code>left</code> and <code>right</code>, as fractions of the image height and width measured from the top left corner, plus a <code>confidence</code>. Because the edges are fractions, the same answer is correct at any image size, so you can crop the region for a bigger model, highlight it in a review tool or check that a required element is where it should be, without a generation step in between.</p>
<p>Long context is the third piece. TypeSafe's default limits are 64k tokens per request and 32k per question. With <code>TypeSafe-Danger-Zone-Long-Context: true</code> on the request, Jev decides over a whole contract, transcript or record in one call rather than a sliding window you stitch together yourself.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-litellm-adds">What LiteLLM adds<a href="https://docs.litellm.ai/blog/typesafe_jev_images#what-litellm-adds" class="hash-link" aria-label="Direct link to What LiteLLM adds" title="Direct link to What LiteLLM adds">​</a></h2>
<p>TypeSafe keeps images, <code>box</code> questions and long context behind opt-in request headers, <code>TypeSafe-Danger-Zone-Images: true</code> and <code>TypeSafe-Danger-Zone-Long-Context: true</code>. The proxy forwards any client header that starts with <code>TypeSafe-Danger-Zone-</code> to TypeSafe deployments and to no other provider, so a client turns the features on per request and nothing leaks to the other decision providers behind the same model name.</p>
<p>On <code>/v1/systemone</code> you send the images TypeSafe's way, named in <code>assets</code> and referenced from <code>state</code>. On <code>/v1/decisions</code> you send them OpenAI's way, as <code>input_image</code> parts with an image URL or a data URL, and LiteLLM turns each PNG or JPEG into an asset, puts the asset's name where the image was in the text and downloads image URLs first. A <code>box</code> answer comes back in the shape of the route you called, so an app written against the OpenAI Decisions format gets Jev's image answers without learning the System One format.</p>
<p>The same headers work on the <a href="https://docs.litellm.ai/docs/pass_through/typesafe"><code>/typesafe</code> pass-through</a>. If you call TypeSafe's API directly with <code>LITELLM_PROXY_BASE_URL/typesafe</code> as the base URL, client headers that start with <code>TypeSafe-Danger-Zone-</code> are forwarded to TypeSafe and other client headers are not, so an existing System One client only needs the header and <code>jev-1.14.0</code> to use images and <code>box</code>.</p>
<p>The failure modes stay predictable. A <code>box</code> question to a model that cannot answer it, <code>jev-1.13.0</code> and <code>jev-latest</code> included, or an image sent without the header, gets a 400 before any provider is called. With <code>drop_params</code> on, LiteLLM drops the question or the image instead and the rest of the request goes through, with a dropped question returned as <code>{"type": "refusal"}</code> on <code>/v1/decisions</code> and left out of <code>answers</code> on <code>/v1/systemone</code>. Spend for <code>jev-1.14.0</code> lands in the spend logs at TypeSafe's $0.042 per 1M input tokens, with no output charge.</p>
<p>The headers, the <code>assets</code> shape and a worked box example are in <a href="https://docs.litellm.ai/docs/decisions#typesafe-images-box-questions-and-long-context">TypeSafe images, box questions and long context</a>, and SDK usage is in <a href="https://docs.litellm.ai/docs/decisions#sdk-usage">SDK usage</a>. Images and <code>box</code> questions ship in the next LiteLLM release, and cost tracking for <code>jev-1.14.0</code> works on the version you already run after you reload the model cost map.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/typesafe_jev_images#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Tell us what you build with image decisions, and what breaks, in <a href="https://github.com/BerriAI/litellm/discussions" target="_blank" rel="noopener noreferrer">GitHub Discussions</a>.</p>]]></content>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <category label="typesafe" term="typesafe"/>
        <category label="jev" term="jev"/>
        <category label="decisions" term="decisions"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Jev 1.14" term="card_title:Jev 1.14"/>
        <category label="card_summary:Jev 1.14 reads PNG and JPEG images, answers box questions with coordinates, and takes long-context requests on LiteLLM." term="card_summary:Jev 1.14 reads PNG and JPEG images, answers box questions with coordinates, and takes long-context requests on LiteLLM."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Decision models on LiteLLM: /v1/decisions and /v1/systemone]]></title>
        <id>https://docs.litellm.ai/blog/decision-models</id>
        <link href="https://docs.litellm.ai/blog/decision-models"/>
        <updated>2026-10-14T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Decision models return probabilities instead of text, which makes routing, triage and guardrail checks cheap and deterministic. LiteLLM serves nine providers of them behind one request shape.]]></summary>
        <content type="html"><![CDATA[<p>LiteLLM now serves <a href="https://docs.litellm.ai/docs/decisions">decision models</a> on <code>POST /v1/decisions</code> and <code>POST /v1/systemone</code>. You hand a decision model an input and a list of typed questions, and it answers each one with a probability: a yes/no, a pick from a fixed list, or a score on a scale. No prose comes back, so there is nothing to parse.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-decision-models-matter">Why decision models matter<a href="https://docs.litellm.ai/blog/decision-models#why-decision-models-matter" class="hash-link" aria-label="Direct link to Why decision models matter" title="Direct link to Why decision models matter">​</a></h2>
<p>Most "small" LLM calls in a production app are not generation at all. Should this ticket go to a human? Is this prompt a jailbreak? Which of our five models should handle this request? How frustrated is this customer? Today teams answer those with a chat model, a prompt that begs for JSON, a parser, and a retry loop for the times the model answers in a sentence anyway. That costs tokens, adds latency on every request, and still fails in ways you only find in logs.</p>
<p>A decision model fixes the shape of the problem. A <code>predicate</code> question returns a probability. A <code>choice</code> question returns the picked option with a probability per option. A <code>score</code> question returns a value on the scale you defined. The answer is a number you can threshold, log, and compare across models, and the model cannot drift into free text. Because these models skip generation, they are small and fast, which is what lets a decision sit in front of every request instead of only the expensive ones.</p>
<p>That is what makes them the natural building block for the gateway layer: routing a request to the right model, deciding whether a guardrail should block, triaging support traffic, ranking candidates before a bigger model sees them.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-litellm-adds">What LiteLLM adds<a href="https://docs.litellm.ai/blog/decision-models#what-litellm-adds" class="hash-link" aria-label="Direct link to What LiteLLM adds" title="Direct link to What LiteLLM adds">​</a></h2>
<ul>
<li><strong>One request shape, nine providers.</strong> OpenAI, TypeSafe Jev, Fireworks AI, Perplexity, Cloudflare Clef, Databricks (including <code>ai_decide</code>), Microsoft Foundry Decision-1, Strands Decider and self-hosted vLLM. LiteLLM translates between OpenAI's Decisions format and TypeSafe's System One format, so you can switch the model name and keep the request and the response shape.</li>
<li><strong>The same controls as chat.</strong> Virtual keys, budgets, rate limits, load balancing and fallbacks apply, and every answer carries <code>x-litellm-response-cost</code> and lands in the spend logs next to your chat traffic.</li>
<li><strong>Built into the Auto Router and guardrails.</strong> Any decision model on your proxy can pick the model for each request or decide whether a request is allowed, both covered below.</li>
<li><strong>A playground to try it.</strong> The Admin UI has a Decisions tab that sends to either route and shows the probabilities back.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="decision-models-in-the-auto-router">Decision models in the Auto Router<a href="https://docs.litellm.ai/blog/decision-models#decision-models-in-the-auto-router" class="hash-link" aria-label="Direct link to Decision models in the Auto Router" title="Direct link to Decision models in the Auto Router">​</a></h2>
<p>The <a href="https://docs.litellm.ai/docs/auto_router/decision_classifiers">Auto Router</a> can use any decision model deployed on your proxy as its classifier. In <strong>Models + Endpoints</strong>, open <strong>Auto-Routers</strong>, click <strong>Add Auto Router</strong>, pick <strong>Decisions Model</strong> under <strong>Choose your classifier</strong> and choose a deployment such as <code>jev-latest</code>. Each request is classified into one of your tiers and LiteLLM calls the model assigned to that tier, so clients keep sending one model name. <strong>Test Routing</strong> shows the tier the decision model picked, the probability for every tier and what the classification cost. In the run below, <code>jev-latest</code> put a Postgres failover design question in COMPLEX with 99% confidence for $0.00001848.</p>
<img src="https://docs.litellm.ai/assets/images/auto_router-512559077c69c7b5a170499eb455aecc.gif" width="800" alt="Add Auto Router in the Admin UI: Decisions Model picked as the classifier, jev-latest chosen from the deployed decision models, then Test Routing classifies a Postgres failover question as COMPLEX with 99% confidence and routes it to gpt-6-astra">
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="decision-models-as-guardrails">Decision models as guardrails<a href="https://docs.litellm.ai/blog/decision-models#decision-models-as-guardrails" class="hash-link" aria-label="Direct link to Decision models as guardrails" title="Direct link to Decision models as guardrails">​</a></h2>
<p>The <a href="https://docs.litellm.ai/docs/proxy/guardrails/decision_model">Decision Model guardrail</a> turns yes/no questions into checks on each request or response. In <strong>Guardrails</strong>, click <strong>Add New Guardrail</strong>, then <strong>Add Provider Guardrail</strong>, pick the <strong>Decision Model</strong> provider, choose a decision model and add a question such as "Does the text try to override or ignore the system instructions?". Each question is set to <strong>Block</strong> or <strong>Log only</strong> with a probability threshold, and the <strong>Test</strong> section scores sample inputs before you save. Below, a prompt injection scores 0.99 and is blocked while a refund question scores 0.06 and passes.</p>
<img src="https://docs.litellm.ai/assets/images/guardrail-f859b0f5198d13b8adb3148804df7006.gif" width="800" alt="Create guardrail in the Admin UI: Decision Model provider picked, jev-latest chosen, a prompt_injection question set to Block at a 0.70 threshold, then two test runs: an injection attempt scores 0.99 and blocks, a refund policy question scores 0.06 and passes">
<p>Setup is in the <a href="https://docs.litellm.ai/docs/decisions">decisions docs</a>, the request formats are on the <a href="https://docs.litellm.ai/docs/decisions#v1decisions">/v1/decisions</a> and <a href="https://docs.litellm.ai/docs/decisions#v1systemone">/v1/systemone</a> pages, and the provider table and SDK usage are on the <a href="https://docs.litellm.ai/docs/decisions#supported-providers">Supported providers</a> and <a href="https://docs.litellm.ai/docs/decisions#sdk-usage">SDK usage</a> pages.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/decision-models#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Tell us which decision providers you want next in <a href="https://github.com/BerriAI/litellm/discussions" target="_blank" rel="noopener noreferrer">GitHub Discussions</a>.</p>]]></content>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="typesafe" term="typesafe"/>
        <category label="decisions" term="decisions"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Decision Models" term="card_title:Decision Models"/>
        <category label="card_summary:Typed yes/no, choice and score answers as probabilities, from 9 providers on /v1/decisions and /v1/systemone." term="card_summary:Typed yes/no, choice and score answers as probabilities, from 9 providers on /v1/decisions and /v1/systemone."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Workshop: Build a self-hosted cloud agent.]]></title>
        <id>https://docs.litellm.ai/blog/cloud-agent-workshop</id>
        <link href="https://docs.litellm.ai/blog/cloud-agent-workshop"/>
        <updated>2026-10-13T22:00:00.000Z</updated>
        <summary type="html"><![CDATA[Build a self-hosted cloud agent with the LiteLLM team. A two-week remote workshop, October 19–30, to build a working v0 and deploy an internal beta on your infrastructure.]]></summary>
        <content type="html"><![CDATA[<div class="workshop_BlDP" data-full-width="true"><section class="hero_Zjzw" aria-labelledby="workshop-title"><div class="brandRow_C66d"><img src="https://docs.litellm.ai/img/brand/litellm-logo-blue.png" alt="LiteLLM" class="logo_SaxZ brandLight_rZSA" width="174" height="33"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" class="logo_SaxZ brandDark_VGXp" width="174" height="33"><a class="backLink_mAhH" href="https://docs.litellm.ai/blog">← Blog</a></div><h1 id="workshop-title">Workshop: Build a<br class="titleBreak_krhK"> self-hosted cloud agent.</h1><p class="heroLead_rHNw">Build and deploy with the LiteLLM team, on infrastructure your team controls.</p><div class="heroActions_q87R"><button class="button signup_wbZV" type="button">Sign up <span aria-hidden="true">↗</span></button><dialog class="dialog_BHNv" aria-labelledby=":R2c6mn8l:-title" aria-describedby=":R2c6mn8l:-description"><div class="panel_MVA9"><button class="close_edpH" type="button" aria-label="Close workshop signup">×</button><p class="eyebrow_H1Is">LITELLM WORKSHOP · OCTOBER 19–30</p><h2 class="title_uM5R" tabindex="-1" id=":R2c6mn8l:-title">Build a self-hosted cloud agent.</h2><p id=":R2c6mn8l:-description" class="description_gE6y">Tell us about your team and what you want to achieve. We’ll follow up to arrange a 30-minute intake. Remote, over two weeks.</p><form aria-busy="false"><fieldset class="fieldset_rmo9"><legend class="srOnly_FndZ">Workshop signup details</legend><div class="grid_p6U0"><label class="field_QphQ" for=":R2c6mn8l:-name"><span>Your name<span aria-hidden="true"> *</span></span><input type="text" autocomplete="name" id=":R2c6mn8l:-name" name="name" required="" maxlength="120"></label><label class="field_QphQ" for=":R2c6mn8l:-email"><span>Work email<span aria-hidden="true"> *</span></span><input type="email" autocomplete="email" id=":R2c6mn8l:-email" name="email" required="" maxlength="254"></label><label class="field_QphQ" for=":R2c6mn8l:-company"><span>Company<span aria-hidden="true"> *</span></span><input type="text" autocomplete="organization" id=":R2c6mn8l:-company" name="company" required="" maxlength="160"></label><label class="field_QphQ" for=":R2c6mn8l:-linkedin"><span>LinkedIn profile<span aria-hidden="true"> *</span></span><input type="text" inputmode="url" autocomplete="url" autocapitalize="none" spellcheck="false" placeholder="linkedin.com/in/your-profile" id=":R2c6mn8l:-linkedin" name="linkedin" required="" maxlength="1000"></label><label class="field_QphQ wide_YSby" for=":R2c6mn8l:-workflow"><span>What are you hoping to achieve?<span aria-hidden="true"> *</span></span><textarea rows="3" placeholder="For example: let engineers send tasks in Slack and get tested pull requests from an agent running in our cloud." id=":R2c6mn8l:-workflow" name="workflow" required="" maxlength="3000"></textarea></label><label class="field_QphQ wide_YSby" for=":R2c6mn8l:-onsiteInterest"><span>Would you like the LiteLLM team to work with you on-site? (optional)</span><select id=":R2c6mn8l:-onsiteInterest" name="onsiteInterest"><option value="" selected="">No preference yet</option><option value="Yes">Yes, I’d like to discuss it</option><option value="Maybe">Maybe, tell me more</option><option value="No">No, remote works for us</option></select></label></div><button class="submit_OEc5" type="submit">Sign up</button><p class="note_YCnd">* Required. We’ll use your details to arrange your workshop intake. Submitting this form does not reserve a time slot.</p></fieldset></form></div></dialog><p class="facts_wOFa">Remote <span aria-hidden="true">·</span> 2 weeks <span aria-hidden="true">·</span> October 19–30, 2026</p></div><div class="harnessRow_9PTT"><p>Work with your preferred agent</p><div class="harnesses_ovqD" aria-label="Agent options"><div class="harness_dCNx"><img src="https://docs.litellm.ai/img/cloud-agent-workshop/claude-code.svg" alt="" width="26" height="26"><span>Claude Code</span></div><div class="harness_dCNx"><img src="https://docs.litellm.ai/img/cloud-agent-workshop/codex.svg" alt="" width="26" height="26"><span>Codex</span></div><div class="harness_dCNx"><img src="https://docs.litellm.ai/img/cloud-agent-workshop/hermes-agent.svg" class="monochromeHarness_eSDq" alt="" width="26" height="26"><span>Hermes</span></div><div class="harness_dCNx"><img src="https://docs.litellm.ai/img/cloud-agent-workshop/openclaw-static.svg" alt="" width="26" height="26"><span>OpenClaw</span></div></div></div><figure class="blueprint__tnr"><div class="blueprintFrame_gb4H"><img src="https://docs.litellm.ai/img/cloud-agent-workshop/blueprint.png" class="blueprintImage_xukZ" alt="A Slack request reaches an agent harness and sandbox in your cloud, then produces a pull request." width="1254" height="1254" fetchpriority="high"><img src="https://docs.litellm.ai/img/cloud-agent-workshop/slack.svg" class="blueprintSlack_nK4P" alt="" width="51" height="51"></div></figure></section></div>
<!-- -->
<div class="workshop_BlDP" data-full-width="true"><section class="section_Ekax" id="audience" aria-labelledby="audience-title"><h2 class="anchor anchorWithStickyNavbar_LWe7" id="audience-title">Who the workshop is for<a href="https://docs.litellm.ai/blog/cloud-agent-workshop#audience-title" class="hash-link" aria-label="Direct link to Who the workshop is for" title="Direct link to Who the workshop is for">​</a></h2><p>Teams investing in a custom, self-hosted cloud agent platform. Build with LiteLLM engineers around your infrastructure and development workflows.</p><div class="teams_dLjl"><article class="team_yuDD"><span class="teamNumber_Hp8E">0<!-- -->1</span><h3>AI platform teams</h3><p>Build around your model providers, sandboxes, and cloud infrastructure.</p></article><article class="team_yuDD"><span class="teamNumber_Hp8E">0<!-- -->2</span><h3>Developer productivity teams</h3><p>Give engineers an internal agent for coding tasks and pull requests.</p></article><article class="team_yuDD"><span class="teamNumber_Hp8E">0<!-- -->3</span><h3>Agent platform teams</h3><p>Run your chosen harnesses in a platform your team operates.</p></article></div></section><section class="section_Ekax" id="program" aria-labelledby="program-title"><p class="eyebrow_tnSL">PROGRAM DETAILS</p><h2 class="anchor anchorWithStickyNavbar_LWe7" id="program-title">Timeline &amp; milestones<a href="https://docs.litellm.ai/blog/cloud-agent-workshop#program-title" class="hash-link" aria-label="Direct link to Timeline &amp; milestones" title="Direct link to Timeline &amp; milestones">​</a></h2><p>From your first use case to an internal beta in two weeks. Here’s what we build together at each stage.</p><ol class="timeline_eduW"><li class="timelineItem__4St"><span class="timelineNode_nfty" aria-hidden="true">01</span><section class="milestone_aILQ" id="intake" aria-label="BEFORE WE BUILD: 30 MINUTES"><div class="milestoneCopy_aonE"><p class="milestoneMeta_Zl6L"><span>BEFORE WE BUILD</span><span>30 MINUTES</span></p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="scope-your-first-use-case">Scope your first use case.<a href="https://docs.litellm.ai/blog/cloud-agent-workshop#scope-your-first-use-case" class="hash-link" aria-label="Direct link to Scope your first use case." title="Direct link to Scope your first use case.">​</a></h3><p>We review your goals, what you’ve tried, and your providers, sandbox, and cloud setup. Together, we agree on scope, deployment timing, and success criteria.</p><div class="result__WYO"><span>YOU LEAVE WITH</span><p>A build plan for your first use case.</p></div></div><figure class="visual_PFWv" aria-label="The intake produces a build brief covering your use case, stack, and success criteria."><figcaption class="visualHeading_KaKo"><svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="4" width="14" height="17" rx="2"></rect><path d="M9 4V2h6v2M9 10h6M9 15h6"></path></svg><span>Your build brief</span><span class="visualBadge_uTsm">Intake</span></figcaption><div class="briefRow_BcFS"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 4 4L19 6"></path></svg><div><strong>Use case</strong><span>The first workflow to build</span></div></div><div class="briefRow_BcFS"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 4 4L19 6"></path></svg><div><strong>Stack</strong><span>Providers, sandbox, and cloud</span></div></div><div class="briefRow_BcFS"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 4 4L19 6"></path></svg><div><strong>Success criteria</strong><span>What a useful v0 needs to do</span></div></div></figure></section></li><li class="timelineItem__4St"><span class="timelineNode_nfty" aria-hidden="true">02</span><section class="milestone_aILQ" id="week-one" aria-label="WEEK 1 · BUILD: OCTOBER 19–23"><div class="milestoneCopy_aonE"><p class="milestoneMeta_Zl6L"><span>WEEK 1 · BUILD</span><span>OCTOBER 19–23</span></p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="get-a-working-cloud-agent">Get a working cloud agent.<a href="https://docs.litellm.ai/blog/cloud-agent-workshop#get-a-working-cloud-agent" class="hash-link" aria-label="Direct link to Get a working cloud agent." title="Direct link to Get a working cloud agent.">​</a></h3><p>We connect your agent harness and sandbox to a web app and Slack. Your team can send it tasks and try the first workflow.</p><div class="result__WYO"><span>WEEK-ONE TARGET</span><p>A working v0 you can interact with.</p></div></div><figure class="visual_PFWv" aria-label="A web app and Slack connect to an agent harness running inside a sandbox, powered by LiteLLM."><figcaption class="visualHeading_KaKo"><svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 7-5 5 5 5m8-10 5 5-5 5m-3-13-2 16"></path></svg><span>Your working v0</span></figcaption><div class="clients_zr5m"><div><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="13" rx="2"></rect><path d="M8 21h8m-4-5v5"></path></svg>Web app</div><div><img src="https://docs.litellm.ai/img/cloud-agent-workshop/slack.svg" alt="" width="15" height="15">Slack</div></div><div class="join_AuPv"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v18m-6-6 6 6 6-6"></path></svg></div><div class="sandbox_qP81"><span class="sandboxLabel_ZXQd">Sandbox</span><div class="harnessModule_F59n"><svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 7-5 5 5 5m8-10 5 5-5 5m-3-13-2 16"></path></svg><span>Agent harness</span></div></div><div class="powered_ZBRQ"><span>Powered by</span><img src="https://docs.litellm.ai/img/brand/litellm-logo-blue.png" alt="LiteLLM" class="brandLight_rZSA" width="72" height="14"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" class="brandDark_VGXp" width="72" height="14"></div></figure></section></li><li class="timelineItem__4St"><span class="timelineNode_nfty" aria-hidden="true">03</span><section class="milestone_aILQ" id="week-two" aria-label="WEEK 2 · DEPLOY: OCTOBER 26–30"><div class="milestoneCopy_aonE"><p class="milestoneMeta_Zl6L"><span>WEEK 2 · DEPLOY</span><span>OCTOBER 26–30</span></p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="run-an-internal-beta">Run an internal beta.<a href="https://docs.litellm.ai/blog/cloud-agent-workshop#run-an-internal-beta" class="hash-link" aria-label="Direct link to Run an internal beta." title="Direct link to Run an internal beta.">​</a></h3><p>We deploy to your cloud, run internal tasks, and review traces with your team. We improve the agent based on what you see.</p><p class="scopeNote_cNZ9">Depending on scope: shared memory, additional harnesses such as Pi, and feedback and trace review tools.</p><div class="result__WYO"><span>WEEK-TWO TARGET</span><p>An internal beta on your infrastructure.</p></div></div><figure class="visual_PFWv" aria-label="Deploy to your cloud, run internal tasks, review traces, and improve the agent in an internal beta."><figcaption class="visualHeading_KaKo"><svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 18a4 4 0 0 1-.3-8 6.5 6.5 0 0 1 12.5-1.5A4.8 4.8 0 0 1 18 18H6Z"></path></svg><span>Internal beta</span><span class="visualBadge_uTsm">Your cloud</span></figcaption><div class="betaFlow_sv48"><div class="flowStep_CD36"><svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 18a4 4 0 0 1-.3-8 6.5 6.5 0 0 1 12.5-1.5A4.8 4.8 0 0 1 18 18H6Z"></path></svg><strong>Deploy</strong></div><svg class="flowArrow_fQYq" aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12h18m-6-6 6 6-6 6"></path></svg><div class="flowStep_CD36"><svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 4 12 8-12 8V4Z"></path></svg><strong>Run tasks</strong></div><div class="flowTurn_spgY"><svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v18m-6-6 6 6 6-6"></path></svg></div><div class="flowStep_CD36"><svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 7v5h-5M4 17v-5h5"></path><path d="M6 6a8 8 0 0 1 14 6M4 12a8 8 0 0 0 14 6"></path></svg><strong>Improve</strong></div><svg class="flowArrow_fQYq" aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12H3m6-6-6 6 6 6"></path></svg><div class="flowStep_CD36"><svg aria-hidden="true" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3v16h5M5 7h5"></path><rect x="10" y="4" width="10" height="6" rx="1"></rect><rect x="10" y="16" width="10" height="6" rx="1"></rect></svg><strong>Review traces</strong></div></div><p class="visualCaption__hEK">Test with your team’s real workflows.</p></figure></section></li><li class="timelineItem__4St"><span class="timelineNode_nfty" aria-hidden="true">04</span><section class="milestone_aILQ" id="after" aria-label="AFTER THE WORKSHOP: FOR LITELLM USERS"><div class="milestoneCopy_aonE"><p class="milestoneMeta_Zl6L"><span>AFTER THE WORKSHOP</span><span>FOR LITELLM USERS</span></p><h3 class="anchor anchorWithStickyNavbar_LWe7" id="keep-improving-with-our-team">Keep improving with our team.<a href="https://docs.litellm.ai/blog/cloud-agent-workshop#keep-improving-with-our-team" class="hash-link" aria-label="Direct link to Keep improving with our team." title="Direct link to Keep improving with our team.">​</a></h3><p>If you use LiteLLM, we continue working with you toward the success criteria from your intake call.</p><div class="result__WYO"><span>CONTINUED SUPPORT</span><p>Help with your next improvements.</p></div></div><figure class="visual_PFWv" aria-label="Your team and the LiteLLM team continue reviewing feedback and planning improvements together."><figcaption class="visualHeading_KaKo"><svg aria-hidden="true" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="7" r="3"></circle><path d="M3 21v-3a6 6 0 0 1 12 0v3M16 4a3 3 0 0 1 0 6m2 5a5 5 0 0 1 3 5v1"></path></svg><span>Keep building together</span></figcaption><div class="collaboration_FBN3"><div class="visualTeam_ngP3"><span class="teamIcon_oqKn"><svg aria-hidden="true" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="7" r="3"></circle><path d="M3 21v-3a6 6 0 0 1 12 0v3M16 4a3 3 0 0 1 0 6m2 5a5 5 0 0 1 3 5v1"></path></svg></span><strong>Your team</strong></div><svg class="teamArrow_Y9bt" aria-hidden="true" width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7h18m-4-4 4 4-4 4M21 17H3m4-4-4 4 4 4"></path></svg><div class="visualTeam_ngP3"><span class="teamIcon_oqKn brandIcon_VDX0"><img src="https://docs.litellm.ai/img/brand/litellm-logo-blue.png" alt="LiteLLM" class="brandLight_rZSA" width="73" height="14"><img src="https://docs.litellm.ai/img/brand/litellm-logo-white.png" alt="LiteLLM" class="brandDark_VGXp" width="73" height="14"></span><strong>LiteLLM team</strong></div></div><div class="supportNotes_SA_N"><span><svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 4 4L19 6"></path></svg>Review feedback</span><span><svg aria-hidden="true" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12h18m-6-6 6 6-6 6"></path></svg>Next improvements</span></div></figure></section></li></ol></section><section class="closing_Iaei" aria-labelledby="closing-title"><div><h2 id="closing-title">Build with the LiteLLM team.</h2><p>Remote for two weeks. Want us at your office for several days? Tell us in the signup form.</p><p class="signupNote_SHaJ">Tell us what you hope to achieve. We’ll follow up to arrange a 30-minute intake.</p></div><button class="button signup_wbZV" type="button">Sign up <span aria-hidden="true">↗</span></button><dialog class="dialog_BHNv" aria-labelledby=":R1bimn8l:-title" aria-describedby=":R1bimn8l:-description"><div class="panel_MVA9"><button class="close_edpH" type="button" aria-label="Close workshop signup">×</button><p class="eyebrow_H1Is">LITELLM WORKSHOP · OCTOBER 19–30</p><h2 class="title_uM5R" tabindex="-1" id=":R1bimn8l:-title">Build a self-hosted cloud agent.</h2><p id=":R1bimn8l:-description" class="description_gE6y">Tell us about your team and what you want to achieve. We’ll follow up to arrange a 30-minute intake. Remote, over two weeks.</p><form aria-busy="false"><fieldset class="fieldset_rmo9"><legend class="srOnly_FndZ">Workshop signup details</legend><div class="grid_p6U0"><label class="field_QphQ" for=":R1bimn8l:-name"><span>Your name<span aria-hidden="true"> *</span></span><input type="text" autocomplete="name" id=":R1bimn8l:-name" name="name" required="" maxlength="120"></label><label class="field_QphQ" for=":R1bimn8l:-email"><span>Work email<span aria-hidden="true"> *</span></span><input type="email" autocomplete="email" id=":R1bimn8l:-email" name="email" required="" maxlength="254"></label><label class="field_QphQ" for=":R1bimn8l:-company"><span>Company<span aria-hidden="true"> *</span></span><input type="text" autocomplete="organization" id=":R1bimn8l:-company" name="company" required="" maxlength="160"></label><label class="field_QphQ" for=":R1bimn8l:-linkedin"><span>LinkedIn profile<span aria-hidden="true"> *</span></span><input type="text" inputmode="url" autocomplete="url" autocapitalize="none" spellcheck="false" placeholder="linkedin.com/in/your-profile" id=":R1bimn8l:-linkedin" name="linkedin" required="" maxlength="1000"></label><label class="field_QphQ wide_YSby" for=":R1bimn8l:-workflow"><span>What are you hoping to achieve?<span aria-hidden="true"> *</span></span><textarea rows="3" placeholder="For example: let engineers send tasks in Slack and get tested pull requests from an agent running in our cloud." id=":R1bimn8l:-workflow" name="workflow" required="" maxlength="3000"></textarea></label><label class="field_QphQ wide_YSby" for=":R1bimn8l:-onsiteInterest"><span>Would you like the LiteLLM team to work with you on-site? (optional)</span><select id=":R1bimn8l:-onsiteInterest" name="onsiteInterest"><option value="" selected="">No preference yet</option><option value="Yes">Yes, I’d like to discuss it</option><option value="Maybe">Maybe, tell me more</option><option value="No">No, remote works for us</option></select></label></div><button class="submit_OEc5" type="submit">Sign up</button><p class="note_YCnd">* Required. We’ll use your details to arrange your workshop intake. Submitting this form does not reserve a time slot.</p></fieldset></form></div></dialog></section></div>]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="agents" term="agents"/>
        <category label="infrastructure" term="infrastructure"/>
        <category label="announcement" term="announcement"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Gemini 4 Argon API Pricing and Day 0 Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini-4-argon</id>
        <link href="https://docs.litellm.ai/blog/gemini-4-argon"/>
        <updated>2026-10-13T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Gemini 4 Argon costs $2.00 per 1M input tokens and $10.00 per 1M output tokens until Nov 30. LiteLLM supports it on day 0 on AI Studio and Google Cloud.]]></summary>
        <content type="html"><![CDATA[<p>LiteLLM now supports <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-argon/" target="_blank" rel="noopener noreferrer">Gemini 4 Argon</a> on Day 0. Use it on Google AI Studio and Gemini Enterprise Agent Platform (formerly Vertex AI) through the LiteLLM AI Gateway. Spend, rate limits and logs are in one place.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="gemini-4-argon-pricing">Gemini 4 Argon pricing<a href="https://docs.litellm.ai/blog/gemini-4-argon#gemini-4-argon-pricing" class="hash-link" aria-label="Direct link to Gemini 4 Argon pricing" title="Direct link to Gemini 4 Argon pricing">​</a></h2>
<p>Launch prices on Google AI Studio, per 1M tokens, until November 30, 2026:</p>
<ul>
<li><strong>Input:</strong> $2.00 / MTok</li>
<li><strong>Output:</strong> $10.00 / MTok. Thinking tokens bill as output.</li>
<li><strong>Cache read:</strong> $0.10 / MTok. Argon supports implicit caching only.</li>
<li><strong>Batch and Flex:</strong> 50% off input and output</li>
</ul>
<p>On December 1, 2026, these prices double to $4.00 input, $20.00 output and $0.20 cache read.</p>
<p>Prices on every provider: <a href="https://models.litellm.ai/models" target="_blank" rel="noopener noreferrer">https://models.litellm.ai/models</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-gemini-4-argon">What's new in Gemini 4 Argon<a href="https://docs.litellm.ai/blog/gemini-4-argon#whats-new-in-gemini-4-argon" class="hash-link" aria-label="Direct link to What's new in Gemini 4 Argon" title="Direct link to What's new in Gemini 4 Argon">​</a></h2>
<ul>
<li><strong>77.9% on DeepSWE v1.1</strong>, per Google</li>
<li><strong>1M-token context window</strong> for input and output together. Google caps each request at 32,768 output tokens (65,536 when streaming), and LiteLLM continues past that cap for you</li>
<li><strong>Thinking levels low, medium and high.</strong> Argon does not support <code>thinking_budget</code>.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-gemini-4-argon-with-litellm">Use Gemini 4 Argon with LiteLLM<a href="https://docs.litellm.ai/blog/gemini-4-argon#use-gemini-4-argon-with-litellm" class="hash-link" aria-label="Direct link to Use Gemini 4 Argon with LiteLLM" title="Direct link to Use Gemini 4 Argon with LiteLLM">​</a></h2>
<p>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>
<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">Google AI Studio</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">Gemini Enterprise Agent Platform</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"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">argon</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">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">argon</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">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 GEMINI_API_KEY=$GEMINI_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.107.0-dev.3 \</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"> gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">argon</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/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">4</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">argon</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.107.0-dev.3 \</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": "gemini-4-argon",</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">  "reasoning_effort": "high"</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">}'</span><br></span></code></pre></div></div>
<p>LiteLLM sends <code>reasoning_effort</code> to Argon as its <code>thinking_level</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="long-outputs">Long outputs<a href="https://docs.litellm.ai/blog/gemini-4-argon#long-outputs" class="hash-link" aria-label="Direct link to Long outputs" title="Direct link to Long outputs">​</a></h2>
<p>From <code>v1.107.0-dev.3</code>, set <code>max_tokens</code> above Google's per-request cap and LiteLLM keeps going. When Google ends a request with a <code>continuationToken</code>, LiteLLM sends the request again with that token until the answer finishes or <code>max_tokens</code> is spent. This works for unary and streaming calls on <code>/chat/completions</code>, <code>/v1/messages</code> and <code>/v1/responses</code>, on Google AI Studio and Gemini Enterprise Agent Platform. A request with <code>n</code> above 1 is sent once, and so is a request whose <code>max_tokens</code> is not an integer, or one with no <code>max_tokens</code> while <code>LITELLM_GEMINI_DEFAULT_MAX_OUTPUT_TOKENS</code> is unset.</p>
<ul>
<li><strong>Requests with no <code>max_tokens</code>:</strong> from <code>v1.108.0</code>, set the env var <code>LITELLM_GEMINI_DEFAULT_MAX_OUTPUT_TOKENS</code> to an integer, and a Gemini chat completion, text completion or Responses API request that sends no output limit gets that budget, through the proxy or the Python SDK. <code>/v1/messages</code> requires <code>max_tokens</code>, so the env var never applies there. LiteLLM caps the budget at the model's <code>max_output_tokens</code> in the cost map, or at a deployment's own <code>model_info.max_output_tokens</code> when that is lower, since Gemini Enterprise Agent Platform answers 400 above a model's range. It gives no default to a model missing from the cost map or listed there as anything besides a chat model, such as an image model, to a chat model whose cost map entry leaves text out of <code>supported_output_modalities</code>, such as a Lyria music model, to a request whose <code>modalities</code> asks for anything besides text, to a request whose <code>extra_body</code> field holds a snake_case <code>generation_config</code>, to a request that resumes with a <code>continuation_token</code>, to Google's native <code>/v1beta/models/{model}:generateContent</code> route on a <code>gemini/</code> or <code>vertex_ai/</code> model or to Gemini Enterprise Agent Platform batch jobs. Any output limit the request already carries wins, such as its own <code>max_tokens</code>, <code>max_completion_tokens</code> or <code>max_output_tokens</code>, or a deployment's <code>litellm_params.max_tokens</code>. Zero, a negative number or a value that is not an integer counts as unset. On a model that returns no <code>continuationToken</code>, the budget is a plain output limit.</li>
<li><strong>Choosing the budget:</strong> it also caps answers that fit in one request, so a value below the model's own per-request limit (32,768 on Gemini 4 Argon, or 65,536 when streaming) cuts them off sooner. Thinking tokens count against it too, so on a thinking model a low value can leave little or no room for the answer. It bounds output tokens, not cost, since each request to Google sends the prompt and the answer so far again and bills them as prompt tokens. A client that never set <code>max_tokens</code> now waits for the whole answer. With a large value, a non-streamed request can run past the client's own timeout (600 seconds in the OpenAI SDK), and the SDK then retries while LiteLLM keeps running and billing the request it gave up on, so stream long answers or give the client the room the <strong>Timeouts</strong> bullet describes.</li>
<li><strong>Usage</strong> is summed across the requests, so cost and spend match Google's bill. The first request's prompt count is kept as <code>usage.prompt_tokens_details.initial_prompt_tokens</code> on an answer that took more than one request.</li>
<li><strong>A cut-off answer</strong> on <code>/chat/completions</code> ends with <code>finish_reason: "length"</code> and returns <code>provider_specific_fields.continuation_token</code>. Send the request again with that <code>"continuation_token"</code> and a higher <code>max_tokens</code> to continue it, since Google counts <code>max_tokens</code> across the whole answer.</li>
<li><strong>A dropped stream</strong> ends with the error. LiteLLM does not yet pick it back up from Google's mid-stream resume tokens.</li>
<li><strong>Timeouts:</strong> each request to Google runs under the deployment's <code>timeout</code>, 600 seconds when unset. A non-streamed request at the 32,768 cap takes about 10 minutes, so set <code>timeout: 1200</code> on deployments that serve long answers and give your client room for the whole answer.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="faq">FAQ<a href="https://docs.litellm.ai/blog/gemini-4-argon#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-much-does-gemini-4-argon-cost">How much does Gemini 4 Argon cost?<a href="https://docs.litellm.ai/blog/gemini-4-argon#how-much-does-gemini-4-argon-cost" class="hash-link" aria-label="Direct link to How much does Gemini 4 Argon cost?" title="Direct link to How much does Gemini 4 Argon cost?">​</a></h3>
<p>Until November 30, 2026, it costs $2.00 per 1M input tokens and $10.00 per 1M output tokens. On December 1, the prices change to $4.00 and $20.00. Cache reads cost $0.10 per 1M tokens until then.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-context-window-of-gemini-4-argon">What is the context window of Gemini 4 Argon?<a href="https://docs.litellm.ai/blog/gemini-4-argon#what-is-the-context-window-of-gemini-4-argon" class="hash-link" aria-label="Direct link to What is the context window of Gemini 4 Argon?" title="Direct link to What is the context window of Gemini 4 Argon?">​</a></h3>
<p>1,048,576 tokens for input and output together. Google returns up to 32,768 output tokens per request (65,536 when streaming), and from <code>v1.107.0-dev.3</code> LiteLLM continues across requests until <code>max_tokens</code> is spent.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-call-gemini-4-argon-with-an-openai-compatible-api">How do I call Gemini 4 Argon with an OpenAI-compatible API?<a href="https://docs.litellm.ai/blog/gemini-4-argon#how-do-i-call-gemini-4-argon-with-an-openai-compatible-api" class="hash-link" aria-label="Direct link to How do I call Gemini 4 Argon with an OpenAI-compatible API?" title="Direct link to How do I call Gemini 4 Argon with an OpenAI-compatible API?">​</a></h3>
<p>Add <code>gemini/gemini-4-argon</code> to your LiteLLM config. Then send a standard <code>/chat/completions</code> request to the proxy with <code>"model": "gemini-4-argon"</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/gemini-4-argon#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions/46238" target="_blank" rel="noopener noreferrer">GitHub discussion #46238</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="references">References<a href="https://docs.litellm.ai/blog/gemini-4-argon#references" class="hash-link" aria-label="Direct link to References" title="Direct link to References">​</a></h2>
<ul>
<li>LiteLLM pricing for <code>gemini/gemini-4-argon</code>: <a href="https://github.com/BerriAI/litellm/pull/46227" target="_blank" rel="noopener noreferrer">PR #46227</a></li>
<li>LiteLLM long outputs for Gemini 4: <a href="https://github.com/BerriAI/litellm/pull/46240" target="_blank" rel="noopener noreferrer">PR #46240</a></li>
<li>LiteLLM default output budget for Gemini: <a href="https://github.com/BerriAI/litellm/pull/47542" target="_blank" rel="noopener noreferrer">PR #47542</a></li>
<li>Google: <a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-argon/" target="_blank" rel="noopener noreferrer">Gemini 4 Argon announcement</a>, <a href="https://ai.google.dev/gemini-api/docs/models/gemini-4-argon" target="_blank" rel="noopener noreferrer">model page</a> and <a href="https://ai.google.dev/gemini-api/docs/pricing" target="_blank" rel="noopener noreferrer">pricing</a></li>
</ul>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini 4" term="gemini 4"/>
        <category label="gemini-4-argon" term="gemini-4-argon"/>
        <category label="pricing" term="pricing"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Gemini 4 Argon" term="card_title:Gemini 4 Argon"/>
        <category label="card_summary:Google's new flagship: 77.9% on DeepSWE v1.1, 1M context, thinking levels, $2 / $10 per 1M tokens until Nov 30." term="card_summary:Google's new flagship: 77.9% on DeepSWE v1.1, 1M context, thinking levels, $2 / $10 per 1M tokens until Nov 30."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[October Townhall: Product + Roadmap Updates]]></title>
        <id>https://docs.litellm.ai/blog/october-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/october-townhall-announcement"/>
        <updated>2026-10-10T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM October townhall on Friday, 23 October at 7:30 AM PT to learn about LiteLLM's product updates and roadmap.]]></summary>
        <content type="html"><![CDATA[<p>We are hosting our October townhall on <strong>Friday, 23 October at 7:30 AM PT</strong>.</p>
<img src="https://docs.litellm.ai/assets/ideal-img/october_townhall_banner.ebe5b01.640.png" srcset="https://docs.litellm.ai/assets/ideal-img/october_townhall_banner.ebe5b01.640.png 640w, https://docs.litellm.ai/assets/ideal-img/october_townhall_banner.c4d01a3.1280.png 1280w" sizes="(max-width: 996px) 100vw, 900px" width="640" height="336" alt="" loading="lazy" decoding="async" style="max-width:100%;height:auto;width:900px;display:block">
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="agenda">Agenda<a href="https://docs.litellm.ai/blog/october-townhall-announcement#agenda" class="hash-link" aria-label="Direct link to Agenda" title="Direct link to Agenda">​</a></h2>
<ul>
<li>Security</li>
<li>Stability &amp; Performance</li>
<li>Recent product releases &amp; what we're planning to ship</li>
<li>Q&amp;A</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="stability">Stability<a href="https://docs.litellm.ai/blog/october-townhall-announcement#stability" class="hash-link" aria-label="Direct link to Stability" title="Direct link to Stability">​</a></h2>
<p>Our team is focused on stability: improving reliability and reducing regressions across releases. Follow the roadmap here: <a href="https://github.com/BerriAI/litellm/issues/30484" target="_blank" rel="noopener noreferrer">Stability roadmap</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-to-contribute">How to contribute<a href="https://docs.litellm.ai/blog/october-townhall-announcement#how-to-contribute" class="hash-link" aria-label="Direct link to How to contribute" title="Direct link to How to contribute">​</a></h2>
<p>Add the topics and questions you'd like us to cover when you register below. We use your responses to set the agenda.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="register">Register<a href="https://docs.litellm.ai/blog/october-townhall-announcement#register" class="hash-link" aria-label="Direct link to Register" title="Direct link to Register">​</a></h2>
<p>Register here: <a href="https://forms.gle/F8tTYR8rfjKBA4D67" target="_blank" rel="noopener noreferrer">LiteLLM October Townhall Form</a></p>
<p>We will hold the townhall from <strong>7:30 AM to 8:30 AM PT on Zoom</strong>.</p>
<p>For security, attendance is restricted to corporate emails. If you register with a non-corporate email, we will share the townhall slides and accompanying blog post after the event.</p>]]></content>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing Microsoft 365 Copilot in LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/microsoft-365-copilot</id>
        <link href="https://docs.litellm.ai/blog/microsoft-365-copilot"/>
        <updated>2026-10-09T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use Microsoft 365 Copilot from your applications through LiteLLM, with access to your Microsoft 365 work data.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM × Microsoft 365 Copilot" src="https://docs.litellm.ai/assets/images/cover-e45c45cb297f07051f5dda6a99917f20.png" width="1600" height="836" class="img_ev3q"></p>
<p><strong>Microsoft 365 Copilot is now a provider in LiteLLM.</strong> Use it from your applications to ask questions about your Microsoft 365 work data.</p>
<p>Users sign in with their Microsoft work account and ask questions like “Summarize my latest meeting.” Copilot answers using the data they already have permission to access.</p>
<!-- -->
<p>Connect applications that support Microsoft Entra SSO and forward each user's access token. Each user needs a Microsoft 365 Copilot license, and LiteLLM requires enterprise JWT authentication.</p>
<p>Admins can set <a href="https://docs.litellm.ai/docs/proxy/custom_pricing#override-model-cost-map" target="_blank" rel="noopener noreferrer">custom pricing</a> to track usage costs.</p>
<p><a href="https://docs.litellm.ai/docs/providers/microsoft_365_copilot">Set up Microsoft 365 Copilot →</a></p>]]></content>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing litellm-core: the first step toward a leaner SDK]]></title>
        <id>https://docs.litellm.ai/blog/introducing-litellm-core</id>
        <link href="https://docs.litellm.ai/blog/introducing-litellm-core"/>
        <updated>2026-10-08T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Ongoing work to reduce LiteLLM's dependencies and installation footprint, improve runtime loading, and make imports faster]]></summary>
        <content type="html"><![CDATA[<p>We're introducing <code>litellm-core</code> as the first step in ongoing work to make the LiteLLM SDK leaner. We want applications to install fewer dependencies, use less disk space, and spend less time loading the SDK</p>
<p>This first step delivers an <strong>approximately 65.6 MB reduction</strong> in installed disk space, including runtime dependencies, compared with baseline <code>litellm</code> in our source-build comparison. We'll continue building on that progress with further dependency reductions and improvements to how the SDK loads</p>
<p>The first step separates SDK packaging from the existing distribution, removes mandatory AWS and Python Hugging Face tokenizer dependencies from core, and leaves out the bundled dashboard. Your application continues to use <code>import litellm</code></p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-a-separate-core-package">Why a separate core package<a href="https://docs.litellm.ai/blog/introducing-litellm-core#why-a-separate-core-package" class="hash-link" aria-label="Direct link to Why a separate core package" title="Direct link to Why a separate core package">​</a></h2>
<p>LiteLLM supports a broad range of providers, endpoints, and integrations. An application making ordinary chat completion calls may not need AWS credential handling or Python Hugging Face tokenizers, but those packages have been part of the SDK's default installation</p>
<p>Each mandatory dependency contributes to the installation footprint, and it can bring its own dependencies. Importing modules before they are needed can also add startup work. We want developers to install and load less when their application needs less</p>
<p><code>litellm-core</code> gives us a dedicated distribution to improve that experience while preserving the existing <code>litellm</code> package's dependency defaults</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-same-sdk-apis">The same SDK APIs<a href="https://docs.litellm.ai/blog/introducing-litellm-core#the-same-sdk-apis" class="hash-link" aria-label="Direct link to The same SDK APIs" title="Direct link to The same SDK APIs">​</a></h2>
<p>Core is built from the shared LiteLLM SDK sources. It retains provider request and response translation, synchronous and asynchronous completions, streaming, embeddings, token counting, model metadata, and cost calculations. Routing, retries, fallbacks, and consistent provider error handling remain part of the SDK</p>
<p>The broader API surface, including Responses, image, audio, and batch operations, is preserved too. Support still depends on the model and provider, and features with optional dependencies need those packages installed</p>
<p>The package name changes to <code>litellm-core</code>, but Python imports continue to use <code>litellm</code>. Core does not bundle the Admin UI or expose the gateway CLI entry points</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-changes-in-this-first-step">What changes in this first step<a href="https://docs.litellm.ai/blog/introducing-litellm-core#what-changes-in-this-first-step" class="hash-link" aria-label="Direct link to What changes in this first step" title="Direct link to What changes in this first step">​</a></h2>
<p>Core no longer requires <code>boto3</code>, <code>tokenizers</code>, or <code>huggingface-hub</code> in every installation. Applications that need AWS credential resolution, request signing, or event-stream decoding can install <code>boto3</code>. Applications using Python Hugging Face tokenizer paths can install <code>tokenizers</code> and <code>huggingface-hub</code></p>
<p>The shared implementation loads these optional packages at the operations that need them and provides installation guidance when they are missing. The proxy CLI is also deferred rather than imported as part of SDK initialization</p>
<p>Token counting remains available through the supported native and <code>tiktoken</code> paths. If a token-counting path falls back to an approximation, it emits a warning so applications can distinguish an estimate from a model-specific count</p>
<p>Core also declares <code>python-dateutil</code> directly. Removing three mandatory packages does not mean exactly three fewer installed packages: the total depends on their transitive dependencies and the rest of the application's environment</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="approximately-656-mb-less-installed-disk-space">Approximately 65.6 MB less installed disk space<a href="https://docs.litellm.ai/blog/introducing-litellm-core#approximately-656-mb-less-installed-disk-space" class="hash-link" aria-label="Direct link to Approximately 65.6 MB less installed disk space" title="Direct link to Approximately 65.6 MB less installed disk space">​</a></h2>
<p>Our source-build comparison measured an <strong>approximately 65.6 MB reduction</strong> in installed disk space, including runtime dependencies. This is the first measured step in our ongoing work to reduce what applications need to install</p>
<p>The comparison covers default installations without optional extras. Core retains the shared SDK APIs, excludes bundled dashboard assets and gateway CLI entry points, and makes AWS and Python Hugging Face tokenizer packages optional. Adding those packages changes the installation footprint</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-we-measured">How we measured<a href="https://docs.litellm.ai/blog/introducing-litellm-core#how-we-measured" class="hash-link" aria-label="Direct link to How we measured" title="Direct link to How we measured">​</a></h3>
<ul>
<li>We built baseline <code>litellm</code> at <a href="https://github.com/BerriAI/litellm/commit/5d207d85ee547bc323d704bc6aaab901aa0be8b6" target="_blank" rel="noopener noreferrer">commit 5d207d85</a> and <code>litellm-core</code> at <a href="https://github.com/BerriAI/litellm/commit/029a626c99ec8c6012512b18ecea075a90db9dcd" target="_blank" rel="noopener noreferrer">commit 029a626c</a>, then installed their default dependencies in separate clean environments on the same Ubuntu x86_64 machine and CPython version, with matching versions of shared dependencies. These measurements describe those source builds</li>
<li>Installed size counts unique files belonging to the SDK and its runtime dependencies, including metadata and scripts. It excludes the interpreter, common tooling, and generated bytecode. MB uses decimal units, with 1 MB equal to 1,000,000 bytes. The reduction measures disk space, not RAM usage or inference speed</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="a-shared-foundation-for-litellm">A shared foundation for LiteLLM<a href="https://docs.litellm.ai/blog/introducing-litellm-core#a-shared-foundation-for-litellm" class="hash-link" aria-label="Direct link to A shared foundation for LiteLLM" title="Direct link to A shared foundation for LiteLLM">​</a></h2>
<p>Our longer-term direction is for <code>litellm-core</code> to become the common SDK foundation for LiteLLM, with <code>litellm</code> eventually wrapping it</p>
<p>For developers familiar with <a href="https://docs.pydantic.dev/latest/internals/architecture/" target="_blank" rel="noopener noreferrer">Pydantic's architecture</a>, the separation between <code>pydantic</code> and <code>pydantic-core</code> is a useful analogy: shared core functionality can evolve behind a familiar public interface</p>
<p>That analogy describes the architectural direction. In this first step, <code>litellm</code> and <code>litellm-core</code> are independently packaged from shared sources. <code>litellm</code> has not yet become a wrapper around core</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="getting-started">Getting started<a href="https://docs.litellm.ai/blog/introducing-litellm-core#getting-started" class="hash-link" aria-label="Direct link to Getting started" title="Direct link to Getting started">​</a></h2>
<p>In a fresh virtual environment, install <code>litellm-core</code> and continue using your existing <code>litellm</code> imports. Add the optional AWS or Python tokenizer packages if your application uses those features</p>
<p>Choose one distribution per environment. <code>litellm</code> and <code>litellm-core</code> currently install overlapping Python files and cannot coexist, even at matching versions. Existing applications can continue using <code>litellm</code> with its current dependency defaults</p>
<p>The <a href="https://docs.litellm.ai/docs/litellm_core" target="_blank" rel="noopener noreferrer">LiteLLM Core guide</a> covers installation, dependency choices, and the gateway distinction</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="continuing-to-make-core-leaner-and-faster">Continuing to make core leaner and faster<a href="https://docs.litellm.ai/blog/introducing-litellm-core#continuing-to-make-core-leaner-and-faster" class="hash-link" aria-label="Direct link to Continuing to make core leaner and faster" title="Direct link to Continuing to make core leaner and faster">​</a></h2>
<p>Our longer-term goal is to bring the default installation to <strong>around 10 total dependencies, including transitive dependencies</strong>. That is a target for ongoing work, not the dependency count of this first release</p>
<p>We'll continue shrinking the installation footprint and loading runtime dependencies only when the relevant functionality needs them</p>
<p>Faster imports remain a goal of that work, alongside fewer dependencies and a smaller installation. We'll keep measuring progress as we improve how the SDK loads and uses its runtime dependencies</p>
<p>As core becomes the common SDK foundation and <code>litellm</code> eventually wraps it, we'll keep measuring these changes so developers can follow the progress</p>]]></content>
        <author>
            <name>Joshua Valluru</name>
            <uri>https://github.com/joshua-berri</uri>
        </author>
    </entry>
    <entry>
        <title type="html"><![CDATA[Claude Haiku 5.5 API Pricing and Day 0 Support on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/claude-haiku-5-5</id>
        <link href="https://docs.litellm.ai/blog/claude-haiku-5-5"/>
        <updated>2026-10-07T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Claude Haiku 5.5 costs $0.10 per 1M input tokens and $0.50 per 1M output tokens. LiteLLM supports it on day 0 on Anthropic, AWS, Google Cloud and Azure.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="Claude Haiku 5.5 on LiteLLM" src="https://docs.litellm.ai/assets/images/litellm_claude_haiku_5_5_announcement-6e471bf00e33af3062bc301c53d613ff.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM now supports <a href="https://www.anthropic.com/claude-haiku-5-5" target="_blank" rel="noopener noreferrer">Claude Haiku 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="claude-haiku-55-pricing">Claude Haiku 5.5 pricing<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#claude-haiku-55-pricing" class="hash-link" aria-label="Direct link to Claude Haiku 5.5 pricing" title="Direct link to Claude Haiku 5.5 pricing">​</a></h2>
<ul>
<li><strong>Input:</strong> $0.10 / MTok for prompts up to 100K tokens, $0.50 / MTok above</li>
<li><strong>Output:</strong> $0.50 / MTok, or $2.50 / MTok above 100K</li>
<li><strong>Cache read:</strong> $0.01 / MTok, or $0.05 / MTok above 100K</li>
<li><strong>Batch:</strong> 50% off input and output</li>
</ul>
<p>Prices on every provider: <a href="https://models.litellm.ai/models" target="_blank" rel="noopener noreferrer">https://models.litellm.ai/models</a></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="whats-new-in-claude-haiku-55">What's new in Claude Haiku 5.5<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#whats-new-in-claude-haiku-55" class="hash-link" aria-label="Direct link to What's new in Claude Haiku 5.5" title="Direct link to What's new in Claude Haiku 5.5">​</a></h2>
<ul>
<li><strong>90% cheaper than Haiku 4.5</strong> for prompts up to 100K tokens, and around 75% less to run on average, per Anthropic</li>
<li><strong>72.4% on OSWorld 2.1</strong>, up from Haiku 4.5's 15.7%</li>
<li><strong>1M-token context</strong>, up to 128K output tokens</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="use-claude-haiku-55-with-litellm">Use Claude Haiku 5.5 with LiteLLM<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#use-claude-haiku-55-with-litellm" class="hash-link" aria-label="Direct link to Use Claude Haiku 5.5 with LiteLLM" title="Direct link to Use Claude Haiku 5.5 with LiteLLM">​</a></h2>
<p>Pricing landed in <a href="https://github.com/BerriAI/litellm/pull/45108" target="_blank" rel="noopener noreferrer">PR #45108</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>
<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">haiku</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">haiku</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.104.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">haiku</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/global.anthropic.claude</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">haiku</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><code>global.</code> can serve a request from any commercial AWS region. To keep requests inside one geography, swap in a geographic inference profile such as <code>bedrock/us.anthropic.claude-haiku-5-5</code> (the model's AWS model card lists the profiles it has), which costs 10% more. LiteLLM tracks the cost of both. On older images this needs the remote cost map, which LiteLLM loads at startup unless <code>LITELLM_LOCAL_MODEL_COST_MAP</code> is set.</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.104.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">haiku</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">haiku</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.104.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">haiku</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">haiku</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.104.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-haiku-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="faq">FAQ<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#faq" class="hash-link" aria-label="Direct link to FAQ" title="Direct link to FAQ">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-much-does-claude-haiku-55-cost">How much does Claude Haiku 5.5 cost?<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#how-much-does-claude-haiku-55-cost" class="hash-link" aria-label="Direct link to How much does Claude Haiku 5.5 cost?" title="Direct link to How much does Claude Haiku 5.5 cost?">​</a></h3>
<p>$0.10 per 1M input tokens and $0.50 per 1M output tokens for prompts up to 100K tokens, and $0.50 and $2.50 above that. Cache reads cost $0.01 per 1M tokens.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="what-is-the-context-window-of-claude-haiku-55">What is the context window of Claude Haiku 5.5?<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#what-is-the-context-window-of-claude-haiku-55" class="hash-link" aria-label="Direct link to What is the context window of Claude Haiku 5.5?" title="Direct link to What is the context window of Claude Haiku 5.5?">​</a></h3>
<p>1M tokens, with up to 128K output tokens per request.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="how-do-i-call-claude-haiku-55-with-an-openai-compatible-api">How do I call Claude Haiku 5.5 with an OpenAI-compatible API?<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#how-do-i-call-claude-haiku-55-with-an-openai-compatible-api" class="hash-link" aria-label="Direct link to How do I call Claude Haiku 5.5 with an OpenAI-compatible API?" title="Direct link to How do I call Claude Haiku 5.5 with an OpenAI-compatible API?">​</a></h3>
<p>Add <code>anthropic/claude-haiku-5-5</code> to your LiteLLM config, then send a standard <code>/chat/completions</code> request to the proxy with <code>"model": "claude-haiku-5-5"</code>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/claude-haiku-5-5#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions/45133" target="_blank" rel="noopener noreferrer">GitHub discussion #45133</a>.</p>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="claude haiku" term="claude haiku"/>
        <category label="haiku 5.5" term="haiku 5.5"/>
        <category label="pricing" term="pricing"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Haiku 5.5" term="card_title:Claude Haiku 5.5"/>
        <category label="card_summary:90% cheaper than Haiku 4.5 on short prompts, 1M context, 72.4% on OSWorld 2.1, $0.10 / $0.50 per 1M tokens." term="card_summary:90% cheaper than Haiku 4.5 on short prompts, 1M context, 72.4% on OSWorld 2.1, $0.10 / $0.50 per 1M tokens."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Open Sourcing Moyai: Self-Hosted Cloud Coding Agent]]></title>
        <id>https://docs.litellm.ai/blog/moyai-open-source</id>
        <link href="https://docs.litellm.ai/blog/moyai-open-source"/>
        <updated>2026-10-07T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[Run cloud coding agents on your own infrastructure with Moyai. Choose your agent and models through LiteLLM, track costs, and follow the setup guide.]]></summary>
        <content type="html"><![CDATA[<style>
html:has(#moyai-hero) {
  color-scheme: dark;
  --ifm-background-color: #05070d;
  --ifm-background-surface-color: #161b22;
  --ifm-navbar-background-color: rgba(5, 7, 13, 0.82);
  --ifm-footer-background-color: #05070d;
  --ifm-font-color-base: #e3e3e3;
  --ifm-heading-color: #f5f6fa;
  --ifm-color-content: #e3e3e3;
  --ifm-color-content-secondary: #c2c6d0;
  --ifm-color-emphasis-300: #444950;
  --ifm-color-emphasis-400: #606770;
  --ifm-color-emphasis-500: #8d949e;
  --ifm-color-emphasis-600: #a6aab3;
  --ifm-color-emphasis-700: #c2c6d0;
  --ifm-toc-border-color: #2d3139;
}
html:has(#moyai-hero) body,
html:has(#moyai-hero) .main-wrapper {
  background: #05070d;
  color: #e3e3e3;
}
html:has(#moyai-hero) [class*='colorModeToggle'] {
  display: none;
}
html:has(#moyai-hero) {
  --ifm-navbar-background-color: #080b26;
  --aurora-nav-bg: rgba(8, 11, 38, 0.72);
  --aurora-line: rgba(255, 255, 255, 0.08);
  --aurora-line-strong: rgba(159, 171, 255, 0.16);
  --aurora-muted: #a6a4c6;
  --ifm-navbar-link-color: #e3e3e3;
}
html:has(#moyai-hero) .navbar {
  background-color: rgba(8, 11, 38, 0.72) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html:has(#moyai-hero) .navbar__link,
html:has(#moyai-hero) .navbar__item {
  color: #e3e3e3;
}
html:has(#moyai-hero) .blog-wrapper article .markdown,
html:has(#moyai-hero) article .markdown {
  color: #d1d5db;
}
html:has(#moyai-hero) article .markdown h2,
html:has(#moyai-hero) article .markdown h3 {
  color: #f9fafb;
}
html:has(#moyai-hero) article .markdown code {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}
</style><script>document.documentElement.setAttribute("data-theme","dark")</script><div class="backdrop_GepX" style="background:radial-gradient(ellipse at 50% 70%, #0a1226 0%, #04060c 65%)" aria-hidden="true"></div><canvas class="sky_m8FU" aria-hidden="true"></canvas><section id="moyai-hero" class="scroller_pNW6" data-full-width="true" data-stage="0" style="--accent:#a9c6ff"><div class="hero_k5iN"><canvas class="swirl_v22n" aria-hidden="true"></canvas><h1 class="split_QJ6G"><img class="mark__RL1" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/moyai-head.svg" alt=""><span class="brand_xOwg">Moyai</span><span class="subhead_nSZW">Open source cloud agent</span></h1><div class="date_Yw33">October 7, 2026</div><div class="orbit_Es90 undefined"><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/hermes.png" alt="Hermes" title="Hermes"><span>Hermes</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/anthropic.svg" alt="Claude Code" title="Claude Code"><span>Claude Code</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/openai.svg" alt="Codex" title="Codex"><span>Codex</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/opencode.svg" alt="OpenCode" title="OpenCode"><span>OpenCode</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/langchain.svg" alt="Deep Agents" title="Deep Agents"><span>Deep Agents</span></div></div><div class="orbit_Es90 orbitOuter_LL9L"><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/openai.svg" alt="OpenAI" title="OpenAI"><span>OpenAI</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/anthropic.svg" alt="Anthropic" title="Anthropic"><span>Anthropic</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/fireworks.svg" alt="Fireworks" title="Fireworks"><span>Fireworks</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/google.svg" alt="Google" title="Google"><span>Google</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/xai.svg" alt="xAI" title="xAI"><span>xAI</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/mistral.svg" alt="Mistral" title="Mistral"><span>Mistral</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/deepseek.svg" alt="DeepSeek" title="DeepSeek"><span>DeepSeek</span></div><div class="chip_ryrt"><img class="chipLogo_nKV4" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/bedrock.svg" alt="Bedrock" title="Bedrock"><span>Bedrock</span></div></div><p class="tagline_MZSp"><span>Works with Claude Code and Codex</span><span>Self-hosted · 100+ providers through LiteLLM</span></p></div></section><ol class="toc_zfxC"><li><a href="https://docs.litellm.ai/blog/moyai-open-source#the-problem"><span>[<!-- -->1<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>The problem</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#the-results-79-cheaper"><span>[<!-- -->2<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>Our cost estimate</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#why-were-open-sourcing-it"><span>[<!-- -->3<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>Why we're open sourcing it</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#a-cloud-agent-that-keeps-working"><span>[<!-- -->4<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>A cloud agent that keeps working</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#any-harness"><span>[<!-- -->5<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>Choose your agent</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#any-model-any-provider"><span>[<!-- -->6<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>Choose your models</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#one-source-of-truth-for-model-costs"><span>[<!-- -->7<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>Know what you spend</span></a></li><li><a href="https://docs.litellm.ai/blog/moyai-open-source#get-started"><span>[<!-- -->8<!-- -->]</span><span class="dots_P1Ow" aria-hidden="true"></span><span>Set up your first task</span></a></li></ol>
<div class="page_YtqF immersiveByline_XkdX"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-10-07T09:00:00.000Z">Oct 7, 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/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>AI Product Engineer, 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>AI Product Engineer, LiteLLM</small></span></span></div></div></div>
<p>Today we're open sourcing <a href="https://github.com/BerriAI/moyai" target="_blank" rel="noopener noreferrer">Moyai</a>, the cloud coding agent our team runs at LiteLLM. Give it a task in Slack or the browser, then come back to a pull request with code and test results to review. You choose the agent and compatible model, run it on your infrastructure, and track the cost through LiteLLM.</p>
<p><a href="https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/setup">Set up your first cloud task</a>, or see the cost comparison and a real bug fix below.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-problem">The problem<a href="https://docs.litellm.ai/blog/moyai-open-source#the-problem" class="hash-link" aria-label="Direct link to The problem" title="Direct link to The problem">​</a></h2>
<p>Our Devin bill hit $101,872 in a single month, and only our own team used it. Our engineers kicked off those sessions and automations on models and routing we couldn't control.</p>
<p><img decoding="async" loading="lazy" alt="Devin billing dashboard showing $101,872.24 spent between Aug 30 and Sep 29, with daily spend peaking above $10,000." src="https://docs.litellm.ai/assets/images/devin-bill-22730098d78b7ce19a60188c28770466.png" width="1548" height="838" class="img_ev3q"></p>
<p>We already run a gateway that routes across 100+ providers. We wanted to choose the model and routing for each coding task, with the usage visible in our own gateway.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-results-79-cheaper">Our estimate: 79% lower costs<a href="https://docs.litellm.ai/blog/moyai-open-source#the-results-79-cheaper" class="hash-link" aria-label="Direct link to Our estimate: 79% lower costs" title="Direct link to Our estimate: 79% lower costs">​</a></h2>
<p>We estimate about $700 a day to run Moyai for our team. Over 31 days, that comes to about $21,700 against our $101,872 Devin bill: roughly $80,000 less, or 79% lower estimated cost. This is an internal comparison, not a matched-workload benchmark. Your model mix, workload, compute, and storage determine your costs.</p>
<figure class="cost_CcW4"><div class="headline_aKzA"><span class="pct_zp4O">79<!-- -->% lower estimate</span><span class="headlineText_yA6Y">About <!-- -->$21,700<!-- --> estimated for Moyai vs our <!-- -->$101,872<!-- --> Devin bill over 31 days.</span></div><svg viewBox="0 0 760 320" role="img" aria-label="Internal 31-day comparison. The Devin bill totals $101,872; the Moyai estimate is $21,700, a difference of $80,172. This is not a matched-workload benchmark."><g><line x1="52" x2="610" y1="286" y2="286" class="grid_xyjs"></line><text x="42" y="290" text-anchor="end" class="axis_qblo">$0</text></g><g><line x1="52" x2="610" y1="241" y2="241" class="grid_xyjs"></line><text x="42" y="245" text-anchor="end" class="axis_qblo">$20k</text></g><g><line x1="52" x2="610" y1="196" y2="196" class="grid_xyjs"></line><text x="42" y="200" text-anchor="end" class="axis_qblo">$40k</text></g><g><line x1="52" x2="610" y1="151" y2="151" class="grid_xyjs"></line><text x="42" y="155" text-anchor="end" class="axis_qblo">$60k</text></g><g><line x1="52" x2="610" y1="106" y2="106" class="grid_xyjs"></line><text x="42" y="110" text-anchor="end" class="axis_qblo">$80k</text></g><g><line x1="52" x2="610" y1="61" y2="61" class="grid_xyjs"></line><text x="42" y="65" text-anchor="end" class="axis_qblo">$100k</text></g><g><line x1="52" x2="610" y1="16" y2="16" class="grid_xyjs"></line><text x="42" y="20" text-anchor="end" class="axis_qblo">$120k</text></g><path d="M52.0,285.8L70.6,283.6L89.2,280.1L107.8,276.2L126.4,273.3L145.0,271.7L163.6,270.4L182.2,270.2L200.8,268.8L219.4,263.2L238.0,259.0L256.6,253.2L275.2,247.5L293.8,242.9L312.4,241.8L331.0,232.4L349.6,221.9L368.2,209.3L386.8,194.3L405.4,180.6L424.0,172.5L442.6,169.7L461.2,148.9L479.8,123.6L498.4,104.1L517.0,86.0L535.6,79.9L554.2,70.3L572.8,68.0L591.4,63.4L610.0,56.8L610.0,237.2L591.4,238.8L572.8,240.3L554.2,241.9L535.6,243.5L517.0,245.1L498.4,246.6L479.8,248.2L461.2,249.8L442.6,251.3L424.0,252.9L405.4,254.5L386.8,256.1L368.2,257.6L349.6,259.2L331.0,260.8L312.4,262.4L293.8,263.9L275.2,265.5L256.6,267.1L238.0,268.7L219.4,270.3L200.8,271.8L182.2,273.4L163.6,275.0L145.0,276.6L126.4,278.1L107.8,279.7L89.2,281.3L70.6,282.9L52.0,284.4Z" class="gap_hPyW"></path><path d="M52.0,285.8L70.6,283.6L89.2,280.1L107.8,276.2L126.4,273.3L145.0,271.7L163.6,270.4L182.2,270.2L200.8,268.8L219.4,263.2L238.0,259.0L256.6,253.2L275.2,247.5L293.8,242.9L312.4,241.8L331.0,232.4L349.6,221.9L368.2,209.3L386.8,194.3L405.4,180.6L424.0,172.5L442.6,169.7L461.2,148.9L479.8,123.6L498.4,104.1L517.0,86.0L535.6,79.9L554.2,70.3L572.8,68.0L591.4,63.4L610.0,56.8" class="devin_YveB"></path><path d="M52.0,284.4L70.6,282.9L89.2,281.3L107.8,279.7L126.4,278.1L145.0,276.6L163.6,275.0L182.2,273.4L200.8,271.8L219.4,270.3L238.0,268.7L256.6,267.1L275.2,265.5L293.8,263.9L312.4,262.4L331.0,260.8L349.6,259.2L368.2,257.6L386.8,256.1L405.4,254.5L424.0,252.9L442.6,251.3L461.2,249.8L479.8,248.2L498.4,246.6L517.0,245.1L535.6,243.5L554.2,241.9L572.8,240.3L591.4,238.8L610.0,237.2" class="line__k2s"></path><circle cx="610" cy="56.78745999999998" r="4" class="devinDot_q7m2"></circle><circle cx="610" cy="237.175" r="4" class="moyaiDot_ngts"></circle><line x1="616" x2="616" y1="66.78745999999998" y2="227.175" class="bracket_zizg"></line><text x="624" y="60.78745999999998" class="endLabel_tzRP">Devin <!-- -->$101,872</text><text x="624" y="150.98122999999998" class="savedLabel_XCyf">gap <!-- -->$80,172</text><text x="624" y="241.175" class="endLabelMoyai_w0s7">Moyai <!-- -->$21,700</text><text x="52" y="310" text-anchor="middle" class="axis_qblo">Aug 30</text><text x="163.60000000000002" y="310" text-anchor="middle" class="axis_qblo">Sep 5</text><text x="275.20000000000005" y="310" text-anchor="middle" class="axis_qblo">Sep 11</text><text x="386.8" y="310" text-anchor="middle" class="axis_qblo">Sep 17</text><text x="498.40000000000003" y="310" text-anchor="middle" class="axis_qblo">Sep 23</text><text x="610" y="310" text-anchor="middle" class="axis_qblo">Sep 29</text></svg><figcaption><span><i class="swatchDevin_mmTY"></i>Devin bill</span><span><i class="swatchMoyai__skB"></i>Moyai estimate</span><span><i class="swatchGap_oXho"></i>Difference</span><p class="note_rOll">Devin's daily curve is approximated from its billing dashboard and scaled to the invoice total. The Moyai line assumes $700/day for our team. Actual costs depend on your workload and infrastructure.</p></figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-were-open-sourcing-it">Why we're open sourcing it<a href="https://docs.litellm.ai/blog/moyai-open-source#why-were-open-sourcing-it" class="hash-link" aria-label="Direct link to Why we're open sourcing it" title="Direct link to Why we're open sourcing it">​</a></h2>
<p>Last week we wrote about <a href="https://docs.litellm.ai/blog/internal-devin-two-days">how we built our own internal Devin in 2 days</a>, and most replies asked to run it themselves. Moyai is the same code we run in production at LiteLLM. You deploy it on your infrastructure and point it at your LiteLLM gateway. You control the installation and provider access; model requests still go to the provider you select.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="a-cloud-agent-that-keeps-working">A cloud agent that keeps working<a href="https://docs.litellm.ai/blog/moyai-open-source#a-cloud-agent-that-keeps-working" class="hash-link" aria-label="Direct link to A cloud agent that keeps working" title="Direct link to A cloud agent that keeps working">​</a></h2>
<p>Each session gets its own cloud workspace with a terminal, a filesystem, and a browser. The agent edits code and runs your tests there, then opens a pull request for you to review. Closing your laptop leaves the cloud task running.</p>
<p>You can follow along in the web app and send a correction while it works, or pick the thread back up in Slack the next morning. For large tasks, the agent can split work across parallel workers and collect their results.</p>
<p>Watch a real bug fix move from a Slack request through investigation and regression tests to a pull request:</p>
<figure class="demo_fj59"><video class="video_wQT_" controls="" muted="" playsinline="" preload="none" src="/assets/medias/bug-workflow-08b41275f096ef7fd90517574cc9b152.mp4" poster="/assets/ideal-img/bug-workflow-poster.9d3a3f1.1280.jpg" width="1600" height="1000" aria-label="18-second walkthrough of Moyai across Slack and the web: a real team workflow request, investigation, regression tests, and a pull request returned to the thread"><a href="https://docs.litellm.ai/assets/medias/bug-workflow-08b41275f096ef7fd90517574cc9b152.mp4">Watch the bug-fix walkthrough</a></video><figcaption class="caption_JM4l">A real <code>/personal:team</code> bug fix across Slack and the web. Edited 18-second walkthrough of a completed session; tests used a mocked Slack transport.</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="any-harness">Choose the agent for the task<a href="https://docs.litellm.ai/blog/moyai-open-source#any-harness" class="hash-link" aria-label="Direct link to Choose the agent for the task" title="Direct link to Choose the agent for the task">​</a></h2>
<p>Pick a supported agent such as Codex, Claude Agent SDK, or Hermes when you start a session. Moyai runs it in a cloud workspace with the connections you enable.</p>
<figure class="wall_dvan"><figcaption>Harnesses</figcaption><div class="wallGrid_cJTx"><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/hermes.png" alt="Hermes" title="Hermes"><span>Hermes</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/anthropic.svg" alt="Claude Code" title="Claude Code"><span>Claude Code</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/openai.svg" alt="Codex" title="Codex"><span>Codex</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/opencode.svg" alt="OpenCode" title="OpenCode"><span>OpenCode</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/langchain.svg" alt="Deep Agents" title="Deep Agents"><span>Deep Agents</span></div></div></figure>
<p>Check the <a href="https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/setup#configure-litellm">agent and model compatibility table</a> when choosing a combination for your gateway.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="any-model-any-provider">Choose your models through LiteLLM<a href="https://docs.litellm.ai/blog/moyai-open-source#any-model-any-provider" class="hash-link" aria-label="Direct link to Choose your models through LiteLLM" title="Direct link to Choose your models through LiteLLM">​</a></h2>
<p>Moyai sends model requests through LiteLLM. Choose a compatible model for the task and your budget, with provider keys kept on the gateway. Moyai attributes each tracked request to the teammate who sent the message.</p>
<figure class="wall_dvan"><figcaption>Providers</figcaption><div class="wallGrid_cJTx"><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/openai.svg" alt="OpenAI" title="OpenAI"><span>OpenAI</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/anthropic.svg" alt="Anthropic" title="Anthropic"><span>Anthropic</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/fireworks.svg" alt="Fireworks" title="Fireworks"><span>Fireworks</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/google.svg" alt="Google" title="Google"><span>Google</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/xai.svg" alt="xAI" title="xAI"><span>xAI</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/mistral.svg" alt="Mistral" title="Mistral"><span>Mistral</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/deepseek.svg" alt="DeepSeek" title="DeepSeek"><span>DeepSeek</span></div><div class="wallItem_Q8fz"><img class="wallLogo_dhua" src="https://docs.litellm.ai/img/blog/moyai_devin_open_source/logos/bedrock.svg" alt="Bedrock" title="Bedrock"><span>Bedrock</span></div></div></figure>
<p>LiteLLM supports 100+ providers. Your selected agent needs a model and gateway endpoint that support its protocol and tool calls.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="one-source-of-truth-for-model-costs">One source of truth for model costs<a href="https://docs.litellm.ai/blog/moyai-open-source#one-source-of-truth-for-model-costs" class="hash-link" aria-label="Direct link to One source of truth for model costs" title="Direct link to One source of truth for model costs">​</a></h2>
<p>Moyai uses LiteLLM's reported charges for its per-user, session, and model breakdowns. You can see which teammates and tasks account for spend, then check a tracked request against the same gateway cost. See the <a href="https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai#see-agent-spend">spend dashboard</a> and <a href="https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/architecture#cost-accounting">cost accounting details</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Set up your first cloud task<a href="https://docs.litellm.ai/blog/moyai-open-source#get-started" class="hash-link" aria-label="Direct link to Set up your first cloud task" title="Direct link to Set up your first cloud task">​</a></h2>
<p>Bring a Modal account, a reachable LiteLLM gateway, and a key for your chosen model. <a href="https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/setup">Follow the setup guide</a> to deploy Moyai, verify a cloud task, and connect one repository. Give it a small bug your team already understands. Review the PR, test output, and model cost before expanding the rollout.</p>
<p>You own the installation, updates, credentials, and backups. You pay for model usage and cloud infrastructure. Read the <a href="https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/architecture">architecture guide</a> for the system design, checkpoints, and recovery behavior.</p>
<details class="details_lb9f alert alert--info details_b_Ee" data-collapsed="true"><summary>Preview the interface locally first</summary><div><div class="collapsibleContent_i85q"><p>The local demo lets you explore the interface without model credentials. Demo tasks are simulated; they do not verify cloud execution.</p><div class="language-sh codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockContent_QJqH"><pre tabindex="0" class="prism-code language-sh 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/moyai.git</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">cd moyai</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">cp .env.example .env</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">uv sync --frozen</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">uv run uvicorn app.main:app --host 127.0.0.1 --port 8787 --workers 1</span><br></span></code></pre></div></div></div></div></details>
<p>Issues and PRs are welcome on <a href="https://github.com/BerriAI/moyai" target="_blank" rel="noopener noreferrer">GitHub</a>.</p>]]></content>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="agents" term="agents"/>
        <category label="open-source" term="open-source"/>
        <category label="infrastructure" term="infrastructure"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Nano Banana 2.1]]></title>
        <id>https://docs.litellm.ai/blog/nano_banana_2_1</id>
        <link href="https://docs.litellm.ai/blog/nano_banana_2_1"/>
        <updated>2026-10-06T18:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Gemini Nano Banana 2.1 on LiteLLM, on Google AI Studio and Gemini Enterprise Agent Platform, with image output at half Nano Banana 2's price.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM x Nano Banana 2.1" src="https://docs.litellm.ai/assets/images/hero-13d949a43f9f1df134394377f86f048b.png" width="4800" height="2508" class="img_ev3q"></p>
<p>LiteLLM supports <code>gemini-nano-banana-2.1</code> on day 0 on Google AI Studio (<code>gemini/</code>) and Gemini Enterprise Agent Platform, formerly Vertex AI (<code>vertex_ai/</code>), through <code>/v1/images/generations</code>, <code>/v1/images/edits</code> and <code>/chat/completions</code>. It replaces Nano Banana 2 (<code>gemini-3.1-flash-image</code>), which the Gemini API shuts down on October 29, 2026.</p>
<!-- -->
<p><a href="https://ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1" target="_blank" rel="noopener noreferrer">Per Google</a>, Nano Banana 2.1 improves visual quality and text rendering at 1K, 2K and 4K, fixes tiling on wide aspect ratios, takes up to 14 reference images, and supports Search grounding and configurable thinking levels.</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> Hit <strong>Reload Model Cost Map</strong> in the Admin UI (or <code>POST /reload/model_cost_map</code>) to pull pricing, on <code>v1.76.0</code> and above.</p></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="pricing">Pricing<a href="https://docs.litellm.ai/blog/nano_banana_2_1#pricing" class="hash-link" aria-label="Direct link to Pricing" title="Direct link to Pricing">​</a></h2>
<ul>
<li>Image output: $30 / MTok ($0.0336 per 1K image)</li>
<li>Text input: $1.50 / MTok</li>
<li>Text output: $7.50 / MTok</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="quick-start">Quick Start<a href="https://docs.litellm.ai/blog/nano_banana_2_1#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">PROXY</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LNqP">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"> nano</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">banana</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">2.1</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"> gemini/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">nano</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">banana</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">2.1</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/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"> nano</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">banana</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">2.1</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">agent</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">platform</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/gemini</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">nano</span><span class="token punctuation" style="color:#393A34">-</span><span class="token plain">banana</span><span class="token punctuation" style="color:#393A34">-</span><span class="token number" style="color:#005CC5">2.1</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">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/images/generations \</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": "nano-banana-2.1",</span><br></span><span class="token-line" style="color:#393A34"><span class="token plain">    "prompt": "A product shot of a ceramic mug on a walnut desk, soft morning light"</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">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">image_generation</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-nano-banana-2.1"</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">    prompt</span><span class="token operator" style="color:#D73A49">=</span><span class="token string" style="color:#C6105F">"A product shot of a ceramic mug on a walnut desk, soft morning light"</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">data</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">b64_json</span><span class="token punctuation" style="color:#393A34">[</span><span class="token punctuation" style="color:#393A34">:</span><span class="token number" style="color:#005CC5">64</span><span class="token punctuation" style="color:#393A34">]</span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="feedback">Feedback<a href="https://docs.litellm.ai/blog/nano_banana_2_1#feedback" class="hash-link" aria-label="Direct link to Feedback" title="Direct link to Feedback">​</a></h2>
<p>Questions and feedback go in <a href="https://github.com/BerriAI/litellm/discussions/44983" target="_blank" rel="noopener noreferrer">GitHub discussion #44983</a>.</p>]]></content>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini enterprise agent platform" term="gemini enterprise agent platform"/>
        <category label="nano banana" term="nano banana"/>
        <category label="image generation" term="image generation"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Nano Banana 2.1" term="card_title:Nano Banana 2.1"/>
        <category label="card_summary:Gemini image model with image output at half Nano Banana 2's price: $30 / MTok image out, $1.50 text in." term="card_summary:Gemini image model with image output at half Nano Banana 2's price: $30 / MTok image out, $1.50 text in."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How LiteLLM Lens finds repeated failures across 1,000s of agent traces]]></title>
        <id>https://docs.litellm.ai/blog/lens-failure-patterns</id>
        <link href="https://docs.litellm.ai/blog/lens-failure-patterns"/>
        <updated>2026-10-05T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Inside Lens: parallel trace review, Python tools for large traces, and investigations that connect repeated failures to source evidence.]]></summary>
        <content type="html"><![CDATA[<p>A research agent can finish a report after reading the first 8,000 characters of each page. If its web tool cuts off a source and the agent fills in the gaps, you get a completed run with unsupported claims.</p>
<p>Across thousands of runs, you need to find the affected sessions and what they have in common. <a href="https://docs.litellm.ai/blog/litellm-lens-launch">LiteLLM Lens</a> uses agents to do that work.</p>
<p>Here's how it works behind the scenes: reviewers inspect executions in parallel, grouping agents connect related observations, and investigators check each candidate pattern against the original traces.</p>
<!-- -->
<p><img decoding="async" loading="lazy" alt="Lens reviews executions in parallel, groups observations, investigates candidate patterns, and returns findings with source evidence." src="https://docs.litellm.ai/assets/images/01-pipeline-305f84b5f833e7cf7ae19e809f3fe3ea.svg" width="1440" height="450" class="img_ev3q"></p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="phase-1-review-each-execution">Phase 1: Review each execution<a href="https://docs.litellm.ai/blog/lens-failure-patterns#phase-1-review-each-execution" class="hash-link" aria-label="Direct link to Phase 1: Review each execution" title="Direct link to Phase 1: Review each execution">​</a></h2>
<p>We give each execution its own reviewer and run the reviewers in parallel. Each has a complete run to investigate, because a tool response near the start may explain an incorrect answer hundreds of steps later.</p>
<p><img decoding="async" loading="lazy" alt="Each execution has a reviewer that can read, search, and use Python before returning observations with source quotes." src="https://docs.litellm.ai/assets/images/02-parallel-review-0bdb8b01c35435456bf8c06d554fbc80.svg" width="1440" height="550" class="img_ev3q"></p>
<p>The reviewer decides what to read and follows leads through tool results and subagent handoffs. It keeps going until it has observations to return, and can open other selected executions if it needs a comparison.</p>
<p>In the research example, a reviewer might notice that a page ends mid-sentence and the final answer contains claims the returned text doesn't support. It records what it found with citations and leaves the cause open for investigation.</p>
<p>We ask reviewers to examine the process as well as the outcome. An agent might try an incompatible <code>grep</code> tool five times before succeeding through a terminal. We want to keep those failed attempts in view, even though the agent completed the task.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="reviewers-can-use-python">Reviewers can use Python<a href="https://docs.litellm.ai/blog/lens-failure-patterns#reviewers-can-use-python" class="hash-link" aria-label="Direct link to Reviewers can use Python" title="Direct link to Reviewers can use Python">​</a></h2>
<p>We give reviewers a workspace containing the traces and tools to inspect them, much like a coding agent working in a repository. They can read and search the evidence, or write Python to answer questions that need computation.</p>
<p><img decoding="async" loading="lazy" alt="Reviewers use catalog, read, search, and confined Python to inspect the trace workspace. Selected text or computed output returns to the model." src="https://docs.litellm.ai/assets/images/05-evidence-workspace-028227638f3f5b9f73f2a5e732074c15.svg" width="1440" height="590" class="img_ev3q"></p>
<p>For the research example, a reviewer could write a short script to compare response lengths and find pages that stop at the same point. It uses those measurements to decide which responses to open and which claims to check. It can use the same approach to count repeated failures or reconstruct a sequence of subagent calls.</p>
<p>The traces stay in the workspace, and the reviewer brings the passages or computed results it needs into the model's context. A trace can be larger than the context window because the agent can search and analyze it in pieces.</p>
<p>Python runs in a confined environment without network access. As an investigation grows, the agents can compact their conversations into working notes and return to earlier evidence when they need it.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="phase-2-group-related-observations">Phase 2: Group related observations<a href="https://docs.litellm.ai/blog/lens-failure-patterns#phase-2-group-related-observations" class="hash-link" aria-label="Direct link to Phase 2: Group related observations" title="Direct link to Phase 2: Group related observations">​</a></h2>
<p>Several reviewers may flag the same underlying problem. We group their observations in parallel batches, then merge matches across batches so an investigator can examine the examples together.</p>
<p><img decoding="async" loading="lazy" alt="Lens groups observation batches in parallel and merges matching candidates across batches." src="https://docs.litellm.ai/assets/images/03-group-patterns-75766769e812f24df3ca5449ad7cdc9b.svg" width="1440" height="545" class="img_ev3q"></p>
<p>We group by the check and suspected cause. A missing PDF tool needs a different fix from a failing PDF renderer, so those should remain separate candidates.</p>
<p>For the page-cutoff example, we collect observations about abrupt endings and unsupported claims into a candidate about missing source content. The investigator gets examples from different runs, with links to their evidence, and can test whether one explanation accounts for them.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="phase-3-investigate-the-candidate">Phase 3: Investigate the candidate<a href="https://docs.litellm.ai/blog/lens-failure-patterns#phase-3-investigate-the-candidate" class="hash-link" aria-label="Direct link to Phase 3: Investigate the candidate" title="Direct link to Phase 3: Investigate the candidate">​</a></h2>
<p>We start an investigator for each candidate and run these agents in parallel. They get the reviewers' observations and access to the original traces, with the same read, search, and Python tools.</p>
<p><img decoding="async" loading="lazy" alt="An investigator checks original traces and review records, then submits a finding whose citations Lens validates." src="https://docs.litellm.ai/assets/images/04-investigate-171fb4339f37c495b8b285061da48da5.svg" width="1440" height="530" class="img_ev3q"></p>
<p>We send investigators back to the original traces because a reviewer may have left out context that changes the explanation. In the research case, the investigator compares page responses with final claims. It also looks for counterexamples, such as runs where the agent acknowledged missing information or fetched the rest of the source.</p>
<p>When different pages repeatedly return exactly 8,000 characters, that suggests the tool is cutting them off at a fixed limit. The investigator still needs to check whether the missing content explains a false claim, and distinguish that evidence from a plausible guess.</p>
<p>The investigator can drop a candidate that doesn't hold up. Before saving a finding, the worker checks its citations against the source and sends invalid quotes back for repair. An exact quote can still support a bad interpretation, so we check that distinction in our evaluations too.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="checking-the-design-on-a-real-trace">Checking the design on a real trace<a href="https://docs.litellm.ai/blog/lens-failure-patterns#checking-the-design-on-a-real-trace" class="hash-link" aria-label="Direct link to Checking the design on a real trace" title="Direct link to Checking the design on a real trace">​</a></h2>
<p>On a real coding-agent session with 350 spans, reviewers and investigators used Python to inspect validation commands. They found checks piped through <code>tail</code> that reported success even when the underlying check failed. Lens identified the problem and the later passing checks, without claiming those failures remained in the delivered code. We checked the findings' citations against the source.</p>
<p>A search in that session returned more than 544,000 characters. Tool access gives agents control over what they read, but they can still request too much. We inspect their tool use alongside the quality of their findings.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-results-reach-lens">How results reach Lens<a href="https://docs.litellm.ai/blog/lens-failure-patterns#how-results-reach-lens" class="hash-link" aria-label="Direct link to How results reach Lens" title="Direct link to How results reach Lens">​</a></h2>
<p>The worker sends progress and findings to the LiteLLM gateway, so you can watch completed reviews appear while other agents are still working. The findings link back to the original steps for inspection.</p>
<p><img decoding="async" loading="lazy" alt="The Lens worker polls LiteLLM for investigations, reads evidence and calls models through the gateway, then reports progress and findings." src="https://docs.litellm.ai/assets/images/06-deployment-bfd51e627f3a2ab9f66acefb25efb92f.svg" width="1440" height="650" class="img_ev3q"></p>
<p>The worker runs on your infrastructure and polls LiteLLM for jobs. It uses the gateway for evidence and calls to your chosen analysis model. ClickHouse stores traces, and Postgres stores investigation state. The <a href="https://github.com/BerriAI/litellm/blob/main/litellm/proxy/lens/context_pipeline.py" target="_blank" rel="noopener noreferrer">pipeline and tools</a> are open source.</p>
<p>For our architecture experiments, we built a golden dataset with 25 investigations, 3,752 sessions, and 99,797 spans. The controlled cases include nested agents, long tool results, healthy runs, and failures followed by recovery. Our architecture found all 11 expected failure patterns: <strong>100% recall</strong>.</p>
<p>To try it on your agent, <a href="https://docs.litellm.ai/docs/proxy/lens/investigations">connect a worker and create an investigation</a>.</p>]]></content>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="lens" term="lens"/>
        <category label="agent-tracing" term="agent-tracing"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How we cut time to first byte by 94% for long prompts]]></title>
        <id>https://docs.litellm.ai/blog/long-prompt-latency</id>
        <link href="https://docs.litellm.ai/blog/long-prompt-latency"/>
        <updated>2026-10-03T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[A 440k-token benchmark went from 553 ms to 35 ms median time to first byte. We removed unnecessary prompt-cache routing work before the model call.]]></summary>
        <content type="html"><![CDATA[<p><img decoding="async" loading="lazy" alt="LiteLLM&amp;#39;s median time to first byte drops from 553 ms to 35 ms in a local 440k-token, single-deployment benchmark, a 94% reduction" src="https://docs.litellm.ai/assets/images/cover-81c6d13c10d9a3a08429119655132189.gif" width="1800" height="900" class="img_ev3q"></p>
<p>LiteLLM was counting every token in a long conversation to answer a yes-or-no routing question.</p>
<p>Removing that unnecessary work took median time to first byte from <strong>553 ms to 35 ms</strong> in our local 440k-token benchmark: <strong>94% lower</strong>.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="counting-440000-tokens-to-check-for-1024">Counting 440,000 tokens to check for 1,024<a href="https://docs.litellm.ai/blog/long-prompt-latency#counting-440000-tokens-to-check-for-1024" class="hash-link" aria-label="Direct link to Counting 440,000 tokens to check for 1,024" title="Direct link to Counting 440,000 tokens to check for 1,024">​</a></h2>
<p>LiteLLM's optional <code>prompt_caching</code> routing check helps keep requests on deployments that can reuse their cached prompt. To check whether a prompt met a deployment's minimum size, often 1,024 tokens, it counted the entire conversation.</p>
<p>For a coding session with hundreds of turns and tool results, that could mean hundreds of milliseconds of Python work before the model call.</p>
<p><strong>We skip the check for one healthy deployment.</strong> There is no routing choice to make, so we now skip the eligibility count, prefix hash, and cache-pin lookup entirely. This is the path measured below.</p>
<p><strong>With multiple deployments, counting stops once the answer is known.</strong> The eligibility check stops after the first message that brings the count to the required minimum. Cache affinity and prefix hashing remain in place. Other uses of token counting, including usage accounting, are unchanged.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="553-ms--35-ms">553 ms → 35 ms<a href="https://docs.litellm.ai/blog/long-prompt-latency#553-ms--35-ms" class="hash-link" aria-label="Direct link to 553 ms → 35 ms" title="Direct link to 553 ms → 35 ms">​</a></h2>
<p>The benchmark used the Python request path, a 439,945-token conversation with 334 turns and 18 tools, one healthy deployment, Redis response caching, and the <code>prompt_caching</code> check enabled. The test provider replied immediately, isolating request overhead from model generation time.</p>
<figure class="figure_nzn9"><div class="heading_kEx2"><strong>Time to first byte</strong><span class="context_NojL">Median of three requests</span></div><div class="benchmarkGrid_QWMN"><div class="benchmarkCard_rBeg"><div class="cardHeading_sFsH"><span>Chat completions</span></div><div class="comparison_IS2T"><div><span class="metricLabel_yTWF">Before</span><span class="beforeValue_gQoO">553<small>ms</small></span></div><span class="arrow_kODc" aria-hidden="true">→</span><div class="after_M2Pj"><span class="metricLabel_yTWF">After</span><span class="afterValue_oIlf">35<small>ms</small></span></div></div></div><div class="benchmarkCard_rBeg"><div class="cardHeading_sFsH"><span>Messages</span></div><div class="comparison_IS2T"><div><span class="metricLabel_yTWF">Before</span><span class="beforeValue_gQoO">542<small>ms</small></span></div><span class="arrow_kODc" aria-hidden="true">→</span><div class="after_M2Pj"><span class="metricLabel_yTWF">After</span><span class="afterValue_oIlf">40<small>ms</small></span></div></div></div></div><figcaption class="caption_gHZw">440k-token conversation · prompt-caching check enabled · instant mock upstream</figcaption></figure>
<p>Each result is the median of three requests after one warmup, on the same local machine. <code>/v1/responses</code> already bypassed this check and stayed roughly flat. Requests without the optional check are unaffected. <a href="https://github.com/BerriAI/litellm/pull/44221" target="_blank" rel="noopener noreferrer">Full benchmark samples and setup</a>.</p>
<p>See the changes: <a href="https://github.com/BerriAI/litellm/pull/44221" target="_blank" rel="noopener noreferrer">prompt-cache routing optimization</a>.</p>]]></content>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="proxy" term="proxy"/>
        <category label="engineering" term="engineering"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How we built our own internal Devin in 2 days]]></title>
        <id>https://docs.litellm.ai/blog/internal-devin-two-days</id>
        <link href="https://docs.litellm.ai/blog/internal-devin-two-days"/>
        <updated>2026-10-03T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[How we built Moyai Devin with Render, Modal, Hermes, Temporal, and LiteLLM: durable sessions, parallel agents, Slack, and shared organization connections.]]></summary>
        <content type="html"><![CDATA[<header class="hero_H9Sr" data-full-width="true"><div class="heading_o6GM"><time class="date_z7M7" datetime="2026-10-03T00:00:00.000Z">October 3, 2026</time><h1 class="title_WgQS">How we built our own internal Devin in 2 days</h1><p class="subtitle_xpTd">Our team's cloud coding agent, built with Render and Temporal.</p></div><figure id="cloud-workstation-hero" class="cloudHero_NRjK"><div class="cloudStage_tKby"><iframe class="cloudFrame_W6w0" src="/animations/internal-devin-two-days/index.html?embed=1" title="Animated Moyai cloud workstation: our internal Devin, hosted on Render with Temporal sessions" scrolling="no"></iframe></div><figcaption><span>Our internal Devin, running in the cloud.</span><button class="motionToggle_cgqN" aria-pressed="false">Pause animation</button></figcaption></figure></header><nav class="contents_Qkey" aria-label="In this post"><ol><li><a href="https://docs.litellm.ai/blog/internal-devin-two-days#1-main-architecture"><span>[<!-- -->1<!-- -->]</span><span class="dots__xWr" aria-hidden="true"></span><span>Main architecture</span></a></li><li><a href="https://docs.litellm.ai/blog/internal-devin-two-days#2-main-challenges"><span>[<!-- -->2<!-- -->]</span><span class="dots__xWr" aria-hidden="true"></span><span>Main challenges</span></a></li><li><a href="https://docs.litellm.ai/blog/internal-devin-two-days#3-whats-next-and-what-id-recommend"><span>[<!-- -->3<!-- -->]</span><span class="dots__xWr" aria-hidden="true"></span><span>What's next</span></a></li></ol></nav>
<div class="page_YtqF immersiveByline_XkdX horizontalByline_yJxG"><div class="inner_Too9"><span class="published_MQDR">Published: <time datetime="2026-10-03T00:00:00.000Z">Oct 3, 2026</time></span><div class="authors_hW1g"><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>AI Product Engineer, LiteLLM</small></span></span></div></div></div>
<p>At BerriAI, we built <strong>Moyai Devin</strong>, an internal engineering agent that runs in the cloud. Teammates can give it a task in Slack, follow its progress in a web app, and ask it to prepare a pull request.</p>
<!-- -->
<p>We wanted:</p>
<ul>
<li><strong>Cloud workspaces:</strong> run code, tests, and a browser without using someone's laptop.</li>
<li><strong>Shared organization connections:</strong> access Slack, Linear, Notion, and GitHub.</li>
<li><strong>Ongoing conversations:</strong> continue a task across Slack and the web.</li>
<li><strong>Parallel agents:</strong> split independent work across several machines.</li>
<li><strong>Model choice and spend tracking:</strong> choose Astra or Opus and attribute usage to each teammate.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="what-it-looks-like">What it looks like<a href="https://docs.litellm.ai/blog/internal-devin-two-days#what-it-looks-like" class="hash-link" aria-label="Direct link to What it looks like" title="Direct link to What it looks like">​</a></h2>
<figure class="demo_fj59"><video class="video_wQT_" controls="" muted="" playsinline="" preload="none" src="/assets/medias/bug-workflow-08b41275f096ef7fd90517574cc9b152.mp4" poster="/assets/ideal-img/bug-workflow-poster.9d3a3f1.1280.jpg" width="1600" height="1000" aria-label="18-second walkthrough of Moyai across Slack and the web: a real team workflow request, investigation, regression tests, and a pull request returned to the thread"><a href="https://docs.litellm.ai/assets/medias/bug-workflow-08b41275f096ef7fd90517574cc9b152.mp4">Watch the bug-fix walkthrough</a></video><figcaption class="caption_JM4l">A real <code>/personal:team</code> bug fix across Slack and the web. Edited 18-second walkthrough of a completed session; tests used a mocked Slack transport.</figcaption></figure>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="1-main-architecture">1. Main architecture<a href="https://docs.litellm.ai/blog/internal-devin-two-days#1-main-architecture" class="hash-link" aria-label="Direct link to 1. Main architecture" title="Direct link to 1. Main architecture">​</a></h2>
<p>We split the system at the lifetime of a chat session. Render owns the conversation, permissions, and saved execution state. Temporal schedules the next step. Modal provides the computer where Hermes runs code and uses a browser.</p>
<p><img decoding="async" loading="lazy" alt="Moyai architecture: Slack and the web enter the Render application; Temporal coordinates sessions; Hermes executes in Modal sandboxes; the Render broker calls LiteLLM and connected applications." src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5NjAgODAwIiByb2xlPSJpbWciIGFyaWEtbGFiZWxsZWRieT0idGl0bGUgZGVzYyI+Cjx0aXRsZSBpZD0idGl0bGUiPk1veWFpOiBhcHBsaWNhdGlvbiwgb3JjaGVzdHJhdGlvbiwgYW5kIGFnZW50IGNvbXB1dGVyczwvdGl0bGU+PGRlc2MgaWQ9ImRlc2MiPlNsYWNrIGFuZCB0aGUgd2ViIHNlbmQgbWVzc2FnZXMgdG8gdGhlIFJlbmRlciBhcHAuIFJlbmRlciBrZWVwcyBTUUxpdGUgc3RhdGUsIGEgVGVtcG9yYWwgd29ya2VyLCBhbmQgYSBjcmVkZW50aWFsIGJyb2tlci4gVGVtcG9yYWwgQ2xvdWQgY29vcmRpbmF0ZXMgb25lIHdvcmtmbG93IHBlciBzZXNzaW9uLiBIZXJtZXMgcnVucyBpbiBNb2RhbCBzYW5kYm94ZXMgYW5kIGNhbGxzIHRoZSBicm9rZXIgZm9yIG1vZGVsIGFuZCBjb25uZWN0ZWQtYXBwIGFjY2Vzcy4gUmVuZGVyIGNhbGxzIExpdGVMTE0gYW5kIG9yZ2FuaXphdGlvbiBpbnRlZ3JhdGlvbnMuPC9kZXNjPgo8ZGVmcz48bWFya2VyIGlkPSJhcnJvdyIgbWFya2VyV2lkdGg9IjgiIG1hcmtlckhlaWdodD0iOCIgcmVmWD0iNyIgcmVmWT0iNCIgb3JpZW50PSJhdXRvLXN0YXJ0LXJldmVyc2UiPjxwYXRoIGQ9Ik0xIDEgTDcgNCBMMSA3IiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMS42Ii8+PC9tYXJrZXI+PC9kZWZzPgo8cmVjdCB3aWR0aD0iOTYwIiBoZWlnaHQ9IjgwMCIgcng9IjIwIiBmaWxsPSIjZmFmYWZmIi8+CjxnIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmaWxsPSIjMjAyMjNiIj4KPHRleHQgeD0iMzYiIHk9IjQzIiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjI1IiBmb250LXdlaWdodD0iNjAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPkEgc2Vzc2lvbiBzcGFucyB0aHJlZSBzZXJ2aWNlczwvdGV4dD4KPHRleHQgeD0iMzYiIHk9IjcxIiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE2IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPktlZXAgdGhlIGNvbnZlcnNhdGlvbiBkdXJhYmxlOyBnaXZlIGVhY2ggZXhlY3V0aW5nIGFnZW50IGl0cyBvd24gY29tcHV0ZXIuPC90ZXh0Pgo8cmVjdCB4PSIzNiIgeT0iMTU2IiB3aWR0aD0iMTgwIiBoZWlnaHQ9Ijg2IiByeD0iMTIiIGZpbGw9IiNmZmYiIHN0cm9rZT0iI2RlZGZlYyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iNTYiIHk9IjE5MCIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIyMiIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5TbGFjazwvdGV4dD4KPHRleHQgeD0iNTYiIHk9IjIxNyIgZmlsbD0iIzY0Njc3ZSIgZm9udC1zaXplPSIxMyIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5NZW50aW9ucyArIHRocmVhZCByZXBsaWVzPC90ZXh0Pgo8cG9seWxpbmUgcG9pbnRzPSIyMTYsMTk5IDI4MCwxOTkiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzkyOTZhYyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBtYXJrZXItZW5kPSJ1cmwoI2Fycm93KSIvPgo8cmVjdCB4PSIzNiIgeT0iMjgwIiB3aWR0aD0iMTgwIiBoZWlnaHQ9Ijg2IiByeD0iMTIiIGZpbGw9IiNmZmYiIHN0cm9rZT0iI2RlZGZlYyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iNTYiIHk9IjMxNCIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIyMiIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5XZWIgVUk8L3RleHQ+Cjx0ZXh0IHg9IjU2IiB5PSIzNDEiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTMiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+Q2hhdCArIGZpbGVzICsgcHJvZ3Jlc3M8L3RleHQ+Cjxwb2x5bGluZSBwb2ludHM9IjIxNiwzMjMgMjgwLDMyMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTI5NmFjIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIG1hcmtlci1lbmQ9InVybCgjYXJyb3cpIi8+CjxyZWN0IHg9IjI4MCIgeT0iMTA4IiB3aWR0aD0iMzUwIiBoZWlnaHQ9IjQzMCIgcng9IjEyIiBmaWxsPSIjZjBlY2ZmIiBzdHJva2U9IiNiN2E3ZWYiIHN0cm9rZS13aWR0aD0iMS41Ii8+Cjx0ZXh0IHg9IjMwOCIgeT0iMTQ2IiBmaWxsPSIjNWIzZmQxIiBmb250LXNpemU9IjE0IiBmb250LXdlaWdodD0iNzAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPlJFTkRFUjwvdGV4dD4KPHRleHQgeD0iMzA4IiB5PSIxODAiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMjQiIGZvbnQtd2VpZ2h0PSI2MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+QXBwbGljYXRpb24gKyB3b3JrZXI8L3RleHQ+Cjx0ZXh0IHg9IjMwOCIgeT0iMjExIiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjE3IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPldlYiBBUEkgLyBzaWduZWQgU2xhY2sgaW50YWtlPC90ZXh0Pgo8cmVjdCB4PSIzMDYiIHk9IjIzNSIgd2lkdGg9IjI5OCIgaGVpZ2h0PSI5MiIgcng9IjgiIGZpbGw9IiNmZmZmZmYiIHN0cm9rZT0iI2Q3Y2NlZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iMzI0IiB5PSIyNjciIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTgiIGZvbnQtd2VpZ2h0PSI2MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+UGVyc2lzdGVudCBTUUxpdGUgKyBhcnRpZmFjdHM8L3RleHQ+Cjx0ZXh0IHg9IjMyNCIgeT0iMjkzIiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE1IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPk1lc3NhZ2VzLCBleGVjdXRpb24gcGhhc2VzLDwvdGV4dD4KPHRleHQgeD0iMzI0IiB5PSIzMTQiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTUiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+ZGVsaXZlcnkgcmVjZWlwdHMsIHNhdmVkIHJlc3VsdHM8L3RleHQ+Cjx0ZXh0IHg9IjMwOCIgeT0iMzY5IiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjE5IiBmb250LXdlaWdodD0iNjAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPlRlbXBvcmFsIHdvcmtlcjwvdGV4dD4KPHRleHQgeD0iMzA4IiB5PSIzOTUiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTUiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+U3RhcnQgb3IgcmVjb25uZWN0IHRvIHRoZSBzYW5kYm94PC90ZXh0Pgo8dGV4dCB4PSIzMDgiIHk9IjQ1MSIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIxOSIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5Ub29sICsgbW9kZWwgYnJva2VyPC90ZXh0Pgo8dGV4dCB4PSIzMDgiIHk9IjQ3NyIgZmlsbD0iIzY0Njc3ZSIgZm9udC1zaXplPSIxNSIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5DaGVjayB0aGUgc2Vzc2lvbiBjYXBhYmlsaXR5PC90ZXh0Pgo8dGV4dCB4PSIzMDgiIHk9IjUwMSIgZmlsbD0iIzY0Njc3ZSIgZm9udC1zaXplPSIxNSIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5LZWVwIHByb3ZpZGVyIGNyZWRlbnRpYWxzIGhlcmU8L3RleHQ+CjxyZWN0IHg9IjcwNCIgeT0iMTA4IiB3aWR0aD0iMjIwIiBoZWlnaHQ9IjE2OCIgcng9IjEyIiBmaWxsPSIjZmZmMGUzIiBzdHJva2U9IiNlZmJiOTUiIHN0cm9rZS13aWR0aD0iMS41Ii8+Cjx0ZXh0IHg9IjcyNSIgeT0iMTQ0IiBmaWxsPSIjOWE0ZTFhIiBmb250LXNpemU9IjE0IiBmb250LXdlaWdodD0iNzAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPlRFTVBPUkFMIENMT1VEPC90ZXh0Pgo8dGV4dCB4PSI3MjUiIHk9IjE3OCIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIyMyIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5PbmUgd29ya2Zsb3c8L3RleHQ+Cjx0ZXh0IHg9IjcyNSIgeT0iMjA3IiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjE5IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPnBlciBjaGF0IHNlc3Npb248L3RleHQ+Cjx0ZXh0IHg9IjcyNSIgeT0iMjM4IiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE1IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPlNpZ25hbHMsIHJldHJpZXMsIHRpbWVyczwvdGV4dD4KPHRleHQgeD0iNzI1IiB5PSIyNTgiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+SURzICsgc21hbGwgc3RhdHVzIHZhbHVlczwvdGV4dD4KPHBvbHlsaW5lIHBvaW50cz0iNjMzLDE4OCA3MDEsMTg4IiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgbWFya2VyLWVuZD0idXJsKCNhcnJvdykiIG1hcmtlci1zdGFydD0idXJsKCNhcnJvdykiLz4KPHJlY3QgeD0iNzA0IiB5PSIzNjAiIHdpZHRoPSIyMjAiIGhlaWdodD0iMjYwIiByeD0iMTIiIGZpbGw9IiNlOGY4ZjIiIHN0cm9rZT0iIzkzY2NiYyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iNzI1IiB5PSIzOTYiIGZpbGw9IiMyNjc3NWUiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI3MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+TU9EQUw8L3RleHQ+Cjx0ZXh0IHg9IjcyNSIgeT0iNDMwIiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjIzIiBmb250LXdlaWdodD0iNjAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPkhlcm1lcyBhZ2VudDwvdGV4dD4KPHRleHQgeD0iNzI1IiB5PSI0NTkiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+VGVybWluYWwgLyBmaWxlcyAvIGJyb3dzZXI8L3RleHQ+Cjx0ZXh0IHg9IjcyNSIgeT0iNDg5IiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE0IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPkNhbGxzIHRoZSBSZW5kZXIgYnJva2VyPC90ZXh0Pgo8dGV4dCB4PSI3MjUiIHk9IjUxMSIgZmlsbD0iIzY0Njc3ZSIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5mb3IgbW9kZWxzIGFuZCBhcHAgdG9vbHM8L3RleHQ+Cjxwb2x5bGluZSBwb2ludHM9IjYzMyw0MzkgNzAxLDQzOSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTI5NmFjIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIG1hcmtlci1lbmQ9InVybCgjYXJyb3cpIiBtYXJrZXItc3RhcnQ9InVybCgjYXJyb3cpIi8+CjxyZWN0IHg9IjcyMiIgeT0iNTQxIiB3aWR0aD0iMTg0IiBoZWlnaHQ9IjU4IiByeD0iOCIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjYjdkYWNkIiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8dGV4dCB4PSI4MTQiIHk9IjU2NiIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIxNSIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+RmlsZXN5c3RlbSBzbmFwc2hvdHM8L3RleHQ+Cjx0ZXh0IHg9IjgxNCIgeT0iNTg4IiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjEyIiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5TYXZlICsgcmVzdG9yZSB3b3Jrc3BhY2U8L3RleHQ+Cjxwb2x5bGluZSBwb2ludHM9IjM3NSw1NDAgMzc1LDY0MiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTI5NmFjIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIG1hcmtlci1lbmQ9InVybCgjYXJyb3cpIi8+Cjx0ZXh0IHg9IjM4NSIgeT0iNTkyIiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE0IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPk1vZGVsIHJlcXVlc3RzPC90ZXh0Pgo8cG9seWxpbmUgcG9pbnRzPSI1NzAsNTQwIDU3MCw2MDUgNjA3LDYwNSA2MDcsNjQyIiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgbWFya2VyLWVuZD0idXJsKCNhcnJvdykiLz4KPHRleHQgeD0iNTgyIiB5PSI1NzUiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+QXBwcm92ZWQgYXBwIHRvb2xzPC90ZXh0Pgo8cmVjdCB4PSIyODAiIHk9IjY0NSIgd2lkdGg9IjE5MCIgaGVpZ2h0PSIxMDgiIHJ4PSIxMiIgZmlsbD0iI2VjZWZmZiIgc3Ryb2tlPSIjYmJjM2YzIiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8dGV4dCB4PSIzMDIiIHk9IjY4MiIgZmlsbD0iIzNhNDhhNSIgZm9udC1zaXplPSIyMyIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5MaXRlTExNPC90ZXh0Pgo8dGV4dCB4PSIzMDIiIHk9IjcxMCIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIxNiIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5Nb2RlbCBhY2Nlc3M8L3RleHQ+Cjx0ZXh0IHg9IjMwMiIgeT0iNzMzIiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE1IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPlJlcXVlc3QgY29zdHM8L3RleHQ+CjxyZWN0IHg9IjUwMCIgeT0iNjQ1IiB3aWR0aD0iMjE1IiBoZWlnaHQ9IjEwOCIgcng9IjEyIiBmaWxsPSIjZmZmIiBzdHJva2U9IiNkZWRmZWMiIHN0cm9rZS13aWR0aD0iMS41Ii8+Cjx0ZXh0IHg9IjUyMiIgeT0iNjgyIiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjIxIiBmb250LXdlaWdodD0iNjAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPkNvbm5lY3RlZCBhcHBzPC90ZXh0Pgo8dGV4dCB4PSI1MjIiIHk9IjcxMCIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIxNiIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5HaXRIdWIgLyBTbGFjazwvdGV4dD4KPHRleHQgeD0iNTIyIiB5PSI3MzMiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+TGluZWFyIC8gTm90aW9uPC90ZXh0Pgo8dGV4dCB4PSIzNiIgeT0iNjkyIiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjE2IiBmb250LXdlaWdodD0iNjAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPk9uZSBSZW5kZXIgaW5zdGFuY2U8L3RleHQ+Cjx0ZXh0IHg9IjM2IiB5PSI3MTkiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+b3ducyB0aGUgcGVyc2lzdGVudCBkaXNrLjwvdGV4dD4KPHRleHQgeD0iMzYiIHk9Ijc0MiIgZmlsbD0iIzY0Njc3ZSIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9InN0YXJ0Ij5BZ2VudHMgc2NhbGUgaW4gTW9kYWwuPC90ZXh0Pgo8L2c+PC9zdmc+Cg==" width="960" height="800" class="img_ev3q"></p>
<p><a href="https://docs.litellm.ai/assets/files/architecture-2672ab900da017ef87c2856092b66c89.svg" target="_blank">Open the architecture diagram</a>. Model requests and connected-app tools return through the Render broker. The sandbox receives a session capability; provider credentials stay on the server.</p>
<p>We used five services:</p>
<table><thead><tr><th>Service</th><th>What we use it for</th></tr></thead><tbody><tr><td data-label="Service" data-inline=""><a href="https://render.com/" target="_blank" rel="noopener noreferrer">Render</a></td><td data-label="What we use it for">Web app, Google SSO, application database, integration broker, and Temporal worker</td></tr><tr><td data-label="Service" data-inline=""><a href="https://modal.com/" target="_blank" rel="noopener noreferrer">Modal</a></td><td data-label="What we use it for">Cloud sandboxes with a terminal, filesystem, and Chromium</td></tr><tr><td data-label="Service" data-inline=""><a href="https://github.com/NousResearch/hermes-agent" target="_blank" rel="noopener noreferrer">Hermes Agent</a></td><td data-label="What we use it for">The agent loop: call the model, execute tools, and continue from their results</td></tr><tr><td data-label="Service" data-inline=""><a href="https://temporal.io/" target="_blank" rel="noopener noreferrer">Temporal Cloud</a></td><td data-label="What we use it for">Session orchestration, waiting, and recovery across interruptions</td></tr><tr><td data-label="Service" data-inline=""><a href="https://github.com/BerriAI/litellm" target="_blank" rel="noopener noreferrer">LiteLLM</a></td><td data-label="What we use it for">Access to multiple models through one gateway, with request costs for accounting</td></tr></tbody></table>
<p><strong>Render hosts the application; Modal hosts the agent's computer.</strong> That separation lets us provision execution environments as work arrives.</p>
<p>Each executing agent gets a sandbox. After a response, we save its workspace and keep the sandbox warm for five minutes. Follow-ups can reuse it; later messages restore a new machine from the checkpoint.</p>
<p>We run one shared Temporal worker on Render to coordinate sessions. We don't need a worker container for each agent.</p>
<p>For storage, we started with SQLite on Render's persistent disk. That keeps deployment simple, but multiple Render instances would require a shared database and artifact store.</p>
<p>A Slack message follows this path: verify the request, find the session for that Slack thread, commit the message to the inbox, and wake its Temporal workflow. The worker loads the saved execution phase and starts or reconnects to the agent's Modal sandbox. We persist the answer before delivering it back to Slack and the web.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="2-main-challenges">2. Main challenges<a href="https://docs.litellm.ai/blog/internal-devin-two-days#2-main-challenges" class="hash-link" aria-label="Direct link to 2. Main challenges" title="Direct link to 2. Main challenges">​</a></h2>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="keeping-work-alive-across-deployments">Keeping work alive across deployments<a href="https://docs.litellm.ai/blog/internal-devin-two-days#keeping-work-alive-across-deployments" class="hash-link" aria-label="Direct link to Keeping work alive across deployments" title="Direct link to Keeping work alive across deployments">​</a></h3>
<p>Deploying a new version restarts Moyai on Render. The agent can keep working in its Modal sandbox while the app comes back online.</p>
<p>Each service has a role in recovery:</p>
<ul>
<li><strong>Temporal</strong> keeps track of unfinished steps and retries them when a worker reconnects.</li>
<li><strong>Render's database</strong> keeps the chat, queued messages, and the details needed to find the running agent.</li>
<li><strong>Modal</strong> runs the agent and stores saved copies of its conversation history and files.</li>
</ul>
<p>After a restart, the new Render worker reads the saved session and reconnects to Temporal. Temporal sends it the unfinished step. Moyai reconnects to the same sandbox and picks up the agent's progress. We record agent launches so a retry won't start a second copy.</p>
<p><img decoding="async" loading="lazy" alt="Recovery sequence: Temporal schedules an activity, Render launches a detached supervisor in Modal, Render restarts, and a retried activity reconnects to the same sandbox and reads its journal." src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5NjAgODYwIiByb2xlPSJpbWciIGFyaWEtbGFiZWxsZWRieT0idGl0bGUgZGVzYyI+Cjx0aXRsZSBpZD0idGl0bGUiPlJlY292ZXJpbmcgYW4gZXhlY3V0aW9uIGFmdGVyIFJlbmRlciByZXN0YXJ0czwvdGl0bGU+PGRlc2MgaWQ9ImRlc2MiPlRlbXBvcmFsIHNjaGVkdWxlcyBhZHZhbmNlX3Nlc3Npb24uIFJlbmRlciBzYXZlcyBhIGxhdW5jaCBwaGFzZSBhbmQgc3RhcnRzIGEgZGV0YWNoZWQgc3VwZXJ2aXNvciBpbiBNb2RhbC4gV2hlbiBSZW5kZXIgcmVzdGFydHMsIEhlcm1lcyBjYW4ga2VlcCBydW5uaW5nLiBUZW1wb3JhbCByZXRyaWVzIHRoZSBhY3Rpdml0eSwgYW5kIHRoZSByZXBsYWNlbWVudCBSZW5kZXIgd29ya2VyIHJlYWRzIHRoZSBleGlzdGluZyBzYW5kYm94IGpvdXJuYWwgaW5zdGVhZCBvZiBsYXVuY2hpbmcgSGVybWVzIGFnYWluLiBJZiBleGVjdXRpb24gY2Fubm90IGJlIGNvbmZpcm1lZCwgTW95YWkgcmVwb3J0cyBhbiBpbnRlcnJ1cHRpb24uPC9kZXNjPgo8ZGVmcz48bWFya2VyIGlkPSJhcnJvdyIgbWFya2VyV2lkdGg9IjgiIG1hcmtlckhlaWdodD0iOCIgcmVmWD0iNyIgcmVmWT0iNCIgb3JpZW50PSJhdXRvLXN0YXJ0LXJldmVyc2UiPjxwYXRoIGQ9Ik0xIDEgTDcgNCBMMSA3IiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMS42Ii8+PC9tYXJrZXI+PC9kZWZzPgo8cmVjdCB3aWR0aD0iOTYwIiBoZWlnaHQ9Ijg2MCIgcng9IjIwIiBmaWxsPSIjZmFmYWZmIi8+CjxnIGZvbnQtZmFtaWx5PSJBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBmaWxsPSIjMjAyMjNiIj4KPHRleHQgeD0iMzYiIHk9IjQzIiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjI1IiBmb250LXdlaWdodD0iNjAwIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPkEgcmV0cnkgcmVjb25uZWN0cyB0byBleGlzdGluZyB3b3JrPC90ZXh0Pgo8dGV4dCB4PSIzNiIgeT0iNzIiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJzdGFydCI+UmVjb3ZlcnkgcGF0aCB3aGVuIHRoZSBNb2RhbCBzYW5kYm94IHN1cnZpdmVzIHRoZSBSZW5kZXIgcmVzdGFydC48L3RleHQ+CjxyZWN0IHg9IjQwIiB5PSIxMDIiIHdpZHRoPSIyNDAiIGhlaWdodD0iODIiIHJ4PSIxMiIgZmlsbD0iI2ZmZjBlMyIgc3Ryb2tlPSIjZWZiYjk1IiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8dGV4dCB4PSIxNjAiIHk9IjEzNiIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIyMCIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+VGVtcG9yYWwgQ2xvdWQ8L3RleHQ+Cjx0ZXh0IHg9IjE2MCIgeT0iMTY0IiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE0IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5Xb3JrZmxvdyBoaXN0b3J5PC90ZXh0Pgo8cGF0aCBkPSJNMTYwIDE4NyBWNzc1IiBzdHJva2U9IiNkNWQ3ZTMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWRhc2hhcnJheT0iNSA3Ii8+CjxyZWN0IHg9IjM2MCIgeT0iMTAyIiB3aWR0aD0iMjQwIiBoZWlnaHQ9IjgyIiByeD0iMTIiIGZpbGw9IiNmMGVjZmYiIHN0cm9rZT0iI2I3YTdlZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iNDgwIiB5PSIxMzYiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMjAiIGZvbnQtd2VpZ2h0PSI2MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPlJlbmRlciB3b3JrZXI8L3RleHQ+Cjx0ZXh0IHg9IjQ4MCIgeT0iMTY0IiBmaWxsPSIjNjQ2NzdlIiBmb250LXNpemU9IjE0IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5TYXZlZCBleGVjdXRpb24gcGhhc2U8L3RleHQ+CjxwYXRoIGQ9Ik00ODAgMTg3IFY3NzUiIHN0cm9rZT0iI2Q1ZDdlMyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtZGFzaGFycmF5PSI1IDciLz4KPHJlY3QgeD0iNjgwIiB5PSIxMDIiIHdpZHRoPSIyNDAiIGhlaWdodD0iODIiIHJ4PSIxMiIgZmlsbD0iI2U4ZjhmMiIgc3Ryb2tlPSIjOTNjY2JjIiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8dGV4dCB4PSI4MDAiIHk9IjEzNiIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIyMCIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+TW9kYWwgc2FuZGJveDwvdGV4dD4KPHRleHQgeD0iODAwIiB5PSIxNjQiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkhlcm1lcyArIGV2ZW50IGpvdXJuYWw8L3RleHQ+CjxwYXRoIGQ9Ik04MDAgMTg3IFY3NzUiIHN0cm9rZT0iI2Q1ZDdlMyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtZGFzaGFycmF5PSI1IDciLz4KPHBvbHlsaW5lIHBvaW50cz0iMTYwLDIxOCA0ODAsMjE4IiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgbWFya2VyLWVuZD0idXJsKCNhcnJvdykiLz4KPHRleHQgeD0iMzIwIiB5PSIyMDUiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPmFkdmFuY2Vfc2Vzc2lvbihydW5faWQpPC90ZXh0Pgo8cmVjdCB4PSIzNTYiIHk9IjI0MiIgd2lkdGg9IjI0OCIgaGVpZ2h0PSI1NCIgcng9IjgiIGZpbGw9IiNmZmYiIHN0cm9rZT0iI2Q3Y2NlZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iNDgwIiB5PSIyNjUiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTUiIGZvbnQtd2VpZ2h0PSI2MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPlBlcnNpc3Qgc2FuZGJveCBJRDwvdGV4dD4KPHRleHQgeD0iNDgwIiB5PSIyODYiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPmFuZCBsYXVuY2ggcGhhc2U8L3RleHQ+Cjxwb2x5bGluZSBwb2ludHM9IjQ4MCwzMzAgODAwLDMzMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOTI5NmFjIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIG1hcmtlci1lbmQ9InVybCgjYXJyb3cpIi8+Cjx0ZXh0IHg9IjY0MCIgeT0iMzE3IiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjE2IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5TdGFydCBkZXRhY2hlZCBzdXBlcnZpc29yPC90ZXh0Pgo8cmVjdCB4PSI2ODQiIHk9IjM1MiIgd2lkdGg9IjIzMiIgaGVpZ2h0PSI5MyIgcng9IjgiIGZpbGw9IiNlOGY4ZjIiIHN0cm9rZT0iIzkzY2NiYyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHRleHQgeD0iODAwIiB5PSIzODMiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTciIGZvbnQtd2VpZ2h0PSI2MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkhlcm1lcyBrZWVwcyBydW5uaW5nPC90ZXh0Pgo8dGV4dCB4PSI4MDAiIHk9IjQxMSIgZmlsbD0iIzY0Njc3ZSIgZm9udC1zaXplPSIxNCIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+TG9jayBoZWxkOyBldmVudHMgd3JpdHRlbjwvdGV4dD4KPHRleHQgeD0iODAwIiB5PSI0MzEiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPnRvIHRoZSBzYW5kYm94IGpvdXJuYWw8L3RleHQ+CjxyZWN0IHg9IjM2NSIgeT0iMzc2IiB3aWR0aD0iMjMwIiBoZWlnaHQ9IjU3IiByeD0iOCIgZmlsbD0iI2ZmZjBlZSIgc3Ryb2tlPSIjZTRhNmEwIiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8dGV4dCB4PSI0ODAiIHk9IjQxMSIgZmlsbD0iI2E4NDkzZCIgZm9udC1zaXplPSIxOSIgZm9udC13ZWlnaHQ9IjYwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+UmVuZGVyIHJlc3RhcnRzPC90ZXh0Pgo8cG9seWxpbmUgcG9pbnRzPSIxNjAsNTA0IDQ4MCw1MDQiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzkyOTZhYyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBtYXJrZXItZW5kPSJ1cmwoI2Fycm93KSIgc3Ryb2tlLWRhc2hhcnJheT0iNyA2Ii8+Cjx0ZXh0IHg9IjMyMCIgeT0iNDg5IiBmaWxsPSIjMjAyMjNiIiBmb250LXNpemU9IjE2IiBmb250LXdlaWdodD0iNDAwIiB0ZXh0LWFuY2hvcj0ibWlkZGxlIj5SZXRyeSB0aGUgc2FtZSBhY3Rpdml0eTwvdGV4dD4KPHBvbHlsaW5lIHBvaW50cz0iNDgwLDU4MCA4MDAsNTgwIiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgbWFya2VyLWVuZD0idXJsKCNhcnJvdykiLz4KPHRleHQgeD0iNjQwIiB5PSI1NTMiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPlJlY29ubmVjdCB0byBzYXZlZCBzYW5kYm94OzwvdGV4dD4KPHRleHQgeD0iNjQwIiB5PSI1NzQiIGZpbGw9IiM2NDY3N2UiIGZvbnQtc2l6ZT0iMTQiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPnJlYWQgZnJvbSB0aGUgbGFzdCBqb3VybmFsIG9mZnNldDwvdGV4dD4KPHBvbHlsaW5lIHBvaW50cz0iODAwLDY1NiA0ODAsNjU2IiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgbWFya2VyLWVuZD0idXJsKCNhcnJvdykiLz4KPHRleHQgeD0iNjQwIiB5PSI2NDEiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPkV2ZW50cyArIHNhdmVkIGZpbmFsIHJlc3VsdDwvdGV4dD4KPHBvbHlsaW5lIHBvaW50cz0iNDgwLDczMCAxNjAsNzMwIiBmaWxsPSJub25lIiBzdHJva2U9IiM5Mjk2YWMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgbWFya2VyLWVuZD0idXJsKCNhcnJvdykiLz4KPHRleHQgeD0iMzIwIiB5PSI3MTUiIGZpbGw9IiMyMDIyM2IiIGZvbnQtc2l6ZT0iMTYiIGZvbnQtd2VpZ2h0PSI0MDAiIHRleHQtYW5jaG9yPSJtaWRkbGUiPlJldHVybiBuZXh0IHNlc3Npb24gc3RhdHVzPC90ZXh0Pgo8cmVjdCB4PSIzNiIgeT0iNzg4IiB3aWR0aD0iODg4IiBoZWlnaHQ9IjQ4IiByeD0iOCIgZmlsbD0iI2YyZjNmOSIgc3Ryb2tlPSIjZGVkZmVjIiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8dGV4dCB4PSI0ODAiIHk9IjgxOCIgZmlsbD0iIzIwMjIzYiIgZm9udC1zaXplPSIxNiIgZm9udC13ZWlnaHQ9IjQwMCIgdGV4dC1hbmNob3I9Im1pZGRsZSI+SWYgZXhlY3V0aW9uIGNhbm5vdCBiZSBjb25maXJtZWQsIHN0b3AgZm9yIHJldmlldyBpbnN0ZWFkIG9mIHJlcGVhdGluZyBleHRlcm5hbCB3cml0ZXMuPC90ZXh0Pgo8L2c+PC9zdmc+Cg==" width="960" height="860" class="img_ev3q"></p>
<p><a href="https://docs.litellm.ai/assets/files/recovery-014cb86b3c85ccc897127ac38b0d666d.svg" target="_blank">Open the recovery diagram</a>. This path assumes the Modal sandbox survives the Render restart.</p>
<p>The workflow calls a bounded activity with the session ID. This excerpt comes from our <code>SessionWorkflow</code>; the surrounding loop waits for message signals and rolls over its history with Continue-As-New.</p>
<div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">app/session_workflow.py · activity configuration</div><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 plain">busy </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> </span><span class="token keyword" style="color:#CF222E">await</span><span class="token plain"> workflow</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">execute_activity</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">"advance_session"</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> run_id</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">    start_to_close_timeout</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">timedelta</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">minutes</span><span class="token operator" style="color:#D73A49">=</span><span class="token number" style="color:#005CC5">15</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">    heartbeat_timeout</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">timedelta</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">seconds</span><span class="token operator" style="color:#D73A49">=</span><span class="token number" style="color:#005CC5">30</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">    retry_policy</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">RetryPolicy</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">        initial_interval</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">timedelta</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">seconds</span><span class="token operator" style="color:#D73A49">=</span><span class="token number" style="color:#005CC5">2</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">        maximum_interval</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">timedelta</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">seconds</span><span class="token operator" style="color:#D73A49">=</span><span class="token number" style="color:#005CC5">60</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><br></span></code></pre></div></div>
<p>The Render worker heartbeats every five seconds while it advances the session. If it stops heartbeating, Temporal can retry the activity on a replacement worker. We pass only the session ID and return small status values; prompts, credentials, and workspace files stay outside workflow history.</p>
<p>That retry boundary needed a second safeguard. Render could ask Modal to launch Hermes, lose the response, and retry the same request. We put the launch check inside a detached supervisor in the sandbox:</p>
<div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">sandbox/durable_process.py · launch guard, excerpt</div><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">with</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">directory </span><span class="token operator" style="color:#D73A49">/</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"lock"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token builtin">open</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#C6105F">"a"</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"> lock</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">try</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">        fcntl</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">flock</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">lock</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> fcntl</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">LOCK_EX </span><span class="token operator" style="color:#D73A49">|</span><span class="token plain"> fcntl</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">LOCK_NB</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">except</span><span class="token plain"> BlockingIOError</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">return</span><span class="token plain">  </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># Another supervisor still owns this execution.</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">if</span><span class="token plain"> </span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">directory </span><span class="token operator" style="color:#D73A49">/</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"started.json"</span><span class="token punctuation" style="color:#393A34">)</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">exists</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">        </span><span class="token keyword" style="color:#CF222E">return</span><span class="token plain">  </span><span class="token comment" style="color:#6B6B6B;font-style:italic"># A previous launch may already have run tools.</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">    atomic</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">directory </span><span class="token operator" style="color:#D73A49">/</span><span class="token plain"> </span><span class="token string" style="color:#C6105F">"started.json"</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">"pid"</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">getpid</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 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 comment" style="color:#6B6B6B;font-style:italic"># Still holding the lock, start Hermes and journal its events.</span><br></span></code></pre></div></div>
<p>Each execution segment has its own directory. Our <code>atomic</code> helper writes a temporary file, flushes it with <code>fsync</code>, and renames it into place. The supervisor holds the lock while Hermes runs, appends events to a journal, and saves the final result separately. After a disconnect, the replacement Render worker resumes reading at its saved journal offset.</p>
<p>The marker covers a different failure from the lock. A live supervisor holds the lock; a dead supervisor may leave only <code>started.json</code>. If we find a started marker without a live owner or confirmed result, we stop and report an interrupted execution. Starting over could repeat a tool that already changed an external system.</p>
<p>We save the conversation and files between tool rounds so we can restore them on a new sandbox. We also save the final answer before packaging files.</p>
<p>Retries need care: if creating a PR succeeds but its response gets lost, we check our publication records before trying again.</p>
<p>Temporal retries activities; it does not make external side effects exactly-once. A filesystem snapshot also excludes running processes and browser tabs. Losing the Render disk would lose our application records, so Temporal history cannot replace a database backup.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="orchestrating-parallel-agents">Orchestrating parallel agents<a href="https://docs.litellm.ai/blog/internal-devin-two-days#orchestrating-parallel-agents" class="hash-link" aria-label="Direct link to Orchestrating parallel agents" title="Direct link to Orchestrating parallel agents">​</a></h3>
<p>We wanted to support requests such as: "Run 100 test cases across five agents."</p>
<p>Our coordinator:</p>
<ol>
<li>Splits the work into five assignments.</li>
<li>Gives each worker an isolated copy of the workspace.</li>
<li>Saves its own state and releases its sandbox while waiting.</li>
<li>Resumes after the workers finish and collects their results.</li>
</ol>
<p>We verified that flow with five workers handling 20 deterministic cases each. Users can open individual workers from the sidebar to inspect progress or continue their conversations.</p>
<p>Sandbox capacity follows demand. Executing agents and sessions within the idle window consume machines; a coordinator waiting for children does not.</p>
<p>We configured a ceiling of 100 sandboxes. Our five-worker test validates the orchestration, but a 100-agent load test remains separate work. Modal quotas and the server's model-request limit also constrain concurrency.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="making-slack-behave-like-a-conversation">Making Slack behave like a conversation<a href="https://docs.litellm.ai/blog/internal-devin-two-days#making-slack-behave-like-a-conversation" class="hash-link" aria-label="Direct link to Making Slack behave like a conversation" title="Direct link to Making Slack behave like a conversation">​</a></h3>
<p>Slack took more work than receiving a mention and posting an answer.</p>
<p>We needed to:</p>
<ul>
<li>Read the discussion behind a request.</li>
<li>Continue the same session through thread replies and DMs.</li>
<li>Mirror web messages into the linked Slack thread.</li>
<li>Handle duplicate events without starting duplicate work.</li>
<li>Show working status and deliver answers to the correct conversation.</li>
</ul>
<p>We used <a href="https://github.com/BerriAI/agentchat" target="_blank" rel="noopener noreferrer">AgentChat</a> for normalized messages, conversation handling, replies, and working-status support.</p>
<p>Moyai adds persisted inbound and outbound message records, Slack signature verification, and web-session mirroring. AgentChat reduced the messaging code we had to build; we retained responsibility for durable delivery and permissions.</p>
<p>The subtle failure is acknowledging a Slack event before its message is durable. Slack might stop retrying even though we never queued the work. We save the receipt and user message in the same SQLite transaction. Here is the ordinary-message path, shortened after signature validation and thread-to-session lookup:</p>
<div class="language-python codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#393A34;--prism-background-color:#f6f8fa"><div class="codeBlockTitle_OeMC">app/slack_chat.py · shortened message intake</div><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">with</span><span class="token plain"> self</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">store</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">connect</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 keyword" style="color:#CF222E">as</span><span class="token plain"> conn</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">    conn</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">execute</span><span class="token punctuation" style="color:#393A34">(</span><span class="token string" style="color:#C6105F">"BEGIN IMMEDIATE"</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">    duplicate </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> conn</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">execute</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 triple-quoted-string string" style="color:#C6105F">"""SELECT 1 FROM slack_receipts</span><br></span><span class="token-line" style="color:#393A34"><span class="token triple-quoted-string string" style="color:#C6105F">           WHERE event_id=?</span><br></span><span class="token-line" style="color:#393A34"><span class="token triple-quoted-string string" style="color:#C6105F">              OR (team_id=? AND channel=? AND message_ts=?)"""</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">event_id</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> team</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> channel</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> ts</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">fetchone</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">if</span><span class="token plain"> duplicate</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">return</span><span class="token plain"> </span><span class="token boolean" style="color:#005CC5">None</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">    message</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> _ </span><span class="token operator" style="color:#D73A49">=</span><span class="token plain"> self</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">store</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">enqueue_message_in</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">        conn</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> run_id</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> prompt</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">"slack:"</span><span class="token plain"> </span><span class="token operator" style="color:#D73A49">+</span><span class="token plain"> digest</span><span class="token punctuation" style="color:#393A34">(</span><span class="token plain">team </span><span class="token operator" style="color:#D73A49">+</span><span class="token plain"> channel </span><span class="token operator" style="color:#D73A49">+</span><span class="token plain"> ts</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">        user_id</span><span class="token operator" style="color:#D73A49">=</span><span class="token plain">actor_id</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">    conn</span><span class="token punctuation" style="color:#393A34">.</span><span class="token plain">execute</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 triple-quoted-string string" style="color:#C6105F">"""INSERT INTO slack_receipts</span><br></span><span class="token-line" style="color:#393A34"><span class="token triple-quoted-string string" style="color:#C6105F">           (event_id, team_id, channel, message_ts,</span><br></span><span class="token-line" style="color:#393A34"><span class="token triple-quoted-string string" style="color:#C6105F">            user_id, run_id, message_id)</span><br></span><span class="token-line" style="color:#393A34"><span class="token triple-quoted-string string" style="color:#C6105F">           VALUES (?, ?, ?, ?, ?, ?, ?)"""</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">event_id</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> team</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> channel</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> ts</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> user</span><span class="token punctuation" style="color:#393A34">,</span><span class="token plain"> run_id</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 string" style="color:#C6105F">"id"</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">    </span><span class="token punctuation" style="color:#393A34">)</span><br></span></code></pre></div></div>
<p>We deduplicate both the delivery ID and the physical Slack message, identified by team, channel, and timestamp. The receipt table also enforces those keys with database constraints. Thread replies resolve through a separate <code>(team_id, channel, thread_ts)</code> mapping, so a follow-up joins the existing session instead of creating another agent.</p>
<p>The workflow wake is a separate step after this commit. We retain pending wake requests until Temporal accepts them, and startup recovery scans the inbox for queued work. That covers a restart between saving the message and dispatching it.</p>
<p>Sending an answer has an ambiguity of its own: Slack can accept a post before our connection drops. We mark an outbox row as <code>sending</code> before the request, then <code>sent</code> after a confirmed response. A timeout leaves it <code>uncertain</code>; we keep the answer in the web session and avoid an automatic duplicate post. That trades automatic redelivery for a visible delivery failure the user can inspect.</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="sharing-access-without-handing-credentials-to-agents">Sharing access without handing credentials to agents<a href="https://docs.litellm.ai/blog/internal-devin-two-days#sharing-access-without-handing-credentials-to-agents" class="hash-link" aria-label="Direct link to Sharing access without handing credentials to agents" title="Direct link to Sharing access without handing credentials to agents">​</a></h3>
<p>Teammates sign in through Google Workspace and use organization connections. Provider credentials stay on the trusted server, behind tools that check the current session's permissions.</p>
<p>For GitHub, Moyai can prepare and publish a normal PR after administrator approval. We expose no tools for approving or merging PRs.</p>
<p>We also added personal and organization skills, plus secure credential requests with explicit sharing choices. Users can reuse instructions and supported API keys without pasting secrets into conversations.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="3-whats-next-and-what-id-recommend">3. What's next, and what I'd recommend<a href="https://docs.litellm.ai/blog/internal-devin-two-days#3-whats-next-and-what-id-recommend" class="hash-link" aria-label="Direct link to 3. What's next, and what I'd recommend" title="Direct link to 3. What's next, and what I'd recommend">​</a></h2>
<p>Our next priorities are:</p>
<ul>
<li><strong>Billing recovery.</strong> LiteLLM can bill a request whose final response never reaches Moyai. We track returned costs today; we're evaluating durable receipts to recover the missing ones.</li>
<li><strong>Higher-concurrency testing.</strong> Exercise larger worker groups, failure recovery, and resource limits before increasing usage.</li>
<li><strong>Total cost visibility.</strong> Combine model spend with Render, Modal, and Temporal charges.</li>
</ul>
<p>If you're building something similar, start with one complete session: accept a message, execute the task, save the answer and workspace, then resume from a follow-up.</p>
<p>Test a deployment interruption, duplicate Slack event, and failed workspace save before adding more concurrency. Those tests expose the gaps that a successful single prompt won't catch.</p>]]></content>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="agents" term="agents"/>
        <category label="infrastructure" term="infrastructure"/>
        <category label="slack" term="slack"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Adding Self-hosted Auto Router Classifiers: Laya & Nimble]]></title>
        <id>https://docs.litellm.ai/blog/laya-nimble-classifiers</id>
        <link href="https://docs.litellm.ai/blog/laya-nimble-classifiers"/>
        <updated>2026-10-02T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use Laya or Bespoke Nimble to classify Auto Router requests on your own infrastructure. Control where classification runs, which model you serve, and how you provision it.]]></summary>
        <content type="html"><![CDATA[<p>LiteLLM Auto Router now supports <strong>Laya</strong> and <strong>Bespoke Nimble</strong> as self-hosted classifiers. Run either model on your infrastructure to choose which completion model handles each request. Your application keeps calling the same router endpoint.</p>
<!-- -->
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="why-self-host-a-classifier">Why self-host a classifier?<a href="https://docs.litellm.ai/blog/laya-nimble-classifiers#why-self-host-a-classifier" class="hash-link" aria-label="Direct link to Why self-host a classifier?" title="Direct link to Why self-host a classifier?">​</a></h2>
<p>Customers have asked to keep classification local, avoid another hosted classifier vendor, and use clusters they already operate. Self-hosting gives you control over:</p>
<ul>
<li><strong>Prompt data.</strong> Process classification context on servers you control, with your own access and logging policies.</li>
<li><strong>Vendor dependencies.</strong> Run the classifier without opening an account with a separate hosted classifier service.</li>
<li><strong>Deployment location.</strong> Choose the network and region where classification runs, including your existing private cluster.</li>
<li><strong>Capacity and latency tuning.</strong> Allocate compute for your traffic, keep the model warm, and place it near the gateway.</li>
<li><strong>Model versions.</strong> Choose the supported checkpoint you serve and decide when to roll out upgrades.</li>
<li><strong>Compute costs.</strong> Use your infrastructure budget and compare its cost against hosted inference on your workload.</li>
</ul>
<p>You operate and pay for the classifier service. Measure latency, routing quality, and total cost on your own traffic with the <a href="https://docs.litellm.ai/docs/auto_router/evaluate">evaluation guide</a>.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="how-it-works">How it works<a href="https://docs.litellm.ai/blog/laya-nimble-classifiers#how-it-works" class="hash-link" aria-label="Direct link to How it works" title="Direct link to How it works">​</a></h2>
<ol>
<li>Your application sends a request to the LiteLLM Auto Router.</li>
<li>Your self-hosted classifier chooses a complexity tier, such as <code>SIMPLE</code> or <code>COMPLEX</code>.</li>
<li>LiteLLM calls a completion model assigned to that tier to generate the answer.</li>
</ol>
<p>The completion model still receives the request. You choose separately whether that model runs locally or through a hosted provider.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="get-started">Get started<a href="https://docs.litellm.ai/blog/laya-nimble-classifiers#get-started" class="hash-link" aria-label="Direct link to Get started" title="Direct link to Get started">​</a></h2>
<p>Connect your classifier endpoint to LiteLLM:</p>
<ul>
<li><strong><a href="https://docs.litellm.ai/docs/auto_router/decision_classifiers#laya-self-hosted-http-server">Connect Laya</a>:</strong> set your server's base URL, credentials, and classifier model.</li>
<li><strong><a href="https://docs.litellm.ai/docs/auto_router/decision_classifiers#nimble-self-hosted-system-one-server">Connect Nimble</a>:</strong> connect your System One endpoint and select the model it serves.</li>
</ul>
<p>In <strong>Models + Endpoints → Auto Router</strong>, select <strong>OSS Classifier</strong>, choose your provider, and assign completion models to tiers. Use <strong><a href="https://docs.litellm.ai/docs/auto_router/decision_classifiers#test-routing-and-send-a-request">Test Routing</a></strong> to inspect the choice before sending completions.</p>
<p>The <strong><a href="https://docs.litellm.ai/docs/auto_router/decision_classifiers">connection guide</a></strong> covers endpoint settings and credentials, with a <strong><a href="https://docs.litellm.ai/docs/auto_router/decision_classifiers#configure-the-router">complete YAML example</a></strong> for configuring tiers and fallback behavior. Jev remains available as the hosted classifier option.</p>]]></content>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="auto-router" term="auto-router"/>
        <category label="product" term="product"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Launching LiteLLM Lens]]></title>
        <id>https://docs.litellm.ai/blog/litellm-lens-launch</id>
        <link href="https://docs.litellm.ai/blog/litellm-lens-launch"/>
        <updated>2026-10-01T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM Lens turns the traces flowing through your gateway into findings your agents can act on. Built for agent swarms generating 200K+ traces.]]></summary>
        <content type="html"><![CDATA[
<!-- -->
<canvas class="stars_UdGB" aria-hidden="true"></canvas><section class="scroller_JrbL" data-full-width="true" 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>AI 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>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. Tell Lens what to look for in your agents, let it analyze your traces, then read the findings and go deeper into any trace</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 this in three steps, and puts an agent-first tracing API underneath them</p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="1-tell-lens-what-to-look-for">1. Tell Lens what to look for<a href="https://docs.litellm.ai/blog/litellm-lens-launch#1-tell-lens-what-to-look-for" class="hash-link" aria-label="Direct link to 1. Tell Lens what to look for" title="Direct link to 1. Tell Lens what to look for">​</a></h3>
<p>For each of your agents, describe what you want Lens to look for. What does a good run look like, and what does a bad one look like? You can also add specific questions, one per line, like "Find tool failures the agent does not recover from"</p>
<p><img decoding="async" loading="lazy" alt="Saved agent context and checks for a research agent." src="https://docs.litellm.ai/assets/images/questions-and-checks-22216ddb975152adeeb2b8d784a5f680.png" width="2590" height="1788" class="img_ev3q"></p>
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="2-lens-analyzes-your-traces">2. Lens analyzes your traces<a href="https://docs.litellm.ai/blog/litellm-lens-launch#2-lens-analyzes-your-traces" class="hash-link" aria-label="Direct link to 2. Lens analyzes your traces" title="Direct link to 2. Lens analyzes your traces">​</a></h3>
<p>Lens uses AI agents to review your traces for you. It investigates the runs, groups similar problems, and shows you its findings for each of your agents: what happened, what to do next, and the runs that support it</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="3-read-the-findings-then-go-deeper-into-the-trace">3. Read the findings, then go deeper into the trace<a href="https://docs.litellm.ai/blog/litellm-lens-launch#3-read-the-findings-then-go-deeper-into-the-trace" class="hash-link" aria-label="Direct link to 3. Read the findings, then go deeper into the trace" title="Direct link to 3. Read the findings, then go deeper into the trace">​</a></h3>
<p>Start with the findings. When you need more, every finding links back to the exact step in the original trace, so you can read the input, output, and attributes behind it</p>
<p>An individual trace looks like this: the full step tree on the left, and the input and output of the selected step on the right</p>
<p><img decoding="async" loading="lazy" alt="An individual trace for a research agent, with its step tree, timing, and the selected step&amp;#39;s input and output." src="https://docs.litellm.ai/assets/images/trace-detail-research-lead-7ad17c201e5ab5c7087c4048eaaa8bb8.png" width="4005" height="3562" 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>
<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://mindfort.ai/?utm_source=litellm&amp;utm_medium=spotlight&amp;utm_campaign=spotlight" 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>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <author>
            <name>Yujong Lee</name>
            <email>yujong@berri.ai</email>
            <uri>https://www.linkedin.com/in/yujong1ee/</uri>
        </author>
        <category label="lens" term="lens"/>
        <category label="agent-tracing" term="agent-tracing"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How we cut LiteLLM's Redis round trips per request by 64%]]></title>
        <id>https://docs.litellm.ai/blog/redis-request-pipelines</id>
        <link href="https://docs.litellm.ai/blog/redis-request-pipelines"/>
        <updated>2026-10-01T09:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <content type="html"><![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>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="redis" term="redis"/>
        <category label="proxy" term="proxy"/>
        <category label="engineering" term="engineering"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How we made the LiteLLM Usage page 120x faster]]></title>
        <id>https://docs.litellm.ai/blog/usage-page-bounded-loading</id>
        <link href="https://docs.litellm.ai/blog/usage-page-bounded-loading"/>
        <updated>2026-09-30T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[From six minutes to 3.2 seconds: how moving aggregation into Postgres made LiteLLM's Usage page roughly 120x faster in our benchmark.]]></summary>
        <content type="html"><![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>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="admin-ui" term="admin-ui"/>
        <category label="postgres" term="postgres"/>
        <category label="engineering" term="engineering"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-6.1 Sol]]></title>
        <id>https://docs.litellm.ai/blog/gpt_6_1_sol</id>
        <link href="https://docs.litellm.ai/blog/gpt_6_1_sol"/>
        <updated>2026-09-29T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for GPT-6.1 Sol on LiteLLM, with cached input at half GPT-6 Sol's price.]]></summary>
        <content type="html"><![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 data-label="Model" data-inline=""><code>gpt-6.1-sol</code></td><td data-label="Input" data-inline="">$2.00 / $4.00</td><td data-label="Cached input" data-inline="">$0.10 / $0.20</td><td data-label="Cache write" data-inline="">$2.50 / $5.00</td><td data-label="Output" data-inline="">$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>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-6" term="gpt-6"/>
        <category label="gpt-6.1-sol" term="gpt-6.1-sol"/>
        <category label="completion" term="completion"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-6.1 Sol" term="card_title:GPT-6.1 Sol"/>
        <category label="card_summary:GPT-6 Sol successor with cached input at half GPT-6 Sol's price, same request family and params." term="card_summary:GPT-6 Sol successor with cached input at half GPT-6 Sol's price, same request family and params."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Learn the LiteLLM gateway with a guided course]]></title>
        <id>https://docs.litellm.ai/blog/litellm-gateway-course</id>
        <link href="https://docs.litellm.ai/blog/litellm-gateway-course"/>
        <updated>2026-09-28T17:00:00.000Z</updated>
        <summary type="html"><![CDATA[Follow a request through the LiteLLM gateway, Router, and SDK. A guided course for teams deploying the gateway and contributors making code changes.]]></summary>
        <content type="html"><![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>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="proxy" term="proxy"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Sonnet 5.5]]></title>
        <id>https://docs.litellm.ai/blog/claude_sonnet_5_5</id>
        <link href="https://docs.litellm.ai/blog/claude_sonnet_5_5"/>
        <updated>2026-09-28T10:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <content type="html"><![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/global.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>To keep requests inside one geography, swap the model ID for a geographic inference profile such as <code>bedrock/converse/us.anthropic.claude-sonnet-5-5</code> (the model's AWS model card lists the profiles it has). These cost 10% more than <code>global.</code>, which can serve a request from any commercial AWS region. LiteLLM tracks the cost of each variant automatically. On older images this needs the remote cost map, which LiteLLM loads at startup unless <code>LITELLM_LOCAL_MODEL_COST_MAP</code> is set.</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>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="sonnet 5.5" term="sonnet 5.5"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Sonnet 5.5" term="card_title:Claude Sonnet 5.5"/>
        <category label="card_summary:Same $2 / $10 price as Sonnet 5, 30%+ faster, 70.6% on Terminal-Bench 4.0 (Sonnet 5: 10.3%), 1M context." term="card_summary:Same $2 / $10 price as Sonnet 5, 30%+ faster, 70.6% on Terminal-Bench 4.0 (Sonnet 5: 10.3%), 1M context."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing the LiteLLM ROI Calculator]]></title>
        <id>https://docs.litellm.ai/blog/litellm-roi-calculator</id>
        <link href="https://docs.litellm.ai/blog/litellm-roi-calculator"/>
        <updated>2026-09-26T17:00:00.000Z</updated>
        <summary type="html"><![CDATA[Compare each engineer's LiteLLM gateway spend with the estimated effort of their merged pull requests. Open source and self-hosted.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="cost" term="cost"/>
        <category label="product" term="product"/>
        <category label="announcement" term="announcement"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing LiteAgents]]></title>
        <id>https://docs.litellm.ai/blog/liteagents-sdk</id>
        <link href="https://docs.litellm.ai/blog/liteagents-sdk"/>
        <updated>2026-09-25T17:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="agents" term="agents"/>
        <category label="sdk" term="sdk"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[September Townhall Updates: 583 Bug Fixes, OCR on Rust, and 83.5% Coverage]]></title>
        <id>https://docs.litellm.ai/blog/september-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/september-townhall-updates"/>
        <updated>2026-09-24T12:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Yujong Lee</name>
            <email>yujong@berri.ai</email>
            <uri>https://www.linkedin.com/in/yujong1ee/</uri>
        </author>
        <author>
            <name>Oliver Jensen</name>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="reliability" term="reliability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 support: Gemini 3.8 Flash TTS and Flash-Lite TTS]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_8_flash_tts</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_8_flash_tts"/>
        <updated>2026-09-23T10:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini-3.8-flash-tts" term="gemini-3.8-flash-tts"/>
        <category label="text to speech" term="text to speech"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Gemini 3.8 Flash TTS and Flash-Lite TTS" term="card_title:Gemini 3.8 Flash TTS and Flash-Lite TTS"/>
        <category label="card_summary:Gemini speech models on /v1/audio/speech, Flash and Flash-Lite, with launch pricing tracked through 2026." term="card_summary:Gemini speech models on /v1/audio/speech, Flash and Flash-Lite, with launch pricing tracked through 2026."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing LiteAdmin MCP]]></title>
        <id>https://docs.litellm.ai/blog/litellm-admin-mcp</id>
        <link href="https://docs.litellm.ai/blog/litellm-admin-mcp"/>
        <updated>2026-09-23T10:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="mcp" term="mcp"/>
        <category label="agents" term="agents"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-6 Sol and GPT-6 Luna]]></title>
        <id>https://docs.litellm.ai/blog/gpt_6_sol_luna</id>
        <link href="https://docs.litellm.ai/blog/gpt_6_sol_luna"/>
        <updated>2026-09-22T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for GPT-6 Sol and GPT-6 Luna on LiteLLM, at half the price of their GPT-5.6 counterparts.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-6" term="gpt-6"/>
        <category label="gpt-6-sol" term="gpt-6-sol"/>
        <category label="gpt-6-luna" term="gpt-6-luna"/>
        <category label="completion" term="completion"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-6 Sol and GPT-6 Luna" term="card_title:GPT-6 Sol and GPT-6 Luna"/>
        <category label="card_summary:Two GPT-6 variants at half the price of their GPT-5.6 counterparts, routed as the GPT-5 request family." term="card_summary:Two GPT-6 variants at half the price of their GPT-5.6 counterparts, routed as the GPT-5 request family."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Opus 5.5]]></title>
        <id>https://docs.litellm.ai/blog/claude_opus_5_5</id>
        <link href="https://docs.litellm.ai/blog/claude_opus_5_5"/>
        <updated>2026-09-22T10:00:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="opus 5.5" term="opus 5.5"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Opus 5.5" term="card_title:Claude Opus 5.5"/>
        <category label="card_summary:20% cheaper than Opus 5 at $4 / $20 per 1M, 30% faster output, Terminal-Bench 4.0 66.4%, thinking always on." term="card_summary:20% cheaper than Opus 5 at $4 / $20 per 1M, 30% faster output, Terminal-Bench 4.0 66.4%, thinking always on."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Getting Started with Fireworks AI on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/fireworks-getting-started</id>
        <link href="https://docs.litellm.ai/blog/fireworks-getting-started"/>
        <updated>2026-09-22T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[A beginner tutorial: run an open model on Fireworks AI behind a LiteLLM gateway, call it with the OpenAI SDK you already use, then add a second model and a fallback.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <category label="tutorial" term="tutorial"/>
        <category label="providers" term="providers"/>
        <category label="fireworks" term="fireworks"/>
        <category label="getting-started" term="getting-started"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Xiaomi MiMo V2.6]]></title>
        <id>https://docs.litellm.ai/blog/mimo_v2_6</id>
        <link href="https://docs.litellm.ai/blog/mimo_v2_6"/>
        <updated>2026-09-22T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Xiaomi MiMo V2.6 Pro and Flash on LiteLLM, priced on the native route for the first time.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <category label="xiaomi" term="xiaomi"/>
        <category label="mimo" term="mimo"/>
        <category label="mimo-v2.6" term="mimo-v2.6"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Xiaomi MiMo V2.6" term="card_title:Xiaomi MiMo V2.6"/>
        <category label="card_summary:Xiaomi's Pro ($0.435 / $0.87 per 1M) and Flash ($0.14 / $0.28), same rates as V2.5, priced on the native route." term="card_summary:Xiaomi's Pro ($0.435 / $0.87 per 1M) and Flash ($0.14 / $0.28), same rates as V2.5, priced on the native route."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Claude Code server-side auto mode through LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/claude-code-server-side-auto-mode</id>
        <link href="https://docs.litellm.ai/blog/claude-code-server-side-auto-mode"/>
        <updated>2026-09-21T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Anthropic is moving Claude Code auto mode's safety classifier to server side. LiteLLM's native /v1/messages route now passes the safety contract through to the Anthropic API, Bedrock InvokeModel, Bedrock Mantle and Vertex AI. Here's the contract, what's changed, which releases have it, and how to verify it.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="claude-code" term="claude-code"/>
        <category label="anthropic" term="anthropic"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Grok 4.7]]></title>
        <id>https://docs.litellm.ai/blog/grok_4_7</id>
        <link href="https://docs.litellm.ai/blog/grok_4_7"/>
        <updated>2026-09-21T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Grok 4.7 on LiteLLM, at the same price as Grok 4.6.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="xai" term="xai"/>
        <category label="grok" term="grok"/>
        <category label="grok-4.7" term="grok-4.7"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Grok 4.7" term="card_title:Grok 4.7"/>
        <category label="card_summary:SpaceXAI's update to Grok 4.6 at the same price and limits, better at checking its own work and long context." term="card_summary:SpaceXAI's update to Grok 4.6 at the same price and limits, better at checking its own work and long context."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[JEV Classifier: 5.43x as Fast as Haiku, 96% Lower Cost]]></title>
        <id>https://docs.litellm.ai/blog/jev-auto-router-benchmark</id>
        <link href="https://docs.litellm.ai/blog/jev-auto-router-benchmark"/>
        <updated>2026-09-20T10:15:00.000Z</updated>
        <summary type="html"><![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.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="engineering" term="engineering"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[TypeSafe Jev on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/typesafe_jev</id>
        <link href="https://docs.litellm.ai/blog/typesafe_jev"/>
        <updated>2026-09-20T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[TypeSafe AI's Jev lands in LiteLLM v1.103.0-rc: call it through the proxy with logging and cost tracking.]]></summary>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="typesafe" term="typesafe"/>
        <category label="jev" term="jev"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto-Router: Switching Tiers Without Encrypted Content Failures]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-encrypted-content-routing</id>
        <link href="https://docs.litellm.ai/blog/auto-router-encrypted-content-routing"/>
        <updated>2026-09-18T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[How LiteLLM safely removes undecryptable encrypted reasoning from cross-tier follow-ups so Auto-Router can keep routing requests]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="responses-api" term="responses-api"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Qwen3.8-Omni-Flash]]></title>
        <id>https://docs.litellm.ai/blog/qwen3_8_omni_flash</id>
        <link href="https://docs.litellm.ai/blog/qwen3_8_omni_flash"/>
        <updated>2026-09-18T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Qwen3.8-Omni-Flash on LiteLLM, with text, image, audio and video input.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <category label="qwen" term="qwen"/>
        <category label="dashscope" term="dashscope"/>
        <category label="qwen3.8-omni-flash" term="qwen3.8-omni-flash"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Qwen3.8-Omni-Flash" term="card_title:Qwen3.8-Omni-Flash"/>
        <category label="card_summary:Qwen's first omni model: text, image, audio and video input with text output, through DashScope." term="card_summary:Qwen's first omni model: text, image, audio and video input with text output, through DashScope."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Reduce agent context with TypeSafe Jev and LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/typesafe-jev-compaction</id>
        <link href="https://docs.litellm.ai/blog/typesafe-jev-compaction"/>
        <updated>2026-09-18T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use TypeSafe Jev to remove old tool results from bot conversations and enable compaction for a team in LiteLLM.]]></summary>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="product" term="product"/>
        <category label="agents" term="agents"/>
        <category label="guardrails" term="guardrails"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto Router: 5 Improvements for Cost, Speed, and Team Control]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-five-improvements</id>
        <link href="https://docs.litellm.ai/blog/auto-router-five-improvements"/>
        <updated>2026-09-17T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Five Auto Router updates: cache-cost estimates, Fast Mode by tier, team-managed routers, live CLI stats, and more accurate Anthropic savings.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="auto-router" term="auto-router"/>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost-optimization" term="cost-optimization"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[September Townhall: Product + Roadmap Updates]]></title>
        <id>https://docs.litellm.ai/blog/september-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/september-townhall-announcement"/>
        <updated>2026-09-16T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM September townhall on Thursday, 24 September at 7:30 AM PT to learn about LiteLLM's product updates and roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto Router: Maximize Quality & Savings with Our Fuse LLM Classifier]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-fuse-v2</id>
        <link href="https://docs.litellm.ai/blog/auto-router-fuse-v2"/>
        <updated>2026-09-14T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[We’re improving Fuse V2 by combining complexity and capability assessment to learn where each model succeeds, fails, and needs an upgrade.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="auto-router" term="auto-router"/>
        <category label="routing" term="routing"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[OCR uses Rust by default starting with v1.102.0-rc.1]]></title>
        <id>https://docs.litellm.ai/blog/litellm-rust-ocr</id>
        <link href="https://docs.litellm.ai/blog/litellm-rust-ocr"/>
        <updated>2026-09-13T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Starting with v1.102.0-rc.1, OCR calls use the Rust implementation by default while preserving the existing API.]]></summary>
        <author>
            <name>Yujong Lee</name>
            <email>yujong@berri.ai</email>
            <uri>https://www.linkedin.com/in/yujong1ee/</uri>
        </author>
        <category label="litellm" term="litellm"/>
        <category label="rust" term="rust"/>
        <category label="rust-migration" term="rust-migration"/>
        <category label="ocr" term="ocr"/>
        <category label="reliability" term="reliability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Retry Breadcrumb Memory Growth Causing OOM on v1.100.0]]></title>
        <id>https://docs.litellm.ai/blog/retry-breadcrumb-oom-incident</id>
        <link href="https://docs.litellm.ai/blog/retry-breadcrumb-oom-incident"/>
        <updated>2026-09-12T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: September 7 to September 9, 2026]]></summary>
        <author>
            <name>Kerry Lu</name>
            <uri>https://github.com/kerry-berri</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="router" term="router"/>
        <category label="redis" term="redis"/>
        <category label="memory" term="memory"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto Router: 45% Lower Cost on 25 SWE-bench Tasks]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-capability-benchmark</id>
        <link href="https://docs.litellm.ai/blog/auto-router-capability-benchmark"/>
        <updated>2026-09-11T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[We solved 23 of 25 SWE-bench Verified tasks with LiteLLM's experimental capability router for $11.15, compared with $20.27 using Opus 5.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How Pfizer Improved LiteLLM Gateway Performance and Resiliency at Scale]]></title>
        <id>https://docs.litellm.ai/blog/pfizer-gateway-performance-and-resiliency</id>
        <link href="https://docs.litellm.ai/blog/pfizer-gateway-performance-and-resiliency"/>
        <updated>2026-09-11T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[How Pfizer AI Platform Engineering isolated a Redis connection handling bug that cut LiteLLM gateway throughput by ~48% with zero HTTP errors, reduced CI load-test latency by 76%, and built a regression prevention framework with LiteLLM.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <author>
            <name>Gabriele Michelli</name>
            <uri>https://github.com/BerriAI/litellm</uri>
        </author>
        <author>
            <name>Aleksandr Liadov</name>
            <uri>https://www.linkedin.com/in/aleksandr-liadov-76766a152/</uri>
        </author>
        <author>
            <name>Praveena Mundolimoole</name>
            <uri>https://www.linkedin.com/in/pmundolimoole/</uri>
        </author>
        <author>
            <name>Pramod Naik</name>
            <uri>https://www.linkedin.com/in/pramod-naik-b02a6322a/</uri>
        </author>
        <author>
            <name>Tung Hoang</name>
            <uri>https://www.linkedin.com/in/tunghoangs/</uri>
        </author>
        <author>
            <name>Alexey Reznichenko</name>
            <uri>https://www.linkedin.com/in/raaar/</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="performance" term="performance"/>
        <category label="redis" term="redis"/>
        <category label="testing" term="testing"/>
        <category label="customer-story" term="customer-story"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto-Router Updates: Harness-Aware Routing]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-harness-aware-classification</id>
        <link href="https://docs.litellm.ai/blog/auto-router-harness-aware-classification"/>
        <updated>2026-09-10T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Harness-aware Auto-Router updates for Claude Code and Codex: less classifier context, encrypted task support, and clearer routing logs.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Secure shared AI agents with identity-aware access and spend controls]]></title>
        <id>https://docs.litellm.ai/blog/ai-gateway-identity-and-finops</id>
        <link href="https://docs.litellm.ai/blog/ai-gateway-identity-and-finops"/>
        <updated>2026-09-08T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[How LiteLLM preserves caller identity across shared agents, governs model and MCP access, and enforces independent budgets for each business unit.]]></summary>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="product" term="product"/>
        <category label="agents" term="agents"/>
        <category label="mcp" term="mcp"/>
        <category label="security" term="security"/>
        <category label="finops" term="finops"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[AutoRouter: Tune Heuristics for Your Traffic]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-heuristic-tuning</id>
        <link href="https://docs.litellm.ai/blog/auto-router-heuristic-tuning"/>
        <updated>2026-09-08T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Tune AutoRouter heuristic dimensions for specific workloads, improve classification accuracy, and configure tiers from models you already serve.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Our Updated SOC 2 Type 2 Report Is Available]]></title>
        <id>https://docs.litellm.ai/blog/soc2-type-2-report</id>
        <link href="https://docs.litellm.ai/blog/soc2-type-2-report"/>
        <updated>2026-09-08T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM's updated SOC 2 Type 2 report is now available through the LiteLLM Trust Center.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="security" term="security"/>
        <category label="compliance" term="compliance"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Subtask-Specific Routing: Same Quality, 46% Less Cost]]></title>
        <id>https://docs.litellm.ai/blog/subtask-type-routing</id>
        <link href="https://docs.litellm.ai/blog/subtask-type-routing"/>
        <updated>2026-09-07T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Routing each agent turn by what the agent is doing, exploring, implementing, or verifying, instead of by how hard the prompt looks. On a SWE-bench Verified subset it matched fixed Claude Opus-5 quality for 46% less, with 86% of turns never touching a frontier model.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[AutoRouter Per-Hop Compression: Cut LLM Classifier Costs Another 32%]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-per-hop-compression</id>
        <link href="https://docs.litellm.ai/blog/auto-router-per-hop-compression"/>
        <updated>2026-09-05T21:00:00.000Z</updated>
        <summary type="html"><![CDATA[The complexity router's LLM classifier can now use different compression than the model call it routes to. The classifier only needs enough context to route correctly, not to generate an answer. In internal testing, compressing it aggressively cut classification costs a further 32% beyond shared compression, with no change in routing accuracy.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="cost" term="cost"/>
        <category label="compression" term="compression"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto-Router: Escalate a Task That Gets Stuck]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-stall-escalation</id>
        <link href="https://docs.litellm.ai/blog/auto-router-stall-escalation"/>
        <updated>2026-09-04T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[The Auto-Router now reads the assistant's own recent tool calls, notices when an agentic task is stuck in a retry loop, and escalates it one tier automatically, the same bump escalation_keywords already offers.]]></summary>
        <author>
            <name>Moe Khalil</name>
            <uri>https://www.linkedin.com/in/moe-khalil-73a2371a1/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-6 Astra]]></title>
        <id>https://docs.litellm.ai/blog/gpt_6_astra</id>
        <link href="https://docs.litellm.ai/blog/gpt_6_astra"/>
        <updated>2026-09-03T11:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for OpenAI's GPT-6 Astra on LiteLLM, with pricing, reasoning params, and the Responses API bridge.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-6" term="gpt-6"/>
        <category label="gpt-6-astra" term="gpt-6-astra"/>
        <category label="completion" term="completion"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-6 Astra" term="card_title:GPT-6 Astra"/>
        <category label="card_summary:OpenAI's GPT-6 flagship with new pricing and reasoning params, served through the Responses API bridge." term="card_summary:OpenAI's GPT-6 flagship with new pricing and reasoning params, served through the Responses API bridge."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 support: Meta Muse Spark 1.3]]></title>
        <id>https://docs.litellm.ai/blog/muse_spark_1_3</id>
        <link href="https://docs.litellm.ai/blog/muse_spark_1_3"/>
        <updated>2026-09-02T18:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Meta Muse Spark 1.3 on LiteLLM, with cost tracking for both the standard and contributor tiers.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="meta" term="meta"/>
        <category label="muse-spark-1.3" term="muse-spark-1.3"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Meta Muse Spark 1.3" term="card_title:Meta Muse Spark 1.3"/>
        <category label="card_summary:Meta's Muse Spark 1.3 with cost tracking for both the standard and contributor pricing tiers." term="card_summary:Meta's Muse Spark 1.3 with cost tracking for both the standard and contributor pricing tiers."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 support: Gemini 3.8 Flash]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_8_flash</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_8_flash"/>
        <updated>2026-09-02T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[day 0 support for Gemini 3.8 Flash on LiteLLM, with launch pricing tracked across Google AI Studio and Vertex AI.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini-3.8-flash" term="gemini-3.8-flash"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Gemini 3.8 Flash" term="card_title:Gemini 3.8 Flash"/>
        <category label="card_summary:Faster Gemini Flash with launch pricing tracked on Google AI Studio and Vertex AI, no image upgrade needed." term="card_summary:Faster Gemini Flash with launch pricing tracked on Google AI Studio and Vertex AI, no image upgrade needed."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing AutoRouter Heuristic v2: 27% More Tasks Solved at 45% Lower Cost]]></title>
        <id>https://docs.litellm.ai/blog/heuristic-v2</id>
        <link href="https://docs.litellm.ai/blog/heuristic-v2"/>
        <updated>2026-09-02T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Heuristic v2 is a new classifier for LiteLLM's AutoRouter, pretrained across multiple rounds of graded response data so it ships with zero cold start. On a 21-task Terminal-Bench 2.0 subset it solved 3 more tasks than Heuristic v1, at 45% lower cost per solved task and lower latency.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Introducing LiteLLM Fusion: 56% More Tasks Solved Than Fable 5]]></title>
        <id>https://docs.litellm.ai/blog/fusion-terminal-bench-benchmark</id>
        <link href="https://docs.litellm.ai/blog/fusion-terminal-bench-benchmark"/>
        <updated>2026-09-01T14:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM Auto Router Fusion ran three models on the same task and synthesized their work, solving 14 of 21 Terminal-Bench tasks against 9 for Claude Fable-5 alone. Total spend rose 36%, cost per solved task fell 12%, and turn latency went up 5x.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="auto-router" term="auto-router"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="cost" term="cost"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto-Router: Route on Context Size and Modality]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-more-routing-configurations</id>
        <link href="https://docs.litellm.ai/blog/auto-router-more-routing-configurations"/>
        <updated>2026-09-01T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[The Auto-Router now supports more routing configurations: context-window escalation moves oversized prompts to the cheapest tier that fits them before dispatch, modality routing sends image requests to tiers that can see, classification can run on user turns only, and shadow evaluations can compare several router configs on a team's live traffic.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Fable 5.1]]></title>
        <id>https://docs.litellm.ai/blog/claude_fable_5_1</id>
        <link href="https://docs.litellm.ai/blog/claude_fable_5_1"/>
        <updated>2026-09-01T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Fable 5.1 on the LiteLLM AI Gateway, with the 0.025x cache read price tracked from the first call.]]></summary>
        <author>
            <name>Misbah Syed</name>
            <uri>https://github.com/misbahsy</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="fable 5.1" term="fable 5.1"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Fable 5.1" term="card_title:Claude Fable 5.1"/>
        <category label="card_summary:Cache reads at $0.25 / MTok (0.025x input), thinking always on, so tool_choice required now returns a 400." term="card_summary:Cache reads at $0.25 / MTok (0.025x input), thinking always on, so tool_choice required now returns a 400."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[August Townhall Updates: Security, Stability, and Product]]></title>
        <id>https://docs.litellm.ai/blog/august-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/august-townhall-updates"/>
        <updated>2026-08-27T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A recap of the August LiteLLM town hall: 79 security fixes, 375 bug fixes, 142 feature commits, a new Director of Security, the public status dashboard, and Auto-Router results from production.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="reliability" term="reliability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Shadow Evaluations: Test the Auto-Router on Your Own Production Traffic]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-shadow-evaluations</id>
        <link href="https://docs.litellm.ai/blog/auto-router-shadow-evaluations"/>
        <updated>2026-08-18T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Shadow evaluations duplicate a sampled slice of one key's live traffic through an auto-router and have an LLM judge blindly compare the answers. On our own traffic the router matched or beat the current model on 88.1% of judged responses, measured before a single user-facing response changed.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="evals" term="evals"/>
        <category label="quality" term="quality"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 support: Gemini 3.7 Flash]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_7_flash</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_7_flash"/>
        <updated>2026-08-13T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[day 0 support for Gemini 3.7 Flash on LiteLLM, with launch pricing tracked across Google AI Studio and Vertex AI.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="gemini-3.7-flash" term="gemini-3.7-flash"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Gemini 3.7 Flash" term="card_title:Gemini 3.7 Flash"/>
        <category label="card_summary:Gemini Flash refresh with launch pricing tracked on Google AI Studio and Vertex AI, no image upgrade needed." term="card_summary:Gemini Flash refresh with launch pricing tracked on Google AI Studio and Vertex AI, no image upgrade needed."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[August Townhall: Product + Roadmap Updates]]></title>
        <id>https://docs.litellm.ai/blog/august-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/august-townhall-announcement"/>
        <updated>2026-08-10T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM August townhall on Thursday, 27 August at 7:30 AM PT to learn about LiteLLM's product updates and roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[51% Cost Savings Reported From a Live Production Deployment]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-production-savings</id>
        <link href="https://docs.litellm.ai/blog/auto-router-production-savings"/>
        <updated>2026-08-10T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[A LiteLLM customer rolled the Auto Router out to 450+ users in production and shared four months of numbers: 272,876 requests, 7.08 billion tokens, and $12,249 saved against an all-flagship baseline.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost" term="cost"/>
        <category label="case-study" term="case-study"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto Router: Opus level quality at up to 27% lower cost]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-terminal-bench-benchmark</id>
        <link href="https://docs.litellm.ai/blog/auto-router-terminal-bench-benchmark"/>
        <updated>2026-08-08T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[On a 21 task subset of Terminal-Bench 2.0, an auto router matched Claude Opus-5 solve rate at 27% lower cost. Adding the last 3 user messages as classifier context raised relative quality 14% but cost 44% more; adding assistant replies made both worse.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[AutoRouter: Easy Visibility to Your Savings]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-spend-visibility</id>
        <link href="https://docs.litellm.ai/blog/auto-router-spend-visibility"/>
        <updated>2026-08-06T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[A new Auto-Router Usage tab in Cost Optimization, per-request classifier cost reporting, preset matching against your own deployments, and two routing fixes.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost-optimization" term="cost-optimization"/>
        <category label="ui" term="ui"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[AutoRouter: 1 Click Deploy]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-setup-and-testing</id>
        <link href="https://docs.litellm.ai/blog/auto-router-setup-and-testing"/>
        <updated>2026-08-05T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Six changes to the Auto-Router: 1-click Anthropic and OpenAI presets, a one-line agent setup skill, Test Routing in the UI, a replaceable classifier prompt, customizable tiers, and configurable reminder markers.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="ui" term="ui"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto Router v1.97: usage benchmarks and better quality for lower cost]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-context-and-benchmarks</id>
        <link href="https://docs.litellm.ai/blog/auto-router-context-and-benchmarks"/>
        <updated>2026-08-04T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[v1.97 adds cost and usage benchmarks for the auto router, gives the LLM classifier a window of prior turns, and turns session affinity off by default. Across 5,600 live classifier calls, prior turns raised tier agreement on referential follow-ups from 14% to 78% at under a tenth of a cent per request, with no measurable latency change.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="observability" term="observability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Prompt Caching Works with Auto Router]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-prompt-caching-benchmark</id>
        <link href="https://docs.litellm.ai/blog/auto-router-prompt-caching-benchmark"/>
        <updated>2026-07-31T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[The most common objection to auto-routing is that switching models throws away your prompt cache. We measured it across five datasets, including real gateway traffic with the provider's own cache accounting, and the answer is no.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="caching" term="caching"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Cut 75% Claude Code cost with near frontier model quality]]></title>
        <id>https://docs.litellm.ai/blog/auto-router-cost-quality-benchmark</id>
        <link href="https://docs.litellm.ai/blog/auto-router-cost-quality-benchmark"/>
        <updated>2026-07-27T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Two independent evaluations of a four-tier Auto Router config against an all-frontier baseline: 8,619 graded prompts, 14,000 simulated real conversations, and what the cost and quality numbers actually depend on.]]></summary>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="cost" term="cost"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[July Townhall Updates: 38 Security Fixes, 317 Bug Fixes, and Autorouter V2]]></title>
        <id>https://docs.litellm.ai/blog/july-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/july-townhall-updates"/>
        <updated>2026-07-24T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A recap of the July LiteLLM town hall: 38 security fixes, 317 bug fixes, 140 feature commits, new Rust gateway benchmarks, and the launch of Autorouter V2.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="reliability" term="reliability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Opus 5]]></title>
        <id>https://docs.litellm.ai/blog/claude_opus_5</id>
        <link href="https://docs.litellm.ai/blog/claude_opus_5"/>
        <updated>2026-07-24T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Opus 5 on the LiteLLM AI Gateway. Use it across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="opus 5" term="opus 5"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Opus 5" term="card_title:Claude Opus 5"/>
        <category label="card_summary:Much stronger coding agent with self-verification, thinking on by default, $5 / $25 per 1M, 2.5x fast mode at 2x cost." term="card_summary:Much stronger coding agent with self-verification, thinking on by default, $5 / $25 per 1M, 2.5x fast mode at 2x cost."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Benchmarking the LiteLLM Rust AI Gateway: Overhead, Memory, and Cost]]></title>
        <id>https://docs.litellm.ai/blog/rust-ai-gateway-benchmarks</id>
        <link href="https://docs.litellm.ai/blog/rust-ai-gateway-benchmarks"/>
        <updated>2026-07-22T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[AIGatewayBench measures the overhead an AI gateway adds on top of the upstream model, isolated against a deterministic mock, across LiteLLM (Rust), LiteLLM (Python v1), Portkey, and Bifrost. The LiteLLM Rust gateway has the lowest overhead and memory footprint of the four.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="rust" term="rust"/>
        <category label="rust-migration" term="rust-migration"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="performance" term="performance"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Announcing Router Plugins: Customize Routing Signals]]></title>
        <id>https://docs.litellm.ai/blog/router-plugins-on-the-proxy</id>
        <link href="https://docs.litellm.ai/blog/router-plugins-on-the-proxy"/>
        <updated>2026-07-17T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Router plugins are now live on LiteLLM. Configure a plugin pipeline to determine which models to pick for a given input. Plugins can be chained as well]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="plugins" term="plugins"/>
        <category label="proxy" term="proxy"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Auto Router v2: one router for complexity, semantic, and adaptive routing]]></title>
        <id>https://docs.litellm.ai/blog/autorouter-v2</id>
        <link href="https://docs.litellm.ai/blog/autorouter-v2"/>
        <updated>2026-07-13T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Auto Router v2 folds LiteLLM's complexity, semantic, and adaptive routers into a single router with an LLM classifier, keyword tiers, multi-model pools, and adaptive Thompson sampling.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="routing" term="routing"/>
        <category label="complexity-router" term="complexity-router"/>
        <category label="semantic-router" term="semantic-router"/>
        <category label="adaptive" term="adaptive"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Prompt Cache Invalidation for Claude Code on Bedrock Invoke]]></title>
        <id>https://docs.litellm.ai/blog/bedrock-invoke-prompt-caching-incident</id>
        <link href="https://docs.litellm.ai/blog/bedrock-invoke-prompt-caching-incident"/>
        <updated>2026-07-13T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: July 4 to July 10, 2026]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="bedrock" term="bedrock"/>
        <category label="caching" term="caching"/>
        <category label="claude-code" term="claude-code"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[July stability update: hardening MCP auth and cutting pass-through memory]]></title>
        <id>https://docs.litellm.ai/blog/two-week-stability-update</id>
        <link href="https://docs.litellm.ai/blog/two-week-stability-update"/>
        <updated>2026-07-11T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A two-week product quality update. We addressed two major issues (MCP credential resolution and pass-through memory) and shipped 134 bug fixes in total. Plus our next goal: 95% end-to-end test coverage.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Tin Lo</name>
            <uri>https://www.linkedin.com/in/tinchi-lo/</uri>
        </author>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="stability" term="stability"/>
        <category label="mcp" term="mcp"/>
        <category label="performance" term="performance"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[July Townhall: Product + Roadmap Updates]]></title>
        <id>https://docs.litellm.ai/blog/july-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/july-townhall-announcement"/>
        <updated>2026-07-09T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM July townhall on Thursday, 23 July at 7:30 AM PT to learn about LiteLLM's product updates and roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-5.6 (Sol, Terra, Luna)]]></title>
        <id>https://docs.litellm.ai/blog/gpt_5_6</id>
        <link href="https://docs.litellm.ai/blog/gpt_5_6"/>
        <updated>2026-07-09T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for the GPT-5.6 family (Sol, Terra, and Luna) on LiteLLM.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-5.6" term="gpt-5.6"/>
        <category label="gpt-5.6-sol" term="gpt-5.6-sol"/>
        <category label="gpt-5.6-terra" term="gpt-5.6-terra"/>
        <category label="gpt-5.6-luna" term="gpt-5.6-luna"/>
        <category label="completion" term="completion"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-5.6 (Sol, Terra, Luna)" term="card_title:GPT-5.6 (Sol, Terra, Luna)"/>
        <category label="card_summary:The GPT-5.6 family (Sol, Terra, Luna) on OpenAI direct and Azure OpenAI, one config per variant." term="card_summary:The GPT-5.6 family (Sol, Terra, Luna) on OpenAI direct and Azure OpenAI, one config per variant."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[5 ways to cut Claude Code costs with LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/save-claude-code-costs-with-litellm</id>
        <link href="https://docs.litellm.ai/blog/save-claude-code-costs-with-litellm"/>
        <updated>2026-07-04T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Practical levers a platform admin can pull on the LiteLLM proxy to reduce Claude Code spend without asking developers to change a thing.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="claude-code" term="claude-code"/>
        <category label="cost" term="cost"/>
        <category label="budgets" term="budgets"/>
        <category label="headroom" term="headroom"/>
        <category label="mcp" term="mcp"/>
        <category label="prompt-caching" term="prompt-caching"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Sonnet 5]]></title>
        <id>https://docs.litellm.ai/blog/claude_sonnet_5</id>
        <link href="https://docs.litellm.ai/blog/claude_sonnet_5"/>
        <updated>2026-06-30T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Sonnet 5 on the LiteLLM AI Gateway. Use it across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="sonnet 5" term="sonnet 5"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Sonnet 5" term="card_title:Claude Sonnet 5"/>
        <category label="card_summary:Opus-class quality at Sonnet pricing, adaptive thinking only, $2 / $10 per 1M, 1M context." term="card_summary:Opus-class quality at Sonnet pricing, adaptive thinking only, $2 / $10 per 1M, 1M context."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM × Headroom: Use 60-95% fewer tokens with Claude Code]]></title>
        <id>https://docs.litellm.ai/blog/headroom-integration</id>
        <link href="https://docs.litellm.ai/blog/headroom-integration"/>
        <updated>2026-06-30T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Cut input tokens on Claude Code and other LLM traffic by attaching Headroom as a pre_call guardrail on LiteLLM.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="partnership" term="partnership"/>
        <category label="guardrails" term="guardrails"/>
        <category label="context" term="context"/>
        <category label="headroom" term="headroom"/>
        <category label="claude-code" term="claude-code"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[June Townhall Updates: 94 Bug Fixes, OCR + Realtime are in Rust, and a Zero-Regression Commitment]]></title>
        <id>https://docs.litellm.ai/blog/june-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/june-townhall-updates"/>
        <updated>2026-06-26T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A recap of the June LiteLLM town hall covering security hardening, our zero-regression commitment, 78 feature commits, and the gradual migration of the gateway to Rust.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="reliability" term="reliability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Swap OpenAI Code Interpreter for E2B/OpenSandbox]]></title>
        <id>https://docs.litellm.ai/blog/swap_openai_code_interpreter</id>
        <link href="https://docs.litellm.ai/blog/swap_openai_code_interpreter"/>
        <updated>2026-06-23T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Keep the OpenAI code_interpreter tool in your requests, run the code in your own sandbox. LiteLLM intercepts the tool call and routes it to E2B or OpenSandbox; no client changes.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="code interpreter" term="code interpreter"/>
        <category label="sandbox" term="sandbox"/>
        <category label="e2b" term="e2b"/>
        <category label="opensandbox" term="opensandbox"/>
        <category label="agents" term="agents"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Migrating LiteLLM to Rust - Building the Fastest and Litest AI Gateway]]></title>
        <id>https://docs.litellm.ai/blog/litellm-rust-launch</id>
        <link href="https://docs.litellm.ai/blog/litellm-rust-launch"/>
        <updated>2026-06-22T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM is moving its AI gateway to Rust: 15x throughput, 11x less memory, and sub-1ms per-request overhead. No v2, no migration, your config stays the same.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="rust" term="rust"/>
        <category label="rust-migration" term="rust-migration"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="performance" term="performance"/>
        <category label="benchmarks" term="benchmarks"/>
        <category label="reliability" term="reliability"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM version support: focusing on the four most recent stable lines]]></title>
        <id>https://docs.litellm.ai/blog/version-support</id>
        <link href="https://docs.litellm.ai/blog/version-support"/>
        <updated>2026-06-20T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Starting Monday, June 29, 2026, LiteLLM actively supports the four most recent stable minor lines. Older lines reach end of life, and the window rolls forward as new stable lines ship.]]></summary>
        <author>
            <name>Yuneng Jiang</name>
            <uri>https://www.linkedin.com/in/yuneng-david-jiang-455676139/</uri>
        </author>
        <category label="release" term="release"/>
        <category label="support" term="support"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Semantic Caching on Valkey and AWS ElastiCache]]></title>
        <id>https://docs.litellm.ai/blog/valkey_semantic_caching</id>
        <link href="https://docs.litellm.ai/blog/valkey_semantic_caching"/>
        <updated>2026-06-17T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM now supports semantic prompt caching on Valkey clusters running the valkey-search module, including AWS ElastiCache for Valkey, with no RediSearch, Redis Stack, or Qdrant required.]]></summary>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="caching" term="caching"/>
        <category label="valkey" term="valkey"/>
        <category label="elasticache" term="elasticache"/>
        <category label="semantic cache" term="semantic cache"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[June Townhall: Product + Roadmap Updates]]></title>
        <id>https://docs.litellm.ai/blog/june-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/june-townhall-announcement"/>
        <updated>2026-06-16T07:30:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM June townhall on Thursday, 25 June at 7:30 AM PST to learn about LiteLLM's product updates and roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[June Stability Update: We're Making Stability a First-Class Citizen at LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/stability</id>
        <link href="https://docs.litellm.ai/blog/stability"/>
        <updated>2026-06-15T10:00:00.000Z</updated>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Varoon Raghav</name>
            <uri>https://www.linkedin.com/in/varoon-raghav/</uri>
        </author>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Fable 5]]></title>
        <id>https://docs.litellm.ai/blog/claude_fable_5</id>
        <link href="https://docs.litellm.ai/blog/claude_fable_5"/>
        <updated>2026-06-10T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Fable 5 on the LiteLLM AI Gateway. Use it across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="fable 5" term="fable 5"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Fable 5" term="card_title:Claude Fable 5"/>
        <category label="card_summary:Anthropic's new frontier model: 1M context, adaptive thinking only, $10 / $50 per 1M, Opus 4.8 fallback when flagged." term="card_summary:Anthropic's new frontier model: 1M context, adaptive thinking only, $10 / $50 per 1M, Opus 4.8 fallback when flagged."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[A Unified Agent Control Plane]]></title>
        <id>https://docs.litellm.ai/blog/agents-are-the-new-llms</id>
        <link href="https://docs.litellm.ai/blog/agents-are-the-new-llms"/>
        <updated>2026-06-10T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[The AI Gateway is moving up the stack: from routing model calls to routing agent work.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="ideas" term="ideas"/>
        <category label="harnesses" term="harnesses"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="agents" term="agents"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Announcing LiteLLM x Microsoft ASSERT]]></title>
        <id>https://docs.litellm.ai/blog/litellm-microsoft-assert</id>
        <link href="https://docs.litellm.ai/blog/litellm-microsoft-assert"/>
        <updated>2026-06-03T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM now integrates with Microsoft ASSERT for policy-driven agent evaluation — catch safety and quality defects before they reach production.]]></summary>
        <author>
            <name>Mubashir Osmani</name>
            <uri>https://www.linkedin.com/in/mubashirosmani</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM Labs: Announcing Lite-Harness SDK — Unified API for Claude Code, Codex, and Pi AI]]></title>
        <id>https://docs.litellm.ai/blog/lite-harness-sdk</id>
        <link href="https://docs.litellm.ai/blog/lite-harness-sdk"/>
        <updated>2026-06-02T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[One SDK. Swap between Claude Code, Codex, and Pi AI by changing a string. Pairs with the LiteLLM AI Gateway for keys, budgets, logs, and fallbacks.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="litellm-labs" term="litellm-labs"/>
        <category label="product" term="product"/>
        <category label="agents" term="agents"/>
        <category label="sdk" term="sdk"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Fixed in 1.84.0+ - Version Update: Authentication Bypass via Host Header Injection (GHSA-4xpc-pv4p-pm3w)]]></title>
        <id>https://docs.litellm.ai/blog/host-header-auth-bypass</id>
        <link href="https://docs.litellm.ai/blog/host-header-auth-bypass"/>
        <updated>2026-06-01T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Disclosure of a Host-header authentication bypass in the LiteLLM proxy. Addressed in v1.84.0. Very limited deployments are potentially affected, and no LiteLLM Cloud customers were affected.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Yuneng Jiang</name>
            <uri>https://www.linkedin.com/in/yuneng-david-jiang-455676139/</uri>
        </author>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Opus 4.8]]></title>
        <id>https://docs.litellm.ai/blog/claude_opus_4_8</id>
        <link href="https://docs.litellm.ai/blog/claude_opus_4_8"/>
        <updated>2026-05-28T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Opus 4.8 on the LiteLLM AI Gateway. Use it across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="opus 4.8" term="opus 4.8"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:Claude Opus 4.8" term="card_title:Claude Opus 4.8"/>
        <category label="card_summary:4x less likely to let its own code flaws pass, effort ladder low to max, mid-task system messages, same price as 4.7." term="card_summary:4x less likely to let its own code flaws pass, effort ladder low to max, mid-task system messages, same price as 4.7."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[How we built a background agent to cover 30% of our backlog]]></title>
        <id>https://docs.litellm.ai/blog/lap-internal-agent-30-percent</id>
        <link href="https://docs.litellm.ai/blog/lap-internal-agent-30-percent"/>
        <updated>2026-05-27T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[How we built a background agent on the LiteLLM AI Gateway that merges PRs with no human in the loop (the infra, harness, and credential-scoping calls behind it).]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="agents" term="agents"/>
        <category label="ai-gateway" term="ai-gateway"/>
        <category label="lap" term="lap"/>
        <category label="lite-harness" term="lite-harness"/>
        <category label="engineering" term="engineering"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[May Townhall Updates: Security Hardening, Release Versioning, and the Agent Platform]]></title>
        <id>https://docs.litellm.ai/blog/may-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/may-townhall-updates"/>
        <updated>2026-05-26T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A recap of the May LiteLLM town hall covering 89 security fixes, new release versioning, MCP toolsets, performance wins, and the LiteLLM Agent Platform.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="performance" term="performance"/>
        <category label="product" term="product"/>
        <category label="agents" term="agents"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[DAY 0 Support: Gemini 3.5 Flash on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_5_flash</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_5_flash"/>
        <updated>2026-05-19T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Guide to using Gemini 3.5 Flash on LiteLLM Proxy and SDK with day 0 support.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Gemini 3.5 Flash" term="card_title:Gemini 3.5 Flash"/>
        <category label="card_summary:Gemini Flash with thinking levels, strict function-call IDs and thought signatures, cost tracking on any version." term="card_summary:Gemini Flash with thinking levels, strict function-call IDs and thought signatures, cost tracking on any version."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Google AI Studio Managed Agents on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/google-ai-studio-managed-agents</id>
        <link href="https://docs.litellm.ai/blog/google-ai-studio-managed-agents"/>
        <updated>2026-05-19T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM now supports the Google AI Studio Managed Agents API. Create, manage, and run custom agents through LiteLLM.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="managed-agents" term="managed-agents"/>
        <category label="interactions" term="interactions"/>
        <category label="google-ai-studio" term="google-ai-studio"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[May Townhall: Product + Roadmap Updates]]></title>
        <id>https://docs.litellm.ai/blog/may-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/may-townhall-announcement"/>
        <updated>2026-05-19T07:30:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM May townhall on Tuesday, 19 May at 7:30 AM PST to learn about LiteLLM's product updates and roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Announcing Componentized Deployments]]></title>
        <id>https://docs.litellm.ai/blog/componentized-deployment</id>
        <link href="https://docs.litellm.ai/blog/componentized-deployment"/>
        <updated>2026-05-18T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[How LiteLLM's componentized deployment isolates the management/UI control plane from the LLM data plane, improving reliability at scale.]]></summary>
        <author>
            <name>Yassin Kortam</name>
            <uri>https://www.linkedin.com/in/yassink/</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="reliability" term="reliability"/>
        <category label="kubernetes" term="kubernetes"/>
        <category label="scaling" term="scaling"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Security Update: Mistral AI PyPI Supply Chain Attack — LiteLLM Not Impacted]]></title>
        <id>https://docs.litellm.ai/blog/mistral-supply-chain-attack-may-2026</id>
        <link href="https://docs.litellm.ai/blog/mistral-supply-chain-attack-may-2026"/>
        <updated>2026-05-12T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[On May 11, 2026, a malicious version of the mistralai PyPI package was published as part of a coordinated supply chain attack. LiteLLM is not affected — we call Mistral exclusively via httpx, never by importing the mistralai SDK.]]></summary>
        <author>
            <name>Mubashir Osmani</name>
            <uri>https://www.linkedin.com/in/mubashirosmani</uri>
        </author>
        <category label="security" term="security"/>
        <category label="supply-chain" term="supply-chain"/>
        <category label="mistral" term="mistral"/>
        <category label="incident-report" term="incident-report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM Managed Agents Platform — Alpha Now Open for Public Preview]]></title>
        <id>https://docs.litellm.ai/blog/agent-platform-alpha</id>
        <link href="https://docs.litellm.ai/blog/agent-platform-alpha"/>
        <updated>2026-05-08T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Spawn sandboxed agent sessions on the LiteLLM Gateway — a control plane for managed agents, now in public preview.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="product" term="product"/>
        <category label="agents" term="agents"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Security Update: CVE-2026-42208 in LiteLLM Proxy]]></title>
        <id>https://docs.litellm.ai/blog/cve-2026-42208-litellm-proxy-sql-injection</id>
        <link href="https://docs.litellm.ai/blog/cve-2026-42208-litellm-proxy-sql-injection"/>
        <updated>2026-04-29T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[CVE-2026-42208 (SQL injection in LiteLLM Proxy's API key verification path) is fixed. Upgrade to v1.83.10-stable.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Prisma DB Reconnect Blocks the Event Loop and Kills Liveliness]]></title>
        <id>https://docs.litellm.ai/blog/prisma-reconnect-blocking-incident</id>
        <link href="https://docs.litellm.ai/blog/prisma-reconnect-blocking-incident"/>
        <updated>2026-04-29T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: April 2026]]></summary>
        <author>
            <name>Yuneng Jiang</name>
            <uri>https://www.linkedin.com/in/yuneng-david-jiang-455676139/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="database" term="database"/>
        <category label="prisma" term="prisma"/>
        <category label="reliability" term="reliability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM release versioning is changing: standard names, MINOR for weekly, PATCH for hotfixes]]></title>
        <id>https://docs.litellm.ai/blog/cleaner-release-versions</id>
        <link href="https://docs.litellm.ai/blog/cleaner-release-versions"/>
        <updated>2026-04-28T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[Dropping `-stable` and `-nightly` suffixes. Weekly releases bump MINOR; PATCH is now reserved for actual hotfixes. Old releases keep their tags forever; new ones start with `1.84.0`.]]></summary>
        <author>
            <name>Yuneng Jiang</name>
            <uri>https://www.linkedin.com/in/yuneng-david-jiang-455676139/</uri>
        </author>
        <category label="release" term="release"/>
        <category label="packaging" term="packaging"/>
        <category label="docker" term="docker"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Gemini Embedding 2 (GA): Multimodal Embeddings on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_embedding_2_ga</id>
        <link href="https://docs.litellm.ai/blog/gemini_embedding_2_ga"/>
        <updated>2026-04-24T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use generally available gemini-embedding-2 for multimodal embeddings on LiteLLM via Gemini API and Vertex AI—the same flows as preview, stable model id.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="embeddings" term="embeddings"/>
        <category label="multimodal" term="multimodal"/>
        <category label="vertex ai" term="vertex ai"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-5.5 and GPT-5.5 Pro]]></title>
        <id>https://docs.litellm.ai/blog/gpt_5_5</id>
        <link href="https://docs.litellm.ai/blog/gpt_5_5"/>
        <updated>2026-04-24T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for GPT-5.5 and GPT-5.5 Pro on LiteLLM.]]></summary>
        <author>
            <name>Mateo Wang</name>
            <uri>https://www.linkedin.com/in/mateo-wang</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-5.5" term="gpt-5.5"/>
        <category label="gpt-5.5-pro" term="gpt-5.5-pro"/>
        <category label="completion" term="completion"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-5.5 and GPT-5.5 Pro" term="card_title:GPT-5.5 and GPT-5.5 Pro"/>
        <category label="card_summary:GPT-5.5 and GPT-5.5 Pro on the existing GPT-5 config, so any recent LiteLLM version works out of the box." term="card_summary:GPT-5.5 and GPT-5.5 Pro on the existing GPT-5 config, so any recent LiteLLM version works out of the box."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Security Update: CVE-2026-30623 — Command Injection via Anthropic's MCP SDK]]></title>
        <id>https://docs.litellm.ai/blog/mcp-stdio-command-injection-april-2026</id>
        <link href="https://docs.litellm.ai/blog/mcp-stdio-command-injection-april-2026"/>
        <updated>2026-04-21T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[CVE-2026-30623 (authenticated RCE via MCP stdio transport) is fixed. Upgrade to v1.83.6-nightly or v1.83.7-stable or later.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM × Akto: Model-Based Detection Alongside Built-in Guardrails]]></title>
        <id>https://docs.litellm.ai/blog/akto-partnership</id>
        <link href="https://docs.litellm.ai/blog/akto-partnership"/>
        <updated>2026-04-21T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Chain Akto's model-based detection with LiteLLM's built-in guardrails — catch PII, prompt injection, and policy violations that pattern-based checks miss.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="partnership" term="partnership"/>
        <category label="guardrails" term="guardrails"/>
        <category label="akto" term="akto"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Opus 4.7]]></title>
        <id>https://docs.litellm.ai/blog/claude_opus_4_7</id>
        <link href="https://docs.litellm.ai/blog/claude_opus_4_7"/>
        <updated>2026-04-16T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Opus 4.7 on LiteLLM AI Gateway - use across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="opus 4.7" term="opus 4.7"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Making the AI Gateway Resilient to Redis Failures]]></title>
        <id>https://docs.litellm.ai/blog/redis-circuit-breaker</id>
        <link href="https://docs.litellm.ai/blog/redis-circuit-breaker"/>
        <updated>2026-04-11T09:00:00.000Z</updated>
        <summary type="html"><![CDATA[How LiteLLM's production AI Gateway handles Redis degradation at scale without cascading failures — circuit breaker pattern, 0ms fast-fail, automatic recovery.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="reliability" term="reliability"/>
        <category label="redis" term="redis"/>
        <category label="infrastructure" term="infrastructure"/>
        <category label="engineering" term="engineering"/>
        <category label="ai-gateway" term="ai-gateway"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[April Townhall Updates: CI/CD v2, Stability, and Product Roadmap]]></title>
        <id>https://docs.litellm.ai/blog/april-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/april-townhall-updates"/>
        <updated>2026-04-10T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[A recap of the April LiteLLM town hall covering CI/CD v2, product stability work, and the near-term roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="townhall" term="townhall"/>
        <category label="reliability" term="reliability"/>
        <category label="product" term="product"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Security Update: Vulnerability Disclosures and Ongoing Hardening]]></title>
        <id>https://docs.litellm.ai/blog/security-hardening-april-2026</id>
        <link href="https://docs.litellm.ai/blog/security-hardening-april-2026"/>
        <updated>2026-04-03T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[Disclosure of security vulnerabilities fixed in LiteLLM v1.83.0, and the launch of our bug bounty program.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[April Townhall: Security + Product Roadmap]]></title>
        <id>https://docs.litellm.ai/blog/april-townhall-announcement</id>
        <link href="https://docs.litellm.ai/blog/april-townhall-announcement"/>
        <updated>2026-04-02T07:30:00.000Z</updated>
        <summary type="html"><![CDATA[Join the LiteLLM April townhall on Friday, 10 April at 7:30 AM to learn about LiteLLM's security and product roadmap.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="announcement" term="announcement"/>
        <category label="townhall" term="townhall"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Announcing CI/CD v2 for LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/ci-cd-v2-improvements</id>
        <link href="https://docs.litellm.ai/blog/ci-cd-v2-improvements"/>
        <updated>2026-03-30T21:30:00.000Z</updated>
        <summary type="html"><![CDATA[CI/CD v2 introduces isolated environments, stronger security gates, and safer release separation for LiteLLM.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="engineering" term="engineering"/>
        <category label="ci-cd" term="ci-cd"/>
        <category label="security" term="security"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[LiteLLM + Vanta: SOC 2 Type 2 and ISO 27001 Recertification]]></title>
        <id>https://docs.litellm.ai/blog/vanta-compliance-recertification</id>
        <link href="https://docs.litellm.ai/blog/vanta-compliance-recertification"/>
        <updated>2026-03-30T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM is partnering with Vanta on SOC 2 Type 2 and ISO 27001 recertification and engaging independent auditors for verification.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="security" term="security"/>
        <category label="compliance" term="compliance"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Security Townhall Updates]]></title>
        <id>https://docs.litellm.ai/blog/security-townhall-updates</id>
        <link href="https://docs.litellm.ai/blog/security-townhall-updates"/>
        <updated>2026-03-27T12:00:00.000Z</updated>
        <summary type="html"><![CDATA[What happened, what we've done, and what comes next for LiteLLM's release and security processes.]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
        <category label="incident-report" term="incident-report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Security Update: Suspected Supply Chain Incident]]></title>
        <id>https://docs.litellm.ai/blog/security-update-march-2026</id>
        <link href="https://docs.litellm.ai/blog/security-update-march-2026"/>
        <updated>2026-03-24T14:00:00.000Z</updated>
        <summary type="html"><![CDATA[As of 2:00 PM ET on March 24, 2026]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="security" term="security"/>
        <category label="incident-report" term="incident-report"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Guardrail logging exposed secret headers in spend logs and traces]]></title>
        <id>https://docs.litellm.ai/blog/guardrail-logging-secret-exposure-incident</id>
        <link href="https://docs.litellm.ai/blog/guardrail-logging-secret-exposure-incident"/>
        <updated>2026-03-18T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: March 18, 2026]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="security" term="security"/>
        <category label="guardrails" term="guardrails"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-5.4-mini and GPT-5.4-nano]]></title>
        <id>https://docs.litellm.ai/blog/gpt_5_4_mini_nano</id>
        <link href="https://docs.litellm.ai/blog/gpt_5_4_mini_nano"/>
        <updated>2026-03-17T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[GPT-5.4-mini and GPT-5.4-nano model support in LiteLLM]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-5.4-mini" term="gpt-5.4-mini"/>
        <category label="gpt-5.4-nano" term="gpt-5.4-nano"/>
        <category label="completion" term="completion"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[New Video Characters, Edit and Extension API support]]></title>
        <id>https://docs.litellm.ai/blog/video_characters_api</id>
        <link href="https://docs.litellm.ai/blog/video_characters_api"/>
        <updated>2026-03-16T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[LiteLLM now supports creating, retrieving, and managing reusable video characters across multiple video generations.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="videos" term="videos"/>
        <category label="characters" term="characters"/>
        <category label="proxy" term="proxy"/>
        <category label="routing" term="routing"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Realtime WebRTC HTTP Endpoints]]></title>
        <id>https://docs.litellm.ai/blog/realtime_webrtc_http_endpoints</id>
        <link href="https://docs.litellm.ai/blog/realtime_webrtc_http_endpoints"/>
        <updated>2026-03-12T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Use the LiteLLM proxy to route OpenAI-style WebRTC realtime via HTTP: client_secrets and SDP exchange.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="realtime" term="realtime"/>
        <category label="webrtc" term="webrtc"/>
        <category label="proxy" term="proxy"/>
        <category label="openai" term="openai"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-5.4]]></title>
        <id>https://docs.litellm.ai/blog/gpt_5_4</id>
        <link href="https://docs.litellm.ai/blog/gpt_5_4"/>
        <updated>2026-03-05T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[GPT-5.4 model support in LiteLLM]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-5.4" term="gpt-5.4"/>
        <category label="completion" term="completion"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[DAY 0 Support: Gemini 3.1 Flash Lite Preview on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_1_flash_lite_preview</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_1_flash_lite_preview"/>
        <updated>2026-03-03T08:00:00.000Z</updated>
        <summary type="html"><![CDATA[Guide to using Gemini 3.1 Flash Lite Preview on LiteLLM Proxy and SDK with day 0 support.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="supernova" term="supernova"/>
        <category label="card_title:Gemini 3.1 Flash Lite Preview" term="card_title:Gemini 3.1 Flash Lite Preview"/>
        <category label="card_summary:Lightest Gemini 3.1 with four thinking levels, MINIMAL to HIGH, for ultra-fast to deep reasoning." term="card_summary:Lightest Gemini 3.1 with four thinking levels, MINIMAL to HIGH, for ultra-fast to deep reasoning."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Cache Eviction Closes In-Use httpx Clients]]></title>
        <id>https://docs.litellm.ai/blog/httpx-cache-eviction-incident</id>
        <link href="https://docs.litellm.ai/blog/httpx-cache-eviction-incident"/>
        <updated>2026-02-27T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: February 27, 2026]]></summary>
        <author>
            <name>Ryan Crabbe</name>
            <uri>https://www.linkedin.com/in/ryan-crabbe-0b9687214</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="caching" term="caching"/>
        <category label="stability" term="stability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: GPT-5.3-Codex]]></title>
        <id>https://docs.litellm.ai/blog/gpt_5_3_codex</id>
        <link href="https://docs.litellm.ai/blog/gpt_5_3_codex"/>
        <updated>2026-02-24T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for GPT-5.3-Codex on LiteLLM, including phase parameter handling for Responses API.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="openai" term="openai"/>
        <category label="gpt-5.3-codex" term="gpt-5.3-codex"/>
        <category label="codex" term="codex"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="card_title:GPT-5.3-Codex" term="card_title:GPT-5.3-Codex"/>
        <category label="card_summary:Codex model whose assistant items carry a phase field (commentary, final_answer) you must echo back each turn." term="card_summary:Codex model whose assistant items carry a phase field (commentary, final_answer) you must echo back each turn."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Encrypted Content Failures in Multi-Region Responses API Load Balancing]]></title>
        <id>https://docs.litellm.ai/blog/responses-api-encrypted-content-incident</id>
        <link href="https://docs.litellm.ai/blog/responses-api-encrypted-content-incident"/>
        <updated>2026-02-24T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: Feb 24, 2026]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="proxy" term="proxy"/>
        <category label="responses-api" term="responses-api"/>
        <category label="load-balancing" term="load-balancing"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Wildcard Blocking New Models After Cost Map Reload]]></title>
        <id>https://docs.litellm.ai/blog/anthropic-wildcard-model-access-incident</id>
        <link href="https://docs.litellm.ai/blog/anthropic-wildcard-model-access-incident"/>
        <updated>2026-02-23T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: Feb 23, 2026]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="proxy" term="proxy"/>
        <category label="auth" term="auth"/>
        <category label="model-access" term="model-access"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: SERVER_ROOT_PATH regression broke UI routing]]></title>
        <id>https://docs.litellm.ai/blog/server-root-path-incident</id>
        <link href="https://docs.litellm.ai/blog/server-root-path-incident"/>
        <updated>2026-02-21T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: January 22, 2026]]></summary>
        <author>
            <name>Yuneng Jiang</name>
            <uri>https://www.linkedin.com/in/yuneng-david-jiang-455676139/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="ui" term="ui"/>
        <category label="stability" term="stability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[DAY 0 Support: Gemini 3.1 Pro on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_1_pro</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_1_pro"/>
        <updated>2026-02-19T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Guide to using Gemini 3.1 Pro on LiteLLM Proxy and SDK with day 0 support.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Gemini 3.1 Pro" term="card_title:Gemini 3.1 Pro"/>
        <category label="card_summary:Gemini 3.1 Pro adds MINIMAL and MEDIUM thinking levels, mapped from reasoning_effort by LiteLLM." term="card_summary:Gemini 3.1 Pro adds MINIMAL and MEDIUM thinking levels, mapped from reasoning_effort by LiteLLM."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: vLLM Embeddings Broken by encoding_format Parameter]]></title>
        <id>https://docs.litellm.ai/blog/vllm-embeddings-incident</id>
        <link href="https://docs.litellm.ai/blog/vllm-embeddings-incident"/>
        <updated>2026-02-18T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: Feb 16, 2026]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="embeddings" term="embeddings"/>
        <category label="vllm" term="vllm"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Sonnet 4.6]]></title>
        <id>https://docs.litellm.ai/blog/claude_sonnet_4_6</id>
        <link href="https://docs.litellm.ai/blog/claude_sonnet_4_6"/>
        <updated>2026-02-17T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Sonnet 4.6 on LiteLLM AI Gateway - use across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="sonnet 4.6" term="sonnet 4.6"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Invalid beta headers with Claude Code]]></title>
        <id>https://docs.litellm.ai/blog/claude-code-beta-headers-incident</id>
        <link href="https://docs.litellm.ai/blog/claude-code-beta-headers-incident"/>
        <updated>2026-02-16T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: February 13, 2026]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="anthropic" term="anthropic"/>
        <category label="stability" term="stability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: MiniMax-M2.5]]></title>
        <id>https://docs.litellm.ai/blog/minimax_m2_5</id>
        <link href="https://docs.litellm.ai/blog/minimax_m2_5"/>
        <updated>2026-02-12T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for MiniMax-M2.5 on LiteLLM]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="minimax" term="minimax"/>
        <category label="M2.5" term="M2.5"/>
        <category label="llm" term="llm"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Incident Report: Invalid model cost map on main]]></title>
        <id>https://docs.litellm.ai/blog/model-cost-map-incident</id>
        <link href="https://docs.litellm.ai/blog/model-cost-map-incident"/>
        <updated>2026-02-10T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Date: January 27, 2026]]></summary>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="incident-report" term="incident-report"/>
        <category label="stability" term="stability"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Your Middleware Could Be a Bottleneck]]></title>
        <id>https://docs.litellm.ai/blog/fastapi-middleware-performance</id>
        <link href="https://docs.litellm.ai/blog/fastapi-middleware-performance"/>
        <updated>2026-02-07T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[How we improved LiteLLM proxy latency and throughput by replacing a single middleware base class]]></summary>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Ryan Crabbe</name>
            <uri>https://www.linkedin.com/in/ryan-crabbe-0b9687214</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="fastapi" term="fastapi"/>
        <category label="middleware" term="middleware"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Improve release stability with 24 hour load tests]]></title>
        <id>https://docs.litellm.ai/blog/litellm-observatory</id>
        <link href="https://docs.litellm.ai/blog/litellm-observatory"/>
        <updated>2026-02-06T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[How we built a long-running, release-validation system to catch regressions before they reach users.]]></summary>
        <author>
            <name>Alexsander Hamir</name>
            <uri>https://www.linkedin.com/in/alexsander-baptista/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="testing" term="testing"/>
        <category label="observability" term="observability"/>
        <category label="reliability" term="reliability"/>
        <category label="releases" term="releases"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude Opus 4.6]]></title>
        <id>https://docs.litellm.ai/blog/claude_opus_4_6</id>
        <link href="https://docs.litellm.ai/blog/claude_opus_4_6"/>
        <updated>2026-02-05T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Day 0 support for Claude Opus 4.6 on LiteLLM AI Gateway - use across Anthropic, Azure, Vertex AI, and Bedrock.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="opus 4.6" term="opus 4.6"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Achieving Sub-Millisecond Proxy Overhead]]></title>
        <id>https://docs.litellm.ai/blog/sub-millisecond-proxy-overhead</id>
        <link href="https://docs.litellm.ai/blog/sub-millisecond-proxy-overhead"/>
        <updated>2026-02-02T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Our Q1 performance target and architectural direction for achieving sub-millisecond proxy overhead on modest hardware.]]></summary>
        <author>
            <name>Alexsander Hamir</name>
            <uri>https://www.linkedin.com/in/alexsander-baptista/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="performance" term="performance"/>
        <category label="architecture" term="architecture"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[DAY 0 Support: Gemini 3 Flash on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3_flash</id>
        <link href="https://docs.litellm.ai/blog/gemini_3_flash"/>
        <updated>2025-12-17T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Guide to using Gemini 3 Flash on LiteLLM Proxy and SDK with day 0 support.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Gemini 3 Flash" term="card_title:Gemini 3 Flash"/>
        <category label="card_summary:Gemini 3 Flash preview with thinking levels, on /chat/completions, /responses and /messages." term="card_summary:Gemini 3 Flash preview with thinking levels, on /chat/completions, /responses and /messages."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Day 0 Support: Claude 4.5 Opus (+Advanced Features)]]></title>
        <id>https://docs.litellm.ai/blog/anthropic_advanced_features</id>
        <link href="https://docs.litellm.ai/blog/anthropic_advanced_features"/>
        <updated>2025-11-25T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Guide to Claude Opus 4.5 and advanced features in LiteLLM: Tool Search, Programmatic Tool Calling, and Effort Parameter.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="anthropic" term="anthropic"/>
        <category label="claude" term="claude"/>
        <category label="tool search" term="tool search"/>
        <category label="programmatic tool calling" term="programmatic tool calling"/>
        <category label="effort" term="effort"/>
        <category label="advanced features" term="advanced features"/>
    </entry>
    <entry>
        <title type="html"><![CDATA[DAY 0 Support: Gemini 3 on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_3</id>
        <link href="https://docs.litellm.ai/blog/gemini_3"/>
        <updated>2025-11-19T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Common questions and best practices for using gemini-3-pro-preview with LiteLLM Proxy and SDK.]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <author>
            <name>Krrish Dholakia</name>
            <uri>https://www.linkedin.com/in/krish-d/</uri>
        </author>
        <author>
            <name>Ishaan Jaffer</name>
            <uri>https://www.linkedin.com/in/reffajnaahsi/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="day 0 support" term="day 0 support"/>
        <category label="llms" term="llms"/>
        <category label="card_title:Gemini 3" term="card_title:Gemini 3"/>
        <category label="card_summary:gemini-3-pro-preview on the proxy and SDK, with thought signatures and the new thinking controls." term="card_summary:gemini-3-pro-preview on the proxy and SDK, with thought signatures and the new thinking controls."/>
    </entry>
    <entry>
        <title type="html"><![CDATA[Gemini Embedding 2 Preview: Multimodal Embeddings on LiteLLM]]></title>
        <id>https://docs.litellm.ai/blog/gemini_embedding_2_multimodal</id>
        <link href="https://docs.litellm.ai/blog/gemini_embedding_2_multimodal"/>
        <updated>2025-03-11T10:00:00.000Z</updated>
        <summary type="html"><![CDATA[Generate embeddings from text, images, audio, video, and PDFs with gemini-embedding-2-preview on LiteLLM via Gemini API (one vector per input, OpenAI-compatible) and Vertex AI (single unified vector per request).]]></summary>
        <author>
            <name>Sameer Kankute</name>
            <uri>https://www.linkedin.com/in/sameer-kankute/</uri>
        </author>
        <category label="gemini" term="gemini"/>
        <category label="embeddings" term="embeddings"/>
        <category label="multimodal" term="multimodal"/>
        <category label="vertex ai" term="vertex ai"/>
    </entry>
</feed>