@runwayml/sdk 3.5.0 → 3.7.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 (105) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +5 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +5 -2
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +17 -17
  11. package/package.json +1 -1
  12. package/resources/character-performance.d.mts +32 -5
  13. package/resources/character-performance.d.mts.map +1 -1
  14. package/resources/character-performance.d.ts +32 -5
  15. package/resources/character-performance.d.ts.map +1 -1
  16. package/resources/character-performance.js +16 -0
  17. package/resources/character-performance.js.map +1 -1
  18. package/resources/character-performance.mjs +16 -0
  19. package/resources/character-performance.mjs.map +1 -1
  20. package/resources/image-to-video.d.mts +215 -88
  21. package/resources/image-to-video.d.mts.map +1 -1
  22. package/resources/image-to-video.d.ts +215 -88
  23. package/resources/image-to-video.d.ts.map +1 -1
  24. package/resources/image-to-video.js +10 -1
  25. package/resources/image-to-video.js.map +1 -1
  26. package/resources/image-to-video.mjs +10 -1
  27. package/resources/image-to-video.mjs.map +1 -1
  28. package/resources/index.d.mts +1 -0
  29. package/resources/index.d.mts.map +1 -1
  30. package/resources/index.d.ts +1 -0
  31. package/resources/index.d.ts.map +1 -1
  32. package/resources/index.js +3 -1
  33. package/resources/index.js.map +1 -1
  34. package/resources/index.mjs +1 -0
  35. package/resources/index.mjs.map +1 -1
  36. package/resources/speech-to-speech.d.mts +16 -4
  37. package/resources/speech-to-speech.d.mts.map +1 -1
  38. package/resources/speech-to-speech.d.ts +16 -4
  39. package/resources/speech-to-speech.d.ts.map +1 -1
  40. package/resources/text-to-image.d.mts +3 -3
  41. package/resources/text-to-image.d.ts +3 -3
  42. package/resources/text-to-speech.d.mts +2 -2
  43. package/resources/text-to-speech.d.ts +2 -2
  44. package/resources/text-to-video.d.mts +50 -28
  45. package/resources/text-to-video.d.mts.map +1 -1
  46. package/resources/text-to-video.d.ts +50 -28
  47. package/resources/text-to-video.d.ts.map +1 -1
  48. package/resources/uploads.d.mts +33 -0
  49. package/resources/uploads.d.mts.map +1 -0
  50. package/resources/uploads.d.ts +33 -0
  51. package/resources/uploads.d.ts.map +1 -0
  52. package/resources/uploads.js +75 -0
  53. package/resources/uploads.js.map +1 -0
  54. package/resources/uploads.mjs +70 -0
  55. package/resources/uploads.mjs.map +1 -0
  56. package/resources/video-to-video.d.mts +12 -10
  57. package/resources/video-to-video.d.mts.map +1 -1
  58. package/resources/video-to-video.d.ts +12 -10
  59. package/resources/video-to-video.d.ts.map +1 -1
  60. package/resources/video-to-video.js +10 -0
  61. package/resources/video-to-video.js.map +1 -1
  62. package/resources/video-to-video.mjs +10 -0
  63. package/resources/video-to-video.mjs.map +1 -1
  64. package/resources/video-upscale.d.mts +9 -9
  65. package/resources/video-upscale.d.mts.map +1 -1
  66. package/resources/video-upscale.d.ts +9 -9
  67. package/resources/video-upscale.d.ts.map +1 -1
  68. package/resources/video-upscale.js +8 -0
  69. package/resources/video-upscale.js.map +1 -1
  70. package/resources/video-upscale.mjs +8 -0
  71. package/resources/video-upscale.mjs.map +1 -1
  72. package/resources/voice-dubbing.d.mts +10 -1
  73. package/resources/voice-dubbing.d.mts.map +1 -1
  74. package/resources/voice-dubbing.d.ts +10 -1
  75. package/resources/voice-dubbing.d.ts.map +1 -1
  76. package/resources/voice-dubbing.js +9 -0
  77. package/resources/voice-dubbing.js.map +1 -1
  78. package/resources/voice-dubbing.mjs +9 -0
  79. package/resources/voice-dubbing.mjs.map +1 -1
  80. package/resources/voice-isolation.d.mts +11 -2
  81. package/resources/voice-isolation.d.mts.map +1 -1
  82. package/resources/voice-isolation.d.ts +11 -2
  83. package/resources/voice-isolation.d.ts.map +1 -1
  84. package/resources/voice-isolation.js +10 -1
  85. package/resources/voice-isolation.js.map +1 -1
  86. package/resources/voice-isolation.mjs +10 -1
  87. package/resources/voice-isolation.mjs.map +1 -1
  88. package/src/client.ts +11 -2
  89. package/src/resources/character-performance.ts +32 -5
  90. package/src/resources/image-to-video.ts +253 -99
  91. package/src/resources/index.ts +1 -0
  92. package/src/resources/speech-to-speech.ts +16 -4
  93. package/src/resources/text-to-image.ts +3 -3
  94. package/src/resources/text-to-speech.ts +2 -2
  95. package/src/resources/text-to-video.ts +61 -28
  96. package/src/resources/uploads.ts +135 -0
  97. package/src/resources/video-to-video.ts +12 -10
  98. package/src/resources/video-upscale.ts +9 -9
  99. package/src/resources/voice-dubbing.ts +10 -1
  100. package/src/resources/voice-isolation.ts +11 -2
  101. package/src/version.ts +1 -1
  102. package/version.d.mts +1 -1
  103. package/version.d.ts +1 -1
  104. package/version.js +1 -1
  105. package/version.mjs +1 -1
