@runwayml/sdk 4.19.1 → 4.20.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +7 -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 +2 -2
  12. package/resources/organization/organization.d.mts.map +1 -1
  13. package/resources/organization/organization.d.ts +2 -2
  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 +46 -22
  18. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  19. package/resources/organization/webapp/audit-logs.d.ts +46 -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-speech.d.mts +5 -3
  30. package/resources/text-to-speech.d.mts.map +1 -1
  31. package/resources/text-to-speech.d.ts +5 -3
  32. package/resources/text-to-speech.d.ts.map +1 -1
  33. package/resources/text-to-video.d.mts +177 -24
  34. package/resources/text-to-video.d.mts.map +1 -1
  35. package/resources/text-to-video.d.ts +177 -24
  36. package/resources/text-to-video.d.ts.map +1 -1
  37. package/resources/text-to-video.js +8 -0
  38. package/resources/text-to-video.js.map +1 -1
  39. package/resources/text-to-video.mjs +8 -0
  40. package/resources/text-to-video.mjs.map +1 -1
  41. package/resources/video-to-hdr.d.mts +15 -8
  42. package/resources/video-to-hdr.d.mts.map +1 -1
  43. package/resources/video-to-hdr.d.ts +15 -8
  44. package/resources/video-to-hdr.d.ts.map +1 -1
  45. package/resources/video-to-hdr.js +4 -2
  46. package/resources/video-to-hdr.js.map +1 -1
  47. package/resources/video-to-hdr.mjs +4 -2
  48. package/resources/video-to-hdr.mjs.map +1 -1
  49. package/resources/video-to-video.d.mts +53 -5
  50. package/resources/video-to-video.d.mts.map +1 -1
  51. package/resources/video-to-video.d.ts +53 -5
  52. package/resources/video-to-video.d.ts.map +1 -1
  53. package/src/resources/image-to-video.ts +258 -26
  54. package/src/resources/organization/organization.ts +12 -0
  55. package/src/resources/organization/webapp/audit-logs.ts +90 -20
  56. package/src/resources/realtime-sessions.ts +6 -3
  57. package/src/resources/tasks.ts +12 -6
  58. package/src/resources/text-to-speech.ts +5 -3
  59. package/src/resources/text-to-video.ts +242 -31
  60. package/src/resources/video-to-hdr.ts +21 -8
  61. package/src/resources/video-to-video.ts +70 -5
  62. package/src/version.ts +1 -1
  63. package/version.d.mts +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. package/version.mjs +1 -1
