@runwayml/sdk 4.13.1 → 4.14.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 (199) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/client.d.mts +3 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/character-performance.d.mts +17 -0
  12. package/resources/character-performance.d.mts.map +1 -1
  13. package/resources/character-performance.d.ts +17 -0
  14. package/resources/character-performance.d.ts.map +1 -1
  15. package/resources/generate/audio.d.mts +46 -24
  16. package/resources/generate/audio.d.mts.map +1 -1
  17. package/resources/generate/audio.d.ts +46 -24
  18. package/resources/generate/audio.d.ts.map +1 -1
  19. package/resources/generate/audio.js.map +1 -1
  20. package/resources/generate/audio.mjs.map +1 -1
  21. package/resources/generate/generate.d.mts +2 -2
  22. package/resources/generate/generate.d.mts.map +1 -1
  23. package/resources/generate/generate.d.ts +2 -2
  24. package/resources/generate/generate.d.ts.map +1 -1
  25. package/resources/generate/generate.js.map +1 -1
  26. package/resources/generate/generate.mjs.map +1 -1
  27. package/resources/generate/image.d.mts +21 -0
  28. package/resources/generate/image.d.mts.map +1 -1
  29. package/resources/generate/image.d.ts +21 -0
  30. package/resources/generate/image.d.ts.map +1 -1
  31. package/resources/generate/index.d.mts +1 -1
  32. package/resources/generate/index.d.mts.map +1 -1
  33. package/resources/generate/index.d.ts +1 -1
  34. package/resources/generate/index.d.ts.map +1 -1
  35. package/resources/generate/index.js.map +1 -1
  36. package/resources/generate/index.mjs +1 -1
  37. package/resources/generate/index.mjs.map +1 -1
  38. package/resources/generate/video.d.mts +21 -0
  39. package/resources/generate/video.d.mts.map +1 -1
  40. package/resources/generate/video.d.ts +21 -0
  41. package/resources/generate/video.d.ts.map +1 -1
  42. package/resources/image-to-video.d.mts +118 -27
  43. package/resources/image-to-video.d.mts.map +1 -1
  44. package/resources/image-to-video.d.ts +118 -27
  45. package/resources/image-to-video.d.ts.map +1 -1
  46. package/resources/image-upscale.d.mts +17 -0
  47. package/resources/image-upscale.d.mts.map +1 -1
  48. package/resources/image-upscale.d.ts +17 -0
  49. package/resources/image-upscale.d.ts.map +1 -1
  50. package/resources/index.d.mts +2 -2
  51. package/resources/index.d.mts.map +1 -1
  52. package/resources/index.d.ts +2 -2
  53. package/resources/index.d.ts.map +1 -1
  54. package/resources/index.js +1 -1
  55. package/resources/index.js.map +1 -1
  56. package/resources/index.mjs +1 -1
  57. package/resources/index.mjs.map +1 -1
  58. package/resources/organization/index.d.mts +3 -0
  59. package/resources/organization/index.d.mts.map +1 -0
  60. package/resources/organization/index.d.ts +3 -0
  61. package/resources/organization/index.d.ts.map +1 -0
  62. package/resources/organization/index.js +9 -0
  63. package/resources/organization/index.js.map +1 -0
  64. package/resources/organization/index.mjs +4 -0
  65. package/resources/organization/index.mjs.map +1 -0
  66. package/resources/organization/organization.d.mts +154 -0
  67. package/resources/organization/organization.d.mts.map +1 -0
  68. package/resources/organization/organization.d.ts +154 -0
  69. package/resources/organization/organization.d.ts.map +1 -0
  70. package/resources/organization/organization.js +32 -0
  71. package/resources/organization/organization.js.map +1 -0
  72. package/resources/organization/organization.mjs +27 -0
  73. package/resources/organization/organization.mjs.map +1 -0
  74. package/resources/organization/webapp/audit-logs.d.mts +216 -0
  75. package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
  76. package/resources/organization/webapp/audit-logs.d.ts +216 -0
  77. package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
  78. package/resources/organization/webapp/audit-logs.js +30 -0
  79. package/resources/organization/webapp/audit-logs.js.map +1 -0
  80. package/resources/organization/webapp/audit-logs.mjs +26 -0
  81. package/resources/organization/webapp/audit-logs.mjs.map +1 -0
  82. package/resources/organization/webapp/index.d.mts +3 -0
  83. package/resources/organization/webapp/index.d.mts.map +1 -0
  84. package/resources/organization/webapp/index.d.ts +3 -0
  85. package/resources/organization/webapp/index.d.ts.map +1 -0
  86. package/resources/organization/webapp/index.js +9 -0
  87. package/resources/organization/webapp/index.js.map +1 -0
  88. package/resources/organization/webapp/index.mjs +4 -0
  89. package/resources/organization/webapp/index.mjs.map +1 -0
  90. package/resources/organization/webapp/webapp.d.mts +73 -0
  91. package/resources/organization/webapp/webapp.d.mts.map +1 -0
  92. package/resources/organization/webapp/webapp.d.ts +73 -0
  93. package/resources/organization/webapp/webapp.d.ts.map +1 -0
  94. package/resources/organization/webapp/webapp.js +30 -0
  95. package/resources/organization/webapp/webapp.js.map +1 -0
  96. package/resources/organization/webapp/webapp.mjs +25 -0
  97. package/resources/organization/webapp/webapp.mjs.map +1 -0
  98. package/resources/organization/webapp.d.mts +2 -0
  99. package/resources/organization/webapp.d.mts.map +1 -0
  100. package/resources/organization/webapp.d.ts +2 -0
  101. package/resources/organization/webapp.d.ts.map +1 -0
  102. package/resources/organization/webapp.js +6 -0
  103. package/resources/organization/webapp.js.map +1 -0
  104. package/resources/organization/webapp.mjs +3 -0
  105. package/resources/organization/webapp.mjs.map +1 -0
  106. package/resources/organization.d.mts +1 -149
  107. package/resources/organization.d.mts.map +1 -1
  108. package/resources/organization.d.ts +1 -149
  109. package/resources/organization.d.ts.map +1 -1
  110. package/resources/organization.js +2 -20
  111. package/resources/organization.js.map +1 -1
  112. package/resources/organization.mjs +1 -18
  113. package/resources/organization.mjs.map +1 -1
  114. package/resources/recipes.d.mts +119 -0
  115. package/resources/recipes.d.mts.map +1 -1
  116. package/resources/recipes.d.ts +119 -0
  117. package/resources/recipes.d.ts.map +1 -1
  118. package/resources/routers.d.mts +194 -1
  119. package/resources/routers.d.mts.map +1 -1
  120. package/resources/routers.d.ts +194 -1
  121. package/resources/routers.d.ts.map +1 -1
  122. package/resources/routers.js +10 -0
  123. package/resources/routers.js.map +1 -1
  124. package/resources/routers.mjs +10 -0
  125. package/resources/routers.mjs.map +1 -1
  126. package/resources/sound-effect.d.mts +17 -0
  127. package/resources/sound-effect.d.mts.map +1 -1
  128. package/resources/sound-effect.d.ts +17 -0
  129. package/resources/sound-effect.d.ts.map +1 -1
  130. package/resources/speech-to-speech.d.mts +17 -0
  131. package/resources/speech-to-speech.d.mts.map +1 -1
  132. package/resources/speech-to-speech.d.ts +17 -0
  133. package/resources/speech-to-speech.d.ts.map +1 -1
  134. package/resources/tasks.d.mts +90 -0
  135. package/resources/tasks.d.mts.map +1 -1
  136. package/resources/tasks.d.ts +90 -0
  137. package/resources/tasks.d.ts.map +1 -1
  138. package/resources/text-to-image.d.mts +22 -0
  139. package/resources/text-to-image.d.mts.map +1 -1
  140. package/resources/text-to-image.d.ts +22 -0
  141. package/resources/text-to-image.d.ts.map +1 -1
  142. package/resources/text-to-speech.d.mts +77 -1
  143. package/resources/text-to-speech.d.mts.map +1 -1
  144. package/resources/text-to-speech.d.ts +77 -1
  145. package/resources/text-to-speech.d.ts.map +1 -1
  146. package/resources/text-to-video.d.mts +170 -17
  147. package/resources/text-to-video.d.mts.map +1 -1
  148. package/resources/text-to-video.d.ts +170 -17
  149. package/resources/text-to-video.d.ts.map +1 -1
  150. package/resources/video-to-video.d.mts +199 -7
  151. package/resources/video-to-video.d.mts.map +1 -1
  152. package/resources/video-to-video.d.ts +199 -7
  153. package/resources/video-to-video.d.ts.map +1 -1
  154. package/resources/video-upscale.d.mts +17 -0
  155. package/resources/video-upscale.d.mts.map +1 -1
  156. package/resources/video-upscale.d.ts +17 -0
  157. package/resources/video-upscale.d.ts.map +1 -1
  158. package/resources/voice-dubbing.d.mts +17 -0
  159. package/resources/voice-dubbing.d.mts.map +1 -1
  160. package/resources/voice-dubbing.d.ts +17 -0
  161. package/resources/voice-dubbing.d.ts.map +1 -1
  162. package/resources/voice-isolation.d.mts +17 -0
  163. package/resources/voice-isolation.d.mts.map +1 -1
  164. package/resources/voice-isolation.d.ts +17 -0
  165. package/resources/voice-isolation.d.ts.map +1 -1
  166. package/src/client.ts +12 -6
  167. package/src/resources/character-performance.ts +19 -0
  168. package/src/resources/generate/audio.ts +57 -27
  169. package/src/resources/generate/generate.ts +3 -1
  170. package/src/resources/generate/image.ts +24 -0
  171. package/src/resources/generate/index.ts +7 -1
  172. package/src/resources/generate/video.ts +24 -0
  173. package/src/resources/image-to-video.ts +147 -27
  174. package/src/resources/image-upscale.ts +19 -0
  175. package/src/resources/index.ts +4 -1
  176. package/src/resources/organization/index.ts +14 -0
  177. package/src/resources/organization/organization.ts +307 -0
  178. package/src/resources/organization/webapp/audit-logs.ts +440 -0
  179. package/src/resources/organization/webapp/index.ts +16 -0
  180. package/src/resources/organization/webapp/webapp.ts +118 -0
  181. package/src/resources/organization/webapp.ts +3 -0
  182. package/src/resources/organization.ts +1 -283
  183. package/src/resources/recipes.ts +133 -0
  184. package/src/resources/routers.ts +247 -0
  185. package/src/resources/sound-effect.ts +19 -0
  186. package/src/resources/speech-to-speech.ts +19 -0
  187. package/src/resources/tasks.ts +102 -0
  188. package/src/resources/text-to-image.ts +25 -0
  189. package/src/resources/text-to-speech.ts +142 -1
  190. package/src/resources/text-to-video.ts +208 -17
  191. package/src/resources/video-to-video.ts +246 -7
  192. package/src/resources/video-upscale.ts +19 -0
  193. package/src/resources/voice-dubbing.ts +19 -0
  194. package/src/resources/voice-isolation.ts +19 -0
  195. package/src/version.ts +1 -1
  196. package/version.d.mts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
