@runwayml/sdk 4.26.0 → 4.27.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 (38) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +1 -1
  3. package/resources/image-to-video.d.mts +122 -3
  4. package/resources/image-to-video.d.mts.map +1 -1
  5. package/resources/image-to-video.d.ts +122 -3
  6. package/resources/image-to-video.d.ts.map +1 -1
  7. package/resources/organization/organization.d.mts +2 -2
  8. package/resources/organization/organization.d.mts.map +1 -1
  9. package/resources/organization/organization.d.ts +2 -2
  10. package/resources/organization/organization.d.ts.map +1 -1
  11. package/resources/organization/organization.js.map +1 -1
  12. package/resources/organization/organization.mjs.map +1 -1
  13. package/resources/text-to-speech.d.mts +42 -10
  14. package/resources/text-to-speech.d.mts.map +1 -1
  15. package/resources/text-to-speech.d.ts +42 -10
  16. package/resources/text-to-speech.d.ts.map +1 -1
  17. package/resources/text-to-speech.js +3 -1
  18. package/resources/text-to-speech.js.map +1 -1
  19. package/resources/text-to-speech.mjs +3 -1
  20. package/resources/text-to-speech.mjs.map +1 -1
  21. package/resources/text-to-video.d.mts +92 -4
  22. package/resources/text-to-video.d.mts.map +1 -1
  23. package/resources/text-to-video.d.ts +92 -4
  24. package/resources/text-to-video.d.ts.map +1 -1
  25. package/resources/video-to-video.d.mts +104 -3
  26. package/resources/video-to-video.d.mts.map +1 -1
  27. package/resources/video-to-video.d.ts +104 -3
  28. package/resources/video-to-video.d.ts.map +1 -1
  29. package/src/resources/image-to-video.ts +162 -3
  30. package/src/resources/organization/organization.ts +4 -0
  31. package/src/resources/text-to-speech.ts +48 -10
  32. package/src/resources/text-to-video.ts +126 -4
  33. package/src/resources/video-to-video.ts +140 -3
  34. package/src/version.ts +1 -1
  35. package/version.d.mts +1 -1
  36. package/version.d.ts +1 -1
  37. package/version.js +1 -1
  38. package/version.mjs +1 -1
@@ -83,7 +83,9 @@ export type ImageToVideoCreateParams =
83
83
  | ImageToVideoCreateParams.GrokImagine1_5Lite
84
84
  | ImageToVideoCreateParams.Kling4
85
85
  | ImageToVideoCreateParams.GeminiOmniFlash1_2
86
- | ImageToVideoCreateParams.Kling4Flash;
86
+ | ImageToVideoCreateParams.Kling4Flash
87
+ | ImageToVideoCreateParams.Hailuo3Highspeed
88
+ | ImageToVideoCreateParams.Hailuo3Lite;
87
89
 
