BerriAI/litellm · error · BlackForestLabsError

No image provided

Error message

No image provided

What it means

Error "No image provided" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/black_forest_labs/image_edit/handler.py:127

            api_key=api_key,
            headers=image_edit_optional_request_params.get("extra_headers", {}) or {},
            model=model,
        )
        if extra_headers:
            headers.update(extra_headers)

        # Get complete URL
        complete_url: Final = self.config.get_complete_url(
            model=model,
            api_base=api_base,
            litellm_params=litellm_params_dict,
        )

        # Transform request
        # Handle image list vs single image
        if isinstance(image, list):
            if not image:
                raise BlackForestLabsError(status_code=400, message="No image provided")
            image_input = image[0]
        else:
            image_input = image
        data, _ = self.config.transform_image_edit_request(
            model=model,
            prompt=prompt or "",
            image=image_input,
            image_edit_optional_request_params=image_edit_optional_request_params,
            litellm_params=litellm_params_dict,
            headers=headers,
        )

        # Logging
        logging_obj.pre_call(
            input=prompt,
            api_key="",
            additional_args={
                "complete_input_dict": data,

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Pass an image in the request.

When it happens

Trigger: Thrown at litellm/llms/black_forest_labs/image_edit/handler.py:127 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/d31626afa1679317. Report an issue: GitHub.