@@ -719,6 +719,41 @@ const createBodyVideoNovaReel = (params: GenerateVideoParams) => {
719719 } ;
720720} ;
721721
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+
722757const createBodyVideoLumaRayV2 = ( params : GenerateVideoParams ) => {
723758 return {
724759 prompt : params . prompt ,
@@ -1277,6 +1312,9 @@ export const BEDROCK_VIDEO_GEN_MODELS: {
12771312 'amazon.nova-reel-v1:0' : {
12781313 createBodyVideo : createBodyVideoNovaReel ,
12791314 } ,
1315+ 'amazon.nova-reel-v1:1' : {
1316+ createBodyVideo : createBodyVideoNovaReelV11 ,
1317+ } ,
12801318 'luma.ray-v2:0' : {
12811319 createBodyVideo : createBodyVideoLumaRayV2 ,
12821320 } ,
0 commit comments