88
90
  export declare namespace ImageToVideoCreateParams {
89
91
  export interface Gen4_5 {
@@ -1885,7 +1887,8 @@ export declare namespace ImageToVideoCreateParams {
1885
1887
  promptText?: string;
1886
1888
 
1887
1889
  /**
1888
- * The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
1890
+ * The resolution of the output video. Seedance 2.5 supports 480p, 720p, 1080p, and
1891
+ * 4K.
1889
1892
  */
1890
1893
  ratio?:
1891
1894
  | '992:432'
@@ -1905,7 +1908,13 @@ export declare namespace ImageToVideoCreateParams {
1905
1908
  | '1664:1248'
1906
1909
  | '1440:1440'
1907
1910
  | '1248:1664'
1908
- | '1080:1920';
1911
+ | '1080:1920'
1912
+ | '3840:1646'
1913
+ | '3840:2160'
1914
+ | '3840:2880'
1915
+ | '3840:3840'
1916
+ | '2880:3840'
1917
+ | '2160:3840';
1909
1918
 
1910
1919
  /**
1911
1920
  * An optional array of audio references. The total combined duration must not
@@ -2153,6 +2162,156 @@ export declare namespace ImageToVideoCreateParams {
2153
2162
  uri: string;
2154
2163
  }
2155
2164
  }
2165
+
2166
+ export interface Hailuo3Highspeed {
2167
+ model: 'hailuo3_highspeed';
2168
+
2169
+ /**
2170
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2171
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2172
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2173
+ */
2174
+ promptImage: string | Array<Hailuo3Highspeed.UnionMember1>;
2175
+
2176
+ /**
2177
+ * The text prompt describing the output video.
2178
+ */
2179
+ promptText: string;
2180
+
2181
+ duration?: number;
2182
+
2183
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
2184
+
2185
+ referenceAudio?: Array<Hailuo3Highspeed.ReferenceAudio>;
2186
+
2187
+ references?: Array<Hailuo3Highspeed.Reference>;
2188
+
2189
+ referenceVideos?: Array<Hailuo3Highspeed.ReferenceVideo>;
2190
+
2191
+ /**
2192
+ * The output video resolution.
2193
+ */
2194
+ resolution?: '480p' | '768p';
2195
+ }
2196
+
2197
+ export namespace Hailuo3Highspeed {
2198
+ export interface UnionMember1 {
2199
+ /**
2200
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2201
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2202
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2203
+ */
2204
+ uri: string;
2205
+
2206
+ position?: 'first' | 'last';
2207
+ }
2208
+
2209
+ export interface ReferenceAudio {
2210
+ type: 'audio';
2211
+
2212
+ /**
2213
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2214
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
2215
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
2216
+ */
2217
+ uri: string;
2218
+ }
2219
+
2220
+ export interface Reference {
2221
+ /**
2222
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2223
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2224
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2225
+ */
2226
+ uri: string;
2227
+ }
2228
+
2229
+ export interface ReferenceVideo {
2230
+ type: 'video';
2231
+
2232
+ /**
2233
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2234
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
2235
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
2236
+ */
2237
+ uri: string;
2238
+ }
2239
+ }
2240
+
2241
+ export interface Hailuo3Lite {
2242
+ model: 'hailuo3_lite';
2243
+
2244
+ /**
2245
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2246
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2247
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2248
+ */
2249
+ promptImage: string | Array<Hailuo3Lite.UnionMember1>;
2250
+
2251
+ /**
2252
+ * The text prompt describing the output video.
2253
+ */
2254
+ promptText: string;
2255
+
2256
+ duration?: number;
2257
+
2258
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
2259
+
2260
+ referenceAudio?: Array<Hailuo3Lite.ReferenceAudio>;
2261
+
2262
+ references?: Array<Hailuo3Lite.Reference>;
2263
+
2264
+ referenceVideos?: Array<Hailuo3Lite.ReferenceVideo>;
2265
+
2266
+ /**
2267
+ * The output video resolution.
2268
+ */
2269
+ resolution?: '480p' | '768p';
2270
+ }
2271
+
2272
+ export namespace Hailuo3Lite {
2273
+ export interface UnionMember1 {
2274
+ /**
2275
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2276
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2277
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2278
+ */
2279
+ uri: string;
2280
+
2281
+ position?: 'first' | 'last';
2282
+ }
2283
+
2284
+ export interface ReferenceAudio {
2285
+ type: 'audio';
2286
+
2287
+ /**
2288
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2289
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
2290
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
2291
+ */
2292
+ uri: string;
2293
+ }
2294
+
2295
+ export interface Reference {
2296
+ /**
2297
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2298
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2299
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2300
+ */
2301
+ uri: string;
2302
+ }
2303
+
2304
+ export interface ReferenceVideo {
2305
+ type: 'video';
2306
+
2307
+ /**
2308
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2309
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
2310
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
2311
+ */
2312
+ uri: string;
2313
+ }
2314
+ }
2156
2315
  }
2157
2316
 
2158
2317
  export declare namespace ImageToVideo {
@@ -162,6 +162,8 @@ export interface OrganizationRetrieveUsageResponse {
162
162
  | 'seedance2_fast'
163
163
  | 'seedance2_mini'
164
164
  | 'hailuo3'
165
+ | 'hailuo3_highspeed'
166
+ | 'hailuo3_lite'
165
167
  | 'h3_max'
166
168
  | 'wan3'
167
169
  | 'wan3_prime'
@@ -286,6 +288,8 @@ export namespace OrganizationRetrieveUsageResponse {
286
288
  | 'seedance2_fast'
287
289
  | 'seedance2_mini'
288
290
  | 'hailuo3'
291
+ | 'hailuo3_highspeed'
292
+ | 'hailuo3_lite'
289
293
  | 'h3_max'
290
294
  | 'wan3'
291
295
  | 'wan3_prime'
@@ -9,7 +9,9 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
9
9
  */
10
10
  export class TextToSpeech extends APIResource {
11
11
  /**
12
- * This endpoint will start a new task to generate speech from text.
12
+ * This endpoint will start a new task to generate speech from text. ElevenLabs
13
+ * models accept preset voices or custom voices created via the Voices API. Seed
14
+ * Audio accepts a reference audio clip.
13
15
  */
14
16
  create(
15
17
  body: TextToSpeechCreateParams,
@@ -123,9 +125,9 @@ export declare namespace TextToSpeechCreateParams {
123
125
  promptText: string;
124
126
 
125
127
  /**
126
- * A voice preset from the RunwayML API.
128
+ * The voice to use for the generated speech.
127
129
  */
128
- voice: ElevenV4.Voice;
130
+ voice: ElevenV4.RunwayPreset | ElevenV4.Custom;
129
131
 
130
132
  /**
131
133
  * Language code to enforce pronunciation, such as "en" or "pt". A regional code
@@ -183,7 +185,7 @@ export declare namespace TextToSpeechCreateParams {
183
185
  /**
184
186
  * A voice preset from the RunwayML API.
185
187
  */
186
- export interface Voice {
188
+ export interface RunwayPreset {
187
189
  /**
188
190
  * The preset voice ID to use for the generated speech.
189
191
  */
@@ -240,6 +242,18 @@ export declare namespace TextToSpeechCreateParams {
240
242
 
241
243
  type: 'runway-preset';
242
244
  }
245
+
246
+ /**
247
+ * A custom voice belonging to the authenticated organization.
248
+ */
249
+ export interface Custom {
250
+ /**
251
+ * The ID of a custom voice created via the Voices API.
252
+ */
253
+ id: string;
254
+
255
+ type: 'custom';
256
+ }
243
257
  }
244
258
 
245
259
  export interface ElevenMultilingualV2 {
@@ -252,16 +266,16 @@ export declare namespace TextToSpeechCreateParams {
252
266
  promptText: string;
253
267
 
254
268
  /**
255
- * A voice preset from the RunwayML API.
269
+ * The voice to use for the generated speech.
256
270
  */
257
- voice: ElevenMultilingualV2.Voice;
271
+ voice: ElevenMultilingualV2.RunwayPreset | ElevenMultilingualV2.Custom;
258
272
  }
259
273
 
260
274
  export namespace ElevenMultilingualV2 {
261
275
  /**
262
276
  * A voice preset from the RunwayML API.
263
277
  */
264
- export interface Voice {
278
+ export interface RunwayPreset {
265
279
  /**
266
280
  * The preset voice ID to use for the generated speech.
267
281
  */
@@ -318,6 +332,18 @@ export declare namespace TextToSpeechCreateParams {
318
332
 
319
333
  type: 'runway-preset';
320
334
  }
335
+
336
+ /**
337
+ * A custom voice belonging to the authenticated organization.
338
+ */
339
+ export interface Custom {
340
+ /**
341
+ * The ID of a custom voice created via the Voices API.
342
+ */
343
+ id: string;
344
+
345
+ type: 'custom';
346
+ }
321
347
  }
322
348
 
323
349
  export interface ElevenV3 {
@@ -330,9 +356,9 @@ export declare namespace TextToSpeechCreateParams {
330
356
  promptText: string;
331
357
 
332
358
  /**
333
- * A voice preset from the RunwayML API.
359
+ * The voice to use for the generated speech.
334
360
  */
335
- voice: ElevenV3.Voice;
361
+ voice: ElevenV3.RunwayPreset | ElevenV3.Custom;
336
362
 
337
363
  /**
338
364
  * Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
@@ -382,7 +408,7 @@ export declare namespace TextToSpeechCreateParams {
382
408
  /**
383
409
  * A voice preset from the RunwayML API.
384
410
  */
385
- export interface Voice {
411
+ export interface RunwayPreset {
386
412
  /**
387
413
  * The preset voice ID to use for the generated speech.
388
414
  */
@@ -439,6 +465,18 @@ export declare namespace TextToSpeechCreateParams {
439
465
 
440
466
  type: 'runway-preset';
441
467
  }
468
+
469
+ /**
470
+ * A custom voice belonging to the authenticated organization.
471
+ */
472
+ export interface Custom {
473
+ /**
474
+ * The ID of a custom voice created via the Voices API.
475
+ */
476
+ id: string;
477
+
478
+ type: 'custom';
479
+ }
442
480
  }
443
481
  }
444
482
 
@@ -81,7 +81,9 @@ export type TextToVideoCreateParams =
81
81
  | TextToVideoCreateParams.GrokImagine1_5Lite
82
82
  | TextToVideoCreateParams.Kling4
83
83
  | TextToVideoCreateParams.GeminiOmniFlash1_2
84
- | TextToVideoCreateParams.Kling4Flash;
84
+ | TextToVideoCreateParams.Kling4Flash
85
+ | TextToVideoCreateParams.Hailuo3Highspeed
86
+ | TextToVideoCreateParams.Hailuo3Lite;
85
87
 
86
88
  export declare namespace TextToVideoCreateParams {
87
89
  export interface Gen4_5 {
@@ -1563,8 +1565,8 @@ export declare namespace TextToVideoCreateParams {
1563
1565
  promptText?: string;
1564
1566
 
1565
1567
  /**
1566
- * The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
1567
- * Defaults to `1280:720`.
1568
+ * The resolution of the output video. Seedance 2.5 supports 480p, 720p, 1080p, and
1569
+ * 4K. Defaults to `1280:720`.
1568
1570
  */
1569
1571
  ratio?:
1570
1572
  | '992:432'
@@ -1584,7 +1586,13 @@ export declare namespace TextToVideoCreateParams {
1584
1586
  | '1664:1248'
1585
1587
  | '1440:1440'
1586
1588
  | '1248:1664'
1587
- | '1080:1920';
1589
+ | '1080:1920'
1590
+ | '3840:1646'
1591
+ | '3840:2160'
1592
+ | '3840:2880'
1593
+ | '3840:3840'
1594
+ | '2880:3840'
1595
+ | '2160:3840';
1588
1596
 
1589
1597
  /**
1590
1598
  * An optional array of audio references. The total combined duration must be less
@@ -1843,6 +1851,120 @@ export declare namespace TextToVideoCreateParams {
1843
1851
  uri: string;
1844
1852
  }
1845
1853
  }
1854
+
1855
+ export interface Hailuo3Highspeed {
1856
+ model: 'hailuo3_highspeed';
1857
+
1858
+ /**
1859
+ * The text prompt describing the output video.
1860
+ */
1861
+ promptText: string;
1862
+
1863
+ duration?: number;
1864
+
1865
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1866
+
1867
+ referenceAudio?: Array<Hailuo3Highspeed.ReferenceAudio>;
1868
+
1869
+ references?: Array<Hailuo3Highspeed.Reference>;
1870
+
1871
+ referenceVideos?: Array<Hailuo3Highspeed.ReferenceVideo>;
1872
+
1873
+ /**
1874
+ * The output video resolution.
1875
+ */
1876
+ resolution?: '480p' | '768p';
1877
+ }
1878
+
1879
+ export namespace Hailuo3Highspeed {
1880
+ export interface ReferenceAudio {
1881
+ type: 'audio';
1882
+
1883
+ /**
1884
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1885
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1886
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1887
+ */
1888
+ uri: string;
1889
+ }
1890
+
1891
+ export interface Reference {
1892
+ /**
1893
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1894
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1895
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1896
+ */
1897
+ uri: string;
1898
+ }
1899
+
1900
+ export interface ReferenceVideo {
1901
+ type: 'video';
1902
+
1903
+ /**
1904
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1905
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1906
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1907
+ */
1908
+ uri: string;
1909
+ }
1910
+ }
1911
+
1912
+ export interface Hailuo3Lite {
1913
+ model: 'hailuo3_lite';
1914
+
1915
+ /**
1916
+ * The text prompt describing the output video.
1917
+ */
1918
+ promptText: string;
1919
+
1920
+ duration?: number;
1921
+
1922
+ ratio?: '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1923
+
1924
+ referenceAudio?: Array<Hailuo3Lite.ReferenceAudio>;
1925
+
1926
+ references?: Array<Hailuo3Lite.Reference>;
1927
+
1928
+ referenceVideos?: Array<Hailuo3Lite.ReferenceVideo>;
1929
+
1930
+ /**
1931
+ * The output video resolution.
1932
+ */
1933
+ resolution?: '480p' | '768p';
1934
+ }
1935
+
1936
+ export namespace Hailuo3Lite {
1937
+ export interface ReferenceAudio {
1938
+ type: 'audio';
1939
+
1940
+ /**
1941
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1942
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1943
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1944
+ */
1945
+ uri: string;
1946
+ }
1947
+
1948
+ export interface Reference {
1949
+ /**
1950
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1951
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1952
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1953
+ */
1954
+ uri: string;
1955
+ }
1956
+
1957
+ export interface ReferenceVideo {
1958
+ type: 'video';
1959
+
1960
+ /**
1961
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1962
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1963
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1964
+ */
1965
+ uri: string;
1966
+ }
1967
+ }
1846
1968
  }
1847
1969
 
1848
1970
  export declare namespace TextToVideo {
@@ -69,7 +69,9 @@ export type VideoToVideoCreateParams =
69
69
  | VideoToVideoCreateParams.Seedance2_5
70
70
  | VideoToVideoCreateParams.Kling4
71
71
  | VideoToVideoCreateParams.GeminiOmniFlash1_2
72
- | VideoToVideoCreateParams.Kling4Flash;
72
+ | VideoToVideoCreateParams.Kling4Flash
73
+ | VideoToVideoCreateParams.Hailuo3Highspeed
74
+ | VideoToVideoCreateParams.Hailuo3Lite;
73
75
 
74
76
  export declare namespace VideoToVideoCreateParams {
75
77
  export interface Variant0 {
@@ -1090,7 +1092,8 @@ export declare namespace VideoToVideoCreateParams {
1090
1092
  promptText?: string;
1091
1093
 
1092
1094
  /**
1093
- * The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
1095
+ * The resolution of the output video. Seedance 2.5 supports 480p, 720p, 1080p, and
1096
+ * 4K.
1094
1097
  */
1095
1098
  ratio?:
1096
1099
  | '992:432'
@@ -1110,7 +1113,13 @@ export declare namespace VideoToVideoCreateParams {
1110
1113
  | '1664:1248'
1111
1114
  | '1440:1440'
1112
1115
  | '1248:1664'
1113
- | '1080:1920';
1116
+ | '1080:1920'
1117
+ | '3840:1646'
1118
+ | '3840:2160'
1119
+ | '3840:2880'
1120
+ | '3840:3840'
1121
+ | '2880:3840'
1122
+ | '2160:3840';
1114
1123
 
1115
1124
  /**
1116
1125
  * An optional array of audio references. The total combined duration must be less
@@ -1332,6 +1341,134 @@ export declare namespace VideoToVideoCreateParams {
1332
1341
  uri: string;
1333
1342
  }
1334
1343
  }
1344
+
1345
+ export interface Hailuo3Highspeed {
1346
+ model: 'hailuo3_highspeed';
1347
+
1348
+ /**
1349
+ * The text prompt describing the output video.
1350
+ */
1351
+ promptText: string;
1352
+
1353
+ /**
1354
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1355
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1356
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1357
+ */
1358
+ promptVideo: string;
1359
+
1360
+ duration?: number;
1361
+
1362
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1363
+
1364
+ referenceAudio?: Array<Hailuo3Highspeed.ReferenceAudio>;
1365
+
1366
+ references?: Array<Hailuo3Highspeed.Reference>;
1367
+
1368
+ referenceVideos?: Array<Hailuo3Highspeed.ReferenceVideo>;
1369
+
1370
+ /**
1371
+ * The output video resolution.
1372
+ */
1373
+ resolution?: '480p' | '768p';
1374
+ }
1375
+
1376
+ export namespace Hailuo3Highspeed {
1377
+ export interface ReferenceAudio {
1378
+ type: 'audio';
1379
+
1380
+ /**
1381
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1382
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1383
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1384
+ */
1385
+ uri: string;
1386
+ }
1387
+
1388
+ export interface Reference {
1389
+ /**
1390
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1391
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1392
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1393
+ */
1394
+ uri: string;
1395
+ }
1396
+
1397
+ export interface ReferenceVideo {
1398
+ type: 'video';
1399
+
1400
+ /**
1401
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1402
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1403
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1404
+ */
1405
+ uri: string;
1406
+ }
1407
+ }
1408
+
1409
+ export interface Hailuo3Lite {
1410
+ model: 'hailuo3_lite';
1411
+
1412
+ /**
1413
+ * The text prompt describing the output video.
1414
+ */
1415
+ promptText: string;
1416
+
1417
+ /**
1418
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1419
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1420
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1421
+ */
1422
+ promptVideo: string;
1423
+
1424
+ duration?: number;
1425
+
1426
+ ratio?: '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1427
+
1428
+ referenceAudio?: Array<Hailuo3Lite.ReferenceAudio>;
1429
+
1430
+ references?: Array<Hailuo3Lite.Reference>;
1431
+
1432
+ referenceVideos?: Array<Hailuo3Lite.ReferenceVideo>;
1433
+
1434
+ /**
1435
+ * The output video resolution.
1436
+ */
1437
+ resolution?: '480p' | '768p';
1438
+ }
1439
+
1440
+ export namespace Hailuo3Lite {
1441
+ export interface ReferenceAudio {
1442
+ type: 'audio';
1443
+
1444
+ /**
1445
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1446
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1447
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1448
+ */
1449
+ uri: string;
1450
+ }
1451
+
1452
+ export interface Reference {
1453
+ /**
1454
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1455
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1456
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1457
+ */
1458
+ uri: string;
1459
+ }
1460
+
1461
+ export interface ReferenceVideo {
1462
+ type: 'video';
1463
+
1464
+ /**
1465
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1466
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1467
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1468
+ */
1469
+ uri: string;
1470
+ }
1471
+ }
1335
1472
  }
1336
1473
 
1337
1474
  export declare namespace VideoToVideo {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.26.0'; // x-release-please-version
1
+ export const VERSION = '4.27.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.26.0";
1
+ export declare const VERSION = "4.27.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.26.0";
1
+ export declare const VERSION = "4.27.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.26.0'; // x-release-please-version
4
+ exports.VERSION = '4.27.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.26.0'; // x-release-please-version
1
+ export const VERSION = '4.27.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map