@@ -10,6 +10,14 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
10
10
  export class TextToVideo extends APIResource {
11
11
  /**
12
12
  * This endpoint will start a new task to generate a video from a text prompt.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const textToVideo = await client.textToVideo.create({
17
+ * model: 'hailuo3',
18
+ * promptText: 'x',
19
+ * });
20
+ * ```
13
21
  */
14
22
  create(
15
23
  body: TextToVideoCreateParams,
@@ -59,7 +67,10 @@ export type TextToVideoCreateParams =
59
67
  | TextToVideoCreateParams.GeminiOmniFlash
60
68
  | TextToVideoCreateParams.Seedance2_5
61
69
  | TextToVideoCreateParams.GrokImagine1_5
62
- | TextToVideoCreateParams.Wan3;
70
+ | TextToVideoCreateParams.Wan3
71
+ | TextToVideoCreateParams.GeminiOmniFlash1_1
72
+ | TextToVideoCreateParams.Wan3Prime
73
+ | TextToVideoCreateParams.H3Max;
63
74
 
64
75
  export declare namespace TextToVideoCreateParams {
65
76
  export interface Gen4_5 {
@@ -101,11 +112,16 @@ export declare namespace TextToVideoCreateParams {
101
112
  * losslessly (plus a colorimetry.json sidecar and a separate .wav when the output
102
113
  * has audio); `hdr_exr_sequence` returns a .zip of half-float OpenEXR frames
103
114
  * carrying the HDR signal as linear BT.2020 display light, 1.0 = 100 nits (plus a
104
- * colorimetry.json sidecar and a separate .wav when the output has audio). Non-mp4
105
- * formats incur an additional per-second credit surcharge: 5 credits per second
106
- * for `prores` and `png_sequence`, and 20 credits per second for every 10-bit and
107
- * deeper profile (including the 12-bit, 16-bit, and EXR ones), rising to 40
108
- * credits per second when the output is larger than 4 megapixels (roughly 4K).
115
+ * colorimetry.json sidecar and a separate .wav when the output has audio);
116
+ * `hdr_exr_acescg_sequence_1_3` returns the same delivery as scene-referred ACEScg
117
+ * (inverted through the ACES 1.3 Output Transform), reading correctly with the
118
+ * stock `ACES - ACEScg` input transform in ACES-configured pipelines, with VFX
119
+ * sequence frame naming (frame.0001.exr). Non-mp4 formats incur an additional
120
+ * per-second credit surcharge: 5 credits per second for `prores` and
121
+ * `png_sequence`, and 20 credits per second for every 10-bit and deeper profile
122
+ * (including the 12-bit, 16-bit, and EXR ones), rising to 40 credits per second
123
+ * when the output is larger than 4 megapixels — that includes 1440p (2560x1440 is
124
+ * under the line, but anything larger crosses it) up through 4K.
109
125
  */
110
126
  outputFormat?:
111
127
  | 'mp4'
@@ -117,7 +133,9 @@ export declare namespace TextToVideoCreateParams {
117
133
  | 'hdr_pq_12bit_master'
118
134
  | 'hdr_prores'
119
135
  | 'hdr_png_sequence'
120
- | 'hdr_exr_sequence';
136
+ | 'hdr_exr_sequence'
137
+ | 'hdr_exr_acescg_sequence_1_3'
138
+ | 'hdr_exr_acescg_sequence_2_0';
121
139
 
122
140
  /**
123
141
  * The ProRes profile to use. Only valid when `outputFormat` is `prores` or
@@ -263,9 +281,12 @@ export declare namespace TextToVideoCreateParams {
263
281
  referenceVideos?: Array<Hailuo3.ReferenceVideo>;
264
282
 
265
283
  /**
266
- * The output resolution. MiniMax H3 supports 768P and 2K.
284
+ * The output resolution. Hailuo 3.0 supports 768p and 2k.
285
+ *
286
+ * - `768P` - Deprecated: Use "768p" instead.
287
+ * - `2K` - Deprecated: Use "2k" instead.
267
288
  */
268
- resolution?: '2K' | '768P';
289
+ resolution?: '768p' | '2k' | '768P' | '2K';
269
290
  }
270
291
 
271
292
  export namespace Hailuo3 {
@@ -278,7 +299,7 @@ export declare namespace TextToVideoCreateParams {
278
299
 
279
300
  /**
280
301
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
281
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
302
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
282
303
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
283
304
  */
284
305
  uri: string;
@@ -302,7 +323,7 @@ export declare namespace TextToVideoCreateParams {
302
323
 
303
324
  /**
304
325
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
305
- * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
326
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
306
327
  * [our docs](/assets/inputs#videos) on video inputs for more information.
307
328
  */
308
329
  uri: string;
@@ -426,7 +447,7 @@ export declare namespace TextToVideoCreateParams {
426
447
 
427
448
  /**
428
449
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
429
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
450
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
430
451
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
431
452
  */
432
453
  uri: string;
@@ -450,7 +471,7 @@ export declare namespace TextToVideoCreateParams {
450
471
 
451
472
  /**
452
473
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
453
- * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
474
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
454
475
  * [our docs](/assets/inputs#videos) on video inputs for more information.
455
476
  */
456
477
  uri: string;
@@ -533,7 +554,7 @@ export declare namespace TextToVideoCreateParams {
533
554
 
534
555
  /**
535
556
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
536
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
557
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
537
558
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
538
559
  */
539
560
  uri: string;
@@ -557,7 +578,7 @@ export declare namespace TextToVideoCreateParams {
557
578
 
558
579
  /**
559
580
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
560
- * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
581
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
561
582
  * [our docs](/assets/inputs#videos) on video inputs for more information.
562
583
  */
563
584
  uri: string;
@@ -640,7 +661,7 @@ export declare namespace TextToVideoCreateParams {
640
661
 
641
662
  /**
642
663
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
643
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
664
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
644
665
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
645
666
  */
646
667
  uri: string;
@@ -664,7 +685,7 @@ export declare namespace TextToVideoCreateParams {
664
685
 
665
686
  /**
666
687
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
667
- * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
688
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
668
689
  * [our docs](/assets/inputs#videos) on video inputs for more information.
669
690
  */
670
691
  uri: string;
@@ -772,7 +793,7 @@ export declare namespace TextToVideoCreateParams {
772
793
 
773
794
  /**
774
795
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
775
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
796
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
776
797
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
777
798
  */
778
799
  uri: string;
@@ -796,7 +817,7 @@ export declare namespace TextToVideoCreateParams {
796
817
 
797
818
  /**
798
819
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
799
- * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
820
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
800
821
  * [our docs](/assets/inputs#videos) on video inputs for more information.
801
822
  */
802
823
  uri: string;
@@ -849,7 +870,7 @@ export declare namespace TextToVideoCreateParams {
849
870
 
850
871
  /**
851
872
  * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
852
- * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
873
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
853
874
  * [our docs](/assets/inputs#audio) on audio inputs for more information.
854
875
  */
855
876
  uri: string;
@@ -884,24 +905,25 @@ export declare namespace TextToVideoCreateParams {
884
905
  duration?: number;
885
906
 
886
907
  /**
887
- * The resolution of the output video, as `<width>:<height>`. Use `auto_480p`,
888
- * `auto_720p`, or `auto_1080p` to let the model pick framing at that quality tier.
908
+ * The resolution of the output video, as `<width>:<height>`. Keyframe
909
+ * image-to-video requests must use `auto_480p`, `auto_720p`, or `auto_1080p`
910
+ * because their aspect ratio follows the first frame.
889
911
  */
890
912
  ratio?:
891
913
  | '832:480'
892
- | '640:480'
893
- | '480:480'
894
- | '480:640'
914
+ | '720:544'
915
+ | '624:624'
916
+ | '544:720'
895
917
  | '480:832'
896
918
  | '1280:720'
897
- | '960:720'
898
- | '720:720'
899
- | '720:960'
919
+ | '1104:832'
920
+ | '960:960'
921
+ | '832:1104'
900
922
  | '720:1280'
901
923
  | '1920:1080'
902
- | '1440:1080'
903
- | '1080:1080'
904
- | '1080:1440'
924
+ | '1648:1248'
925
+ | '1440:1440'
926
+ | '1248:1648'
905
927
  | '1080:1920'
906
928
  | 'auto_480p'
907
929
  | 'auto_720p'
@@ -967,6 +989,195 @@ export declare namespace TextToVideoCreateParams {
967
989
  uri: string;
968
990
  }
969
991
  }
992
+
993
+ export interface GeminiOmniFlash1_1 {
994
+ model: 'gemini_omni_flash_1.1';
995
+
996
+ /**
997
+ * A non-empty text prompt describing the video to generate.
998
+ */
999
+ promptText: string;
1000
+
1001
+ /**
1002
+ * The duration of the output video in seconds. Use "auto" to let the model choose
1003
+ * a duration. Numeric durations must be between 3 and 10 seconds.
1004
+ */
1005
+ duration?: 'auto' | number;
1006
+
1007
+ /**
1008
+ * The resolution and aspect ratio of the output video.
1009
+ */
1010
+ ratio?:
1011
+ | '640:360'
1012
+ | '360:640'
1013
+ | '1280:720'
1014
+ | '720:1280'
1015
+ | '1920:1080'
1016
+ | '1080:1920'
1017
+ | '3840:2160'
1018
+ | '2160:3840';
1019
+
1020
+ references?: Array<GeminiOmniFlash1_1.Reference>;
1021
+
1022
+ referenceVideos?: Array<GeminiOmniFlash1_1.ReferenceVideo>;
1023
+ }
1024
+
1025
+ export namespace GeminiOmniFlash1_1 {
1026
+ export interface Reference {
1027
+ /**
1028
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1029
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1030
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1031
+ */
1032
+ uri: string;
1033
+ }
1034
+
1035
+ export interface ReferenceVideo {
1036
+ /**
1037
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1038
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1039
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1040
+ */
1041
+ uri: string;
1042
+ }
1043
+ }
1044
+
1045
+ export interface Wan3Prime {
1046
+ model: 'wan3_prime';
1047
+
1048
+ /**
1049
+ * A non-empty text prompt describing what should appear in the output.
1050
+ */
1051
+ promptText: string;
1052
+
1053
+ /**
1054
+ * Whether to generate audio with the video.
1055
+ */
1056
+ audio?: boolean;
1057
+
1058
+ /**
1059
+ * The number of seconds of duration for the output video.
1060
+ */
1061
+ duration?: number;
1062
+
1063
+ /**
1064
+ * The resolution of the output video, as `<width>:<height>`. Keyframe
1065
+ * image-to-video requests must use `auto_480p`, `auto_720p`, or `auto_1080p`
1066
+ * because their aspect ratio follows the first frame.
1067
+ */
1068
+ ratio?:
1069
+ | '832:480'
1070
+ | '720:544'
1071
+ | '624:624'
1072
+ | '544:720'
1073
+ | '480:832'
1074
+ | '1280:720'
1075
+ | '1104:832'
1076
+ | '960:960'
1077
+ | '832:1104'
1078
+ | '720:1280'
1079
+ | '1920:1080'
1080
+ | '1648:1248'
1081
+ | '1440:1440'
1082
+ | '1248:1648'
1083
+ | '1080:1920'
1084
+ | 'auto_480p'
1085
+ | 'auto_720p'
1086
+ | 'auto_1080p';
1087
+
1088
+ /**
1089
+ * An optional array of audio references. The total combined duration must not
1090
+ * exceed 15 seconds.
1091
+ */
1092
+ referenceAudio?: Array<Wan3Prime.ReferenceAudio>;
1093
+
1094
+ /**
1095
+ * An optional array of image references (up to 10). See
1096
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1097
+ */
1098
+ references?: Array<Wan3Prime.Reference>;
1099
+
1100
+ /**
1101
+ * An optional array of video references. The combined duration across all video
1102
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
1103
+ * video inputs for more information.
1104
+ */
1105
+ referenceVideos?: Array<Wan3Prime.ReferenceVideo>;
1106
+ }
1107
+
1108
+ export namespace Wan3Prime {
1109
+ /**
1110
+ * An audio reference allows the model to use the audio as additional context for
1111
+ * the output.
1112
+ */
1113
+ export interface ReferenceAudio {
1114
+ type: 'audio';
1115
+
1116
+ /**
1117
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1118
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1119
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1120
+ */
1121
+ uri: string;
1122
+ }
1123
+
1124
+ export interface Reference {
1125
+ /**
1126
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1127
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1128
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1129
+ */
1130
+ uri: string;
1131
+ }
1132
+
1133
+ /**
1134
+ * A video reference allows the model to use the video as additional context for
1135
+ * the output.
1136
+ */
1137
+ export interface ReferenceVideo {
1138
+ type: 'video';
1139
+
1140
+ /**
1141
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1142
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1143
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1144
+ */
1145
+ uri: string;
1146
+ }
1147
+ }
1148
+
1149
+ export interface H3Max {
1150
+ model: 'h3_max';
1151
+
1152
+ /**
1153
+ * A non-empty text prompt describing what should appear in the output.
1154
+ */
1155
+ promptText: string;
1156
+
1157
+ /**
1158
+ * The number of seconds of duration for the output video.
1159
+ */
1160
+ duration?: number;
1161
+
1162
+ /**
1163
+ * How the model rewrites the prompt before generating. disabled keeps the prompt
1164
+ * as written. balanced (the default) does a short rewrite. quality spends extra
1165
+ * time rewriting for a stronger result.
1166
+ */
1167
+ promptExpansionMode?: 'disabled' | 'balanced' | 'quality';
1168
+
1169
+ /**
1170
+ * The output resolution. MiniMax H3 Max supports 480p and 768p.
1171
+ */
1172
+ resolution?: '480p' | '768p';
1173
+
1174
+ /**
1175
+ * If unspecified, a random number is chosen. Identical results also need
1176
+ * promptExpansionMode set to disabled; balanced and quality rewrite the prompt and
1177
+ * will not repeat.
1178
+ */
1179
+ seed?: number;
1180
+ }
970
1181
  }
971
1182
 
972
1183
  export declare namespace TextToVideo {
@@ -14,9 +14,11 @@ export class VideoToHdr extends APIResource {
14
14
  * color are extended into the HDR range, nothing is re-synthesized. Set
15
15
  * `outputFormat` to choose the delivery profile: `hdr10` (HEVC Main 10, BT.2020 +
16
16
  * PQ, the default), `hlg` (HEVC Main 10, BT.2020 + HLG), `hdr_prores` (BT.2020 +
17
- * PQ ProRes .mov editorial mezzanine, tier selectable with `proresProfile`), or
17
+ * PQ ProRes .mov editorial mezzanine, tier selectable with `proresProfile`),
18
18
  * `hdr_exr_sequence` (a .zip of half-float OpenEXR frames in linear BT.2020
19
- * display light, for compositing). Tasks bill per second of output at 20 credits
19
+ * display light, for compositing), or `hdr_exr_acescg_sequence_1_3` (the same
20
+ * delivery as scene-referred ACEScg for ACES pipelines — reads with the stock
21
+ * ACES - ACEScg input transform). Tasks bill per second of output at 20 credits
20
22
  * per second, rising to 40 credits per second when the source is larger than 4
21
23
  * megapixels (roughly 4K) — an upconvert delivers at the source's own resolution.
22
24
  *
@@ -80,13 +82,24 @@ export interface VideoToHdrCreateParams {
80
82
  * `hdr_prores` returns a BT.2020 + PQ ProRes .mov editorial mezzanine, whose tier
81
83
  * is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
82
84
  * half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
83
- * light, 1.0 = 100 nits, ready to composite. The EXR zip is the whole delivery —
84
- * the frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
85
- * upconvert, and the source audio as audio.wav when the source has any. All four
86
- * profiles bill at the same rate: 20 credits per second of output, rising to 40
87
- * credits per second when the source is larger than 4 megapixels (roughly 4K).
85
+ * light, 1.0 = 100 nits, ready to composite; `hdr_exr_acescg_sequence_1_3` returns
86
+ * the same delivery as scene-referred ACEScg (inverted through the ACES 1.3 Output
87
+ * Transform, Rec.2100 PQ 1000-nit) with VFX sequence frame naming (frame.0001.exr)
88
+ * — it reads correctly with the stock `ACES - ACEScg` input transform, and viewing
89
+ * through your ACES pipeline reproduces the delivered picture. An EXR zip is the
90
+ * whole delivery — the frames, a colorimetry.json sidecar, a provenance.json
91
+ * sidecar declaring the upconvert, and the source audio as audio.wav when the
92
+ * source has any. All five profiles bill at the same rate: 20 credits per second
93
+ * of output, rising to 40 credits per second when the source is larger than 4
94
+ * megapixels — that includes anything larger than 1440p, up through 4K.
88
95
  */
89
- outputFormat?: 'hdr10' | 'hlg' | 'hdr_prores' | 'hdr_exr_sequence';
96
+ outputFormat?:
97
+ | 'hdr10'
98
+ | 'hlg'
99
+ | 'hdr_prores'
100
+ | 'hdr_exr_sequence'
101
+ | 'hdr_exr_acescg_sequence_1_3'
102
+ | 'hdr_exr_acescg_sequence_2_0';
90
103
 
91
104
  /**
92
105
  * The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
@@ -62,7 +62,8 @@ export type VideoToVideoCreateParams =
62
62
  | VideoToVideoCreateParams.Seedance2Fast
63
63
  | VideoToVideoCreateParams.Seedance2Mini
64
64
  | VideoToVideoCreateParams.GeminiOmniFlash
65
- | VideoToVideoCreateParams.Seedance2_5;
65
+ | VideoToVideoCreateParams.Seedance2_5
66
+ | VideoToVideoCreateParams.GeminiOmniFlash1_1;
66
67
 
67
68
  export declare namespace VideoToVideoCreateParams {
68
69
  export interface Variant0 {
@@ -92,7 +93,8 @@ export declare namespace VideoToVideoCreateParams {
92
93
  * `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading pipelines.
93
94
  * Non-mp4 formats incur an additional surcharge: 5 credits per second for `prores`
94
95
  * and `png_sequence`, and 20 credits per second for `sdr_rec709_10bit` — 40
95
- * credits per second when the output is larger than 4 megapixels (roughly 4K).
96
+ * credits per second when the output is larger than 4 megapixels — includes
97
+ * anything larger than 1440p, up through 4K.
96
98
  */
97
99
  outputFormat?: 'mp4' | 'prores' | 'png_sequence' | 'sdr_rec709_10bit';
98
100
 
@@ -103,7 +105,9 @@ export declare namespace VideoToVideoCreateParams {
103
105
 
104
106
  /**
105
107
  * The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
106
- * to `4444`.
108
+ * to `4444`. Note: generated content contains no transparency — the alpha channel
109
+ * in `4444` / `4444 XQ` outputs is present but fully opaque; choose these tiers
110
+ * for 12-bit 4:4:4 color fidelity, not for mattes.
107
111
  */
108
112
  proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
109
113
 
@@ -269,9 +273,12 @@ export declare namespace VideoToVideoCreateParams {
269
273
  referenceVideos?: Array<Hailuo3.ReferenceVideo>;
270
274
 
271
275
  /**
272
- * The output resolution. MiniMax H3 supports 768P and 2K.
276
+ * The output resolution. Hailuo 3.0 supports 768p and 2k.
277
+ *
278
+ * - `768P` - Deprecated: Use "768p" instead.
279
+ * - `2K` - Deprecated: Use "2k" instead.
273
280
  */
274
- resolution?: '2K' | '768P';
281
+ resolution?: '768p' | '2k' | '768P' | '2K';
275
282
  }
276
283
 
277
284
  export namespace Hailuo3 {
@@ -827,6 +834,64 @@ export declare namespace VideoToVideoCreateParams {
827
834
  uri: string;
828
835
  }
829
836
  }
837
+
838
+ export interface GeminiOmniFlash1_1 {
839
+ model: 'gemini_omni_flash_1.1';
840
+
841
+ /**
842
+ * A non-empty prompt describing the output or extension.
843
+ */
844
+ promptText: string;
845
+
846
+ /**
847
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
848
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
849
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
850
+ */
851
+ videoUri: string;
852
+
853
+ /**
854
+ * The duration in seconds. In reference mode, this is the output video length. In
855
+ * extend mode, this is the amount of footage added to the input video. Use "auto"
856
+ * to let the model choose a duration.
857
+ */
858
+ duration?: 'auto' | number;
859
+
860
+ /**
861
+ * How the input video is used. `reference` generates a new video guided by the
862
+ * input, `extend` continues it, and `edit` transforms it according to the prompt.
863
+ */
864
+ mode?: 'reference' | 'extend' | 'edit';
865
+
866
+ /**
867
+ * The resolution and aspect ratio of the output video.
868
+ */
869
+ ratio?:
870
+ | '640:360'
871
+ | '360:640'
872
+ | '1280:720'
873
+ | '720:1280'
874
+ | '1920:1080'
875
+ | '1080:1920'
876
+ | '3840:2160'
877
+ | '2160:3840';
878
+
879
+ /**
880
+ * An optional array of image references to guide the output.
881
+ */
882
+ references?: Array<GeminiOmniFlash1_1.Reference>;
883
+ }
884
+
885
+ export namespace GeminiOmniFlash1_1 {
886
+ export interface Reference {
887
+ /**
888
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
889
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
890
+ * [our docs](/assets/inputs#images) on image inputs for more information.
891
+ */
892
+ uri: string;
893
+ }
894
+ }
830
895
  }
831
896
 
832
897
  export declare namespace VideoToVideo {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.19.1'; // x-release-please-version
1
+ export const VERSION = '4.20.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.19.1";
1
+ export declare const VERSION = "4.20.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.19.1";
1
+ export declare const VERSION = "4.20.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.19.1'; // x-release-please-version
4
+ exports.VERSION = '4.20.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.19.1'; // x-release-please-version
1
+ export const VERSION = '4.20.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map