Merge pull request #57 from Runware/feature-kling2_6
Adding Kling 2.6 Pro workflow
This commit is contained in:
@@ -1677,6 +1677,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"klingai:6@1 (KlingAI 2.5 Turbo Pro)",
|
||||
"klingai:7@1 (KlingAI Lip-Sync)",
|
||||
"klingai:kling@o1 (Kling VIDEO O1)",
|
||||
"klingai:kling-video@2.6-pro (Kling VIDEO 2.6 Pro)",
|
||||
],
|
||||
"Veo": [
|
||||
"google:2@0 (Veo 2.0)", "google:3@0 (Veo 3.0)", "google:3@1 (Veo 3.0 Fast)",
|
||||
@@ -1738,6 +1739,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"klingai:6@1": {"width": 1920, "height": 1080},
|
||||
"klingai:7@1": {"width": 0, "height": 0},
|
||||
"klingai:kling@o1": {"width": 1440, "height": 1440},
|
||||
"klingai:kling-video@2.6-pro": {"width": 1920, "height": 1080},
|
||||
"google:2@0": {"width": 1280, "height": 720},
|
||||
"google:3@0": {"width": 1280, "height": 720},
|
||||
"google:3@1": {"width": 1280, "height": 720},
|
||||
@@ -1792,6 +1794,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
|
||||
"klingai:6@1": "1080p",
|
||||
"klingai:7@1": null, // No resolution support
|
||||
"klingai:kling@o1": null, // No standard resolution
|
||||
"klingai:kling-video@2.6-pro": "1080p",
|
||||
"google:2@0": "720p",
|
||||
"google:3@0": "720p",
|
||||
"google:3@1": "720p",
|
||||
|
||||
@@ -80,6 +80,16 @@ class RunwareKlingProviderSettings:
|
||||
"label_on": "Enabled",
|
||||
"label_off": "Disabled",
|
||||
}),
|
||||
"useSound": ("BOOLEAN", {
|
||||
"tooltip": "Enable to include sound parameter in provider settings",
|
||||
"default": False,
|
||||
}),
|
||||
"sound": ("BOOLEAN", {
|
||||
"tooltip": "Whether sound is generated simultaneously when generating a video",
|
||||
"default": False,
|
||||
"label_on": "Enabled",
|
||||
"label_off": "Disabled",
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +97,7 @@ class RunwareKlingProviderSettings:
|
||||
RETURN_NAMES = ("Provider Settings",)
|
||||
FUNCTION = "createProviderSettings"
|
||||
CATEGORY = "Runware/Provider Settings"
|
||||
DESCRIPTION = "Configure KlingAI-specific provider settings for video generation including camera control, audio volume, sound effects, and ASMR mode."
|
||||
DESCRIPTION = "Configure KlingAI-specific provider settings for video generation including camera control, audio volume, sound effects, ASMR mode, and sound generation."
|
||||
|
||||
def createProviderSettings(self, **kwargs) -> tuple[Dict[str, Any]]:
|
||||
"""Create KlingAI provider settings"""
|
||||
@@ -100,6 +110,7 @@ class RunwareKlingProviderSettings:
|
||||
useBgmPrompt = kwargs.get("useBgmPrompt", False)
|
||||
useAsmrMode = kwargs.get("useAsmrMode", False)
|
||||
useKeepOriginalSound = kwargs.get("useKeepOriginalSound", False)
|
||||
useSound = kwargs.get("useSound", False)
|
||||
|
||||
# Get value parameters
|
||||
cameraControl = kwargs.get("cameraControl", "none")
|
||||
@@ -109,6 +120,7 @@ class RunwareKlingProviderSettings:
|
||||
bgmPrompt = kwargs.get("bgmPrompt", "")
|
||||
asmrMode = kwargs.get("asmrMode", False)
|
||||
keepOriginalSound = kwargs.get("keepOriginalSound", True)
|
||||
sound = kwargs.get("sound", False)
|
||||
|
||||
# Build settings dictionary - only include what is enabled
|
||||
klingSettings: Dict[str, Any] = {}
|
||||
@@ -141,6 +153,10 @@ class RunwareKlingProviderSettings:
|
||||
if useKeepOriginalSound:
|
||||
klingSettings["keepOriginalSound"] = keepOriginalSound
|
||||
|
||||
# Add sound only if useSound is enabled
|
||||
if useSound:
|
||||
klingSettings["sound"] = sound
|
||||
|
||||
# Clean up None values
|
||||
klingSettings = {k: v for k, v in klingSettings.items() if v is not None}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ class videoModelSearch:
|
||||
"klingai:6@1 (KlingAI 2.5 Turbo Pro)",
|
||||
"klingai:7@1 (KlingAI Lip-Sync)",
|
||||
"klingai:kling@o1 (Kling VIDEO O1)",
|
||||
"klingai:kling-video@2.6-pro (Kling VIDEO 2.6 Pro)",
|
||||
],
|
||||
"Veo": [
|
||||
"google:2@0 (Veo 2.0)",
|
||||
@@ -96,6 +97,7 @@ class videoModelSearch:
|
||||
"klingai:6@1": {"width": 1920, "height": 1080},
|
||||
"klingai:7@1": {"width": 0, "height": 0},
|
||||
"klingai:kling@o1": {"width": 1440, "height": 1440},
|
||||
"klingai:kling-video@2.6-pro": {"width": 1920, "height": 1080},
|
||||
|
||||
# Veo Models
|
||||
"google:2@0": {"width": 1280, "height": 720},
|
||||
@@ -174,6 +176,7 @@ class videoModelSearch:
|
||||
"klingai:6@1": "1080p",
|
||||
"klingai:7@1": None, # No resolution support
|
||||
"klingai:kling@o1": None, # No standard resolution (1440x1440)
|
||||
"klingai:kling-video@2.6-pro": "1080p",
|
||||
|
||||
# Veo Models
|
||||
"google:2@0": "720p",
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user