Kling Image Gen v2 + improve node descriptions for Flux/OpenAI (#160)

This commit is contained in:
Robin Huang 2025-05-05 22:36:55 -07:00 committed by GitHub
parent 0cab40b28f
commit 5d3e055753
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 10 deletions

View File

@ -568,6 +568,7 @@ class KlingImageGenImageReferenceType(str, Enum):
class KlingImageGenModelName(str, Enum): class KlingImageGenModelName(str, Enum):
kling_v1 = 'kling-v1' kling_v1 = 'kling-v1'
kling_v1_5 = 'kling-v1-5' kling_v1_5 = 'kling-v1-5'
kling_v2 = 'kling-v2'
class KlingImageResult(BaseModel): class KlingImageResult(BaseModel):

View File

@ -112,7 +112,7 @@ def convert_image_to_base64(image: torch.Tensor):
class FluxProUltraImageNode(ComfyNodeABC): class FluxProUltraImageNode(ComfyNodeABC):
""" """
Generates images synchronously based on prompt and resolution. Generates images using Flux Pro 1.1 Ultra via api based on prompt and resolution.
""" """
MINIMUM_RATIO = 1 / 4 MINIMUM_RATIO = 1 / 4

View File

@ -28,9 +28,6 @@ from comfy_api_nodes.apinode_utils import (
class OpenAIDalle2(ComfyNodeABC): class OpenAIDalle2(ComfyNodeABC):
""" """
Generates images synchronously via OpenAI's DALL·E 2 endpoint. Generates images synchronously via OpenAI's DALL·E 2 endpoint.
Uses the proxy at /proxy/openai/images/generations. Returned URLs are shortlived,
so download or cache results if you need to keep them.
""" """
def __init__(self): def __init__(self):
@ -183,9 +180,6 @@ class OpenAIDalle2(ComfyNodeABC):
class OpenAIDalle3(ComfyNodeABC): class OpenAIDalle3(ComfyNodeABC):
""" """
Generates images synchronously via OpenAI's DALL·E 3 endpoint. Generates images synchronously via OpenAI's DALL·E 3 endpoint.
Uses the proxy at /proxy/openai/images/generations. Returned URLs are shortlived,
so download or cache results if you need to keep them.
""" """
def __init__(self): def __init__(self):
@ -291,9 +285,6 @@ class OpenAIDalle3(ComfyNodeABC):
class OpenAIGPTImage1(ComfyNodeABC): class OpenAIGPTImage1(ComfyNodeABC):
""" """
Generates images synchronously via OpenAI's GPT Image 1 endpoint. Generates images synchronously via OpenAI's GPT Image 1 endpoint.
Uses the proxy at /proxy/openai/images/generations. Returned URLs are shortlived,
so download or cache results if you need to keep them.
""" """
def __init__(self): def __init__(self):