@@ -26,11 +26,31 @@ export interface TextToSpeechCreateResponse {
26
26
  * The ID of the task that was created. Use this to retrieve the task later.
27
27
  */
28
28
  id: string;
29
+
30
+ /**
31
+ * The maximum credits this task may charge. The final amount may be lower after
32
+ * the task completes.
33
+ */
34
+ estimatedCost: TextToSpeechCreateResponse.EstimatedCost;
35
+ }
36
+
37
+ export namespace TextToSpeechCreateResponse {
38
+ /**
39
+ * The maximum credits this task may charge. The final amount may be lower after
40
+ * the task completes.
41
+ */
42
+ export interface EstimatedCost {
43
+ /**
44
+ * Estimated cost of the generation in credits.
45
+ */
46
+ credits: number;
47
+ }
29
48
  }
30
49
 
31
50
  export type TextToSpeechCreateParams =
32
51
  | TextToSpeechCreateParams.SeedAudio
33
- | TextToSpeechCreateParams.ElevenMultilingualV2;
52
+ | TextToSpeechCreateParams.ElevenMultilingualV2
53
+ | TextToSpeechCreateParams.ElevenV3;
34
54
 
35
55
  export declare namespace TextToSpeechCreateParams {
36
56
  export interface SeedAudio {
@@ -167,6 +187,127 @@ export declare namespace TextToSpeechCreateParams {
167
187
  type: 'runway-preset';
168
188
  }
169
189
  }
190
+
191
+ export interface ElevenV3 {
192
+ model: 'eleven_v3';
193
+
194
+ /**
195
+ * The text to convert to speech. You can include expressive audio tags like
196
+ * [laughs] or [whispers] in the script.
197
+ */
198
+ promptText: string;
199
+
200
+ /**
201
+ * A voice preset from the RunwayML API.
202
+ */
203
+ voice: ElevenV3.Voice;
204
+
205
+ /**
206
+ * Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
207
+ */
208
+ applyTextNormalization?: 'auto' | 'on' | 'off';
209
+
210
+ /**
211
+ * ISO 639-1 language code to enforce pronunciation and normalization.
212
+ */
213
+ languageCode?: string;
214
+
215
+ /**
216
+ * Optional seed for more deterministic output (0–4294967295). Not guaranteed.
217
+ */
218
+ seed?: number;
219
+
220
+ /**
221
+ * How closely the output tracks the original speaker (0–1). Maps to ElevenLabs
222
+ * similarity_boost.
223
+ */
224
+ similarityBoost?: number;
225
+
226
+ /**
227
+ * Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and
228
+ * above speed up.
229
+ */
230
+ speed?: number;
231
+
232
+ /**
233
+ * Voice stability (0–1). Lower values allow broader emotional range; higher values
234
+ * are steadier.
235
+ */
236
+ stability?: number;
237
+
238
+ /**
239
+ * Style exaggeration (0–1). Higher values amplify the speaker style.
240
+ */
241
+ style?: number;
242
+
243
+ /**
244
+ * Boost similarity to the original speaker at a small latency cost.
245
+ */
246
+ useSpeakerBoost?: boolean;
247
+ }
248
+
249
+ export namespace ElevenV3 {
250
+ /**
251
+ * A voice preset from the RunwayML API.
252
+ */
253
+ export interface Voice {
254
+ /**
255
+ * The preset voice ID to use for the generated speech.
256
+ */
257
+ presetId:
258
+ | 'Maya'
259
+ | 'Arjun'
260
+ | 'Serene'
261
+ | 'Bernard'
262
+ | 'Billy'
263
+ | 'Mark'
264
+ | 'Clint'
265
+ | 'Mabel'
266
+ | 'Chad'
267
+ | 'Leslie'
268
+ | 'Eleanor'
269
+ | 'Elias'
270
+ | 'Elliot'
271
+ | 'Grungle'
272
+ | 'Brodie'
273
+ | 'Sandra'
274
+ | 'Kirk'
275
+ | 'Kylie'
276
+ | 'Lara'
277
+ | 'Lisa'
278
+ | 'Malachi'
279
+ | 'Marlene'
280
+ | 'Martin'
281
+ | 'Miriam'
282
+ | 'Monster'
283
+ | 'Paula'
284
+ | 'Pip'
285
+ | 'Rusty'
286
+ | 'Ragnar'
287
+ | 'Xylar'
288
+ | 'Maggie'
289
+ | 'Jack'
290
+ | 'Katie'
291
+ | 'Noah'
292
+ | 'James'
293
+ | 'Rina'
294
+ | 'Ella'
295
+ | 'Mariah'
296
+ | 'Frank'
297
+ | 'Claudia'
298
+ | 'Niki'
299
+ | 'Vincent'
300
+ | 'Kendrick'
301
+ | 'Myrna'
302
+ | 'Tom'
303
+ | 'Wanda'
304
+ | 'Benjamin'
305
+ | 'Kiana'
306
+ | 'Rachel';
307
+
308
+ type: 'runway-preset';
309
+ }
310
+ }
170
311
  }
