{"record":{"id":"d53e423a017412bb","repo":"BerriAI/litellm","slug":"imagevariationconfig-implementa-transform-request","errorCode":null,"errorMessage":"ImageVariationConfig implementa 'transform_request_image_variation' for image variation models","messagePattern":"ImageVariationConfig implementa 'transform_request_image_variation' for image variation models","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/image_generation/transformation.py","lineNumber":81,"sourceCode":"    ) -> dict:\n        return {}\n\n    def get_error_class(self, error_message: str, status_code: int, headers: dict | httpx.Headers) -> BaseLLMException:\n        raise BaseLLMException(\n            status_code=status_code,\n            message=error_message,\n            headers=headers,\n        )\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        raise NotImplementedError(\n            \"ImageVariationConfig implementa 'transform_request_image_variation' for image variation models\"\n        )\n\n    def transform_image_generation_response(\n        self,\n        model: str,\n        raw_response: httpx.Response,\n        model_response: ImageResponse,\n        logging_obj: LiteLLMLoggingObj,\n        request_data: dict,\n        optional_params: dict,\n        litellm_params: dict,\n        encoding: Any,\n        api_key: str | None = None,\n        json_mode: bool | None = None,\n    ) -> ImageResponse:\n        raise NotImplementedError(\n            \"ImageVariationConfig implements 'transform_response_image_variation' for image variation models\"","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/image_generation/transformation.py#L63-L99","documentation":"Error \"ImageVariationConfig implementa 'transform_request_image_variation' for image variation models\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/base_llm/image_generation/transformation.py:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a concrete ImageVariationConfig subclass implementing transform_request_image_variation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}