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)