{"record":{"id":"d31626afa1679317","repo":"BerriAI/litellm","slug":"no-image-provided","errorCode":null,"errorMessage":"No image provided","messagePattern":"No image provided","errorType":"exception","errorClass":"BlackForestLabsError","httpStatus":400,"severity":"error","filePath":"litellm/llms/black_forest_labs/image_edit/handler.py","lineNumber":127,"sourceCode":"            api_key=api_key,\n            headers=image_edit_optional_request_params.get(\"extra_headers\", {}) or {},\n            model=model,\n        )\n        if extra_headers:\n            headers.update(extra_headers)\n\n        # Get complete URL\n        complete_url: Final = self.config.get_complete_url(\n            model=model,\n            api_base=api_base,\n            litellm_params=litellm_params_dict,\n        )\n\n        # Transform request\n        # Handle image list vs single image\n        if isinstance(image, list):\n            if not image:\n                raise BlackForestLabsError(status_code=400, message=\"No image provided\")\n            image_input = image[0]\n        else:\n            image_input = image\n        data, _ = self.config.transform_image_edit_request(\n            model=model,\n            prompt=prompt or \"\",\n            image=image_input,\n            image_edit_optional_request_params=image_edit_optional_request_params,\n            litellm_params=litellm_params_dict,\n            headers=headers,\n        )\n\n        # Logging\n        logging_obj.pre_call(\n            input=prompt,\n            api_key=\"\",\n            additional_args={\n                \"complete_input_dict\": data,","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/black_forest_labs/image_edit/handler.py#L109-L145","documentation":"Error \"No image provided\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/black_forest_labs/image_edit/handler.py:127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass an image in the request."],"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"}