@runwayml/sdk 3.2.0 → 3.4.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 (58) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/image-to-video.d.mts +10 -6
  12. package/resources/image-to-video.d.mts.map +1 -1
  13. package/resources/image-to-video.d.ts +10 -6
  14. package/resources/image-to-video.d.ts.map +1 -1
  15. package/resources/index.d.mts +2 -0
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +2 -0
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +5 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +2 -0
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/organization.d.mts +122 -2
  24. package/resources/organization.d.mts.map +1 -1
  25. package/resources/organization.d.ts +122 -2
  26. package/resources/organization.d.ts.map +1 -1
  27. package/resources/text-to-video.d.mts +5 -4
  28. package/resources/text-to-video.d.mts.map +1 -1
  29. package/resources/text-to-video.d.ts +5 -4
  30. package/resources/text-to-video.d.ts.map +1 -1
  31. package/resources/voice-dubbing.d.mts +48 -0
  32. package/resources/voice-dubbing.d.mts.map +1 -0
  33. package/resources/voice-dubbing.d.ts +48 -0
  34. package/resources/voice-dubbing.d.ts.map +1 -0
  35. package/resources/voice-dubbing.js +16 -0
  36. package/resources/voice-dubbing.js.map +1 -0
  37. package/resources/voice-dubbing.mjs +12 -0
  38. package/resources/voice-dubbing.mjs.map +1 -0
  39. package/resources/voice-isolation.d.mts +30 -0
  40. package/resources/voice-isolation.d.mts.map +1 -0
  41. package/resources/voice-isolation.d.ts +30 -0
  42. package/resources/voice-isolation.d.ts.map +1 -0
  43. package/resources/voice-isolation.js +16 -0
  44. package/resources/voice-isolation.js.map +1 -0
  45. package/resources/voice-isolation.mjs +12 -0
  46. package/resources/voice-isolation.mjs.map +1 -0
  47. package/src/client.ts +26 -0
  48. package/src/resources/image-to-video.ts +20 -6
  49. package/src/resources/index.ts +10 -0
  50. package/src/resources/organization.ts +149 -1
  51. package/src/resources/text-to-video.ts +5 -4
  52. package/src/resources/voice-dubbing.ts +97 -0
  53. package/src/resources/voice-isolation.ts +46 -0
  54. package/src/version.ts +1 -1
  55. package/version.d.mts +1 -1
  56. package/version.d.ts +1 -1
  57. package/version.js +1 -1
  58. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-dubbing.mjs","sourceRoot":"","sources":["../src/resources/voice-dubbing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { RequestOptions } from "../internal/request-options.mjs";
