BerriAI/litellm · error · ValueError
Parameter {k} is not supported for model {model}. Supported
Error message
Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters. What it means
Error "Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters." thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/fal_ai/image_generation/transformation.py:150
"size",
]
def map_openai_params(
self,
non_default_params: dict,
optional_params: dict,
model: str,
drop_params: bool,
) -> dict:
supported_params: Final = self.get_supported_openai_params(model)
for k in non_default_params:
if k not in optional_params:
if k in supported_params:
optional_params[k] = non_default_params[k]
elif drop_params:
pass
else:
raise ValueError(
f"Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters."
)
return optional_params
def transform_image_generation_request(
self,
model: str,
prompt: str,
optional_params: dict,
litellm_params: dict,
headers: dict,
) -> dict:
"""
Transform the image generation request to the fal.ai image generation request body
"""
fal_ai_image_generation_request_body: Final = {
"prompt": prompt,View on GitHub (pinned to 6c2dcb801b)
Solutions
- Remove the unsupported parameter or set drop_params=True.
When it happens
Trigger: Thrown at litellm/llms/fal_ai/image_generation/transformation.py:150 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/0d4142b59d7d8e6e.
Report an issue: GitHub.