@@ -719,6 +719,41 @@ const createBodyVideoNovaReel = (params: GenerateVideoParams) => {
719
719
} ;
720
720
} ;
721
721
722
+ const createBodyVideoNovaReelV11 = ( params : GenerateVideoParams ) => {
723
+ if ( params . taskType === 'TEXT_VIDEO' ) {
724
+ return {
725
+ taskType : 'TEXT_VIDEO' ,
726
+ textToVideoParams : {
727
+ text : params . prompt ,
728
+ images : params . images ,
729
+ } ,
730
+ videoGenerationConfig : {
731
+ durationSeconds : params . durationSeconds ,
732
+ fps : params . fps ,
733
+ dimension : params . dimension ,
734
+ seed : params . seed ,
735
+ } ,
736
+ } ;
737
+ } else if ( params . taskType === 'MULTI_SHOT_AUTOMATED' ) {
738
+ return {
739
+ taskType : 'MULTI_SHOT_AUTOMATED' ,
740
+ multiShotAutomatedParams : {
741
+ text : params . prompt ,
742
+ } ,
743
+ videoGenerationConfig : {
744
+ durationSeconds : params . durationSeconds ,
745
+ fps : params . fps ,
746
+ dimension : params . dimension ,
747
+ seed : params . seed ,
748
+ } ,
749
+ } ;
750
+ } else if ( params . taskType === 'MULTI_SHOT_MANUAL' ) {
751
+ throw new Error ( 'Not implemented yet' ) ;
752
+ } else {
753
+ throw new Error ( `Unknown task type ${ params . taskType } ` ) ;
754
+ }
755
+ } ;
756
+
722
757
const createBodyVideoLumaRayV2 = ( params : GenerateVideoParams ) => {
723
758
return {
724
759
prompt : params . prompt ,
@@ -1277,6 +1312,9 @@ export const BEDROCK_VIDEO_GEN_MODELS: {
1277
1312
'amazon.nova-reel-v1:0' : {
1278
1313
createBodyVideo : createBodyVideoNovaReel ,
1279
1314
} ,
1315
+ 'amazon.nova-reel-v1:1' : {
1316
+ createBodyVideo : createBodyVideoNovaReelV11 ,
1317
+ } ,
1280
1318
'luma.ray-v2:0' : {
1281
1319
createBodyVideo : createBodyVideoLumaRayV2 ,
1282
1320
} ,
0 commit comments