@@ -3,108 +3,235 @@ import { RequestOptions } from "../internal/request-options.js";
3
3
  import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
4
4
  export declare class ImageToVideo extends APIResource {
5
5
  /**
6
- * This endpoint will start a new task to generate a video from an image prompt.
6
+ * This endpoint will start a new task to generate a video from an image.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const imageToVideo = await client.imageToVideo.create({
11
+ * model: 'gen3a_turbo',
12
+ * promptImage: 'https://example.com/file',
13
+ * promptText: 'A beautiful sunset over a calm ocean.',
14
+ * });
15
+ * ```
7
16
  */
8
17
  create(body: ImageToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<ImageToVideoCreateResponse>;
9
18
  }
10
19
  export interface ImageToVideoCreateResponse {
11
- /**
12
- * The ID of the newly created task. Use this ID to query the task status and
13
- * retrieve the generated video.
14
- */
15
20
  id: string;
16
21
  }
17
- export interface ImageToVideoCreateParams {
18
- /**
19
- * The model variant to use.
20
- */
21
- model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3.1' | 'veo3.1_fast' | 'veo3';
22
- /**
23
- * A HTTPS URL or data URI containing an encoded image to be used as the first
24
- * frame of the generated video. See [our docs](/assets/inputs#images) on image
25
- * inputs for more information.
26
- */
27
- promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
28
- /**
29
- * The resolution of the output video.
30
- *
31
- * `gen4_turbo` supports the following values:
32
- *
33
- * - `1280:720`
34
- * - `720:1280`
35
- * - `1104:832`
36
- * - `832:1104`
37
- * - `960:960`
38
- * - `1584:672`
39
- *
40
- * `gen3a_turbo` supports the following values:
41
- *
42
- * - `1280:768`
43
- * - `768:1280`
44
- *
45
- * `veo3`, `veo3.1`, `veo3.1_fast` support the following values:
46
- *
47
- * - `1280:720`
48
- * - `720:1280`
49
- * - `1080:1920`
50
- * - `1920:1080`
51
- */
52
- ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280' | '1080:1920' | '1920:1080';
53
- /**
54
- * Settings that affect the behavior of the content moderation system.
55
- *
56
- * This field is allowed only for the following model variants: `gen4_turbo`,
57
- * `gen3a_turbo`
58
- */
59
- contentModeration?: ImageToVideoCreateParams.ContentModeration;
60
- /**
61
- * The number of seconds of duration for the output video. `veo3` requires a
62
- * duration of 8. `veo3.1` and `veo3.1_fast` require a duration of 4, 6, or 8.
63
- * `gen3a_turbo` requires a duration of 5 or 10. `gen4_turbo` must specify a
64
- * duration of 2-10 seconds.
65
- */
66
- duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
67
- /**
68
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
69
- * should describe in detail what should appear in the output.
70
- */
71
- promptText?: string;
72
- /**
73
- * If unspecified, a random number is chosen. Varying the seed integer is a way to
74
- * get different results for the same other request parameters. Using the same seed
75
- * integer for an identical request will produce similar results.
76
- */
77
- seed?: number;
78
- }
22
+ export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
79
23
  export declare namespace ImageToVideoCreateParams {
80
- interface PromptImage {
24
+ interface Gen4Turbo {
25
+ model: 'gen4_turbo';
26
+ /**
27
+ * A HTTPS URL.
28
+ */
29
+ promptImage: string | Array<Gen4Turbo.PromptImage>;
30
+ /**
31
+ * The resolution of the output video.
32
+ */
33
+ ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672';
34
+ /**
35
+ * Settings that affect the behavior of the content moderation system.
36
+ */
37
+ contentModeration?: Gen4Turbo.ContentModeration;
81
38
  /**
82
- * The position of the image in the output video. "first" will use the image as the
83
- * first frame of the video, "last" will use the image as the last frame of the
84
- * video.
85
- *
86
- * "last" is currently supported for `gen3a_turbo`, `veo3.1`, and `veo3.1_fast`
87
- * only. `veo3.1` and `veo3.1_fast` require a `first` frame to be provided.
39
+ * The number of seconds of duration for the output video.
88
40
  */
89
- position: 'first' | 'last';
41
+ duration?: number;
90
42
  /**
91
- * A HTTPS URL or data URI containing an encoded image. See
92
- * [our docs](/assets/inputs#images) on image inputs for more information.
43
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
44
+ * should describe in detail what should appear in the output.
93
45
  */
94
- uri: string;
46
+ promptText?: string;
47
+ /**
48
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
49
+ * get different results for the same other request parameters. Using the same seed
50
+ * integer for an identical request will produce similar results.
51
+ */
52
+ seed?: number;
95
53
  }
96
- /**
97
- * Settings that affect the behavior of the content moderation system.
98
- *
99
- * This field is allowed only for the following model variants: `gen4_turbo`,
100
- * `gen3a_turbo`
101
- */
102
- interface ContentModeration {
54
+ namespace Gen4Turbo {
55
+ interface PromptImage {
56
+ /**
57
+ * The position of the image in the output video. "first" will use the image as the
58
+ * first frame of the video.
59
+ */
60
+ position: 'first';
61
+ /**
62
+ * A HTTPS URL.
63
+ */
64
+ uri: string;
65
+ }
66
+ /**
67
+ * Settings that affect the behavior of the content moderation system.
68
+ */
69
+ interface ContentModeration {
70
+ /**
71
+ * When set to `low`, the content moderation system will be less strict about
72
+ * preventing generations that include recognizable public figures.
73
+ */
74
+ publicFigureThreshold?: 'auto' | 'low';
75
+ }
76
+ }
77
+ interface Gen3aTurbo {
78
+ model: 'gen3a_turbo';
79
+ /**
80
+ * A HTTPS URL.
81
+ */
82
+ promptImage: string | Array<Gen3aTurbo.PromptImage>;
103
83
  /**
104
- * When set to `low`, the content moderation system will be less strict about
105
- * preventing generations that include recognizable public figures.
84
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
85
+ * should describe in detail what should appear in the output.
106
86
  */
107
- publicFigureThreshold?: 'auto' | 'low';
87
+ promptText: string;
88
+ /**
89
+ * Settings that affect the behavior of the content moderation system.
90
+ */
91
+ contentModeration?: Gen3aTurbo.ContentModeration;
92
+ /**
93
+ * The duration of the output video in seconds.
94
+ */
95
+ duration?: 5 | 10;
96
+ /**
97
+ * The resolution of the output video.
98
+ */
99
+ ratio?: '768:1280' | '1280:768';
100
+ /**
101
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
102
+ * get different results for the same other request parameters. Using the same seed
103
+ * integer for an identical request will produce similar results.
104
+ */
105
+ seed?: number;
106
+ }
107
+ namespace Gen3aTurbo {
108
+ interface PromptImage {
109
+ /**
110
+ * The position of the image in the output video. "first" will use the image as the
111
+ * first frame of the video, "last" will use the image as the last frame of the
112
+ * video.
113
+ */
114
+ position: 'first' | 'last';
115
+ /**
116
+ * A HTTPS URL.
117
+ */
118
+ uri: string;
119
+ }
120
+ /**
121
+ * Settings that affect the behavior of the content moderation system.
122
+ */
123
+ interface ContentModeration {
124
+ /**
125
+ * When set to `low`, the content moderation system will be less strict about
126
+ * preventing generations that include recognizable public figures.
127
+ */
128
+ publicFigureThreshold?: 'auto' | 'low';
129
+ }
130
+ }
131
+ interface Veo3_1 {
132
+ model: 'veo3.1';
133
+ /**
134
+ * You may specify an image to use as the first frame of the output video, or an
135
+ * array with a first frame and optionally a last frame. This model does not
136
+ * support generating with only a last frame.
137
+ */
138
+ promptImage: string | Array<Veo3_1.PromptImage>;
139
+ /**
140
+ * The resolution of the output video.
141
+ */
142
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
143
+ /**
144
+ * The number of seconds of duration for the output video.
145
+ */
146
+ duration?: 4 | 6 | 8;
147
+ /**
148
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
149
+ * should describe in detail what should appear in the output.
150
+ */
151
+ promptText?: string;
152
+ }
153
+ namespace Veo3_1 {
154
+ interface PromptImage {
155
+ /**
156
+ * The position of the image in the output video. "first" will use the image as the
157
+ * first frame of the video, "last" will use the image as the last frame of the
158
+ * video.
159
+ */
160
+ position: 'first' | 'last';
161
+ /**
162
+ * A HTTPS URL.
163
+ */
164
+ uri: string;
165
+ }
166
+ }
167
+ interface Veo3_1Fast {
168
+ model: 'veo3.1_fast';
169
+ /**
170
+ * You may specify an image to use as the first frame of the output video, or an
171
+ * array with a first frame and optionally a last frame. This model does not
172
+ * support generating with only a last frame.
173
+ */
174
+ promptImage: string | Array<Veo3_1Fast.PromptImage>;
175
+ /**
176
+ * The resolution of the output video.
177
+ */
178
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
179
+ /**
180
+ * The number of seconds of duration for the output video.
181
+ */
182
+ duration?: 4 | 6 | 8;
183
+ /**
184
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
185
+ * should describe in detail what should appear in the output.
186
+ */
187
+ promptText?: string;
188
+ }
189
+ namespace Veo3_1Fast {
190
+ interface PromptImage {
191
+ /**
192
+ * The position of the image in the output video. "first" will use the image as the
193
+ * first frame of the video, "last" will use the image as the last frame of the
194
+ * video.
195
+ */
196
+ position: 'first' | 'last';
197
+ /**
198
+ * A HTTPS URL.
199
+ */
200
+ uri: string;
201
+ }
202
+ }
203
+ interface Veo3 {
204
+ /**
205
+ * The number of seconds of duration for the output video.
206
+ */
207
+ duration: 8;
208
+ model: 'veo3';
209
+ /**
210
+ * A HTTPS URL.
211
+ */
212
+ promptImage: string | Array<Veo3.PromptImage>;
213
+ /**
214
+ * The resolution of the output video.
215
+ */
216
+ ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
217
+ /**
218
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
219
+ * should describe in detail what should appear in the output.
220
+ */
221
+ promptText?: string;
222
+ }
223
+ namespace Veo3 {
224
+ interface PromptImage {
225
+ /**
226
+ * The position of the image in the output video. "first" will use the image as the
227
+ * first frame of the video.
228
+ */
229
+ position: 'first';
230
+ /**
231
+ * A HTTPS URL.
232
+ */
233
+ uri: string;
234
+ }
108
235
  }
109
236
  }
110
237
  export declare namespace ImageToVideo {
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,aAAa,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;IAExE;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,EACD,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,CAAC;IAEhB;;;;;OAKG;IACH,iBAAiB,CAA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B,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE9C;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;;eAGG;YACH,QAAQ,EAAE,OAAO,CAAC;YAElB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -6,7 +6,16 @@ const resource_1 = require("../core/resource.js");
6
6
  const polling_1 = require("../lib/polling.js");
7
7
  class ImageToVideo extends resource_1.APIResource {
8
8
  /**
9
- * This endpoint will start a new task to generate a video from an image prompt.
9
+ * This endpoint will start a new task to generate a video from an image.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const imageToVideo = await client.imageToVideo.create({
14
+ * model: 'gen3a_turbo',
15
+ * promptImage: 'https://example.com/file',
16
+ * promptText: 'A beautiful sunset over a calm ocean.',
17
+ * });
18
+ * ```
10
19
  */
11
20
  create(body, options) {
12
21
  return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/image_to_video', { body, ...options }));
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAZD,oCAYC"}
1
+ {"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
@@ -3,7 +3,16 @@ import { APIResource } from "../core/resource.mjs";
3
3
  import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
4
  export class ImageToVideo extends APIResource {
5
5
  /**
6
- * This endpoint will start a new task to generate a video from an image prompt.
6
+ * This endpoint will start a new task to generate a video from an image.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const imageToVideo = await client.imageToVideo.create({
11
+ * model: 'gen3a_turbo',
12
+ * promptImage: 'https://example.com/file',
13
+ * promptText: 'A beautiful sunset over a calm ocean.',
14
+ * });
15
+ * ```
7
16
  */
8
17
  create(body, options) {
9
18
  return wrapAsWaitableResource(this._client)(this._client.post('/v1/image_to_video', { body, ...options }));
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.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,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
@@ -11,4 +11,5 @@ export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateP
11
11
  export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.mjs";
12
12
  export { VoiceDubbing, type VoiceDubbingCreateResponse, type VoiceDubbingCreateParams, } from "./voice-dubbing.mjs";
13
13
  export { VoiceIsolation, type VoiceIsolationCreateResponse, type VoiceIsolationCreateParams, } from "./voice-isolation.mjs";
14
+ export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from "./uploads.mjs";
14
15
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,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WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE"}
@@ -11,4 +11,5 @@ export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateP
11
11
  export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.js";
12
12
  export { VoiceDubbing, type VoiceDubbingCreateResponse, type VoiceDubbingCreateParams, } from "./voice-dubbing.js";
13
13
  export { VoiceIsolation, type VoiceIsolationCreateResponse, type VoiceIsolationCreateParams, } from "./voice-isolation.js";
14
+ export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from "./uploads.js";
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,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7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VoiceIsolation = exports.VoiceDubbing = exports.VideoUpscale = exports.VideoToVideo = exports.TextToVideo = exports.TextToSpeech = exports.TextToImage = exports.Tasks = exports.SpeechToSpeech = exports.SoundEffect = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
4
+ exports.Uploads = exports.VoiceIsolation = exports.VoiceDubbing = exports.VideoUpscale = exports.VideoToVideo = exports.TextToVideo = exports.TextToSpeech = exports.TextToImage = exports.Tasks = exports.SpeechToSpeech = exports.SoundEffect = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
5
5
  var character_performance_1 = require("./character-performance.js");
6
6
  Object.defineProperty(exports, "CharacterPerformance", { enumerable: true, get: function () { return character_performance_1.CharacterPerformance; } });
7
7
  var image_to_video_1 = require("./image-to-video.js");
@@ -28,4 +28,6 @@ var voice_dubbing_1 = require("./voice-dubbing.js");
28
28
  Object.defineProperty(exports, "VoiceDubbing", { enumerable: true, get: function () { return voice_dubbing_1.VoiceDubbing; } });
29
29
  var voice_isolation_1 = require("./voice-isolation.js");
30
30
  Object.defineProperty(exports, "VoiceIsolation", { enumerable: true, get: function () { return voice_isolation_1.VoiceIsolation; } });
31
+ var uploads_1 = require("./uploads.js");
32
+ Object.defineProperty(exports, "Uploads", { enumerable: true, get: function () { return uploads_1.Uploads; } });
31
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wDAI2B;AAHzB,iHAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wDAI2B;AAHzB,iHAAA,cAAc,OAAA;AAIhB,wCAA2G;AAAlG,kGAAA,OAAO,OAAA"}
@@ -12,4 +12,5 @@ export { VideoToVideo, } from "./video-to-video.mjs";
12
12
  export { VideoUpscale, } from "./video-upscale.mjs";
13
13
  export { VoiceDubbing, } from "./voice-dubbing.mjs";
14
14
  export { VoiceIsolation, } from "./voice-isolation.mjs";
15
+ export { Uploads } from "./uploads.mjs";
15
16
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,cAAc,GAGf;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,cAAc,GAGf"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,cAAc,GAGf;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,cAAc,GAGf;OACM,EAAE,OAAO,EAAyE"}
@@ -12,31 +12,43 @@ export interface SpeechToSpeechCreateResponse {
12
12
  id: string;
13
13
  }
14
14
  export interface SpeechToSpeechCreateParams {
15
+ /**
16
+ * The media to use as a source for the dialogue for the generated speech.
17
+ */
15
18
  media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
16
19
  model: 'eleven_multilingual_sts_v2';
17
20
  /**
18
- * The voice to use for the generated speech.
21
+ * A voice preset from the RunwayML API.
19
22
  */
20
23
  voice: SpeechToSpeechCreateParams.Voice;
24
+ /**
25
+ * Whether to remove background noise from the generated speech.
26
+ */
21
27
  removeBackgroundNoise?: boolean;
22
28
  }
23
29
  export declare namespace SpeechToSpeechCreateParams {
30
+ /**
31
+ * An audio file containing dialogue to be processed.
32
+ */
24
33
  interface Audio {
25
34
  type: 'audio';
26
35
  /**
27
- * A data URI containing encoded audio.
36
+ * A HTTPS URL.
28
37
  */
29
38
  uri: string;
30
39
  }
40
+ /**
41
+ * A video file containing dialogue to be processed.
42
+ */
31
43
  interface Video {
32
44
  type: 'video';
33
45
  /**
34
- * A data URI containing an encoded video.
46
+ * A HTTPS URL.
35
47
  */
36
48
  uri: string;
37
49
  }
38
50
  /**
39
- * The voice to use for the generated speech.
51
+ * A voice preset from the RunwayML API.
40
52
  */
41
53
  interface Voice {
42
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"speech-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"speech-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,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ACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -12,31 +12,43 @@ export interface SpeechToSpeechCreateResponse {
12
12
  id: string;
13
13
  }
14
14
  export interface SpeechToSpeechCreateParams {
15
+ /**
16
+ * The media to use as a source for the dialogue for the generated speech.
17
+ */
15
18
  media: SpeechToSpeechCreateParams.Audio | SpeechToSpeechCreateParams.Video;
16
19
  model: 'eleven_multilingual_sts_v2';
17
20
  /**
18
- * The voice to use for the generated speech.
21
+ * A voice preset from the RunwayML API.
19
22
  */
20
23
  voice: SpeechToSpeechCreateParams.Voice;
24
+ /**
25
+ * Whether to remove background noise from the generated speech.
26
+ */
21
27
  removeBackgroundNoise?: boolean;
22
28
  }
23
29
  export declare namespace SpeechToSpeechCreateParams {
30
+ /**
31
+ * An audio file containing dialogue to be processed.
32
+ */
24
33
  interface Audio {
25
34
  type: 'audio';
26
35
  /**
27
- * A data URI containing encoded audio.
36
+ * A HTTPS URL.
28
37
  */
29
38
  uri: string;
30
39
  }
40
+ /**
41
+ * A video file containing dialogue to be processed.
42
+ */
31
43
  interface Video {
32
44
  type: 'video';
33
45
  /**
34
- * A data URI containing an encoded video.
46
+ * A HTTPS URL.
35
47
  */
36
48
  uri: string;
37
49
  }
38
50
  /**
39
- * The voice to use for the generated speech.
51
+ * A voice preset from the RunwayML API.
40
52
  */
41
53
  interface Voice {
42
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"speech-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,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,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"speech-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -96,9 +96,9 @@ export declare namespace TextToImageCreateParams {
96
96
  }
97
97
  interface ReferenceImage {
98
98
  /**
99
- * A HTTPS URL or data URI containing an encoded image to be used as reference for
100
- * the generated output image. See [our docs](/assets/inputs#images) on image
101
- * inputs for more information.
99
+ * A HTTPS URL, Runway or data URI containing an encoded image to be used as
100
+ * reference for the generated output image. See [our docs](/assets/inputs#images)
101
+ * on image inputs for more information.
102
102
  */
103
103
  uri: string;
104
104
  /**
@@ -96,9 +96,9 @@ export declare namespace TextToImageCreateParams {
96
96
  }
97
97
  interface ReferenceImage {
98
98
  /**
99
- * A HTTPS URL or data URI containing an encoded image to be used as reference for
100
- * the generated output image. See [our docs](/assets/inputs#images) on image
101
- * inputs for more information.
99
+ * A HTTPS URL, Runway or data URI containing an encoded image to be used as
100
+ * reference for the generated output image. See [our docs](/assets/inputs#images)
101
+ * on image inputs for more information.
102
102
  */
103
103
  uri: string;
104
104
  /**
@@ -18,13 +18,13 @@ export interface TextToSpeechCreateParams {
18
18
  */
19
19
  promptText: string;
20
20
  /**
21
- * The voice to use for the generated speech.
21
+ * A voice preset from the RunwayML API.
22
22
  */
23
23
  voice: TextToSpeechCreateParams.Voice;
24
24
  }
25
25
  export declare namespace TextToSpeechCreateParams {
26
26
  /**
27
- * The voice to use for the generated speech.
27
+ * A voice preset from the RunwayML API.
28
28
  */
29
29
  interface Voice {
30
30
  /**
@@ -18,13 +18,13 @@ export interface TextToSpeechCreateParams {
18
18
  */
19
19
  promptText: string;
20
20
  /**
21
- * The voice to use for the generated speech.
21
+ * A voice preset from the RunwayML API.
22
22
  */
23
23
  voice: TextToSpeechCreateParams.Voice;
24
24
  }
25
25
  export declare namespace TextToSpeechCreateParams {
26
26
  /**
27
- * The voice to use for the generated speech.
27
+ * A voice preset from the RunwayML API.
28
28
  */
29
29
  interface Voice {
30
30
  /**