Skip to content

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]

Update litellm/llms/black_forest_labs/image_edit/transformation.py

Cesar Garciad9d39d545aa5
diff --git a/litellm/llms/black_forest_labs/image_edit/transformation.py b/litellm/llms/black_forest_labs/image_edit/transformation.py
index 23b3b276c3e..1c381d118ed 100644
--- a/litellm/llms/black_forest_labs/image_edit/transformation.py
+++ b/litellm/llms/black_forest_labs/image_edit/transformation.py
@@ -222,7 +222,7 @@ class BlackForestLabsImageEditConfig(BaseImageEditConfig):
# Add optional params
for key, value in image_edit_optional_request_params.items():
- if key not in ["extra_headers", "extra_body"] and value is not None:
+ if key not in ["extra_headers", "extra_body", "mask"] and value is not None:
request_body[key] = value
# Handle mask if provided (for inpainting)