Merge pull request #177 from Runware/feature-adding-Grok-1.5

Added support for Grok 1.5
This commit is contained in:
Sirshendu Ganguly
2026-06-29 16:49:01 +05:30
committed by GitHub
5 changed files with 31 additions and 1 deletions
+10
View File
@@ -820,6 +820,7 @@ function useParameterToggleHandler(node) {
"useFps": ["fps"],
"useSchedulers": ["scheduler"],
"useCFGScale": ["cfgScale"],
"useTtl": ["ttl"],
// useSteps and useSeed are same as image inference, handled by fallback
// Upscaler specific mappings (override for nodes that have CFGScale with capital C)
@@ -2822,6 +2823,8 @@ function videoInferenceDimensionsHandler(videoInferenceNode) {
const schedulerWidget = videoInferenceNode.widgets.find(w => w.name === "scheduler");
const useCFGScaleWidget = videoInferenceNode.widgets.find(w => w.name === "useCFGScale");
const cfgScaleWidget = videoInferenceNode.widgets.find(w => w.name === "cfgScale");
const useTtlWidget = videoInferenceNode.widgets.find(w => w.name === "useTtl");
const ttlWidget = videoInferenceNode.widgets.find(w => w.name === "ttl");
// Helper function to toggle widget enabled state
function toggleWidgetState(useWidget, paramWidget, paramName) {
@@ -2897,6 +2900,10 @@ function videoInferenceDimensionsHandler(videoInferenceNode) {
if (useCFGScaleWidget && cfgScaleWidget) {
toggleWidgetState(useCFGScaleWidget, cfgScaleWidget, "cfgScale");
}
if (useTtlWidget && ttlWidget) {
toggleWidgetState(useTtlWidget, ttlWidget, "ttl");
}
}
function videoModelSearchFilterHandler(videoModelSearchNode) {
@@ -3018,6 +3025,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"runware:210@1 (Kandinsky 5.0 Lite)",
],
"xAI": [
"xai:grok-imagine@video-1.5 (Grok Imagine Video 1.5)",
"xai:grok-imagine@video-1.5-preview (Grok Imagine Video 1.5 Preview)",
"xai:grok-imagine@video (Grok Imagine Video)",
],
@@ -3130,6 +3138,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"creatify:aurora@0": {"width": 1280, "height": 720},
"runware:hunyuanvideo@1.5": {"width": 848, "height": 480},
"runware:210@1": {"width": 512, "height": 512},
"xai:grok-imagine@video-1.5": {"width": 480, "height": 480},
"xai:grok-imagine@video-1.5-preview": {"width": 480, "height": 480},
"xai:grok-imagine@video": {"width": 480, "height": 480},
"veed:fabric@1.0": {"width": 1280, "height": 720},
@@ -3238,6 +3247,7 @@ function videoModelSearchFilterHandler(videoModelSearchNode) {
"creatify:aurora@0": "720p",
"runware:hunyuanvideo@1.5": "480p",
"runware:210@1": null, // No resolution support (fixed 512x512)
"xai:grok-imagine@video-1.5": "480p",
"xai:grok-imagine@video-1.5-preview": "480p",
"xai:grok-imagine@video": "480p",
"veed:fabric@1.0": "720p",
+1 -1
View File
@@ -1 +1 @@
__version__ = "1.9.0"
__version__ = "1.9.1"
+16
View File
@@ -228,6 +228,16 @@ class txt2vid:
"lora": ("RUNWAREVIDEOINFERENCELORA", {
"tooltip": "Connect a Runware Video Inference Lora node to apply LoRA models (e.g. for LTX video models).",
}),
"useTtl": ("BOOLEAN", {
"tooltip": "Enable to include ttl parameter in API request. Sets output URL retention time in seconds.",
"default": False,
}),
"ttl": ("INT", {
"tooltip": "Time-to-live in seconds for generated video URLs. Only used when 'Use TTL' is enabled. Minimum 60.",
"default": 604800,
"min": 60,
"max": 2592000,
}),
}
}
@@ -282,6 +292,8 @@ class txt2vid:
useCFGScale = kwargs.get("useCFGScale", False)
cfgScale = kwargs.get("cfgScale", 5.0)
acceleration = kwargs.get("acceleration", "none")
useTtl = kwargs.get("useTtl", False)
ttl = kwargs.get("ttl", 604800)
# Handle model input - could be dict or string
if isinstance(runwareVideoModel, dict):
@@ -448,6 +460,10 @@ class txt2vid:
if acceleration and acceleration != "none":
genConfig[0]["acceleration"] = acceleration
# Add TTL for output URL retention (requires outputType URL)
if useTtl:
genConfig[0]["ttl"] = int(ttl)
if (multiInferenceMode):
return (None, genConfig, None)
else:
+3
View File
@@ -137,6 +137,7 @@ class videoModelSearch:
"runware:210@1 (Kandinsky 5.0 Lite)",
],
"xAI": [
"xai:grok-imagine@video-1.5 (Grok Imagine Video 1.5)",
"xai:grok-imagine@video-1.5-preview (Grok Imagine Video 1.5 Preview)",
"xai:grok-imagine@video (Grok Imagine Video)",
],
@@ -285,6 +286,7 @@ class videoModelSearch:
"runware:210@1": {"width": 512, "height": 512},
# xAI Models
"xai:grok-imagine@video-1.5": {"width": 480, "height": 480},
"xai:grok-imagine@video-1.5-preview": {"width": 480, "height": 480},
"xai:grok-imagine@video": {"width": 480, "height": 480},
@@ -437,6 +439,7 @@ class videoModelSearch:
"runware:210@1": None, # No resolution support (fixed 512x512)
# xAI Models
"xai:grok-imagine@video-1.5": "480p",
"xai:grok-imagine@video-1.5-preview": "480p",
"xai:grok-imagine@video": "480p",
File diff suppressed because one or more lines are too long