/models/{id}/pricing/calculateFind the cheapest provider for a model
You have a token budget and want the lowest total cost across every provider that hosts the same model — including alternative tiers like batch and flex.
Pick any model, choose an operation and copy the exact REST URL for your integration.
https://ai.cloudprice.net/api/v1/models/anthropic-claude-5-fable/pricing/calculate?input_tokens=1500&output_tokens=500Send token and cache usage and get the cheapest matching provider plus every option ranked by total cost, with a per-dimension breakdown for each.
Point LiteLLM at CloudPrice's daily, provider-sourced prices.
export LITELLM_MODEL_COST_MAP_URL="https://ai.cloudprice.net/api/v1/litellm_model_prices.json"Set it before importing LiteLLM. The same variable works for the Python SDK and the proxy. Leave LITELLM_LOCAL_MODEL_COST_MAP unset (setting it to true forces LiteLLM's bundled file instead).
model_prices_and_context_window.json format. Swap the URL, nothing else changes.supports_*, cache & reasoning costs.Six common jobs you can solve with one URL — paste into curl, your app or your browser.
/models/{id}/pricing/calculateYou have a token budget and want the lowest total cost across every provider that hosts the same model — including alternative tiers like batch and flex.
/litellm_model_prices.jsonDrop-in replacement for litellm's model_prices_and_context_window.json, refreshed daily from each provider's own rates. Point LITELLM_MODEL_COST_MAP_URL at it and get models and providers litellm doesn't ship yet.
/calculateSame workload, up to 5 candidate models, one request. Get a ranked list of total costs without writing a loop.
/models/{id}/comparePick between flagship models. Get pricing for each across the same dimensions in one request.
/models/{id}/similarYour current model works, but a comparable cheaper option may exist from another vendor — same capabilities, lower bill.
/benchmarks/{slug}/leaderboardNeed a ranked list of top models on a specific benchmark — handy for comparison pages, blog posts or CMS cards.
Need the full reference? All 17 endpoints with every parameter and response shape live in the interactive OpenAPI spec or as raw openapi.json.