BerriAI/litellm · error · BlackForestLabsError
Request failed: {e}
Error message
Request failed: {e} What it means
Error "Request failed: {e}" thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/black_forest_labs/image_edit/handler.py:160
input=prompt,
api_key="",
additional_args={
"complete_input_dict": data,
"api_base": complete_url,
"headers": headers,
},
)
# Make initial request
try:
response: Final = sync_client.post(
url=complete_url,
headers=headers,
json=data,
timeout=timeout,
)
except Exception as e:
raise BlackForestLabsError(
status_code=500,
message=f"Request failed: {e}",
)
# Poll for result
final_response: Final = self._poll_for_result_sync(
initial_response=response,
headers=headers,
sync_client=sync_client,
)
# Transform response
return self.config.transform_image_edit_response(
model=model,
raw_response=final_response,
logging_obj=logging_obj,
)
View on GitHub (pinned to 6c2dcb801b)
Solutions
- Check network connectivity to the BFL API; see the wrapped exception.
When it happens
Trigger: Thrown at litellm/llms/black_forest_labs/image_edit/handler.py:160 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/670a3d946717f50b.
Report an issue: GitHub.