@@ -807,6 +807,7 @@ def define_schema(cls) -> IO.Schema:
807807 ),
808808 IO .Combo .Input ("aspect_ratio" , options = ["16:9" , "9:16" , "1:1" ]),
809809 IO .Combo .Input ("duration" , options = [5 , 10 ]),
810+ IO .Combo .Input ("resolution" , options = ["1080p" , "720p" ], optional = True ),
810811 ],
811812 outputs = [
812813 IO .Video .Output (),
@@ -826,6 +827,7 @@ async def execute(
826827 prompt : str ,
827828 aspect_ratio : str ,
828829 duration : int ,
830+ resolution : str = "1080p" ,
829831 ) -> IO .NodeOutput :
830832 validate_string (prompt , min_length = 1 , max_length = 2500 )
831833 response = await sync_op (
@@ -837,6 +839,7 @@ async def execute(
837839 prompt = prompt ,
838840 aspect_ratio = aspect_ratio ,
839841 duration = str (duration ),
842+ mode = "pro" if resolution == "1080p" else "std" ,
840843 ),
841844 )
842845 return await finish_omni_video_task (cls , response )
@@ -872,6 +875,7 @@ def define_schema(cls) -> IO.Schema:
872875 optional = True ,
873876 tooltip = "Up to 6 additional reference images." ,
874877 ),
878+ IO .Combo .Input ("resolution" , options = ["1080p" , "720p" ], optional = True ),
875879 ],
876880 outputs = [
877881 IO .Video .Output (),
@@ -893,6 +897,7 @@ async def execute(
893897 first_frame : Input .Image ,
894898 end_frame : Input .Image | None = None ,
895899 reference_images : Input .Image | None = None ,
900+ resolution : str = "1080p" ,
896901 ) -> IO .NodeOutput :
897902 prompt = normalize_omni_prompt_references (prompt )
898903 validate_string (prompt , min_length = 1 , max_length = 2500 )
@@ -936,6 +941,7 @@ async def execute(
936941 prompt = prompt ,
937942 duration = str (duration ),
938943 image_list = image_list ,
944+ mode = "pro" if resolution == "1080p" else "std" ,
939945 ),
940946 )
941947 return await finish_omni_video_task (cls , response )
@@ -964,6 +970,7 @@ def define_schema(cls) -> IO.Schema:
964970 "reference_images" ,
965971 tooltip = "Up to 7 reference images." ,
966972 ),
973+ IO .Combo .Input ("resolution" , options = ["1080p" , "720p" ], optional = True ),
967974 ],
968975 outputs = [
969976 IO .Video .Output (),
@@ -984,6 +991,7 @@ async def execute(
984991 aspect_ratio : str ,
985992 duration : int ,
986993 reference_images : Input .Image ,
994+ resolution : str = "1080p" ,
987995 ) -> IO .NodeOutput :
988996 prompt = normalize_omni_prompt_references (prompt )
989997 validate_string (prompt , min_length = 1 , max_length = 2500 )
@@ -1005,6 +1013,7 @@ async def execute(
10051013 aspect_ratio = aspect_ratio ,
10061014 duration = str (duration ),
10071015 image_list = image_list ,
1016+ mode = "pro" if resolution == "1080p" else "std" ,
10081017 ),
10091018 )
10101019 return await finish_omni_video_task (cls , response )
@@ -1036,6 +1045,7 @@ def define_schema(cls) -> IO.Schema:
10361045 tooltip = "Up to 4 additional reference images." ,
10371046 optional = True ,
10381047 ),
1048+ IO .Combo .Input ("resolution" , options = ["1080p" , "720p" ], optional = True ),
10391049 ],
10401050 outputs = [
10411051 IO .Video .Output (),
@@ -1058,6 +1068,7 @@ async def execute(
10581068 reference_video : Input .Video ,
10591069 keep_original_sound : bool ,
10601070 reference_images : Input .Image | None = None ,
1071+ resolution : str = "1080p" ,
10611072 ) -> IO .NodeOutput :
10621073 prompt = normalize_omni_prompt_references (prompt )
10631074 validate_string (prompt , min_length = 1 , max_length = 2500 )
@@ -1090,6 +1101,7 @@ async def execute(
10901101 duration = str (duration ),
10911102 image_list = image_list if image_list else None ,
10921103 video_list = video_list ,
1104+ mode = "pro" if resolution == "1080p" else "std" ,
10931105 ),
10941106 )
10951107 return await finish_omni_video_task (cls , response )
@@ -1119,6 +1131,7 @@ def define_schema(cls) -> IO.Schema:
11191131 tooltip = "Up to 4 additional reference images." ,
11201132 optional = True ,
11211133 ),
1134+ IO .Combo .Input ("resolution" , options = ["1080p" , "720p" ], optional = True ),
11221135 ],
11231136 outputs = [
11241137 IO .Video .Output (),
@@ -1139,6 +1152,7 @@ async def execute(
11391152 video : Input .Video ,
11401153 keep_original_sound : bool ,
11411154 reference_images : Input .Image | None = None ,
1155+ resolution : str = "1080p" ,
11421156 ) -> IO .NodeOutput :
11431157 prompt = normalize_omni_prompt_references (prompt )
11441158 validate_string (prompt , min_length = 1 , max_length = 2500 )
@@ -1171,6 +1185,7 @@ async def execute(
11711185 duration = None ,
11721186 image_list = image_list if image_list else None ,
11731187 video_list = video_list ,
1188+ mode = "pro" if resolution == "1080p" else "std" ,
11741189 ),
11751190 )
11761191 return await finish_omni_video_task (cls , response )
0 commit comments