litellm's price map is community maintained so it lags, curious how people deal with it

litellm can pull model_prices_and_context_window.json live from github which is handy, but that file is community maintained. so prices lag, new models take a while to appear (or never do), and sometimes the numbers are just wrong until someone opens a PR. how do you all handle this, just override per model in config?

What I ended up doing is pointing litellm at my own map instead. its the same env var so it works for both the python sdk and the gateway proxy:
export LITELLM_MODEL_COST_MAP_URL="https://cloudprice.net/api/v2/ai/litellm_model_prices.json"

Same schema, we just pull straight from each provider and refresh every day. it also has image/audio/video/rerank/ocr pricing, not just chat/embeddings.

Right now around 340 models come back with pricing thats not in the litellm map at all, mostly fresh releases like openrouter/z-ai/glm-5.2, openrouter/deepseek/deepseek V4 or for vercel.

Its completely free (with some throttling to avoid issues), No key, CORS on.

reddit.com
u/Gaploid — 2 hours ago
▲ 5 r/mlops

litellm's price map is community maintained so it lags, curious how people deal with it

litellm can pull model_prices_and_context_window.json live from github which is handy, but that file is community maintained. so prices lag, new models take a while to appear (or never do), and sometimes the numbers are just wrong until someone opens a PR. how do you all handle this, just override per model in config?

What I ended up doing is pointing litellm at my own map instead. its the same env var so it works for both the python sdk and the gateway proxy:
export LITELLM_MODEL_COST_MAP_URL="https://cloudprice.net/api/v2/ai/litellm_model_prices.json"

Same schema, we just pull straight from each provider and refresh every day. it also has image/audio/video/rerank/ocr pricing, not just chat/embeddings.

Right now around 340 models come back with pricing thats not in the litellm map at all, mostly fresh releases like openrouter/z-ai/glm-5.2, openrouter/deepseek/deepseek V4 or for vercel.

Its completely free (with some throttling to avoid issues), No key, CORS on.

reddit.com
u/Gaploid — 21 hours ago

litellm's price map is community maintained so it lags, curious how people deal with it

litellm can pull model_prices_and_context_window.json live from github which is handy, but that file is community maintained. so prices lag, new models take a while to appear (or never do), and sometimes the numbers are just wrong until someone opens a PR. how do you all handle this, just override per model in config?

What I ended up doing is pointing litellm at my own map instead. its the same env var so it works for both the python sdk and the gateway proxy:
export LITELLM_MODEL_COST_MAP_URL="https://cloudprice.net/api/v2/ai/litellm_model_prices.json"

Same schema, we just pull straight from each provider and refresh every day. it also has image/audio/video/rerank/ocr pricing, not just chat/embeddings.

Right now around 340 models come back with pricing thats not in the litellm map at all, mostly fresh releases like openrouter/z-ai/glm-5.2, openrouter/deepseek/deepseek V4 or for vercel.

Its completely free (with some throttling to avoid issues), No key, CORS on.

Anyway the thing I actually wanted to ask: would it make sense for litellm to support multiple cost map sources with a fallback, right in the gateway UI? like a primary url plus fallbacks, and if one is missing a model it falls through to the next. feels like that would fix the whole stale/missing thing no matter whose map you use.

u/Gaploid — 23 hours ago