The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Merge branch 'main' into wandb-inference
Anubhav Singh67276a8151dd
diff --cc litellm/__init__.pyindex fabc8e280fe,736cd2c2fef..6bd7e1ca9ab--- a/litellm/__init__.py+++ b/litellm/__init__.py@@@ -240,9 -239,9 +240,10 @@@ novita_api_key: Optional[str] = Nonsnowflake_key: Optional[str] = Nonegradient_ai_api_key: Optional[str] = Nonenebius_key: Optional[str] = None+wandb_key: Optional[str] = Noneheroku_key: Optional[str] = Nonecometapi_key: Optional[str] = None+ ovhcloud_key: Optional[str] = Nonecommon_cloud_provider_auth_params: dict = {"params": ["project", "region_name", "token"],"providers": ["vertex_ai", "bedrock", "watsonx", "azure", "vertex_ai_beta"],@@@ -522,7 -521,8 +523,9 @@@ cometapi_models: Set = set(oci_models: Set = set()vercel_ai_gateway_models: Set = set()volcengine_models: Set = set()+wandb_models: Set = set(WANDB_MODELS)+ ovhcloud_models: Set = set()+ ovhcloud_embedding_models: Set = set()def is_bedrock_pricing_only_model(key: str) -> bool:@@@ -737,8 -737,10 +740,12 @@@ def add_known_models()oci_models.add(key)elif value.get("litellm_provider") == "volcengine":volcengine_models.add(key)+ elif value.get("litellm_provider") == "wandb":+ wandb_models.add(key)+ elif value.get("litellm_provider") == "ovhcloud":+ ovhcloud_models.add(key)+ elif value.get("litellm_provider") == "ovhcloud-embedding-models":+ ovhcloud_embedding_models.add(key)add_known_models()@@@ -833,7 -835,7 +840,8 @@@ model_list = list| heroku_models| vercel_ai_gateway_models| volcengine_models+ | wandb_models+ | ovhcloud_models)model_list_set = set(model_list)@@@ -915,7 -917,7 +923,8 @@@ models_by_provider: dict ="cometapi": cometapi_models,"oci": oci_models,"volcengine": volcengine_models,+ "wandb": wandb_models,+ "ovhcloud": ovhcloud_models | ovhcloud_embedding_models,}# mapping for those models which have larger equivalentsdiff --cc litellm/constants.pyindex 94f073c9cb3,c9d1a7a06d6..bb8da97a8f0--- a/litellm/constants.py+++ b/litellm/constants.py@@@ -311,7 -313,7 +313,8 @@@ LITELLM_CHAT_PROVIDERS ="morph","lambda_ai","vercel_ai_gateway",+ "wandb",+ "ovhcloud",]LITELLM_EMBEDDING_PROVIDERS_SUPPORTING_INPUT_ARRAY_OF_TOKENS = [diff --cc litellm/types/utils.pyindex aaf5ff3bf7e,289291bde08..528b300d757--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@@ -2356,7 -2358,7 +2358,8 @@@ class LlmProviders(str, Enum)AUTO_ROUTER = "auto_router"VERCEL_AI_GATEWAY = "vercel_ai_gateway"DOTPROMPT = "dotprompt"+ WANDB = "wandb"+ OVHCLOUD = "ovhcloud"# Create a set of all provider values for quick lookupdiff --cc model_prices_and_context_window.jsonindex 8cbcd0be0a4,261fe9552d0..c731bc77803--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@@ -20502,130 -20778,206 +20778,331 @@@"notes": "Volcengine Doubao embedding model - text-240715 version with 2560 dimensions"}},+ "wandb/openai/gpt-oss-120b": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 0.015,+ "output_cost_per_token": 0.06,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/openai/gpt-oss-20b": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 0.005,+ "output_cost_per_token": 0.02,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/zai-org/GLM-4.5": {+ "max_tokens": 131072,+ "max_input_tokens": 131072,+ "max_output_tokens": 131072,+ "input_cost_per_token": 0.055,+ "output_cost_per_token": 0.2,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/Qwen/Qwen3-235B-A22B-Instruct-2507": {+ "max_tokens": 262144,+ "max_input_tokens": 262144,+ "max_output_tokens": 262144,+ "input_cost_per_token": 0.01,+ "output_cost_per_token": 0.01,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/Qwen/Qwen3-Coder-480B-A35B-Instruct": {+ "max_tokens": 262144,+ "max_input_tokens": 262144,+ "max_output_tokens": 262144,+ "input_cost_per_token": 0.1,+ "output_cost_per_token": 0.15,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/Qwen/Qwen3-235B-A22B-Thinking-2507": {+ "max_tokens": 262144,+ "max_input_tokens": 262144,+ "max_output_tokens": 262144,+ "input_cost_per_token": 0.01,+ "output_cost_per_token": 0.01,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/moonshotai/Kimi-K2-Instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 0.135,+ "output_cost_per_token": 0.4,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/meta-llama/Llama-3.1-8B-Instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 0.022,+ "output_cost_per_token": 0.022,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/deepseek-ai/DeepSeek-V3.1": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 0.055,+ "output_cost_per_token": 0.165,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/deepseek-ai/DeepSeek-R1-0528": {+ "max_tokens": 161000,+ "max_input_tokens": 161000,+ "max_output_tokens": 161000,+ "input_cost_per_token": 0.135,+ "output_cost_per_token": 0.54,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/deepseek-ai/DeepSeek-V3-0324": {+ "max_tokens": 161000,+ "max_input_tokens": 161000,+ "max_output_tokens": 161000,+ "input_cost_per_token": 0.114,+ "output_cost_per_token": 0.275,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/meta-llama/Llama-3.3-70B-Instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 0.071,+ "output_cost_per_token": 0.071,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/meta-llama/Llama-4-Scout-17B-16E-Instruct": {+ "max_tokens": 64000,+ "max_input_tokens": 64000,+ "max_output_tokens": 64000,+ "input_cost_per_token": 0.017,+ "output_cost_per_token": 0.066,+ "litellm_provider": "wandb",+ "mode": "chat"+ },+ "wandb/microsoft/Phi-4-mini-instruct": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 0.008,+ "output_cost_per_token": 0.035,+ "litellm_provider": "wandb",+ "mode": "chat"+ "ovhcloud/Qwen2.5-VL-72B-Instruct": {+ "max_tokens": 32000,+ "max_input_tokens": 32000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 9.1e-07,+ "output_cost_per_token": 9.1e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "supports_vision": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/qwen2-5-vl-72b-instruct"+ },+ "ovhcloud/llava-v1.6-mistral-7b-hf": {+ "max_tokens": 32000,+ "max_input_tokens": 32000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 2.9e-07,+ "output_cost_per_token": 2.9e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "supports_vision": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/llava-next-mistral-7b"+ },+ "ovhcloud/gpt-oss-120b": {+ "max_tokens": 131000,+ "max_input_tokens": 131000,+ "max_output_tokens": 131000,+ "input_cost_per_token": 8e-08,+ "output_cost_per_token": 4e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "supports_reasoning": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/gpt-oss-120b"+ },+ "ovhcloud/Meta-Llama-3_3-70B-Instruct": {+ "max_tokens": 131000,+ "max_input_tokens": 131000,+ "max_output_tokens": 131000,+ "input_cost_per_token": 6.7e-07,+ "output_cost_per_token": 6.7e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/meta-llama-3-3-70b-instruct"+ },+ "ovhcloud/Qwen2.5-Coder-32B-Instruct": {+ "max_tokens": 32000,+ "max_input_tokens": 32000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 8.7e-07,+ "output_cost_per_token": 8.7e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "source": "https://endpoints.ai.cloud.ovh.net/models/qwen2-5-coder-32b-instruct"+ },+ "ovhcloud/Mixtral-8x7B-Instruct-v0.1": {+ "max_tokens": 32000,+ "max_input_tokens": 32000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 6.3e-07,+ "output_cost_per_token": 6.3e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "source": "https://endpoints.ai.cloud.ovh.net/models/mixtral-8x7b-instruct-v0-1"+ },+ "ovhcloud/Meta-Llama-3_1-70B-Instruct": {+ "max_tokens": 131000,+ "max_input_tokens": 131000,+ "max_output_tokens": 131000,+ "input_cost_per_token": 6.7e-07,+ "output_cost_per_token": 6.7e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": false,+ "supports_tool_choice": false,+ "source": "https://endpoints.ai.cloud.ovh.net/models/meta-llama-3-1-70b-instruct"+ },+ "ovhcloud/Mistral-Small-3.2-24B-Instruct-2506": {+ "max_tokens": 128000,+ "max_input_tokens": 128000,+ "max_output_tokens": 128000,+ "input_cost_per_token": 9e-08,+ "output_cost_per_token": 2.8e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_vision": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/mistral-small-3-2-24b-instruct-2506"+ },+ "ovhcloud/DeepSeek-R1-Distill-Llama-70B": {+ "max_tokens": 131000,+ "max_input_tokens": 131000,+ "max_output_tokens": 131000,+ "input_cost_per_token": 6.7e-07,+ "output_cost_per_token": 6.7e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_reasoning": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/deepseek-r1-distill-llama-70b"+ },+ "ovhcloud/Llama-3.1-8B-Instruct": {+ "max_tokens": 131000,+ "max_input_tokens": 131000,+ "max_output_tokens": 131000,+ "input_cost_per_token": 1e-07,+ "output_cost_per_token": 1e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/llama-3-1-8b-instruct"+ },+ "ovhcloud/Mistral-7B-Instruct-v0.3": {+ "max_tokens": 127000,+ "max_input_tokens": 127000,+ "max_output_tokens": 127000,+ "input_cost_per_token": 1e-07,+ "output_cost_per_token": 1e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/mistral-7b-instruct-v0-3"+ },+ "ovhcloud/gpt-oss-20b": {+ "max_tokens": 131000,+ "max_input_tokens": 131000,+ "max_output_tokens": 131000,+ "input_cost_per_token": 4e-08,+ "output_cost_per_token": 1.5e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "supports_reasoning": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/gpt-oss-20b"+ },+ "ovhcloud/Mistral-Nemo-Instruct-2407": {+ "max_tokens": 118000,+ "max_input_tokens": 118000,+ "max_output_tokens": 118000,+ "input_cost_per_token": 1.3e-07,+ "output_cost_per_token": 1.3e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/mistral-nemo-instruct-2407"+ },+ "ovhcloud/Qwen3-32B": {+ "max_tokens": 32000,+ "max_input_tokens": 32000,+ "max_output_tokens": 32000,+ "input_cost_per_token": 8e-08,+ "output_cost_per_token": 2.3e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": true,+ "supports_response_schema": true,+ "supports_tool_choice": true,+ "supports_reasoning": true,+ "source": "https://endpoints.ai.cloud.ovh.net/models/qwen3-32b"+ },+ "ovhcloud/mamba-codestral-7B-v0.1": {+ "max_tokens": 256000,+ "max_input_tokens": 256000,+ "max_output_tokens": 256000,+ "input_cost_per_token": 1.9e-07,+ "output_cost_per_token": 1.9e-07,+ "litellm_provider": "ovhcloud",+ "mode": "chat",+ "supports_function_calling": false,+ "supports_response_schema": true,+ "supports_tool_choice": false,+ "source": "https://endpoints.ai.cloud.ovh.net/models/mamba-codestral-7b-v0-1"}}