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/ideogram_v3_transformation.py:72

        non_default_params: dict,
        optional_params: dict,
        model: str,
        drop_params: bool,
    ) -> dict:
        """
        Map OpenAI-style parameters onto Ideogram's request schema.
        """

        supported_params: Final = self.get_supported_openai_params(model)

        for k in non_default_params:
            if k in optional_params:
                continue

            if k not in supported_params:
                if drop_params:
                    continue
                raise ValueError(
                    f"Parameter {k} is not supported for model {model}. "
                    f"Supported parameters are {supported_params}. "
                    "Set drop_params=True to drop unsupported parameters."
                )

            value = non_default_params[k]

            if k == "n":
                optional_params["num_images"] = value
            elif k == "size":
                optional_params["image_size"] = self._map_image_size(value)
            elif k == "response_format":
                # Ideogram always returns URLs; nothing to map but don't error.
                continue

        return optional_params

    def _map_image_size(self, size: Any) -> Any:

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Remove the unsupported parameter or set drop_params=True.

When it happens

Trigger: Thrown at litellm/llms/fal_ai/image_generation/ideogram_v3_transformation.py:72 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/23b672808f9294a5. Report an issue: GitHub.