171
312
 
172
313
  export declare namespace TextToSpeech {
@@ -26,18 +26,38 @@ export interface TextToVideoCreateResponse {
26
26
  * The ID of the task that was created. Use this to retrieve the task later.
27
27
  */
28
28
  id: string;
29
+
30
+ /**
31
+ * The maximum credits this task may charge. The final amount may be lower after
32
+ * the task completes.
33
+ */
34
+ estimatedCost: TextToVideoCreateResponse.EstimatedCost;
35
+ }
36
+
37
+ export namespace TextToVideoCreateResponse {
38
+ /**
39
+ * The maximum credits this task may charge. The final amount may be lower after
40
+ * the task completes.
41
+ */
42
+ export interface EstimatedCost {
43
+ /**
44
+ * Estimated cost of the generation in credits.
45
+ */
46
+ credits: number;
47
+ }
29
48
  }
30
49
 
31
50
  export type TextToVideoCreateParams =
32
51
  | TextToVideoCreateParams.Gen4_5
33
52
  | TextToVideoCreateParams.Veo3_1
34
53
  | TextToVideoCreateParams.Veo3_1Fast
54
+ | TextToVideoCreateParams.Hailuo3
35
55
  | TextToVideoCreateParams.Happyhorse1_0
36
56
  | TextToVideoCreateParams.Seedance2
37
57
  | TextToVideoCreateParams.Seedance2Fast
38
58
  | TextToVideoCreateParams.Seedance2Mini
39
59
  | TextToVideoCreateParams.GeminiOmniFlash
40
- | TextToVideoCreateParams.Veo3;
60
+ | TextToVideoCreateParams.Seedance2_5;
41
61
 
42
62
  export declare namespace TextToVideoCreateParams {
43
63
  export interface Gen4_5 {
@@ -65,6 +85,20 @@ export declare namespace TextToVideoCreateParams {
65
85
  */
66
86
  contentModeration?: Gen4_5.ContentModeration;
67
87
 
88
+ /**
89
+ * The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
90
+ * `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
91
+ * (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
92
+ * an additional surcharge of 5 credits per second of output.
93
+ */
94
+ outputFormat?: 'mp4' | 'prores' | 'png_sequence';
95
+
96
+ /**
97
+ * The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
98
+ * to `4444`.
99
+ */
100
+ proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
101
+
68
102
  /**
69
103
  * If unspecified, a random number is chosen. Varying the seed integer is a way to
70
104
  * get different results for the same other request parameters. Using the same seed
@@ -146,6 +180,91 @@ export declare namespace TextToVideoCreateParams {
146
180
  negativePrompt?: string;
147
181
  }
148
182
 
183
+ export interface Hailuo3 {
184
+ model: 'hailuo3';
185
+
186
+ /**
187
+ * A non-empty text prompt describing what should appear in the output.
188
+ */
189
+ promptText: string;
190
+
191
+ /**
192
+ * The number of seconds of duration for the output video.
193
+ */
194
+ duration?: number;
195
+
196
+ /**
197
+ * The aspect ratio of the output video. Use adaptive only when image or video
198
+ * references are provided; text-only requests require a concrete ratio.
199
+ */
200
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
201
+
202
+ /**
203
+ * An optional array of audio references. Audio references require a text prompt,
204
+ * and the total combined duration must not exceed 15 seconds.
205
+ */
206
+ referenceAudio?: Array<Hailuo3.ReferenceAudio>;
207
+
208
+ /**
209
+ * An optional array of image references (up to 9). See
210
+ * [our docs](/assets/inputs#images) on image inputs for more information.
211
+ */
212
+ references?: Array<Hailuo3.Reference>;
213
+
214
+ /**
215
+ * An optional array of video references. The combined duration across all video
216
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
217
+ * video inputs for more information.
218
+ */
219
+ referenceVideos?: Array<Hailuo3.ReferenceVideo>;
220
+
221
+ /**
222
+ * The output resolution. Hailuo 3.0 supports 768P and 2K.
223
+ */
224
+ resolution?: '2K' | '768P';
225
+ }
226
+
227
+ export namespace Hailuo3 {
228
+ /**
229
+ * An audio reference allows the model to use the audio as additional context for
230
+ * the output.
231
+ */
232
+ export interface ReferenceAudio {
233
+ type: 'audio';
234
+
235
+ /**
236
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
237
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
238
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
239
+ */
240
+ uri: string;
241
+ }
242
+
243
+ export interface Reference {
244
+ /**
245
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
246
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
247
+ * [our docs](/assets/inputs#images) on image inputs for more information.
248
+ */
249
+ uri: string;
250
+ }
251
+
252
+ /**
253
+ * A video reference allows the model to use the video as additional context for
254
+ * the output.
255
+ */
256
+ export interface ReferenceVideo {
257
+ type: 'video';
258
+
259
+ /**
260
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
261
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
262
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
263
+ */
264
+ uri: string;
265
+ }
266
+ }
267
+
149
268
  export interface Happyhorse1_0 {
150
269
  model: 'happyhorse_1_0';
151
270
 
@@ -225,8 +344,8 @@ export declare namespace TextToVideoCreateParams {
225
344
  | '2160:3840';
226
345
 
227
346
  /**
228
- * An optional array of audio references. Audio references require a text prompt,
229
- * and the total combined duration must not exceed 15 seconds.
347
+ * An optional array of audio references. The total combined duration must not
348
+ * exceed 15 seconds.
230
349
  */
231
350
  referenceAudio?: Array<Seedance2.ReferenceAudio>;
232
351
 
@@ -323,8 +442,8 @@ export declare namespace TextToVideoCreateParams {
323
442
  | '720:1280';
324
443
 
325
444
  /**
326
- * An optional array of audio references. Audio references require a text prompt,
327
- * and the total combined duration must not exceed 15 seconds.
445
+ * An optional array of audio references. The total combined duration must not
446
+ * exceed 15 seconds.
328
447
  */
329
448
  referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
330
449
 
@@ -421,8 +540,8 @@ export declare namespace TextToVideoCreateParams {
421
540
  | '720:1280';
422
541
 
423
542
  /**
424
- * An optional array of audio references. Audio references require a text prompt,
425
- * and the total combined duration must not exceed 15 seconds.
543
+ * An optional array of audio references. The total combined duration must not
544
+ * exceed 15 seconds.
426
545
  */
427
546
  referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
428
547
 
@@ -501,29 +620,101 @@ export declare namespace TextToVideoCreateParams {
501
620
  ratio?: '1280:720' | '720:1280';
502
621
  }
503
622
 
504
- export interface Veo3 {
623
+ export interface Seedance2_5 {
624
+ model: 'seedance2_5';
625
+
626
+ /**
627
+ * Whether to generate audio for the video.
628
+ */
629
+ audio?: boolean;
630
+
505
631
  /**
506
632
  * The number of seconds of duration for the output video.
507
633
  */
508
- duration: 8;
634
+ duration?: number;
509
635
 
510
- model: 'veo3';
636
+ /**
637
+ * An optional text prompt up to 15000 characters describing what should appear in
638
+ * the output.
639
+ */
640
+ promptText?: string;
511
641
 
512
642
  /**
513
- * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
514
- * should describe in detail what should appear in the output.
643
+ * The resolution of the output video. Seedance 2.5 supports 480p and 720p only.
515
644
  */
516
- promptText: string;
645
+ ratio?:
646
+ | '992:432'
647
+ | '854:480'
648
+ | '752:560'
649
+ | '640:640'
650
+ | '560:752'
651
+ | '480:854'
652
+ | '1470:630'
653
+ | '1280:720'
654
+ | '1112:834'
655
+ | '960:960'
656
+ | '834:1112'
657
+ | '720:1280';
517
658
 
518
659
  /**
519
- * The resolution of the output video.
660
+ * An optional array of audio references. The total combined duration must be less
661
+ * than 30 seconds.
520
662
  */
521
- ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
663
+ referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
522
664
 
523
665
  /**
524
- * Text describing what should not appear in the output video.
666
+ * An optional array of image references (up to 30). See
667
+ * [our docs](/assets/inputs#images) on image inputs for more information.
525
668
  */
526
- negativePrompt?: string;
669
+ references?: Array<Seedance2_5.Reference>;
670
+
671
+ /**
672
+ * An optional array of video references. The combined duration across all video
673
+ * references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
674
+ * video inputs for more information.
675
+ */
676
+ referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
677
+ }
678
+
679
+ export namespace Seedance2_5 {
680
+ /**
681
+ * An audio reference allows the model to use the audio as additional context for
682
+ * the output.
683
+ */
684
+ export interface ReferenceAudio {
685
+ type: 'audio';
686
+
687
+ /**
688
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
689
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
690
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
691
+ */
692
+ uri: string;
693
+ }
694
+
695
+ export interface Reference {
696
+ /**
697
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
698
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
699
+ * [our docs](/assets/inputs#images) on image inputs for more information.
700
+ */
701
+ uri: string;
702
+ }
703
+
704
+ /**
705
+ * A video reference allows the model to use the video as additional context for
706
+ * the output.
707
+ */
708
+ export interface ReferenceVideo {
709
+ type: 'video';
710
+
711
+ /**
712
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
713
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
714
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
715
+ */
716
+ uri: string;
717
+ }
527
718
  }
528
719
  }
529
720