{"record":{"id":"0d4142b59d7d8e6e","repo":"BerriAI/litellm","slug":"parameter-k-is-not-supported-for-model-model-0d4142","errorCode":null,"errorMessage":"Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters.","messagePattern":"Parameter (.+?) is not supported for model (.+?)\\. Supported parameters are (.+?)\\. Set drop_params=True to drop unsupported parameters\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/fal_ai/image_generation/transformation.py","lineNumber":150,"sourceCode":"            \"size\",\n        ]\n\n    def map_openai_params(\n        self,\n        non_default_params: dict,\n        optional_params: dict,\n        model: str,\n        drop_params: bool,\n    ) -> dict:\n        supported_params: Final = self.get_supported_openai_params(model)\n        for k in non_default_params:\n            if k not in optional_params:\n                if k in supported_params:\n                    optional_params[k] = non_default_params[k]\n                elif drop_params:\n                    pass\n                else:\n                    raise ValueError(\n                        f\"Parameter {k} is not supported for model {model}. Supported parameters are {supported_params}. Set drop_params=True to drop unsupported parameters.\"\n                    )\n\n        return optional_params\n\n    def transform_image_generation_request(\n        self,\n        model: str,\n        prompt: str,\n        optional_params: dict,\n        litellm_params: dict,\n        headers: dict,\n    ) -> dict:\n        \"\"\"\n        Transform the image generation request to the fal.ai image generation request body\n        \"\"\"\n        fal_ai_image_generation_request_body: Final = {\n            \"prompt\": prompt,","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/fal_ai/image_generation/transformation.py#L132-L168","documentation":"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.","triggerScenarios":"Thrown at litellm/llms/fal_ai/image_generation/transformation.py:150 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the unsupported parameter or set drop_params=True."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}