3
+ import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
4
+ export declare class VoiceIsolation extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to isolate and enhance voices in audio.
7
+ */
8
+ create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
9
+ }
10
+ export interface VoiceIsolationCreateResponse {
11
+ /**
12
+ * The ID of the newly created task.
13
+ */
14
+ id: string;
15
+ }
16
+ export interface VoiceIsolationCreateParams {
17
+ /**
18
+ * A HTTPS URL or data URI containing the audio file to process. See
19
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
20
+ */
21
+ audioUrl: string;
22
+ /**
23
+ * The model variant to use.
24
+ */
25
+ model: 'eleven_voice_isolation';
26
+ }
27
+ export declare namespace VoiceIsolation {
28
+ export { type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse, type VoiceIsolationCreateParams as VoiceIsolationCreateParams, };
29
+ }
30
+ //# sourceMappingURL=voice-isolation.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-isolation.d.mts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { RequestOptions } from "../internal/request-options.js";
3
+ import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
4
+ export declare class VoiceIsolation extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to isolate and enhance voices in audio.
7
+ */
8
+ create(body: VoiceIsolationCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse>;
9
+ }
10
+ export interface VoiceIsolationCreateResponse {
11
+ /**
12
+ * The ID of the newly created task.
13
+ */
14
+ id: string;
15
+ }
16
+ export interface VoiceIsolationCreateParams {
17
+ /**
18
+ * A HTTPS URL or data URI containing the audio file to process. See
19
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
20
+ */
21
+ audioUrl: string;
22
+ /**
23
+ * The model variant to use.
24
+ */
25
+ model: 'eleven_voice_isolation';
26
+ }
27
+ export declare namespace VoiceIsolation {
28
+ export { type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse, type VoiceIsolationCreateParams as VoiceIsolationCreateParams, };
29
+ }
30
+ //# sourceMappingURL=voice-isolation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-isolation.d.ts","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,wBAAwB,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.VoiceIsolation = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const polling_1 = require("../lib/polling.js");
7
+ class VoiceIsolation extends resource_1.APIResource {
8
+ /**
9
+ * This endpoint will start a new task to isolate and enhance voices in audio.
10
+ */
11
+ create(body, options) {
12
+ return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
13
+ }
14
+ }
15
+ exports.VoiceIsolation = VoiceIsolation;
16
+ //# sourceMappingURL=voice-isolation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-isolation.js","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF;AAZD,wCAYC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
+ export class VoiceIsolation extends APIResource {
5
+ /**
6
+ * This endpoint will start a new task to isolate and enhance voices in audio.
7
+ */
8
+ create(body, options) {
9
+ return wrapAsWaitableResource(this._client)(this._client.post('/v1/voice_isolation', { body, ...options }));
10
+ }
11
+ }
12
+ //# sourceMappingURL=voice-isolation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voice-isolation.mjs","sourceRoot":"","sources":["../src/resources/voice-isolation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC/D,CAAC;IACJ,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -51,6 +51,16 @@ import {
51
51
  VideoUpscaleCreateParams,
52
52
  VideoUpscaleCreateResponse,
53
53
  } from './resources/video-upscale';
54
+ import {
55
+ VoiceDubbing,
56
+ VoiceDubbingCreateParams,
57
+ VoiceDubbingCreateResponse,
58
+ } from './resources/voice-dubbing';
59
+ import {
60
+ VoiceIsolation,
61
+ VoiceIsolationCreateParams,
62
+ VoiceIsolationCreateResponse,
63
+ } from './resources/voice-isolation';
54
64
  import { type Fetch } from './internal/builtin-types';
55
65
  import { isRunningInBrowser } from './internal/detect-platform';
56
66
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
@@ -773,6 +783,8 @@ export class RunwayML {
773
783
  characterPerformance: API.CharacterPerformance = new API.CharacterPerformance(this);
774
784
  textToSpeech: API.TextToSpeech = new API.TextToSpeech(this);
775
785
  soundEffect: API.SoundEffect = new API.SoundEffect(this);
786
+ voiceIsolation: API.VoiceIsolation = new API.VoiceIsolation(this);
787
+ voiceDubbing: API.VoiceDubbing = new API.VoiceDubbing(this);
776
788
  organization: API.Organization = new API.Organization(this);
777
789
  }
778
790
 
@@ -785,6 +797,8 @@ RunwayML.VideoUpscale = VideoUpscale;
785
797
  RunwayML.CharacterPerformance = CharacterPerformance;
786
798
  RunwayML.TextToSpeech = TextToSpeech;
787
799
  RunwayML.SoundEffect = SoundEffect;
800
+ RunwayML.VoiceIsolation = VoiceIsolation;
801
+ RunwayML.VoiceDubbing = VoiceDubbing;
788
802
  RunwayML.Organization = Organization;
789
803
 
