Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

api_nodes: add GPT-5 series models (#9325)

Alexander Piskun07a927517cfa
diff --git a/comfy_api_nodes/nodes_openai.py b/comfy_api_nodes/nodes_openai.py
index cbff2b2d2..674c9ede0 100644
--- a/comfy_api_nodes/nodes_openai.py
+++ b/comfy_api_nodes/nodes_openai.py
@@ -80,6 +80,9 @@ class SupportedOpenAIModel(str, Enum):
gpt_4_1 = "gpt-4.1"
gpt_4_1_mini = "gpt-4.1-mini"
gpt_4_1_nano = "gpt-4.1-nano"
+ gpt_5 = "gpt-5"
+ gpt_5_mini = "gpt-5-mini"
+ gpt_5_nano = "gpt-5-nano"
class OpenAIDalle2(ComfyNodeABC):