LiteLLM
Connect your own LiteLLM proxy, with prices from models.dev or typed by you, and the cost LiteLLM billed for each call.
A LiteLLM proxy that you run, in front of the models you choose. The Hub talks to it over the OpenAI chat API.
Set it up#
- Start your proxy. It listens on
http://127.0.0.1:4000unless you changed it. - In Settings → Model Hub → Providers, select the LiteLLM tile.
- Check Server address and paste the proxy's key into API key, if it asks for one. The key is kept in the keychain as
model-hub-litellm. - In Models, list the model names your proxy serves, separated by commas, or leave it empty to use the list the proxy gives.
- Select Test.
Models and prices#
Prices are found in this order:
- A price you typed for the model. The dialog has no price field yet; a price goes in the model's
pricingentry in the plugin'sdata.json. - models.dev, when the model id looks like
provider/modeland the provider is one of openai, anthropic, google, mistral, xai, deepseek, groq or cerebras.openai/gpt-6-lunais priced as OpenAI'sgpt-6-luna. - Nothing. A model with an alias such as
my-fast-modelhas no price until you type one, and a call on it is refused as unpriced.
The cost LiteLLM billed#
LiteLLM puts what it charged for a call in the x-litellm-response-cost header of its reply. The Hub reads it into Billed in the ledger. A reply without the header, or with it empty, has no billed cost; the ledger then shows the listed price only.
Reasoning#
There is no reasoning field of its own. The Reasoning option on a model's row is sent as reasoning_effort, as for any OpenAI-compatible endpoint.