odysseus-dev/odysseus · error · HTTPException
No image generation endpoint configured. Serve a diffusion m
Error message
No image generation endpoint configured. Serve a diffusion model via Cookbook first.
What it means
Error "No image generation endpoint configured. Serve a diffusion model via Cookbook first." thrown in odysseus-dev/odysseus.
Source
Thrown at routes/gallery/gallery_routes.py:1285
requested_base = (body.pop("_endpoint", "") or "").rstrip("/")
# SSRF hardening: validate a client-supplied endpoint before any
# outbound request (mirrors routes/embedding_routes.py).
if requested_base:
from src.url_safety import check_outbound_url
ok, reason = check_outbound_url(
requested_base,
block_private=os.getenv("IMAGE_BLOCK_PRIVATE_IPS", "false").lower() == "true",
)
if not ok:
raise HTTPException(400, f"Rejected endpoint URL: {reason}")
chosen_model = (body.pop("_model", "") or "").strip()
api_key = None
if not requested_base:
db = SessionLocal()
try:
ep = _first_visible_image_endpoint(db, user)
if not ep:
raise HTTPException(400, "No image generation endpoint configured. Serve a diffusion model via Cookbook first.")
base = ep.base_url.rstrip("/")
api_key = ep.api_key
finally:
db.close()
else:
# Resolve the client-supplied base to a registered visible endpoint.
# Admins are not exempted — gallery proxy routes must use a DB row
# so the outbound URL never depends directly on request-body input.
db = SessionLocal()
try:
ep = _visible_image_endpoint_for_base(db, requested_base, user)
if not ep:
raise HTTPException(403, "Choose a registered image endpoint")
base = ep.base_url.rstrip("/")
api_key = ep.api_key
finally:
db.close()
View on GitHub (pinned to f9235ebbf1)
Solutions
- Serve a diffusion model via Cookbook, then select it as the image endpoint.
- Register an image generation endpoint in Settings → Add Models.
When it happens
Trigger: Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.
Common situations: See trigger scenarios.
AI-assisted analysis of odysseus-dev/odysseus@f9235ebbf1 (2026-08-14).
Data as JSON: /api/errors/13130f0fe9653f87.
Report an issue: GitHub.