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
chore: add Black Forest Labs models to model registry
Chesarsf132f2c811af
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex 84b8e47c462..1af1f68b5b6 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -575,6 +575,7 @@ v0_models: Set = set()morph_models: Set = set()lambda_ai_models: Set = set()hyperbolic_models: Set = set()+black_forest_labs_models: Set = set()recraft_models: Set = set()cometapi_models: Set = set()oci_models: Set = set()@@ -821,6 +822,8 @@ def add_known_models(model_cost_map: Optional[Dict] = None):lambda_ai_models.add(key)elif value.get("litellm_provider") == "hyperbolic":hyperbolic_models.add(key)+ elif value.get("litellm_provider") == "black_forest_labs":+ black_forest_labs_models.add(key)elif value.get("litellm_provider") == "recraft":recraft_models.add(key)elif value.get("litellm_provider") == "cometapi":@@ -952,6 +955,7 @@ model_list = list(| v0_models| morph_models| lambda_ai_models+ | black_forest_labs_models| recraft_models| cometapi_models| oci_models@@ -1049,6 +1053,7 @@ models_by_provider: dict = {"morph": morph_models,"lambda_ai": lambda_ai_models,"hyperbolic": hyperbolic_models,+ "black_forest_labs": black_forest_labs_models,"recraft": recraft_models,"cometapi": cometapi_models,"oci": oci_models,diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 412f99791a0..26a0f926e6b 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -7786,6 +7786,42 @@"supports_response_schema": true,"supports_tool_choice": true},+ "black_forest_labs/flux-kontext-pro": {+ "litellm_provider": "black_forest_labs",+ "mode": "image_generation",+ "output_cost_per_image": 0.04,+ "source": "https://bfl.ai/pricing",+ "supported_endpoints": [+ "/v1/images/edits"+ ]+ },+ "black_forest_labs/flux-kontext-max": {+ "litellm_provider": "black_forest_labs",+ "mode": "image_generation",+ "output_cost_per_image": 0.08,+ "source": "https://bfl.ai/pricing",+ "supported_endpoints": [+ "/v1/images/edits"+ ]+ },+ "black_forest_labs/flux-pro-1.0-fill": {+ "litellm_provider": "black_forest_labs",+ "mode": "image_generation",+ "output_cost_per_image": 0.05,+ "source": "https://bfl.ai/pricing",+ "supported_endpoints": [+ "/v1/images/edits"+ ]+ },+ "black_forest_labs/flux-pro-1.0-expand": {+ "litellm_provider": "black_forest_labs",+ "mode": "image_generation",+ "output_cost_per_image": 0.05,+ "source": "https://bfl.ai/pricing",+ "supported_endpoints": [+ "/v1/images/edits"+ ]+ },"cerebras/llama-3.3-70b": {"input_cost_per_token": 8.5e-07,"litellm_provider": "cerebras",