The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add gpt-image-2 as version option (#13501)
AustinMroz43a1263b609b
diff --git a/comfy_api_nodes/nodes_openai.py b/comfy_api_nodes/nodes_openai.pyindex 4ee896fa8..90a29c2f2 100644--- a/comfy_api_nodes/nodes_openai.py+++ b/comfy_api_nodes/nodes_openai.py@@ -363,7 +363,7 @@ class OpenAIGPTImage1(IO.ComfyNode):def define_schema(cls):return IO.Schema(node_id="OpenAIGPTImage1",- display_name="OpenAI GPT Image 1.5",+ display_name="OpenAI GPT Image 2",category="api node/image/OpenAI",description="Generates images synchronously via OpenAI's GPT Image endpoint.",inputs=[@@ -427,8 +427,8 @@ class OpenAIGPTImage1(IO.ComfyNode):),IO.Combo.Input("model",- options=["gpt-image-1", "gpt-image-1.5"],- default="gpt-image-1.5",+ options=["gpt-image-1", "gpt-image-1.5", 'gpt-image-2'],+ default="gpt-image-2",optional=True,),],@@ -487,6 +487,8 @@ class OpenAIGPTImage1(IO.ComfyNode):price_extractor = calculate_tokens_price_image_1elif model == "gpt-image-1.5":price_extractor = calculate_tokens_price_image_1_5+ elif model == "gpt-image-2":+ price_extractor = calculate_tokens_price_image_1_5else:raise ValueError(f"Unknown model: {model}")