@runwayml/sdk 4.22.0 → 4.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/generate/image.d.mts +6 -4
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +6 -4
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +683 -73
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +683 -73
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +105 -80
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +105 -80
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +6 -4
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +6 -4
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/routers.d.mts +14 -10
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +14 -10
- package/resources/routers.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +28 -1
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +28 -1
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/tasks.d.mts +7 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +7 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +7 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +7 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +238 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +238 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +492 -81
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +492 -81
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-audio.d.mts +84 -0
- package/resources/video-to-audio.d.mts.map +1 -0
- package/resources/video-to-audio.d.ts +84 -0
- package/resources/video-to-audio.d.ts.map +1 -0
- package/resources/video-to-audio.js +29 -0
- package/resources/video-to-audio.js.map +1 -0
- package/resources/video-to-audio.mjs +25 -0
- package/resources/video-to-audio.mjs.map +1 -0
- package/resources/video-to-video.d.mts +277 -20
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +277 -20
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +16 -0
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/generate/image.ts +6 -4
- package/src/resources/image-to-video.ts +836 -111
- package/src/resources/index.ts +5 -0
- package/src/resources/organization/organization.ts +20 -0
- package/src/resources/organization/webapp/audit-logs.ts +142 -78
- package/src/resources/organization/webapp/webapp.ts +6 -4
- package/src/resources/routers.ts +14 -10
- package/src/resources/sound-effect.ts +35 -0
- package/src/resources/tasks.ts +7 -0
- package/src/resources/text-to-image.ts +406 -0
- package/src/resources/text-to-video.ts +621 -114
- package/src/resources/video-to-audio.ts +109 -0
- package/src/resources/video-to-video.ts +335 -30
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -61,19 +61,27 @@ export type ImageToVideoCreateParams =
|
|
|
61
61
|
| ImageToVideoCreateParams.Gen4Turbo
|
|
62
62
|
| ImageToVideoCreateParams.Veo3_1
|
|
63
63
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
64
|
+
| ImageToVideoCreateParams.KlingO3_4k
|
|
64
65
|
| ImageToVideoCreateParams.Hailuo3
|
|
66
|
+
| ImageToVideoCreateParams.Kling3_0_4k
|
|
65
67
|
| ImageToVideoCreateParams.Happyhorse1_0
|
|
68
|
+
| ImageToVideoCreateParams.Kling2_5TurboPro
|
|
69
|
+
| ImageToVideoCreateParams.Kling3_0Pro
|
|
70
|
+
| ImageToVideoCreateParams.Kling3_0Standard
|
|
71
|
+
| ImageToVideoCreateParams.KlingO3Pro
|
|
72
|
+
| ImageToVideoCreateParams.KlingO3Standard
|
|
66
73
|
| ImageToVideoCreateParams.Seedance2
|
|
67
74
|
| ImageToVideoCreateParams.Seedance2Fast
|
|
68
75
|
| ImageToVideoCreateParams.Seedance2Mini
|
|
69
76
|
| ImageToVideoCreateParams.GeminiOmniFlash
|
|
70
|
-
| ImageToVideoCreateParams.Seedance2_5
|
|
71
77
|
| ImageToVideoCreateParams.GrokImagine1_5
|
|
72
78
|
| ImageToVideoCreateParams.Wan3
|
|
73
79
|
| ImageToVideoCreateParams.GeminiOmniFlash1_1
|
|
74
80
|
| ImageToVideoCreateParams.Wan3Prime
|
|
75
81
|
| ImageToVideoCreateParams.H3Max
|
|
76
|
-
| ImageToVideoCreateParams.
|
|
82
|
+
| ImageToVideoCreateParams.Seedance2_5
|
|
83
|
+
| ImageToVideoCreateParams.GrokImagine1_5Lite
|
|
84
|
+
| ImageToVideoCreateParams.Kling4;
|
|
77
85
|
|
|
78
86
|
export declare namespace ImageToVideoCreateParams {
|
|
79
87
|
export interface Gen4_5 {
|
|
@@ -384,6 +392,115 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
384
392
|
}
|
|
385
393
|
}
|
|
386
394
|
|
|
395
|
+
export interface KlingO3_4k {
|
|
396
|
+
model: 'klingO3_4k';
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
400
|
+
* array with a first frame and optionally a last frame. When both keyframes are
|
|
401
|
+
* provided, output aspect ratio follows the first frame. See
|
|
402
|
+
* [image inputs](/assets/inputs#images) for file size limits.
|
|
403
|
+
*/
|
|
404
|
+
promptImage: string | Array<KlingO3_4k.PromptImage>;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Whether to generate audio for the video.
|
|
408
|
+
*/
|
|
409
|
+
audio?: boolean;
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* The number of seconds of duration for the output video.
|
|
413
|
+
*/
|
|
414
|
+
duration?: number;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* A text prompt describing what should appear in the output video.
|
|
418
|
+
*/
|
|
419
|
+
promptText?: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Provider-specific settings for multishot video generation.
|
|
423
|
+
*/
|
|
424
|
+
providerSettings?: KlingO3_4k.ProviderSettings;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The resolution of the output video.
|
|
428
|
+
*/
|
|
429
|
+
ratio?: '3840:2160' | '2160:3840' | '2880:2880';
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* An optional array of reference images (up to 7). See
|
|
433
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
434
|
+
*/
|
|
435
|
+
references?: string | Array<KlingO3_4k.ReferenceImage>;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export namespace KlingO3_4k {
|
|
439
|
+
export interface PromptImage {
|
|
440
|
+
/**
|
|
441
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
442
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
443
|
+
* video.
|
|
444
|
+
*/
|
|
445
|
+
position: 'first' | 'last';
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
449
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
450
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
451
|
+
*/
|
|
452
|
+
uri: string;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Provider-specific settings for multishot video generation.
|
|
457
|
+
*/
|
|
458
|
+
export interface ProviderSettings {
|
|
459
|
+
/**
|
|
460
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
461
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
462
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
463
|
+
* `"intelligence"`.
|
|
464
|
+
*/
|
|
465
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
469
|
+
* multiPrompt is provided.
|
|
470
|
+
*/
|
|
471
|
+
shotType?: 'intelligence' | 'customize';
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
export namespace ProviderSettings {
|
|
475
|
+
export interface MultiPrompt {
|
|
476
|
+
/**
|
|
477
|
+
* Duration in seconds for this segment.
|
|
478
|
+
*/
|
|
479
|
+
duration: number;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* The text prompt for this segment.
|
|
483
|
+
*/
|
|
484
|
+
prompt: string;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export interface ReferenceImage {
|
|
489
|
+
/**
|
|
490
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
491
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
492
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
493
|
+
*/
|
|
494
|
+
uri: string;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
498
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
499
|
+
*/
|
|
500
|
+
position?: 'first' | 'last';
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
387
504
|
export interface Hailuo3 {
|
|
388
505
|
model: 'hailuo3';
|
|
389
506
|
|
|
@@ -441,6 +558,100 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
441
558
|
}
|
|
442
559
|
}
|
|
443
560
|
|
|
561
|
+
export interface Kling3_0_4k {
|
|
562
|
+
model: 'kling3.0_4k';
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
566
|
+
* array with a first frame and optionally a last frame. When both keyframes are
|
|
567
|
+
* provided, output aspect ratio follows the first frame. See
|
|
568
|
+
* [image inputs](/assets/inputs#images) for file size limits.
|
|
569
|
+
*/
|
|
570
|
+
promptImage: string | Array<Kling3_0_4k.PromptImage>;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Whether to generate audio for the video.
|
|
574
|
+
*/
|
|
575
|
+
audio?: boolean;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
579
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
580
|
+
*/
|
|
581
|
+
cfgScale?: number;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* The number of seconds of duration for the output video.
|
|
585
|
+
*/
|
|
586
|
+
duration?: number;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* A text prompt describing what should appear in the output video.
|
|
590
|
+
*/
|
|
591
|
+
promptText?: string;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Provider-specific settings for multishot video generation.
|
|
595
|
+
*/
|
|
596
|
+
providerSettings?: Kling3_0_4k.ProviderSettings;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* The resolution of the output video.
|
|
600
|
+
*/
|
|
601
|
+
ratio?: '3840:2160' | '2160:3840' | '2880:2880';
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export namespace Kling3_0_4k {
|
|
605
|
+
export interface PromptImage {
|
|
606
|
+
/**
|
|
607
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
608
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
609
|
+
* video.
|
|
610
|
+
*/
|
|
611
|
+
position: 'first' | 'last';
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
615
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
616
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
617
|
+
*/
|
|
618
|
+
uri: string;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Provider-specific settings for multishot video generation.
|
|
623
|
+
*/
|
|
624
|
+
export interface ProviderSettings {
|
|
625
|
+
/**
|
|
626
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
627
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
628
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
629
|
+
* `"intelligence"`.
|
|
630
|
+
*/
|
|
631
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
635
|
+
* multiPrompt is provided.
|
|
636
|
+
*/
|
|
637
|
+
shotType?: 'intelligence' | 'customize';
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export namespace ProviderSettings {
|
|
641
|
+
export interface MultiPrompt {
|
|
642
|
+
/**
|
|
643
|
+
* Duration in seconds for this segment.
|
|
644
|
+
*/
|
|
645
|
+
duration: number;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* The text prompt for this segment.
|
|
649
|
+
*/
|
|
650
|
+
prompt: string;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
444
655
|
export interface Happyhorse1_0 {
|
|
445
656
|
model: 'happyhorse_1_0';
|
|
446
657
|
|
|
@@ -468,23 +679,475 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
468
679
|
* - `720P` - Deprecated: Use "720p" instead.
|
|
469
680
|
* - `1080P` - Deprecated: Use "1080p" instead.
|
|
470
681
|
*/
|
|
471
|
-
resolution?: '720p' | '1080p' | '720P' | '1080P';
|
|
472
|
-
}
|
|
682
|
+
resolution?: '720p' | '1080p' | '720P' | '1080P';
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export namespace Happyhorse1_0 {
|
|
686
|
+
export interface PromptImage {
|
|
687
|
+
/**
|
|
688
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
689
|
+
* first frame of the video.
|
|
690
|
+
*/
|
|
691
|
+
position: 'first';
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
695
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
696
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
697
|
+
*/
|
|
698
|
+
uri: string;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export interface Kling2_5TurboPro {
|
|
703
|
+
model: 'kling2.5_turbo_pro';
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Image for the first frame of the output video, or an array with first and
|
|
707
|
+
* optionally last frames. Output aspect ratio follows the input image; `ratio` is
|
|
708
|
+
* not supported on image-to-video. See [image inputs](/assets/inputs#images) for
|
|
709
|
+
* file size limits.
|
|
710
|
+
*/
|
|
711
|
+
promptImage: string | Array<Kling2_5TurboPro.PromptImage>;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* A text prompt describing what should appear in the output video.
|
|
715
|
+
*/
|
|
716
|
+
promptText: string;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
720
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
721
|
+
*/
|
|
722
|
+
cfgScale?: number;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* The duration of the output video in seconds. Defaults to 5.
|
|
726
|
+
*/
|
|
727
|
+
duration?: 5 | 10;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export namespace Kling2_5TurboPro {
|
|
731
|
+
export interface PromptImage {
|
|
732
|
+
/**
|
|
733
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
734
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
735
|
+
* video.
|
|
736
|
+
*/
|
|
737
|
+
position: 'first' | 'last';
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
741
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
742
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
743
|
+
*/
|
|
744
|
+
uri: string;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export interface Kling3_0Pro {
|
|
749
|
+
model: 'kling3.0_pro';
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
753
|
+
* array with a first frame and optionally a last frame. When both keyframes are
|
|
754
|
+
* provided, output aspect ratio follows the first frame. See
|
|
755
|
+
* [image inputs](/assets/inputs#images) for file size limits.
|
|
756
|
+
*/
|
|
757
|
+
promptImage: string | Array<Kling3_0Pro.PromptImage>;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Whether to generate audio for the video.
|
|
761
|
+
*/
|
|
762
|
+
audio?: boolean;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
766
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
767
|
+
*/
|
|
768
|
+
cfgScale?: number;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* The number of seconds of duration for the output video.
|
|
772
|
+
*/
|
|
773
|
+
duration?: number;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* A text prompt describing what should appear in the output video.
|
|
777
|
+
*/
|
|
778
|
+
promptText?: string;
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Provider-specific settings for multishot video generation.
|
|
782
|
+
*/
|
|
783
|
+
providerSettings?: Kling3_0Pro.ProviderSettings;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* The resolution of the output video.
|
|
787
|
+
*/
|
|
788
|
+
ratio?: '1920:1080' | '1080:1920' | '1440:1440';
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export namespace Kling3_0Pro {
|
|
792
|
+
export interface PromptImage {
|
|
793
|
+
/**
|
|
794
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
795
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
796
|
+
* video.
|
|
797
|
+
*/
|
|
798
|
+
position: 'first' | 'last';
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
802
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
803
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
804
|
+
*/
|
|
805
|
+
uri: string;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Provider-specific settings for multishot video generation.
|
|
810
|
+
*/
|
|
811
|
+
export interface ProviderSettings {
|
|
812
|
+
/**
|
|
813
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
814
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
815
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
816
|
+
* `"intelligence"`.
|
|
817
|
+
*/
|
|
818
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
822
|
+
* multiPrompt is provided.
|
|
823
|
+
*/
|
|
824
|
+
shotType?: 'intelligence' | 'customize';
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export namespace ProviderSettings {
|
|
828
|
+
export interface MultiPrompt {
|
|
829
|
+
/**
|
|
830
|
+
* Duration in seconds for this segment.
|
|
831
|
+
*/
|
|
832
|
+
duration: number;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* The text prompt for this segment.
|
|
836
|
+
*/
|
|
837
|
+
prompt: string;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export interface Kling3_0Standard {
|
|
843
|
+
model: 'kling3.0_standard';
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
847
|
+
* array with a first frame and optionally a last frame. When both keyframes are
|
|
848
|
+
* provided, output aspect ratio follows the first frame. See
|
|
849
|
+
* [image inputs](/assets/inputs#images) for file size limits.
|
|
850
|
+
*/
|
|
851
|
+
promptImage: string | Array<Kling3_0Standard.PromptImage>;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Whether to generate audio for the video.
|
|
855
|
+
*/
|
|
856
|
+
audio?: boolean;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
860
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
861
|
+
*/
|
|
862
|
+
cfgScale?: number;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* The number of seconds of duration for the output video.
|
|
866
|
+
*/
|
|
867
|
+
duration?: number;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* A text prompt describing what should appear in the output video.
|
|
871
|
+
*/
|
|
872
|
+
promptText?: string;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Provider-specific settings for multishot video generation.
|
|
876
|
+
*/
|
|
877
|
+
providerSettings?: Kling3_0Standard.ProviderSettings;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* The resolution of the output video.
|
|
881
|
+
*/
|
|
882
|
+
ratio?: '1280:720' | '720:1280' | '960:960';
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export namespace Kling3_0Standard {
|
|
886
|
+
export interface PromptImage {
|
|
887
|
+
/**
|
|
888
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
889
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
890
|
+
* video.
|
|
891
|
+
*/
|
|
892
|
+
position: 'first' | 'last';
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
896
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
897
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
898
|
+
*/
|
|
899
|
+
uri: string;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Provider-specific settings for multishot video generation.
|
|
904
|
+
*/
|
|
905
|
+
export interface ProviderSettings {
|
|
906
|
+
/**
|
|
907
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
908
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
909
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
910
|
+
* `"intelligence"`.
|
|
911
|
+
*/
|
|
912
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
916
|
+
* multiPrompt is provided.
|
|
917
|
+
*/
|
|
918
|
+
shotType?: 'intelligence' | 'customize';
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
export namespace ProviderSettings {
|
|
922
|
+
export interface MultiPrompt {
|
|
923
|
+
/**
|
|
924
|
+
* Duration in seconds for this segment.
|
|
925
|
+
*/
|
|
926
|
+
duration: number;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* The text prompt for this segment.
|
|
930
|
+
*/
|
|
931
|
+
prompt: string;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export interface KlingO3Pro {
|
|
937
|
+
model: 'klingO3_pro';
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
941
|
+
* array with a first frame and optionally a last frame. When both keyframes are
|
|
942
|
+
* provided, output aspect ratio follows the first frame. See
|
|
943
|
+
* [image inputs](/assets/inputs#images) for file size limits.
|
|
944
|
+
*/
|
|
945
|
+
promptImage: string | Array<KlingO3Pro.PromptImage>;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Whether to generate audio for the video.
|
|
949
|
+
*/
|
|
950
|
+
audio?: boolean;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* The number of seconds of duration for the output video.
|
|
954
|
+
*/
|
|
955
|
+
duration?: number;
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* A text prompt describing what should appear in the output video.
|
|
959
|
+
*/
|
|
960
|
+
promptText?: string;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Provider-specific settings for multishot video generation.
|
|
964
|
+
*/
|
|
965
|
+
providerSettings?: KlingO3Pro.ProviderSettings;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* The resolution of the output video.
|
|
969
|
+
*/
|
|
970
|
+
ratio?: '1920:1080' | '1080:1920' | '1440:1440';
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* An optional array of reference images (up to 7). See
|
|
974
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
975
|
+
*/
|
|
976
|
+
references?: string | Array<KlingO3Pro.ReferenceImage>;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export namespace KlingO3Pro {
|
|
980
|
+
export interface PromptImage {
|
|
981
|
+
/**
|
|
982
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
983
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
984
|
+
* video.
|
|
985
|
+
*/
|
|
986
|
+
position: 'first' | 'last';
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
990
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
991
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
992
|
+
*/
|
|
993
|
+
uri: string;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Provider-specific settings for multishot video generation.
|
|
998
|
+
*/
|
|
999
|
+
export interface ProviderSettings {
|
|
1000
|
+
/**
|
|
1001
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
1002
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
1003
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
1004
|
+
* `"intelligence"`.
|
|
1005
|
+
*/
|
|
1006
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
1010
|
+
* multiPrompt is provided.
|
|
1011
|
+
*/
|
|
1012
|
+
shotType?: 'intelligence' | 'customize';
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export namespace ProviderSettings {
|
|
1016
|
+
export interface MultiPrompt {
|
|
1017
|
+
/**
|
|
1018
|
+
* Duration in seconds for this segment.
|
|
1019
|
+
*/
|
|
1020
|
+
duration: number;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* The text prompt for this segment.
|
|
1024
|
+
*/
|
|
1025
|
+
prompt: string;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
export interface ReferenceImage {
|
|
1030
|
+
/**
|
|
1031
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1032
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1033
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1034
|
+
*/
|
|
1035
|
+
uri: string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
1039
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
1040
|
+
*/
|
|
1041
|
+
position?: 'first' | 'last';
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export interface KlingO3Standard {
|
|
1046
|
+
model: 'klingO3_standard';
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
1050
|
+
* array with a first frame and optionally a last frame. When both keyframes are
|
|
1051
|
+
* provided, output aspect ratio follows the first frame. See
|
|
1052
|
+
* [image inputs](/assets/inputs#images) for file size limits.
|
|
1053
|
+
*/
|
|
1054
|
+
promptImage: string | Array<KlingO3Standard.PromptImage>;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Whether to generate audio for the video.
|
|
1058
|
+
*/
|
|
1059
|
+
audio?: boolean;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* The number of seconds of duration for the output video.
|
|
1063
|
+
*/
|
|
1064
|
+
duration?: number;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* A text prompt describing what should appear in the output video.
|
|
1068
|
+
*/
|
|
1069
|
+
promptText?: string;
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Provider-specific settings for multishot video generation.
|
|
1073
|
+
*/
|
|
1074
|
+
providerSettings?: KlingO3Standard.ProviderSettings;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* The resolution of the output video.
|
|
1078
|
+
*/
|
|
1079
|
+
ratio?: '1280:720' | '720:1280' | '960:960';
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* An optional array of reference images (up to 7). See
|
|
1083
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1084
|
+
*/
|
|
1085
|
+
references?: string | Array<KlingO3Standard.ReferenceImage>;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export namespace KlingO3Standard {
|
|
1089
|
+
export interface PromptImage {
|
|
1090
|
+
/**
|
|
1091
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
1092
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
1093
|
+
* video.
|
|
1094
|
+
*/
|
|
1095
|
+
position: 'first' | 'last';
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1099
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1100
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1101
|
+
*/
|
|
1102
|
+
uri: string;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Provider-specific settings for multishot video generation.
|
|
1107
|
+
*/
|
|
1108
|
+
export interface ProviderSettings {
|
|
1109
|
+
/**
|
|
1110
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
1111
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
1112
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
1113
|
+
* `"intelligence"`.
|
|
1114
|
+
*/
|
|
1115
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
473
1116
|
|
|
474
|
-
export namespace Happyhorse1_0 {
|
|
475
|
-
export interface PromptImage {
|
|
476
1117
|
/**
|
|
477
|
-
*
|
|
478
|
-
*
|
|
1118
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
1119
|
+
* multiPrompt is provided.
|
|
479
1120
|
*/
|
|
480
|
-
|
|
1121
|
+
shotType?: 'intelligence' | 'customize';
|
|
1122
|
+
}
|
|
481
1123
|
|
|
1124
|
+
export namespace ProviderSettings {
|
|
1125
|
+
export interface MultiPrompt {
|
|
1126
|
+
/**
|
|
1127
|
+
* Duration in seconds for this segment.
|
|
1128
|
+
*/
|
|
1129
|
+
duration: number;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* The text prompt for this segment.
|
|
1133
|
+
*/
|
|
1134
|
+
prompt: string;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
export interface ReferenceImage {
|
|
482
1139
|
/**
|
|
483
1140
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
484
1141
|
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
485
1142
|
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
486
1143
|
*/
|
|
487
1144
|
uri: string;
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
1148
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
1149
|
+
*/
|
|
1150
|
+
position?: 'first' | 'last';
|
|
488
1151
|
}
|
|
489
1152
|
}
|
|
490
1153
|
|
|
@@ -816,109 +1479,13 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
816
1479
|
}
|
|
817
1480
|
}
|
|
818
1481
|
|
|
819
|
-
export interface Seedance2_5 {
|
|
820
|
-
model: 'seedance2_5';
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
824
|
-
* omit position for reference images. The two modes cannot be mixed.
|
|
825
|
-
*/
|
|
826
|
-
promptImage: string | Array<Seedance2_5.PromptImage>;
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Whether to generate audio for the video.
|
|
830
|
-
*/
|
|
831
|
-
audio?: boolean;
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
835
|
-
* billed at the variant maximum up front; unused credits are refunded after the
|
|
836
|
-
* generation finishes.
|
|
837
|
-
*/
|
|
838
|
-
duration?: number | 'auto';
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* An optional text prompt up to 15000 characters describing what should appear in
|
|
842
|
-
* the output.
|
|
843
|
-
*/
|
|
844
|
-
promptText?: string;
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
848
|
-
*/
|
|
849
|
-
ratio?:
|
|
850
|
-
| '992:432'
|
|
851
|
-
| '854:480'
|
|
852
|
-
| '752:560'
|
|
853
|
-
| '640:640'
|
|
854
|
-
| '560:752'
|
|
855
|
-
| '480:854'
|
|
856
|
-
| '1470:630'
|
|
857
|
-
| '1280:720'
|
|
858
|
-
| '1112:834'
|
|
859
|
-
| '960:960'
|
|
860
|
-
| '834:1112'
|
|
861
|
-
| '720:1280'
|
|
862
|
-
| '2206:946'
|
|
863
|
-
| '1920:1080'
|
|
864
|
-
| '1664:1248'
|
|
865
|
-
| '1440:1440'
|
|
866
|
-
| '1248:1664'
|
|
867
|
-
| '1080:1920';
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* An optional array of audio references. The total combined duration must not
|
|
871
|
-
* exceed 30 seconds.
|
|
872
|
-
*/
|
|
873
|
-
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
877
|
-
* get different results for the same other request parameters. Using the same seed
|
|
878
|
-
* integer for an identical request will produce similar results.
|
|
879
|
-
*/
|
|
880
|
-
seed?: number;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export namespace Seedance2_5 {
|
|
884
|
-
export interface PromptImage {
|
|
885
|
-
/**
|
|
886
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
887
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
888
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
889
|
-
*/
|
|
890
|
-
uri: string;
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
894
|
-
* first frame, "last" as the last frame. Omit for a reference image.
|
|
895
|
-
*/
|
|
896
|
-
position?: 'first' | 'last';
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
/**
|
|
900
|
-
* An audio reference allows the model to use the audio as additional context for
|
|
901
|
-
* the output.
|
|
902
|
-
*/
|
|
903
|
-
export interface ReferenceAudio {
|
|
904
|
-
type: 'audio';
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
908
|
-
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
909
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
910
|
-
*/
|
|
911
|
-
uri: string;
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
1482
|
export interface GrokImagine1_5 {
|
|
916
1483
|
model: 'grok_imagine_1_5';
|
|
917
1484
|
|
|
918
1485
|
/**
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
|
-
* [our docs](/assets/inputs#images)
|
|
1486
|
+
* The start frame of the output video. The output keeps its aspect ratio, which
|
|
1487
|
+
* (width / height) must be between 0.4 and 2.5. See
|
|
1488
|
+
* [our docs](/assets/inputs#images) for image input requirements.
|
|
922
1489
|
*/
|
|
923
1490
|
promptImage: string | Array<GrokImagine1_5.PromptImage>;
|
|
924
1491
|
|
|
@@ -1256,13 +1823,123 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
1256
1823
|
}
|
|
1257
1824
|
}
|
|
1258
1825
|
|
|
1826
|
+
export interface Seedance2_5 {
|
|
1827
|
+
model: 'seedance2_5';
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
1831
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
1832
|
+
*/
|
|
1833
|
+
promptImage: string | Array<Seedance2_5.PromptImage>;
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Whether to generate audio for the video.
|
|
1837
|
+
*/
|
|
1838
|
+
audio?: boolean;
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Generate a cheap 480p preview instead of a full-quality video. The returned task
|
|
1842
|
+
* ID can later be enhanced to a 1080p video with the same content by passing it as
|
|
1843
|
+
* `draftTaskId` to `text_to_video`. Drafts can be enhanced within 7 days of
|
|
1844
|
+
* creation. Defaults to false.
|
|
1845
|
+
*/
|
|
1846
|
+
draft?: boolean;
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
1850
|
+
* billed at the variant maximum up front; unused credits are refunded after the
|
|
1851
|
+
* generation finishes.
|
|
1852
|
+
*/
|
|
1853
|
+
duration?: number | 'auto';
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Container for the output video. `mov` keeps high colour precision for grading
|
|
1857
|
+
* and compositing. Defaults to `mp4`. Draft mode only supports `mp4`.
|
|
1858
|
+
*/
|
|
1859
|
+
outputFormat?: 'mp4' | 'mov';
|
|
1860
|
+
|
|
1861
|
+
/**
|
|
1862
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
1863
|
+
* the output.
|
|
1864
|
+
*/
|
|
1865
|
+
promptText?: string;
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
1869
|
+
*/
|
|
1870
|
+
ratio?:
|
|
1871
|
+
| '992:432'
|
|
1872
|
+
| '854:480'
|
|
1873
|
+
| '752:560'
|
|
1874
|
+
| '640:640'
|
|
1875
|
+
| '560:752'
|
|
1876
|
+
| '480:854'
|
|
1877
|
+
| '1470:630'
|
|
1878
|
+
| '1280:720'
|
|
1879
|
+
| '1112:834'
|
|
1880
|
+
| '960:960'
|
|
1881
|
+
| '834:1112'
|
|
1882
|
+
| '720:1280'
|
|
1883
|
+
| '2206:946'
|
|
1884
|
+
| '1920:1080'
|
|
1885
|
+
| '1664:1248'
|
|
1886
|
+
| '1440:1440'
|
|
1887
|
+
| '1248:1664'
|
|
1888
|
+
| '1080:1920';
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* An optional array of audio references. The total combined duration must not
|
|
1892
|
+
* exceed 30 seconds.
|
|
1893
|
+
*/
|
|
1894
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
1898
|
+
* get different results for the same other request parameters. Using the same seed
|
|
1899
|
+
* integer for an identical request will produce similar results.
|
|
1900
|
+
*/
|
|
1901
|
+
seed?: number;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export namespace Seedance2_5 {
|
|
1905
|
+
export interface PromptImage {
|
|
1906
|
+
/**
|
|
1907
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1908
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1909
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1910
|
+
*/
|
|
1911
|
+
uri: string;
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
1915
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
1916
|
+
*/
|
|
1917
|
+
position?: 'first' | 'last';
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
1922
|
+
* the output.
|
|
1923
|
+
*/
|
|
1924
|
+
export interface ReferenceAudio {
|
|
1925
|
+
type: 'audio';
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1929
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
1930
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
1931
|
+
*/
|
|
1932
|
+
uri: string;
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1259
1936
|
export interface GrokImagine1_5Lite {
|
|
1260
1937
|
model: 'grok_imagine_1_5_lite';
|
|
1261
1938
|
|
|
1262
1939
|
/**
|
|
1263
|
-
*
|
|
1264
|
-
*
|
|
1265
|
-
* [our docs](/assets/inputs#images)
|
|
1940
|
+
* The start frame of the output video. The output keeps its aspect ratio, which
|
|
1941
|
+
* (width / height) must be between 0.4 and 2.5. See
|
|
1942
|
+
* [our docs](/assets/inputs#images) for image input requirements.
|
|
1266
1943
|
*/
|
|
1267
1944
|
promptImage: string | Array<GrokImagine1_5Lite.PromptImage>;
|
|
1268
1945
|
|
|
@@ -1299,6 +1976,54 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
1299
1976
|
uri: string;
|
|
1300
1977
|
}
|
|
1301
1978
|
}
|
|
1979
|
+
|
|
1980
|
+
export interface Kling4 {
|
|
1981
|
+
model: 'kling_4';
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* The first frame of the video, or an array with a first frame and optional middle
|
|
1985
|
+
* and last frames. The video follows the first frame’s aspect ratio.
|
|
1986
|
+
*/
|
|
1987
|
+
promptImage: string | Array<unknown>;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* The duration of the output video in seconds.
|
|
1991
|
+
*/
|
|
1992
|
+
duration?: number;
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* A text prompt describing what should happen in the video.
|
|
1996
|
+
*/
|
|
1997
|
+
promptText?: string;
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Output quality tier. The video keeps the input media framing.
|
|
2001
|
+
*/
|
|
2002
|
+
ratio?: 'auto_720p' | 'auto_1080p';
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
|
2006
|
+
* total, frames included.
|
|
2007
|
+
*/
|
|
2008
|
+
references?: Array<Kling4.Reference>;
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Up to 5 videos whose style, motion or camera work should guide the output,
|
|
2012
|
+
* together at most 30 seconds long.
|
|
2013
|
+
*/
|
|
2014
|
+
referenceVideos?: Array<unknown>;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
export namespace Kling4 {
|
|
2018
|
+
export interface Reference {
|
|
2019
|
+
/**
|
|
2020
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2021
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2022
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2023
|
+
*/
|
|
2024
|
+
uri: string;
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
1302
2027
|
}
|
|
1303
2028
|
|
|
1304
2029
|
export declare namespace ImageToVideo {
|