odysseus-dev/odysseus · error · HTTPException
Choose a registered image endpoint
Error message
Choose a registered image endpoint
What it means
Error "Choose a registered image endpoint" thrown in odysseus-dev/odysseus.
Source
Thrown at routes/gallery/gallery_routes.py:1298
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()
if not base.endswith("/v1"):
base += "/v1"
is_openai = _is_openai_api_base(base)
if is_openai:
# OpenAI path: /v1/images/edits with gpt-image-1.
# Mask convention differs from Stable Diffusion:
# SD: white pixels = regenerate, black = keep
# OpenAI: transparent alpha = regenerate, opaque = keep
# So we convert the incoming PNG mask into an alpha-channel PNG.
if not api_key:
raise HTTPException(400, "OpenAI endpoint has no api_key stored — edit it in Endpoints settings.")View on GitHub (pinned to f9235ebbf1)
Solutions
- Pick one of the registered image endpoints from the dropdown.
- Register the endpoint first in Settings if it is missing.
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/86461dda891e9fff.
Report an issue: GitHub.