@runwayml/sdk 4.13.2 → 4.15.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 +146 -19
  43. package/resources/image-to-video.d.mts.map +1 -1
  44. package/resources/image-to-video.d.ts +146 -19
  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 +68 -1
  139. package/resources/text-to-image.d.mts.map +1 -1
  140. package/resources/text-to-image.d.ts +68 -1
  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 +221 -16
  147. package/resources/text-to-video.d.mts.map +1 -1
  148. package/resources/text-to-video.d.ts +221 -16
  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 +189 -19
  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 +107 -0
  189. package/src/resources/text-to-speech.ts +142 -1
  190. package/src/resources/text-to-video.ts +276 -16
  191. package/src/resources/video-to-video.ts +252 -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,6 +26,25 @@ export interface TextToImageCreateResponse {
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: TextToImageCreateResponse.EstimatedCost;
35
+ }
36
+
37
+ export namespace TextToImageCreateResponse {
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 TextToImageCreateParams =
@@ -36,6 +55,7 @@ export type TextToImageCreateParams =
36
55
  | TextToImageCreateParams.GeminiImage3_1Flash
37
56
  | TextToImageCreateParams.Seedream5Pro
38
57
  | TextToImageCreateParams.Seedream5Lite
58
+ | TextToImageCreateParams.GrokImagineImage2
39
59
  | TextToImageCreateParams.Gemini2_5Flash;
40
60
 
41
61
  export declare namespace TextToImageCreateParams {
@@ -571,6 +591,12 @@ export declare namespace TextToImageCreateParams {
571
591
  | '2496:3744'
572
592
  | '4704:2016';
573
593
 
594
+ /**
595
+ * When true, enable live web search so the model can use current brand, trend, or
596
+ * event context. Default false for deterministic output.
597
+ */
598
+ grounding?: boolean;
599
+
574
600
  /**
575
601
  * The number of images to generate. Increasing this number will affect the number
576
602
  * of credits consumed by the generation.
@@ -600,6 +626,87 @@ export declare namespace TextToImageCreateParams {
600
626
  }
601
627
  }
602
628
 
629
+ export interface GrokImagineImage2 {
630
+ model: 'grok_imagine_image_2';
631
+
632
+ /**
633
+ * A non-empty text prompt describing what should appear in the output image.
634
+ */
635
+ promptText: string;
636
+
637
+ /**
638
+ * The resolution of the output image, expressed as `<width>:<height>`. 2K ratios
639
+ * cost 2 additional credits per image. Use `auto_1k` or `auto_2k` to pick a
640
+ * resolution tier and let the model choose the framing from the prompt.
641
+ */
642
+ ratio:
643
+ | '1024:1024'
644
+ | '1280:720'
645
+ | '720:1280'
646
+ | '1152:864'
647
+ | '864:1152'
648
+ | '1248:832'
649
+ | '832:1248'
650
+ | '1248:576'
651
+ | '576:1248'
652
+ | '1280:576'
653
+ | '576:1280'
654
+ | '1408:704'
655
+ | '704:1408'
656
+ | '2048:2048'
657
+ | '2816:1584'
658
+ | '1584:2816'
659
+ | '2368:1776'
660
+ | '1776:2368'
661
+ | '2496:1664'
662
+ | '1664:2496'
663
+ | '2912:1344'
664
+ | '1344:2912'
665
+ | '3200:1440'
666
+ | '1440:3200'
667
+ | '2912:1456'
668
+ | '1456:2912'
669
+ | 'auto_1k'
670
+ | 'auto_2k';
671
+
672
+ /**
673
+ * When true with exactly one reference image, edit that image directly instead of
674
+ * using it as a loose visual reference. With several reference images the prompt
675
+ * describes how they should be edited or combined. Requires at least one reference
676
+ * image.
677
+ */
678
+ edit?: boolean;
679
+
680
+ /**
681
+ * The number of images to generate. Increasing this number will affect the number
682
+ * of credits consumed by the generation.
683
+ */
684
+ outputCount?: number;
685
+
686
+ /**
687
+ * How much rendering effort the model spends on the output. Defaults to `medium`;
688
+ * `low` is faster and costs 2 fewer credits per image.
689
+ */
690
+ quality?: 'low' | 'medium';
691
+
692
+ /**
693
+ * Up to 3 images to guide the generation. Reference them from `promptText` to
694
+ * describe how each should be used. Each adds 1 credit to the generation.
695
+ */
696
+ referenceImages?: Array<GrokImagineImage2.ReferenceImage>;
697
+ }
698
+
699
+ export namespace GrokImagineImage2 {
700
+ export interface ReferenceImage {
701
+ /**
702
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
703
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
704
+ * [our docs](/assets/inputs#images) on image inputs for more information.
705
+ */
706
+ uri: string;
707
+ }
708
+ }
709
+
603
710
  export interface Gemini2_5Flash {
604
711
  model: 'gemini_2.5_flash';
605
712
 
@@ -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,39 @@ 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
61
+ | TextToVideoCreateParams.GrokImagine1_5;
41
62
 
42
63
  export declare namespace TextToVideoCreateParams {
43
64
  export interface Gen4_5 {
@@ -65,6 +86,20 @@ export declare namespace TextToVideoCreateParams {
65
86
  */
66
87
  contentModeration?: Gen4_5.ContentModeration;
67
88
 
89
+ /**
90
+ * The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
91
+ * `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
92
+ * (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
93
+ * an additional surcharge of 5 credits per second of output.
94
+ */
95
+ outputFormat?: 'mp4' | 'prores' | 'png_sequence';
96
+
97
+ /**
98
+ * The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
99
+ * to `4444`.
100
+ */
101
+ proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
102
+
68
103
  /**
69
104
  * If unspecified, a random number is chosen. Varying the seed integer is a way to
70
105
  * get different results for the same other request parameters. Using the same seed
@@ -146,6 +181,91 @@ export declare namespace TextToVideoCreateParams {
146
181
  negativePrompt?: string;
147
182
  }
148
183
 
184
+ export interface Hailuo3 {
185
+ model: 'hailuo3';
186
+
187
+ /**
188
+ * A non-empty text prompt describing what should appear in the output.
189
+ */
190
+ promptText: string;
191
+
192
+ /**
193
+ * The number of seconds of duration for the output video.
194
+ */
195
+ duration?: number;
196
+
197
+ /**
198
+ * The aspect ratio of the output video. Use adaptive only when image or video
199
+ * references are provided; text-only requests require a concrete ratio.
200
+ */
201
+ ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
202
+
203
+ /**
204
+ * An optional array of audio references. Audio references require a text prompt,
205
+ * and the total combined duration must not exceed 15 seconds.
206
+ */
207
+ referenceAudio?: Array<Hailuo3.ReferenceAudio>;
208
+
209
+ /**
210
+ * An optional array of image references (up to 9). See
211
+ * [our docs](/assets/inputs#images) on image inputs for more information.
212
+ */
213
+ references?: Array<Hailuo3.Reference>;
214
+
215
+ /**
216
+ * An optional array of video references. The combined duration across all video
217
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
218
+ * video inputs for more information.
219
+ */
220
+ referenceVideos?: Array<Hailuo3.ReferenceVideo>;
221
+
222
+ /**
223
+ * The output resolution. Hailuo 3.0 supports 768P and 2K.
224
+ */
225
+ resolution?: '2K' | '768P';
226
+ }
227
+
228
+ export namespace Hailuo3 {
229
+ /**
230
+ * An audio reference allows the model to use the audio as additional context for
231
+ * the output.
232
+ */
233
+ export interface ReferenceAudio {
234
+ type: 'audio';
235
+
236
+ /**
237
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
238
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
239
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
240
+ */
241
+ uri: string;
242
+ }
243
+
244
+ export interface Reference {
245
+ /**
246
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
247
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
248
+ * [our docs](/assets/inputs#images) on image inputs for more information.
249
+ */
250
+ uri: string;
251
+ }
252
+
253
+ /**
254
+ * A video reference allows the model to use the video as additional context for
255
+ * the output.
256
+ */
257
+ export interface ReferenceVideo {
258
+ type: 'video';
259
+
260
+ /**
261
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
262
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
263
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
264
+ */
265
+ uri: string;
266
+ }
267
+ }
268
+
149
269
  export interface Happyhorse1_0 {
150
270
  model: 'happyhorse_1_0';
151
271
 
@@ -225,8 +345,8 @@ export declare namespace TextToVideoCreateParams {
225
345
  | '2160:3840';
226
346
 
227
347
  /**
228
- * An optional array of audio references. Audio references require a text prompt,
229
- * and the total combined duration must not exceed 15 seconds.
348
+ * An optional array of audio references. The total combined duration must not
349
+ * exceed 15 seconds.
230
350
  */
231
351
  referenceAudio?: Array<Seedance2.ReferenceAudio>;
232
352
 
@@ -323,8 +443,8 @@ export declare namespace TextToVideoCreateParams {
323
443
  | '720:1280';
324
444
 
325
445
  /**
326
- * An optional array of audio references. Audio references require a text prompt,
327
- * and the total combined duration must not exceed 15 seconds.
446
+ * An optional array of audio references. The total combined duration must not
447
+ * exceed 15 seconds.
328
448
  */
329
449
  referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
330
450
 
@@ -421,8 +541,8 @@ export declare namespace TextToVideoCreateParams {
421
541
  | '720:1280';
422
542
 
423
543
  /**
424
- * An optional array of audio references. Audio references require a text prompt,
425
- * and the total combined duration must not exceed 15 seconds.
544
+ * An optional array of audio references. The total combined duration must not
545
+ * exceed 15 seconds.
426
546
  */
427
547
  referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
428
548
 
@@ -501,29 +621,169 @@ export declare namespace TextToVideoCreateParams {
501
621
  ratio?: '1280:720' | '720:1280';
502
622
  }
503
623
 
504
- export interface Veo3 {
624
+ export interface Seedance2_5 {
625
+ model: 'seedance2_5';
626
+
627
+ /**
628
+ * Whether to generate audio for the video.
629
+ */
630
+ audio?: boolean;
631
+
505
632
  /**
506
633
  * The number of seconds of duration for the output video.
507
634
  */
508
- duration: 8;
635
+ duration?: number;
509
636
 
510
- model: 'veo3';
637
+ /**
638
+ * An optional text prompt up to 15000 characters describing what should appear in
639
+ * the output.
640
+ */
641
+ promptText?: string;
511
642
 
512
643
  /**
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.
644
+ * The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
645
+ */
646
+ ratio?:
647
+ | '992:432'
648
+ | '854:480'
649
+ | '752:560'
650
+ | '640:640'
651
+ | '560:752'
652
+ | '480:854'
653
+ | '1470:630'
654
+ | '1280:720'
655
+ | '1112:834'
656
+ | '960:960'
657
+ | '834:1112'
658
+ | '720:1280'
659
+ | '2206:946'
660
+ | '1920:1080'
661
+ | '1664:1248'
662
+ | '1440:1440'
663
+ | '1248:1664'
664
+ | '1080:1920';
665
+
666
+ /**
667
+ * An optional array of audio references. The total combined duration must be less
668
+ * than 30 seconds.
669
+ */
670
+ referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
671
+
672
+ /**
673
+ * An optional array of image references (up to 30). See
674
+ * [our docs](/assets/inputs#images) on image inputs for more information.
675
+ */
676
+ references?: Array<Seedance2_5.Reference>;
677
+
678
+ /**
679
+ * An optional array of video references. The combined duration across all video
680
+ * references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
681
+ * video inputs for more information.
682
+ */
683
+ referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
684
+ }
685
+
686
+ export namespace Seedance2_5 {
687
+ /**
688
+ * An audio reference allows the model to use the audio as additional context for
689
+ * the output.
690
+ */
691
+ export interface ReferenceAudio {
692
+ type: 'audio';
693
+
694
+ /**
695
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
696
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
697
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
698
+ */
699
+ uri: string;
700
+ }
701
+
702
+ export interface Reference {
703
+ /**
704
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
705
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
706
+ * [our docs](/assets/inputs#images) on image inputs for more information.
707
+ */
708
+ uri: string;
709
+ }
710
+
711
+ /**
712
+ * A video reference allows the model to use the video as additional context for
713
+ * the output.
714
+ */
715
+ export interface ReferenceVideo {
716
+ type: 'video';
717
+
718
+ /**
719
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
720
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
721
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
722
+ */
723
+ uri: string;
724
+ }
725
+ }
726
+
727
+ export interface GrokImagine1_5 {
728
+ model: 'grok_imagine_1_5';
729
+
730
+ /**
731
+ * A non-empty text prompt describing what should appear in the output.
515
732
  */
516
733
  promptText: string;
517
734
 
518
735
  /**
519
- * The resolution of the output video.
736
+ * The number of seconds of duration for the output video.
520
737
  */
521
- ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
738
+ duration?: number;
522
739
 
523
740
  /**
524
- * Text describing what should not appear in the output video.
741
+ * The aspect ratio of the output video.
525
742
  */
526
- negativePrompt?: string;
743
+ ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '3:2' | '2:3';
744
+
745
+ /**
746
+ * An optional array of audio references. Audio references require at least one
747
+ * image reference, and each clip must be between 3 and 15 seconds.
748
+ */
749
+ referenceAudio?: Array<GrokImagine1_5.ReferenceAudio>;
750
+
751
+ /**
752
+ * An optional array of image references. Referenced images can be addressed in the
753
+ * prompt as [Image 1], [Image 2], and so on. See [our docs](/assets/inputs#images)
754
+ * on image inputs for more information.
755
+ */
756
+ references?: Array<GrokImagine1_5.Reference>;
757
+
758
+ /**
759
+ * The output resolution. Requests with image references are capped at 720p.
760
+ */
761
+ resolution?: '480p' | '720p' | '1080p';
762
+ }
763
+
764
+ export namespace GrokImagine1_5 {
765
+ /**
766
+ * An audio reference allows the model to drive the output with the supplied audio.
767
+ */
768
+ export interface ReferenceAudio {
769
+ type: 'audio';
770
+
771
+ /**
772
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
773
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
774
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
775
+ */
776
+ uri: string;
777
+ }
778
+
779
+ export interface Reference {
780
+ /**
781
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
782
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
783
+ * [our docs](/assets/inputs#images) on image inputs for more information.
784
+ */
785
+ uri: string;
786
+ }
527
787
  }
528
788
  }
529
789