@runwayml/sdk 4.20.0 → 4.21.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 +29 -0
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +38 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +38 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +6 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +6 -4
- 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 +42 -15
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +42 -15
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +142 -47
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +142 -47
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +67 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +67 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +17 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +17 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-hdr.d.mts +19 -10
- package/resources/video-to-hdr.d.mts.map +1 -1
- package/resources/video-to-hdr.d.ts +19 -10
- package/resources/video-to-hdr.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +49 -33
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +49 -33
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/workflow-invocations.d.mts +56 -4
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts +56 -4
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/resources/workflow-invocations.js +3 -1
- package/resources/workflow-invocations.js.map +1 -1
- package/resources/workflow-invocations.mjs +3 -1
- package/resources/workflow-invocations.mjs.map +1 -1
- package/src/resources/image-to-video.ts +46 -1
- package/src/resources/organization/organization.ts +14 -2
- package/src/resources/organization/webapp/audit-logs.ts +85 -15
- package/src/resources/text-to-image.ts +262 -85
- package/src/resources/text-to-speech.ts +130 -0
- package/src/resources/text-to-video.ts +43 -1
- package/src/resources/video-to-hdr.ts +19 -10
- package/src/resources/video-upscale.ts +55 -33
- package/src/resources/workflow-invocations.ts +63 -4
- 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
|
@@ -51,12 +51,14 @@ export type TextToImageCreateParams =
|
|
|
51
51
|
| TextToImageCreateParams.Gen4ImageTurbo
|
|
52
52
|
| TextToImageCreateParams.Gen4Image
|
|
53
53
|
| TextToImageCreateParams.GptImage2
|
|
54
|
-
| TextToImageCreateParams.GeminiImage3Pro
|
|
55
54
|
| TextToImageCreateParams.GeminiImage3_1Flash
|
|
56
55
|
| TextToImageCreateParams.MuseImage
|
|
57
56
|
| TextToImageCreateParams.Seedream5Pro
|
|
58
57
|
| TextToImageCreateParams.Seedream5Lite
|
|
59
58
|
| TextToImageCreateParams.GrokImagineImage2
|
|
59
|
+
| TextToImageCreateParams.GeminiImage3Pro
|
|
60
|
+
| TextToImageCreateParams.GptImage2_5Flare
|
|
61
|
+
| TextToImageCreateParams.GptImage2_5Sunburst
|
|
60
62
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
61
63
|
|
|
62
64
|
export declare namespace TextToImageCreateParams {
|
|
@@ -303,90 +305,6 @@ export declare namespace TextToImageCreateParams {
|
|
|
303
305
|
}
|
|
304
306
|
}
|
|
305
307
|
|
|
306
|
-
export interface GeminiImage3Pro {
|
|
307
|
-
model: 'gemini_image3_pro';
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* This should describe in detail what should appear in the output.
|
|
311
|
-
*/
|
|
312
|
-
promptText: string;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* The resolution of the output image.
|
|
316
|
-
*/
|
|
317
|
-
ratio:
|
|
318
|
-
| '1344:768'
|
|
319
|
-
| '768:1344'
|
|
320
|
-
| '1024:1024'
|
|
321
|
-
| '1184:864'
|
|
322
|
-
| '864:1184'
|
|
323
|
-
| '1536:672'
|
|
324
|
-
| '832:1248'
|
|
325
|
-
| '1248:832'
|
|
326
|
-
| '896:1152'
|
|
327
|
-
| '1152:896'
|
|
328
|
-
| '2048:2048'
|
|
329
|
-
| '1696:2528'
|
|
330
|
-
| '2528:1696'
|
|
331
|
-
| '1792:2400'
|
|
332
|
-
| '2400:1792'
|
|
333
|
-
| '1856:2304'
|
|
334
|
-
| '2304:1856'
|
|
335
|
-
| '1536:2752'
|
|
336
|
-
| '2752:1536'
|
|
337
|
-
| '3168:1344'
|
|
338
|
-
| '4096:4096'
|
|
339
|
-
| '3392:5056'
|
|
340
|
-
| '5056:3392'
|
|
341
|
-
| '3584:4800'
|
|
342
|
-
| '4800:3584'
|
|
343
|
-
| '3712:4608'
|
|
344
|
-
| '4608:3712'
|
|
345
|
-
| '3072:5504'
|
|
346
|
-
| '5504:3072'
|
|
347
|
-
| '6336:2688';
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* The number of images to generate. Increasing this number will affect the number
|
|
351
|
-
* of credits consumed by the generation. Up to four images can be generated at
|
|
352
|
-
* once.
|
|
353
|
-
*/
|
|
354
|
-
outputCount?: 1 | 4;
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* An array of up to 14 images to be used as references for the generated image
|
|
358
|
-
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
359
|
-
* character consistency, and up to nine of those images can pass
|
|
360
|
-
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
361
|
-
* output.
|
|
362
|
-
*/
|
|
363
|
-
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export namespace GeminiImage3Pro {
|
|
367
|
-
export interface ReferenceImage {
|
|
368
|
-
/**
|
|
369
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
370
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
371
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
372
|
-
*/
|
|
373
|
-
uri: string;
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Whether this is a reference of a human subject (for character consistency) or an
|
|
377
|
-
* object that appears in the output.
|
|
378
|
-
*/
|
|
379
|
-
subject?: 'object' | 'human';
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* A tag to identify the reference image. This is used to reference the image in
|
|
383
|
-
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
384
|
-
* digits, and underscores (no hyphens or other punctuation).
|
|
385
|
-
*/
|
|
386
|
-
tag?: string;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
308
|
export interface GeminiImage3_1Flash {
|
|
391
309
|
model: 'gemini_image3.1_flash';
|
|
392
310
|
|
|
@@ -763,6 +681,265 @@ export declare namespace TextToImageCreateParams {
|
|
|
763
681
|
}
|
|
764
682
|
}
|
|
765
683
|
|
|
684
|
+
export interface GeminiImage3Pro {
|
|
685
|
+
model: 'gemini_image3_pro';
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* This should describe in detail what should appear in the output.
|
|
689
|
+
*/
|
|
690
|
+
promptText: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* The resolution of the output image.
|
|
694
|
+
*/
|
|
695
|
+
ratio:
|
|
696
|
+
| '1344:768'
|
|
697
|
+
| '768:1344'
|
|
698
|
+
| '1024:1024'
|
|
699
|
+
| '1184:864'
|
|
700
|
+
| '864:1184'
|
|
701
|
+
| '1536:672'
|
|
702
|
+
| '832:1248'
|
|
703
|
+
| '1248:832'
|
|
704
|
+
| '896:1152'
|
|
705
|
+
| '1152:896'
|
|
706
|
+
| '2048:2048'
|
|
707
|
+
| '1696:2528'
|
|
708
|
+
| '2528:1696'
|
|
709
|
+
| '1792:2400'
|
|
710
|
+
| '2400:1792'
|
|
711
|
+
| '1856:2304'
|
|
712
|
+
| '2304:1856'
|
|
713
|
+
| '1536:2752'
|
|
714
|
+
| '2752:1536'
|
|
715
|
+
| '3168:1344'
|
|
716
|
+
| '4096:4096'
|
|
717
|
+
| '3392:5056'
|
|
718
|
+
| '5056:3392'
|
|
719
|
+
| '3584:4800'
|
|
720
|
+
| '4800:3584'
|
|
721
|
+
| '3712:4608'
|
|
722
|
+
| '4608:3712'
|
|
723
|
+
| '3072:5504'
|
|
724
|
+
| '5504:3072'
|
|
725
|
+
| '6336:2688';
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
729
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
730
|
+
* once.
|
|
731
|
+
*/
|
|
732
|
+
outputCount?: 1 | 4;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
736
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
737
|
+
* character consistency, and up to nine of those images can pass
|
|
738
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
739
|
+
* output.
|
|
740
|
+
*/
|
|
741
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
export namespace GeminiImage3Pro {
|
|
745
|
+
export interface ReferenceImage {
|
|
746
|
+
/**
|
|
747
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
748
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
749
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
750
|
+
*/
|
|
751
|
+
uri: string;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
755
|
+
* object that appears in the output.
|
|
756
|
+
*/
|
|
757
|
+
subject?: 'object' | 'human';
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
761
|
+
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
762
|
+
* digits, and underscores (no hyphens or other punctuation).
|
|
763
|
+
*/
|
|
764
|
+
tag?: string;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
export interface GptImage2_5Flare {
|
|
769
|
+
model: 'gpt_image_2_5_flare';
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* A non-empty string describing the desired image.
|
|
773
|
+
*/
|
|
774
|
+
promptText: string;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
778
|
+
* to let the model choose.
|
|
779
|
+
*/
|
|
780
|
+
ratio:
|
|
781
|
+
| '2048:880'
|
|
782
|
+
| '1920:1088'
|
|
783
|
+
| '1920:1280'
|
|
784
|
+
| '1920:1440'
|
|
785
|
+
| '1920:1536'
|
|
786
|
+
| '1920:1920'
|
|
787
|
+
| '1536:1920'
|
|
788
|
+
| '1440:1920'
|
|
789
|
+
| '1280:1920'
|
|
790
|
+
| '1088:1920'
|
|
791
|
+
| '2912:1248'
|
|
792
|
+
| '2560:1440'
|
|
793
|
+
| '2560:1712'
|
|
794
|
+
| '2560:1920'
|
|
795
|
+
| '2560:2048'
|
|
796
|
+
| '2560:2560'
|
|
797
|
+
| '2048:2560'
|
|
798
|
+
| '1920:2560'
|
|
799
|
+
| '1712:2560'
|
|
800
|
+
| '1440:2560'
|
|
801
|
+
| '3840:1648'
|
|
802
|
+
| '3840:2160'
|
|
803
|
+
| '3504:2336'
|
|
804
|
+
| '3264:2448'
|
|
805
|
+
| '3200:2560'
|
|
806
|
+
| '2880:2880'
|
|
807
|
+
| '2560:3200'
|
|
808
|
+
| '2448:3264'
|
|
809
|
+
| '2336:3504'
|
|
810
|
+
| '2160:3840'
|
|
811
|
+
| 'auto';
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
815
|
+
*/
|
|
816
|
+
background?: 'opaque' | 'auto';
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
820
|
+
* number of credits consumed by the generation.
|
|
821
|
+
*/
|
|
822
|
+
outputCount?: number;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
826
|
+
*/
|
|
827
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
831
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
832
|
+
* per generated image.
|
|
833
|
+
*/
|
|
834
|
+
referenceImages?: Array<GptImage2_5Flare.ReferenceImage>;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export namespace GptImage2_5Flare {
|
|
838
|
+
export interface ReferenceImage {
|
|
839
|
+
/**
|
|
840
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
841
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
842
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
843
|
+
*/
|
|
844
|
+
uri: string;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
848
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
849
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
850
|
+
*/
|
|
851
|
+
tag?: string;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
export interface GptImage2_5Sunburst {
|
|
856
|
+
model: 'gpt_image_2_5_sunburst';
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* A non-empty string describing the desired image.
|
|
860
|
+
*/
|
|
861
|
+
promptText: string;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
865
|
+
* to let the model choose.
|
|
866
|
+
*/
|
|
867
|
+
ratio:
|
|
868
|
+
| '2048:880'
|
|
869
|
+
| '1920:1088'
|
|
870
|
+
| '1920:1280'
|
|
871
|
+
| '1920:1440'
|
|
872
|
+
| '1920:1536'
|
|
873
|
+
| '1920:1920'
|
|
874
|
+
| '1536:1920'
|
|
875
|
+
| '1440:1920'
|
|
876
|
+
| '1280:1920'
|
|
877
|
+
| '1088:1920'
|
|
878
|
+
| '2912:1248'
|
|
879
|
+
| '2560:1440'
|
|
880
|
+
| '2560:1712'
|
|
881
|
+
| '2560:1920'
|
|
882
|
+
| '2560:2048'
|
|
883
|
+
| '2560:2560'
|
|
884
|
+
| '2048:2560'
|
|
885
|
+
| '1920:2560'
|
|
886
|
+
| '1712:2560'
|
|
887
|
+
| '1440:2560'
|
|
888
|
+
| '3840:1648'
|
|
889
|
+
| '3840:2160'
|
|
890
|
+
| '3504:2336'
|
|
891
|
+
| '3264:2448'
|
|
892
|
+
| '3200:2560'
|
|
893
|
+
| '2880:2880'
|
|
894
|
+
| '2560:3200'
|
|
895
|
+
| '2448:3264'
|
|
896
|
+
| '2336:3504'
|
|
897
|
+
| '2160:3840'
|
|
898
|
+
| 'auto';
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Background treatment. Defaults to `auto`, which lets the model pick. Use
|
|
902
|
+
* `transparent` to generate a PNG with an alpha-channel background.
|
|
903
|
+
*/
|
|
904
|
+
background?: 'transparent' | 'opaque' | 'auto';
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
908
|
+
* number of credits consumed by the generation.
|
|
909
|
+
*/
|
|
910
|
+
outputCount?: number;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
914
|
+
*/
|
|
915
|
+
quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
919
|
+
* output. No two images may share the same tag. Each reference image adds 1 credit
|
|
920
|
+
* per generated image.
|
|
921
|
+
*/
|
|
922
|
+
referenceImages?: Array<GptImage2_5Sunburst.ReferenceImage>;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export namespace GptImage2_5Sunburst {
|
|
926
|
+
export interface ReferenceImage {
|
|
927
|
+
/**
|
|
928
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
929
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
930
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
931
|
+
*/
|
|
932
|
+
uri: string;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
936
|
+
* in prompt text. Must be 3-16 characters, start with a letter, and use only
|
|
937
|
+
* letters, digits, and underscores (no hyphens or other punctuation).
|
|
938
|
+
*/
|
|
939
|
+
tag?: string;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
766
943
|
export interface Gemini2_5Flash {
|
|
767
944
|
model: 'gemini_2.5_flash';
|
|
768
945
|
|
|
@@ -49,6 +49,7 @@ export namespace TextToSpeechCreateResponse {
|
|
|
49
49
|
|
|
50
50
|
export type TextToSpeechCreateParams =
|
|
51
51
|
| TextToSpeechCreateParams.SeedAudio
|
|
52
|
+
| TextToSpeechCreateParams.ElevenV4
|
|
52
53
|
| TextToSpeechCreateParams.ElevenMultilingualV2
|
|
53
54
|
| TextToSpeechCreateParams.ElevenV3;
|
|
54
55
|
|
|
@@ -112,6 +113,135 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
export interface ElevenV4 {
|
|
117
|
+
model: 'eleven_v4';
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The text to convert to speech. You can include expressive audio tags like
|
|
121
|
+
* [laughs], [whispers], or [pause] in the script.
|
|
122
|
+
*/
|
|
123
|
+
promptText: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* A voice preset from the RunwayML API.
|
|
127
|
+
*/
|
|
128
|
+
voice: ElevenV4.Voice;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Language code to enforce pronunciation, such as "en" or "pt". A regional code
|
|
132
|
+
* such as "pt-BR" is read as its language.
|
|
133
|
+
*/
|
|
134
|
+
languageCode?: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Text that comes after this request, so the speech can lead into a later
|
|
138
|
+
* generation.
|
|
139
|
+
*/
|
|
140
|
+
nextText?: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Text that comes before this request, so the speech can continue from an earlier
|
|
144
|
+
* generation.
|
|
145
|
+
*/
|
|
146
|
+
previousText?: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Optional seed for more consistent output. The same seed and settings tend to
|
|
150
|
+
* sound alike, but it is not guaranteed.
|
|
151
|
+
*/
|
|
152
|
+
seed?: number;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* How closely the output tracks the original speaker.
|
|
156
|
+
*/
|
|
157
|
+
similarityBoost?: number;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Speech speed multiplier. Values below 1 slow the speech down, and values above 1
|
|
161
|
+
* speed it up.
|
|
162
|
+
*/
|
|
163
|
+
speed?: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Voice stability. Lower values allow broader emotional range; higher values are
|
|
167
|
+
* steadier.
|
|
168
|
+
*/
|
|
169
|
+
stability?: number;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Style exaggeration. Higher values amplify the speaker style.
|
|
173
|
+
*/
|
|
174
|
+
style?: number;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Boost similarity to the original speaker at a small latency cost.
|
|
178
|
+
*/
|
|
179
|
+
useSpeakerBoost?: boolean;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace ElevenV4 {
|
|
183
|
+
/**
|
|
184
|
+
* A voice preset from the RunwayML API.
|
|
185
|
+
*/
|
|
186
|
+
export interface Voice {
|
|
187
|
+
/**
|
|
188
|
+
* The preset voice ID to use for the generated speech.
|
|
189
|
+
*/
|
|
190
|
+
presetId:
|
|
191
|
+
| 'Maya'
|
|
192
|
+
| 'Arjun'
|
|
193
|
+
| 'Serene'
|
|
194
|
+
| 'Bernard'
|
|
195
|
+
| 'Billy'
|
|
196
|
+
| 'Mark'
|
|
197
|
+
| 'Clint'
|
|
198
|
+
| 'Mabel'
|
|
199
|
+
| 'Chad'
|
|
200
|
+
| 'Leslie'
|
|
201
|
+
| 'Eleanor'
|
|
202
|
+
| 'Elias'
|
|
203
|
+
| 'Elliot'
|
|
204
|
+
| 'Grungle'
|
|
205
|
+
| 'Brodie'
|
|
206
|
+
| 'Sandra'
|
|
207
|
+
| 'Kirk'
|
|
208
|
+
| 'Kylie'
|
|
209
|
+
| 'Lara'
|
|
210
|
+
| 'Lisa'
|
|
211
|
+
| 'Malachi'
|
|
212
|
+
| 'Marlene'
|
|
213
|
+
| 'Martin'
|
|
214
|
+
| 'Miriam'
|
|
215
|
+
| 'Monster'
|
|
216
|
+
| 'Paula'
|
|
217
|
+
| 'Pip'
|
|
218
|
+
| 'Rusty'
|
|
219
|
+
| 'Ragnar'
|
|
220
|
+
| 'Xylar'
|
|
221
|
+
| 'Maggie'
|
|
222
|
+
| 'Jack'
|
|
223
|
+
| 'Katie'
|
|
224
|
+
| 'Noah'
|
|
225
|
+
| 'James'
|
|
226
|
+
| 'Rina'
|
|
227
|
+
| 'Ella'
|
|
228
|
+
| 'Mariah'
|
|
229
|
+
| 'Frank'
|
|
230
|
+
| 'Claudia'
|
|
231
|
+
| 'Niki'
|
|
232
|
+
| 'Vincent'
|
|
233
|
+
| 'Kendrick'
|
|
234
|
+
| 'Myrna'
|
|
235
|
+
| 'Tom'
|
|
236
|
+
| 'Wanda'
|
|
237
|
+
| 'Benjamin'
|
|
238
|
+
| 'Kiana'
|
|
239
|
+
| 'Rachel';
|
|
240
|
+
|
|
241
|
+
type: 'runway-preset';
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
115
245
|
export interface ElevenMultilingualV2 {
|
|
116
246
|
model: 'eleven_multilingual_v2';
|
|
117
247
|
|
|
@@ -70,7 +70,8 @@ export type TextToVideoCreateParams =
|
|
|
70
70
|
| TextToVideoCreateParams.Wan3
|
|
71
71
|
| TextToVideoCreateParams.GeminiOmniFlash1_1
|
|
72
72
|
| TextToVideoCreateParams.Wan3Prime
|
|
73
|
-
| TextToVideoCreateParams.H3Max
|
|
73
|
+
| TextToVideoCreateParams.H3Max
|
|
74
|
+
| TextToVideoCreateParams.GrokImagine1_5Lite;
|
|
74
75
|
|
|
75
76
|
export declare namespace TextToVideoCreateParams {
|
|
76
77
|
export interface Gen4_5 {
|
|
@@ -1178,6 +1179,47 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1178
1179
|
*/
|
|
1179
1180
|
seed?: number;
|
|
1180
1181
|
}
|
|
1182
|
+
|
|
1183
|
+
export interface GrokImagine1_5Lite {
|
|
1184
|
+
model: 'grok_imagine_1_5_lite';
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
1188
|
+
*/
|
|
1189
|
+
promptText: string;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* The number of seconds of duration for the output video.
|
|
1193
|
+
*/
|
|
1194
|
+
duration?: number;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* The resolution of the output video. The 1080p sizes are rendered at 720p and
|
|
1198
|
+
* upscaled.
|
|
1199
|
+
*/
|
|
1200
|
+
ratio?:
|
|
1201
|
+
| '848:480'
|
|
1202
|
+
| '480:848'
|
|
1203
|
+
| '480:480'
|
|
1204
|
+
| '640:480'
|
|
1205
|
+
| '480:640'
|
|
1206
|
+
| '720:480'
|
|
1207
|
+
| '480:720'
|
|
1208
|
+
| '1280:720'
|
|
1209
|
+
| '720:1280'
|
|
1210
|
+
| '720:720'
|
|
1211
|
+
| '960:720'
|
|
1212
|
+
| '720:960'
|
|
1213
|
+
| '1088:720'
|
|
1214
|
+
| '720:1088'
|
|
1215
|
+
| '1904:1072'
|
|
1216
|
+
| '1072:1904'
|
|
1217
|
+
| '1424:1424'
|
|
1218
|
+
| '1648:1232'
|
|
1219
|
+
| '1232:1648'
|
|
1220
|
+
| '1744:1152'
|
|
1221
|
+
| '1152:1744';
|
|
1222
|
+
}
|
|
1181
1223
|
}
|
|
1182
1224
|
|
|
1183
1225
|
export declare namespace TextToVideo {
|
|
@@ -83,15 +83,22 @@ export interface VideoToHdrCreateParams {
|
|
|
83
83
|
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
84
84
|
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
85
85
|
* light, 1.0 = 100 nits, ready to composite; `hdr_exr_acescg_sequence_1_3` returns
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
86
|
+
* a scene-referred ACEScg sequence with VFX frame naming (frame.0001.exr): the
|
|
87
|
+
* source plate brought into ACES through the inverse ACES 1.3 SDR (Rec.709) Output
|
|
88
|
+
* Transform, with the highlight detail Ruby recovers added on top — read it with
|
|
89
|
+
* the stock `ACES - ACEScg` input transform; the ACES SDR view reproduces your
|
|
90
|
+
* source, and the ACES HDR views render the same scene with the recovered
|
|
91
|
+
* highlights (this is a scene, not the `hdr10` display grade, so an ACES HDR view
|
|
92
|
+
* is not expected to match `hdr10`). An EXR zip is the whole delivery — the
|
|
93
|
+
* frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
94
|
+
* upconvert, and the source audio as audio.wav when the source has any. A source
|
|
95
|
+
* with an alpha channel (ProRes 4444, WebM with alpha, RGBA codecs) keeps it where
|
|
96
|
+
* the container can carry one: the EXR profiles write it as the A channel and
|
|
97
|
+
* `hdr_prores` delivers a 4444 with an alpha plane; the alpha is passed through as
|
|
98
|
+
* received (not premultiplied). `hdr10` and `hlg` cannot carry alpha and deliver
|
|
99
|
+
* the picture without it. All five profiles bill at the same rate: 20 credits per
|
|
100
|
+
* second of output, rising to 40 credits per second when the source is larger than
|
|
101
|
+
* 4 megapixels — that includes anything larger than 1440p, up through 4K.
|
|
95
102
|
*/
|
|
96
103
|
outputFormat?:
|
|
97
104
|
| 'hdr10'
|
|
@@ -103,7 +110,9 @@ export interface VideoToHdrCreateParams {
|
|
|
103
110
|
|
|
104
111
|
/**
|
|
105
112
|
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
106
|
-
* `hdr_prores`. Defaults to `422 HQ`.
|
|
113
|
+
* `hdr_prores`. Defaults to `422 HQ`. A source with an alpha channel is always
|
|
114
|
+
* delivered as `4444`, the only tier with an alpha plane, whatever tier is
|
|
115
|
+
* requested.
|
|
107
116
|
*/
|
|
108
117
|
proresProfile?: '422' | '4444' | '422 HQ';
|
|
109
118
|
}
|