Comfy-Org/ComfyUI · error · ValueError
Unknown model: {model_id}
Error message
Unknown model: {model_id} What it means
Error "Unknown model: {model_id}" thrown in Comfy-Org/ComfyUI.
Source
Thrown at comfy_api_nodes/nodes_openai.py:863
if not 655_360 <= total_pixels <= 8_294_400:
raise ValueError(
f"Custom resolution total pixels must be between 655,360 and 8,294,400, got {total_pixels}"
)
size = f"{custom_width}x{custom_height}"
if model_id not in ("gpt-image-1", "gpt-image-1.5", "gpt-image-2"):
raise ValueError(f"Unknown model: {model_id}")
if image_tensors:
flat: list[torch.Tensor] = []View on GitHub (pinned to 1c6d8d45b3)
Solutions
- Select a supported OpenAI model id.
When it happens
Trigger: Thrown at comfy_api_nodes/nodes_openai.py:863 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Comfy-Org/ComfyUI@1c6d8d45b3 (2026-08-14).
Data as JSON: /api/errors/970d538ecea29c26.
Report an issue: GitHub.