790
804
  export declare namespace RunwayML {
@@ -840,6 +854,18 @@ export declare namespace RunwayML {
840
854
  type SoundEffectCreateParams as SoundEffectCreateParams,
841
855
  };
842
856
 
857
+ export {
858
+ VoiceIsolation as VoiceIsolation,
859
+ type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse,
860
+ type VoiceIsolationCreateParams as VoiceIsolationCreateParams,
861
+ };
862
+
863
+ export {
864
+ VoiceDubbing as VoiceDubbing,
865
+ type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse,
866
+ type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
867
+ };
868
+
843
869
  export {
844
870
  Organization as Organization,
845
871
  type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
@@ -30,7 +30,7 @@ export interface ImageToVideoCreateParams {
30
30
  /**
31
31
  * The model variant to use.
32
32
  */
33
- model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3';
33
+ model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3.1' | 'veo3.1_fast' | 'veo3';
34
34
 
35
35
  /**
36
36
  * A HTTPS URL or data URI containing an encoded image to be used as the first
@@ -56,12 +56,24 @@ export interface ImageToVideoCreateParams {
56
56
  * - `1280:768`
57
57
  * - `768:1280`
58
58
  *
59
- * `veo3` supports the following values:
59
+ * `veo3`, `veo3.1`, `veo3.1_fast` support the following values:
60
60
  *
61
61
  * - `1280:720`
62
62
  * - `720:1280`
63
+ * - `1080:1920`
64
+ * - `1920:1080`
63
65
  */
64
- ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280';
66
+ ratio:
67
+ | '1280:720'
68
+ | '720:1280'
69
+ | '1104:832'
70
+ | '832:1104'
71
+ | '960:960'
72
+ | '1584:672'
73
+ | '1280:768'
74
+ | '768:1280'
75
+ | '1080:1920'
76
+ | '1920:1080';
65
77
 
66
78
  /**
67
79
  * Settings that affect the behavior of the content moderation system.
@@ -73,8 +85,9 @@ export interface ImageToVideoCreateParams {
73
85
 
74
86
  /**
75
87
  * The number of seconds of duration for the output video. `veo3` requires a
76
- * duration of 8. `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must
77
- * specify a duration of 2-10 seconds.
88
+ * duration of 8. `veo3.1` and `veo3.1_fast` require a duration of 4, 6, or 8.
89
+ * `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must specify a
90
+ * duration of 2-10 seconds.
78
91
  */
79
92
  duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
80
93
 
@@ -99,7 +112,8 @@ export namespace ImageToVideoCreateParams {
99
112
  * first frame of the video, "last" will use the image as the last frame of the
100
113
  * video.
101
114
  *
102
- * "last" is currently supported for `gen3a_turbo` only.
115
+ * "last" is currently supported for `gen3a_turbo`, `veo3.1`, and `veo3.1_fast`
116
+ * only. `veo3.1` and `veo3.1_fast` require a `first` frame to be provided.
103
117
  */
104
118
  position: 'first' | 'last';
105
119
 
@@ -35,3 +35,13 @@ export {
35
35
  type VideoUpscaleCreateResponse,
36
36
  type VideoUpscaleCreateParams,
37
37
  } from './video-upscale';
38
+ export {
39
+ VoiceDubbing,
40
+ type VoiceDubbingCreateResponse,
41
+ type VoiceDubbingCreateParams,
42
+ } from './voice-dubbing';
43
+ export {
44
+ VoiceIsolation,
45
+ type VoiceIsolationCreateResponse,
46
+ type VoiceIsolationCreateParams,
47
+ } from './voice-isolation';
@@ -79,6 +79,16 @@ export namespace OrganizationRetrieveResponse {
79
79
  */
80
80
  eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
81
81
 
82
+ /**
83
+ * Limits associated with the eleven_voice_dubbing model.
84
+ */
85
+ eleven_voice_dubbing?: Models.ElevenVoiceDubbing;
86
+
87
+ /**
88
+ * Limits associated with the eleven_voice_isolation model.
89
+ */
90
+ eleven_voice_isolation?: Models.ElevenVoiceIsolation;
91
+
82
92
  /**
83
93
  * Limits associated with the gemini_2.5_flash model.
84
94
  */
@@ -118,6 +128,16 @@ export namespace OrganizationRetrieveResponse {
118
128
  * Limits associated with the veo3 model.
119
129
  */
120
130
  veo3?: Models.Veo3;
131
+
132
+ /**
133
+ * Limits associated with the veo3.1 model.
134
+ */
135
+ 'veo3.1'?: Models.Veo3_1;
136
+
137
+ /**
138
+ * Limits associated with the veo3.1_fast model.
139
+ */
140
+ 'veo3.1_fast'?: Models.Veo3_1Fast;
121
141
  }
122
142
 
123
143
  export namespace Models {
@@ -166,6 +186,36 @@ export namespace OrganizationRetrieveResponse {
166
186
  maxDailyGenerations: number;
167
187
  }
168
188
 
189
+ /**
190
+ * Limits associated with the eleven_voice_dubbing model.
191
+ */
192
+ export interface ElevenVoiceDubbing {
193
+ /**
194
+ * The maximum number of generations that can be run concurrently for this model.
195
+ */
196
+ maxConcurrentGenerations: number;
197
+
198
+ /**
199
+ * The maximum number of generations that can be created each day for this model.
200
+ */
201
+ maxDailyGenerations: number;
202
+ }
203
+
204
+ /**
205
+ * Limits associated with the eleven_voice_isolation model.
206
+ */
207
+ export interface ElevenVoiceIsolation {
208
+ /**
209
+ * The maximum number of generations that can be run concurrently for this model.
210
+ */
211
+ maxConcurrentGenerations: number;
212
+
213
+ /**
214
+ * The maximum number of generations that can be created each day for this model.
215
+ */
216
+ maxDailyGenerations: number;
217
+ }
218
+
169
219
  /**
170
220
  * Limits associated with the gemini_2.5_flash model.
171
221
  */
@@ -285,6 +335,36 @@ export namespace OrganizationRetrieveResponse {
285
335
  */
286
336
  maxDailyGenerations: number;
287
337
  }
338
+
339
+ /**
340
+ * Limits associated with the veo3.1 model.
341
+ */
342
+ export interface Veo3_1 {
343
+ /**
344
+ * The maximum number of generations that can be run concurrently for this model.
345
+ */
346
+ maxConcurrentGenerations: number;
347
+
348
+ /**
349
+ * The maximum number of generations that can be created each day for this model.
350
+ */
351
+ maxDailyGenerations: number;
352
+ }
353
+
354
+ /**
355
+ * Limits associated with the veo3.1_fast model.
356
+ */
357
+ export interface Veo3_1Fast {
358
+ /**
359
+ * The maximum number of generations that can be run concurrently for this model.
360
+ */
361
+ maxConcurrentGenerations: number;
362
+
363
+ /**
364
+ * The maximum number of generations that can be created each day for this model.
365
+ */
366
+ maxDailyGenerations: number;
367
+ }
288
368
  }
289
369
  }
290
370
 
@@ -318,6 +398,16 @@ export namespace OrganizationRetrieveResponse {
318
398
  */
319
399
  eleven_text_to_sound_v2?: Models.ElevenTextToSoundV2;
320
400
 
401
+ /**
402
+ * Usage data for the eleven_voice_dubbing model.
403
+ */
404
+ eleven_voice_dubbing?: Models.ElevenVoiceDubbing;
405
+
406
+ /**
407
+ * Usage data for the eleven_voice_isolation model.
408
+ */
409
+ eleven_voice_isolation?: Models.ElevenVoiceIsolation;
410
+
321
411
  /**
322
412
  * Usage data for the gemini_2.5_flash model.
323
413
  */
@@ -357,6 +447,16 @@ export namespace OrganizationRetrieveResponse {
357
447
  * Usage data for the veo3 model.
358
448
  */
359
449
  veo3?: Models.Veo3;
450
+
451
+ /**
452
+ * Usage data for the veo3.1 model.
453
+ */
454
+ 'veo3.1'?: Models.Veo3_1;
455
+
456
+ /**
457
+ * Usage data for the veo3.1_fast model.
458
+ */
459
+ 'veo3.1_fast'?: Models.Veo3_1Fast;
360
460
  }
361
461
 
362
462
  export namespace Models {
@@ -390,6 +490,26 @@ export namespace OrganizationRetrieveResponse {
390
490
  dailyGenerations: number;
391
491
  }
392
492
 
493
+ /**
494
+ * Usage data for the eleven_voice_dubbing model.
495
+ */
496
+ export interface ElevenVoiceDubbing {
497
+ /**
498
+ * The number of generations that have been run for this model in the past day.
499
+ */
500
+ dailyGenerations: number;
501
+ }
502
+
503
+ /**
504
+ * Usage data for the eleven_voice_isolation model.
505
+ */
506
+ export interface ElevenVoiceIsolation {
507
+ /**
508
+ * The number of generations that have been run for this model in the past day.
509
+ */
510
+ dailyGenerations: number;
511
+ }
512
+
393
513
  /**
394
514
  * Usage data for the gemini_2.5_flash model.
395
515
  */
@@ -469,6 +589,26 @@ export namespace OrganizationRetrieveResponse {
469
589
  */
470
590
  dailyGenerations: number;
471
591
  }
592
+
593
+ /**
594
+ * Usage data for the veo3.1 model.
595
+ */
596
+ export interface Veo3_1 {
597
+ /**
598
+ * The number of generations that have been run for this model in the past day.
599
+ */
600
+ dailyGenerations: number;
601
+ }
602
+
603
+ /**
604
+ * Usage data for the veo3.1_fast model.
605
+ */
606
+ export interface Veo3_1Fast {
607
+ /**
608
+ * The number of generations that have been run for this model in the past day.
609
+ */
610
+ dailyGenerations: number;
611
+ }
472
612
  }
473
613
  }
474
614
  }
@@ -481,6 +621,8 @@ export interface OrganizationRetrieveUsageResponse {
481
621
  | 'act_two'
482
622
  | 'eleven_multilingual_v2'
483
623
  | 'eleven_text_to_sound_v2'
624
+ | 'eleven_voice_dubbing'
625
+ | 'eleven_voice_isolation'
484
626
  | 'gemini_2.5_flash'
485
627
  | 'gen3a_turbo'
486
628
  | 'gen4_aleph'
@@ -489,6 +631,8 @@ export interface OrganizationRetrieveUsageResponse {
489
631
  | 'gen4_turbo'
490
632
  | 'upscale_v1'
491
633
  | 'veo3'
634
+ | 'veo3.1'
635
+ | 'veo3.1_fast'
492
636
  >;
493
637
 
494
638
  results: Array<OrganizationRetrieveUsageResponse.Result>;
@@ -522,6 +666,8 @@ export namespace OrganizationRetrieveUsageResponse {
522
666
  | 'act_two'
523
667
  | 'eleven_multilingual_v2'
524
668
  | 'eleven_text_to_sound_v2'
669
+ | 'eleven_voice_dubbing'
670
+ | 'eleven_voice_isolation'
525
671
  | 'gemini_2.5_flash'
526
672
  | 'gen3a_turbo'
527
673
  | 'gen4_aleph'
@@ -529,7 +675,9 @@ export namespace OrganizationRetrieveUsageResponse {
529
675
  | 'gen4_image_turbo'
530
676
  | 'gen4_turbo'
531
677
  | 'upscale_v1'
532
- | 'veo3';
678
+ | 'veo3'
679
+ | 'veo3.1'
680
+ | 'veo3.1_fast';
533
681
  }
534
682
  }
535
683
  }
@@ -27,14 +27,15 @@ export interface TextToVideoCreateResponse {
27
27
 
28
28
  export interface TextToVideoCreateParams {
29
29
  /**
30
- * Veo 3 videos must be 8 seconds long.
30
+ * `veo3` videos must be 8 seconds long. `veo3.1` and `veo3.1_fast` videos must be
31
+ * 4, 6, or 8 seconds long.
31
32
  */
32
- duration: 8;
33
+ duration: 4 | 6 | 8;
33
34
 
34
35
  /**
35
36
  * The model variant to use.
36
37
  */
37
- model: 'veo3';
38
+ model: 'veo3.1' | 'veo3.1_fast' | 'veo3';
38
39
 
39
40
  /**
40
41
  * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
@@ -45,7 +46,7 @@ export interface TextToVideoCreateParams {
45
46
  /**
46
47
  * A string representing the aspect ratio of the output video.
47
48
  */
48
- ratio: '1280:720' | '720:1280';
49
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
49
50
 
50
51
  /**
51
52
  * If unspecified, a random number is chosen. Varying the seed integer is a way to
@@ -0,0 +1,97 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class VoiceDubbing extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to dub audio content to a target language.
10
+ */
11
+ create(
12
+ body: VoiceDubbingCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VoiceDubbingCreateResponse> {
15
+ return wrapAsWaitableResource<VoiceDubbingCreateResponse>(this._client)(
16
+ this._client.post('/v1/voice_dubbing', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VoiceDubbingCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VoiceDubbingCreateParams {
29
+ /**
30
+ * A HTTPS URL or data URI containing the audio file to dub. See
31
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
32
+ */
33
+ audioUri: string;
34
+
35
+ /**
36
+ * The model variant to use.
37
+ */
38
+ model: 'eleven_voice_dubbing';
39
+
40
+ /**
41
+ * The target language code to dub the audio to (e.g., "es" for Spanish, "fr" for
42
+ * French).
43
+ */
44
+ targetLang:
45
+ | 'en'
46
+ | 'hi'
47
+ | 'pt'
48
+ | 'zh'
49
+ | 'es'
50
+ | 'fr'
51
+ | 'de'
52
+ | 'ja'
53
+ | 'ar'
54
+ | 'ru'
55
+ | 'ko'
56
+ | 'id'
57
+ | 'it'
58
+ | 'nl'
59
+ | 'tr'
60
+ | 'pl'
61
+ | 'sv'
62
+ | 'fil'
63
+ | 'ms'
64
+ | 'ro'
65
+ | 'uk'
66
+ | 'el'
67
+ | 'cs'
68
+ | 'da'
69
+ | 'fi'
70
+ | 'bg'
71
+ | 'hr'
72
+ | 'sk'
73
+ | 'ta';
74
+
75
+ /**
76
+ * Whether to disable voice cloning and use a generic voice instead.
77
+ */
78
+ disableVoiceCloning?: boolean;
79
+
80
+ /**
81
+ * Whether to remove background audio from the dubbed output.
82
+ */
83
+ dropBackgroundAudio?: boolean;
84
+
85
+ /**
86
+ * The number of speakers in the audio. If not provided, it will be detected
87
+ * automatically.
88
+ */
89
+ numSpeakers?: number;
90
+ }
91
+
92
+ export declare namespace VoiceDubbing {
93
+ export {
94
+ type VoiceDubbingCreateResponse as VoiceDubbingCreateResponse,
95
+ type VoiceDubbingCreateParams as VoiceDubbingCreateParams,
96
+ };
97
+ }
@@ -0,0 +1,46 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { RequestOptions } from '../internal/request-options';
5
+ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
6
+
7
+ export class VoiceIsolation extends APIResource {
8
+ /**
9
+ * This endpoint will start a new task to isolate and enhance voices in audio.
10
+ */
11
+ create(
12
+ body: VoiceIsolationCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromiseWithAwaitableTask<VoiceIsolationCreateResponse> {
15
+ return wrapAsWaitableResource<VoiceIsolationCreateResponse>(this._client)(
16
+ this._client.post('/v1/voice_isolation', { body, ...options }),
17
+ );
18
+ }
19
+ }
20
+
21
+ export interface VoiceIsolationCreateResponse {
22
+ /**
23
+ * The ID of the newly created task.
24
+ */
25
+ id: string;
26
+ }
27
+
28
+ export interface VoiceIsolationCreateParams {
29
+ /**
30
+ * A HTTPS URL or data URI containing the audio file to process. See
31
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
32
+ */
33
+ audioUrl: string;
34
+
35
+ /**
36
+ * The model variant to use.
37
+ */
38
+ model: 'eleven_voice_isolation';
39
+ }
40
+
41
+ export declare namespace VoiceIsolation {
42
+ export {
43
+ type VoiceIsolationCreateResponse as VoiceIsolationCreateResponse,
44
+ type VoiceIsolationCreateParams as VoiceIsolationCreateParams,
45
+ };
46
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.2.0'; // x-release-please-version
1
+ export const VERSION = '3.4.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.2.0";
1
+ export declare const VERSION = "3.4.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.2.0";
1
+ export declare const VERSION = "3.4.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 = '3.2.0'; // x-release-please-version
4
+ exports.VERSION = '3.4.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.2.0'; // x-release-please-version
1
+ export const VERSION = '3.4.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map