<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>litellm &#8211; iAIFeed</title>
	<atom:link href="https://www.iaifeed.com/tag/litellm/feed" rel="self" type="application/rss+xml" />
	<link>https://www.iaifeed.com</link>
	<description>iAIFeed</description>
	<lastBuildDate>Wed, 07 Oct 2026 12:43:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://www.iaifeed.com/wp-content/uploads/2026/07/cropped-iaifeed1-80x80.png</url>
	<title>litellm &#8211; iAIFeed</title>
	<link>https://www.iaifeed.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Track LLM Costs Across Providers with LiteLLM</title>
		<link>https://www.iaifeed.com/how-to-track-llm-costs-across-providers-with-litellm</link>
					<comments>https://www.iaifeed.com/how-to-track-llm-costs-across-providers-with-litellm#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Wed, 07 Oct 2026 12:43:07 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[litellm]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-track-llm-costs-across-providers-with-litellm</guid>

					<description><![CDATA[One team, five providers, one mystery invoice. LiteLLM's virtual keys, budgets and logging turn scattered LLM spend into a number you can actually control. Here is the setup.]]></description>
										<content:encoded><![CDATA[<p>When several apps and teammates hit different LLM providers, the bill becomes guesswork. <a href="https://www.iaifeed.com/ai-tool/litellm">LiteLLM</a> solves that by routing everything through one proxy that meters spend per key. You get a single place to see who spent what, and you can cap it before the invoice surprises you.</p>
<p>This builds on the basic LiteLLM proxy setup. Start there if you have not run <code>litellm --config config.yaml</code> yet — here we focus on the accounting layer.</p>
<h2>How do LiteLLM virtual keys work?</h2>
<p>A virtual key is a scoped token you hand to an app or a person. It maps to one or more models, carries its own spend limit, and can expire. Requests made with that key are attributed to it, so usage reports break down by key rather than by a shared provider account.</p>
<h2>How do you set a budget?</h2>
<ol>
<li>Enable the database so LiteLLM can persist spend (Postgres).</li>
<li>Create a key with <code>max_budget</code> — say $50 per month.</li>
<li>Optionally set <code>budget_duration: 30d</code> so the cap resets monthly.</li>
<li>Set a <code>rpm_limit</code> and <code>tpm_limit</code> to stop runaway loops.</li>
<li>Hand the key to the app; let LiteLLM enforce the ceiling.</li>
</ol>
<p>When a key hits its limit, requests fail until the window resets — a hard stop that protects the wallet.</p>
<h2>How do you attribute spend to teams or projects?</h2>
<p>Use tags and teams. Tag a group of keys by project, or create a team with a shared budget and issue child keys. Reports then roll up by tag or team, which is what finance asks for. Without tagging, you get totals but no ownership.</p>
<h2>Which logging destinations are supported?</h2>
<p>LiteLLM can export usage to Langfuse, Helicone, Prometheus, or a plain database, and it exposes an admin UI that shows recent spend. Pick one destination and stick to it rather than duplicating logs in several tools.</p>
<h2>What are the real limits?</h2>
<p>The cost estimates depend on per-model pricing tables; a brand-new model may be priced wrong until LiteLLM updates its list. Self-hosting means you also run Postgres and keep it backed up. And a budget stops spend, not bad prompts — it will not tell you that a loop is burning tokens for no output, only that the key is out of money.</p>
<h2>Key Takeaways</h2>
<ul>
<li>Virtual keys attribute LLM spend to a specific app or person.</li>
<li>Set <code>max_budget</code> and <code>budget_duration</code> to cap monthly spend.</li>
<li>Use tags or teams to roll costs up by project.</li>
<li>Logs export to Langfuse, Helicone or Prometheus.</li>
<li>Budget enforcement needs the Postgres database enabled.</li>
</ul>
<p>Last updated October 2026. More on the <a href="https://www.iaifeed.com/ai-tool/litellm">LiteLLM</a> page.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-track-llm-costs-across-providers-with-litellm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Set Up LiteLLM Proxy for 100+ LLM APIs</title>
		<link>https://www.iaifeed.com/how-to-set-up-litellm-proxy-for-100-llm-apis</link>
					<comments>https://www.iaifeed.com/how-to-set-up-litellm-proxy-for-100-llm-apis#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Wed, 07 Oct 2026 12:42:53 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[litellm]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-set-up-litellm-proxy-for-100-llm-apis</guid>

					<description><![CDATA[LiteLLM is an open-source proxy that puts one OpenAI-compatible API in front of 100+ models. Here is how to install it, add keys, and call any model with one endpoint.]]></description>
										<content:encoded><![CDATA[<p>LiteLLM is an open-source library and proxy server that gives you one OpenAI-compatible endpoint for over 100 LLM APIs — OpenAI, Anthropic, Gemini, Mistral, Cohere and local models. Instead of rewriting code when you switch providers, you change a config line. The proxy mode also adds budgets, rate limits and logging across keys.</p>
<p>The Python package is free, and the self-hosted proxy is free. Only the hosted enterprise tier is paid. For most developers, <a href="https://www.iaifeed.com/ai-tool/litellm">LiteLLM</a> is the layer that stops provider lock-in.</p>
<h2>What is LiteLLM?</h2>
<p>LiteLLM is a unified interface for calling LLMs. In library mode you import it and call <code>completion()</code> with a model string like <code>anthropic/claude-3-5-sonnet</code>. In proxy mode you run a server that speaks the OpenAI API and routes each request to the right provider.</p>
<h2>How do you install the LiteLLM proxy?</h2>
<ol>
<li><code>pip install 'litellm[proxy]'</code></li>
<li>Create a <code>config.yaml</code> with your models and API keys.</li>
<li>Start it: <code>litellm --config config.yaml --port 4000</code></li>
<li>Point your app at <code>http://localhost:4000</code> instead of a provider URL.</li>
<li>Call it with any OpenAI client, setting the model to your configured alias.</li>
</ol>
<p>Because the interface matches OpenAI, existing SDKs work without changes.</p>
<h2>How do you define models and keys?</h2>
<p>Each entry in <code>config.yaml</code> has a model name, the underlying provider model, and the credentials. You can set a fallback list so a failed model rolls over to another provider automatically. Virtual keys let you mint scoped tokens for teams, each with its own budget and rate limit.</p>
<h2>What do budgets and logging give you?</h2>
<p>The proxy tracks spend per key and can hard-stop a key when it hits its limit — useful when many services share one provider account. It logs every request and can push usage to tools like Langfuse, Helicone or Prometheus. That visibility is the main reason teams run the proxy instead of the bare library.</p>
<h2>When should you use the library instead?</h2>
<p>If you have a single app and no need for shared budgets, importing the library is simpler — no server to run. Use the proxy when multiple apps or teammates share providers, or when you want centralized logging and failover. Running the proxy for one script is overkill.</p>
<h2>Key Takeaways</h2>
<ul>
<li>LiteLLM gives one OpenAI-compatible endpoint for 100+ LLM providers.</li>
<li>The library and self-hosted proxy are free; only enterprise hosting is paid.</li>
<li>Install with <code>pip install 'litellm[proxy]'</code> and run on port 4000.</li>
<li>Config supports fallbacks, virtual keys, budgets and rate limits.</li>
<li>Use the library for single apps, the proxy for shared/multi-service setups.</li>
</ul>
<p>Last updated October 2026. Specs at <a href="https://www.iaifeed.com/ai-tool/litellm">LiteLLM</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-set-up-litellm-proxy-for-100-llm-apis/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
