@runwayml/sdk 4.19.1 → 4.20.1

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +1 -1
  3. package/resources/image-to-video.d.mts +192 -19
  4. package/resources/image-to-video.d.mts.map +1 -1
  5. package/resources/image-to-video.d.ts +192 -19
  6. package/resources/image-to-video.d.ts.map +1 -1
  7. package/resources/image-to-video.js +9 -0
  8. package/resources/image-to-video.js.map +1 -1
  9. package/resources/image-to-video.mjs +9 -0
  10. package/resources/image-to-video.mjs.map +1 -1
  11. package/resources/organization/organization.d.mts +6 -4
  12. package/resources/organization/organization.d.mts.map +1 -1
  13. package/resources/organization/organization.d.ts +6 -4
  14. package/resources/organization/organization.d.ts.map +1 -1
  15. package/resources/organization/organization.js.map +1 -1
  16. package/resources/organization/organization.mjs.map +1 -1
  17. package/resources/organization/webapp/audit-logs.d.mts +59 -22
  18. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  19. package/resources/organization/webapp/audit-logs.d.ts +59 -22
  20. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  21. package/resources/realtime-sessions.d.mts +6 -3
  22. package/resources/realtime-sessions.d.mts.map +1 -1
  23. package/resources/realtime-sessions.d.ts +6 -3
  24. package/resources/realtime-sessions.d.ts.map +1 -1
  25. package/resources/tasks.d.mts +12 -6
  26. package/resources/tasks.d.mts.map +1 -1
  27. package/resources/tasks.d.ts +12 -6
  28. package/resources/tasks.d.ts.map +1 -1
  29. package/resources/text-to-image.d.mts +142 -47
  30. package/resources/text-to-image.d.mts.map +1 -1
  31. package/resources/text-to-image.d.ts +142 -47
  32. package/resources/text-to-image.d.ts.map +1 -1
  33. package/resources/text-to-speech.d.mts +5 -3
  34. package/resources/text-to-speech.d.mts.map +1 -1
  35. package/resources/text-to-speech.d.ts +5 -3
  36. package/resources/text-to-speech.d.ts.map +1 -1
  37. package/resources/text-to-video.d.mts +177 -24
  38. package/resources/text-to-video.d.mts.map +1 -1
  39. package/resources/text-to-video.d.ts +177 -24
  40. package/resources/text-to-video.d.ts.map +1 -1
  41. package/resources/text-to-video.js +8 -0
  42. package/resources/text-to-video.js.map +1 -1
  43. package/resources/text-to-video.mjs +8 -0
  44. package/resources/text-to-video.mjs.map +1 -1
  45. package/resources/video-to-hdr.d.mts +25 -9
  46. package/resources/video-to-hdr.d.mts.map +1 -1
  47. package/resources/video-to-hdr.d.ts +25 -9
  48. package/resources/video-to-hdr.d.ts.map +1 -1
  49. package/resources/video-to-hdr.js +4 -2
  50. package/resources/video-to-hdr.js.map +1 -1
  51. package/resources/video-to-hdr.mjs +4 -2
  52. package/resources/video-to-hdr.mjs.map +1 -1
  53. package/resources/video-to-video.d.mts +53 -5
  54. package/resources/video-to-video.d.mts.map +1 -1
  55. package/resources/video-to-video.d.ts +53 -5
  56. package/resources/video-to-video.d.ts.map +1 -1
  57. package/resources/video-upscale.d.mts +49 -33
  58. package/resources/video-upscale.d.mts.map +1 -1
  59. package/resources/video-upscale.d.ts +49 -33
  60. package/resources/video-upscale.d.ts.map +1 -1
  61. package/resources/workflow-invocations.d.mts +29 -4
  62. package/resources/workflow-invocations.d.mts.map +1 -1
  63. package/resources/workflow-invocations.d.ts +29 -4
  64. package/resources/workflow-invocations.d.ts.map +1 -1
  65. package/resources/workflow-invocations.js +3 -1
  66. package/resources/workflow-invocations.js.map +1 -1
  67. package/resources/workflow-invocations.mjs +3 -1
  68. package/resources/workflow-invocations.mjs.map +1 -1
  69. package/src/resources/image-to-video.ts +258 -26
  70. package/src/resources/organization/organization.ts +22 -2
  71. package/src/resources/organization/webapp/audit-logs.ts +119 -22
  72. package/src/resources/realtime-sessions.ts +6 -3
  73. package/src/resources/tasks.ts +12 -6
  74. package/src/resources/text-to-image.ts +262 -85
  75. package/src/resources/text-to-speech.ts +5 -3
  76. package/src/resources/text-to-video.ts +242 -31
  77. package/src/resources/video-to-hdr.ts +31 -9
  78. package/src/resources/video-to-video.ts +70 -5
  79. package/src/resources/video-upscale.ts +55 -33
  80. package/src/resources/workflow-invocations.ts +32 -4
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. 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
 
@@ -89,19 +89,21 @@ export declare namespace TextToSpeechCreateParams {
89
89
  speechRate?: number;
90
90
 
91
91
  /**
92
- * Clone from a single reference audio clip, then speak promptText in that voice.
92
+ * The voice to use for text-to-speech generation. If omitted, a default voice is
93
+ * used.
93
94
  */
94
95
  voice?: SeedAudio.Voice;
95
96
  }
96
97
 
97
98
  export namespace SeedAudio {
98
99
  /**
99
- * Clone from a single reference audio clip, then speak promptText in that voice.
100
+ * The voice to use for text-to-speech generation. If omitted, a default voice is
101
+ * used.
100
102
  */
101
103
  export interface Voice {
102
104
  /**
103
105
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
104
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
106
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
105
107
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
106
108
  */
107
109
  audioUri: string;