@runwayml/sdk 4.11.0 → 4.13.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 (154) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/avatar-videos.d.mts +3 -1
  10. package/resources/avatar-videos.d.mts.map +1 -1
  11. package/resources/avatar-videos.d.ts +3 -1
  12. package/resources/avatar-videos.d.ts.map +1 -1
  13. package/resources/avatars.d.mts +6 -2
  14. package/resources/avatars.d.mts.map +1 -1
  15. package/resources/avatars.d.ts +6 -2
  16. package/resources/avatars.d.ts.map +1 -1
  17. package/resources/character-performance.d.mts +10 -4
  18. package/resources/character-performance.d.mts.map +1 -1
  19. package/resources/character-performance.d.ts +10 -4
  20. package/resources/character-performance.d.ts.map +1 -1
  21. package/resources/character-performance.js +1 -1
  22. package/resources/character-performance.mjs +1 -1
  23. package/resources/generate/audio.d.mts +184 -0
  24. package/resources/generate/audio.d.mts.map +1 -0
  25. package/resources/generate/audio.d.ts +184 -0
  26. package/resources/generate/audio.d.ts.map +1 -0
  27. package/resources/generate/audio.js +18 -0
  28. package/resources/generate/audio.js.map +1 -0
  29. package/resources/generate/audio.mjs +14 -0
  30. package/resources/generate/audio.mjs.map +1 -0
  31. package/resources/generate/generate.d.mts +8 -0
  32. package/resources/generate/generate.d.mts.map +1 -1
  33. package/resources/generate/generate.d.ts +8 -0
  34. package/resources/generate/generate.d.ts.map +1 -1
  35. package/resources/generate/generate.js +8 -0
  36. package/resources/generate/generate.js.map +1 -1
  37. package/resources/generate/generate.mjs +8 -0
  38. package/resources/generate/generate.mjs.map +1 -1
  39. package/resources/generate/image.d.mts +173 -0
  40. package/resources/generate/image.d.mts.map +1 -0
  41. package/resources/generate/image.d.ts +173 -0
  42. package/resources/generate/image.d.ts.map +1 -0
  43. package/resources/generate/image.js +17 -0
  44. package/resources/generate/image.js.map +1 -0
  45. package/resources/generate/image.mjs +13 -0
  46. package/resources/generate/image.mjs.map +1 -0
  47. package/resources/generate/index.d.mts +2 -0
  48. package/resources/generate/index.d.mts.map +1 -1
  49. package/resources/generate/index.d.ts +2 -0
  50. package/resources/generate/index.d.ts.map +1 -1
  51. package/resources/generate/index.js +5 -1
  52. package/resources/generate/index.js.map +1 -1
  53. package/resources/generate/index.mjs +2 -0
  54. package/resources/generate/index.mjs.map +1 -1
  55. package/resources/generate/video.d.mts +17 -7
  56. package/resources/generate/video.d.mts.map +1 -1
  57. package/resources/generate/video.d.ts +17 -7
  58. package/resources/generate/video.d.ts.map +1 -1
  59. package/resources/image-to-video.d.mts +51 -17
  60. package/resources/image-to-video.d.mts.map +1 -1
  61. package/resources/image-to-video.d.ts +51 -17
  62. package/resources/image-to-video.d.ts.map +1 -1
  63. package/resources/image-upscale.d.mts +3 -1
  64. package/resources/image-upscale.d.mts.map +1 -1
  65. package/resources/image-upscale.d.ts +3 -1
  66. package/resources/image-upscale.d.ts.map +1 -1
  67. package/resources/index.d.mts +1 -1
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +1 -1
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js.map +1 -1
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/realtime-sessions.d.mts +25 -25
  74. package/resources/realtime-sessions.d.mts.map +1 -1
  75. package/resources/realtime-sessions.d.ts +25 -25
  76. package/resources/realtime-sessions.d.ts.map +1 -1
  77. package/resources/recipes.d.mts +48 -24
  78. package/resources/recipes.d.mts.map +1 -1
  79. package/resources/recipes.d.ts +48 -24
  80. package/resources/recipes.d.ts.map +1 -1
  81. package/resources/routers.d.mts +49 -49
  82. package/resources/routers.d.ts +49 -49
  83. package/resources/routers.js +1 -1
  84. package/resources/routers.mjs +1 -1
  85. package/resources/speech-to-speech.d.mts +6 -2
  86. package/resources/speech-to-speech.d.mts.map +1 -1
  87. package/resources/speech-to-speech.d.ts +6 -2
  88. package/resources/speech-to-speech.d.ts.map +1 -1
  89. package/resources/text-to-image.d.mts +36 -14
  90. package/resources/text-to-image.d.mts.map +1 -1
  91. package/resources/text-to-image.d.ts +36 -14
  92. package/resources/text-to-image.d.ts.map +1 -1
  93. package/resources/text-to-speech.d.mts +3 -1
  94. package/resources/text-to-speech.d.mts.map +1 -1
  95. package/resources/text-to-speech.d.ts +3 -1
  96. package/resources/text-to-speech.d.ts.map +1 -1
  97. package/resources/text-to-video.d.mts +27 -9
  98. package/resources/text-to-video.d.mts.map +1 -1
  99. package/resources/text-to-video.d.ts +27 -9
  100. package/resources/text-to-video.d.ts.map +1 -1
  101. package/resources/video-to-video.d.mts +51 -17
  102. package/resources/video-to-video.d.mts.map +1 -1
  103. package/resources/video-to-video.d.ts +51 -17
  104. package/resources/video-to-video.d.ts.map +1 -1
  105. package/resources/video-upscale.d.mts +3 -1
  106. package/resources/video-upscale.d.mts.map +1 -1
  107. package/resources/video-upscale.d.ts +3 -1
  108. package/resources/video-upscale.d.ts.map +1 -1
  109. package/resources/voice-dubbing.d.mts +3 -1
  110. package/resources/voice-dubbing.d.mts.map +1 -1
  111. package/resources/voice-dubbing.d.ts +3 -1
  112. package/resources/voice-dubbing.d.ts.map +1 -1
  113. package/resources/voice-isolation.d.mts +3 -1
  114. package/resources/voice-isolation.d.mts.map +1 -1
  115. package/resources/voice-isolation.d.ts +3 -1
  116. package/resources/voice-isolation.d.ts.map +1 -1
  117. package/resources/voices.d.mts +3 -1
  118. package/resources/voices.d.mts.map +1 -1
  119. package/resources/voices.d.ts +3 -1
  120. package/resources/voices.d.ts.map +1 -1
  121. package/resources/workflows.d.mts +9 -3
  122. package/resources/workflows.d.mts.map +1 -1
  123. package/resources/workflows.d.ts +9 -3
  124. package/resources/workflows.d.ts.map +1 -1
  125. package/src/client.ts +2 -0
  126. package/src/resources/avatar-videos.ts +3 -1
  127. package/src/resources/avatars.ts +6 -2
  128. package/src/resources/character-performance.ts +10 -4
  129. package/src/resources/generate/audio.ts +269 -0
  130. package/src/resources/generate/generate.ts +20 -0
  131. package/src/resources/generate/image.ts +208 -0
  132. package/src/resources/generate/index.ts +2 -0
  133. package/src/resources/generate/video.ts +17 -7
  134. package/src/resources/image-to-video.ts +51 -17
  135. package/src/resources/image-upscale.ts +3 -1
  136. package/src/resources/index.ts +1 -0
  137. package/src/resources/realtime-sessions.ts +29 -28
  138. package/src/resources/recipes.ts +48 -24
  139. package/src/resources/routers.ts +49 -49
  140. package/src/resources/speech-to-speech.ts +6 -2
  141. package/src/resources/text-to-image.ts +36 -14
  142. package/src/resources/text-to-speech.ts +3 -1
  143. package/src/resources/text-to-video.ts +27 -9
  144. package/src/resources/video-to-video.ts +51 -17
  145. package/src/resources/video-upscale.ts +3 -1
  146. package/src/resources/voice-dubbing.ts +3 -1
  147. package/src/resources/voice-isolation.ts +3 -1
  148. package/src/resources/voices.ts +3 -1
  149. package/src/resources/workflows.ts +9 -3
  150. package/src/version.ts +1 -1
  151. package/version.d.mts +1 -1
  152. package/version.d.ts +1 -1
  153. package/version.js +1 -1
  154. package/version.mjs +1 -1
@@ -24,7 +24,7 @@ export class Routers extends APIResource {
24
24
 
25
25
  /**
26
26
  * Update a Model Router configuration. Settings changes append a new version; name
27
- * and description updates do not. Settings are merged with the current snapshot —
27
+ * and description updates do not. Settings are merged with the current snapshot -
28
28
  * omitted fields keep their existing values.
29
29
  */
30
30
  update(
@@ -112,15 +112,15 @@ export namespace RouterCreateResponse {
112
112
  schemaVersion: 1;
113
113
 
114
114
  /**
115
- * Optional per-modality hard caps on credits for one generation. Models whose
116
- * estimated cost for that modality exceeds the cap are excluded.
115
+ * Optional per-modality credit caps, applied per generated output. Models whose
116
+ * estimated per-output cost exceeds the cap are excluded.
117
117
  */
118
118
  maxCreditsPerGeneration?: Settings.MaxCreditsPerGeneration;
119
119
 
120
120
  /**
121
121
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
122
- * the only allowed values. Each id must be a known public video model name
123
- * (unknown ids are rejected on create/update).
122
+ * the only allowed values. Each id must be a known public video or image model
123
+ * name (unknown ids are rejected on create/update).
124
124
  */
125
125
  models?: Settings.Models;
126
126
 
@@ -132,8 +132,8 @@ export namespace RouterCreateResponse {
132
132
 
133
133
  export namespace Settings {
134
134
  /**
135
- * Optional per-modality hard caps on credits for one generation. Models whose
136
- * estimated cost for that modality exceeds the cap are excluded.
135
+ * Optional per-modality credit caps, applied per generated output. Models whose
136
+ * estimated per-output cost exceeds the cap are excluded.
137
137
  */
138
138
  export interface MaxCreditsPerGeneration {
139
139
  audio?: number;
@@ -145,8 +145,8 @@ export namespace RouterCreateResponse {
145
145
 
146
146
  /**
147
147
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
148
- * the only allowed values. Each id must be a known public video model name
149
- * (unknown ids are rejected on create/update).
148
+ * the only allowed values. Each id must be a known public video or image model
149
+ * name (unknown ids are rejected on create/update).
150
150
  */
151
151
  export interface Models {
152
152
  ids: Array<string>;
@@ -208,15 +208,15 @@ export namespace RouterRetrieveResponse {
208
208
  schemaVersion: 1;
209
209
 
210
210
  /**
211
- * Optional per-modality hard caps on credits for one generation. Models whose
212
- * estimated cost for that modality exceeds the cap are excluded.
211
+ * Optional per-modality credit caps, applied per generated output. Models whose
212
+ * estimated per-output cost exceeds the cap are excluded.
213
213
  */
214
214
  maxCreditsPerGeneration?: Settings.MaxCreditsPerGeneration;
215
215
 
216
216
  /**
217
217
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
218
- * the only allowed values. Each id must be a known public video model name
219
- * (unknown ids are rejected on create/update).
218
+ * the only allowed values. Each id must be a known public video or image model
219
+ * name (unknown ids are rejected on create/update).
220
220
  */
221
221
  models?: Settings.Models;
222
222
 
@@ -228,8 +228,8 @@ export namespace RouterRetrieveResponse {
228
228
 
229
229
  export namespace Settings {
230
230
  /**
231
- * Optional per-modality hard caps on credits for one generation. Models whose
232
- * estimated cost for that modality exceeds the cap are excluded.
231
+ * Optional per-modality credit caps, applied per generated output. Models whose
232
+ * estimated per-output cost exceeds the cap are excluded.
233
233
  */
234
234
  export interface MaxCreditsPerGeneration {
235
235
  audio?: number;
@@ -241,8 +241,8 @@ export namespace RouterRetrieveResponse {
241
241
 
242
242
  /**
243
243
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
244
- * the only allowed values. Each id must be a known public video model name
245
- * (unknown ids are rejected on create/update).
244
+ * the only allowed values. Each id must be a known public video or image model
245
+ * name (unknown ids are rejected on create/update).
246
246
  */
247
247
  export interface Models {
248
248
  ids: Array<string>;
@@ -304,15 +304,15 @@ export namespace RouterUpdateResponse {
304
304
  schemaVersion: 1;
305
305
 
306
306
  /**
307
- * Optional per-modality hard caps on credits for one generation. Models whose
308
- * estimated cost for that modality exceeds the cap are excluded.
307
+ * Optional per-modality credit caps, applied per generated output. Models whose
308
+ * estimated per-output cost exceeds the cap are excluded.
309
309
  */
310
310
  maxCreditsPerGeneration?: Settings.MaxCreditsPerGeneration;
311
311
 
312
312
  /**
313
313
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
314
- * the only allowed values. Each id must be a known public video model name
315
- * (unknown ids are rejected on create/update).
314
+ * the only allowed values. Each id must be a known public video or image model
315
+ * name (unknown ids are rejected on create/update).
316
316
  */
317
317
  models?: Settings.Models;
318
318
 
@@ -324,8 +324,8 @@ export namespace RouterUpdateResponse {
324
324
 
325
325
  export namespace Settings {
326
326
  /**
327
- * Optional per-modality hard caps on credits for one generation. Models whose
328
- * estimated cost for that modality exceeds the cap are excluded.
327
+ * Optional per-modality credit caps, applied per generated output. Models whose
328
+ * estimated per-output cost exceeds the cap are excluded.
329
329
  */
330
330
  export interface MaxCreditsPerGeneration {
331
331
  audio?: number;
@@ -337,8 +337,8 @@ export namespace RouterUpdateResponse {
337
337
 
338
338
  /**
339
339
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
340
- * the only allowed values. Each id must be a known public video model name
341
- * (unknown ids are rejected on create/update).
340
+ * the only allowed values. Each id must be a known public video or image model
341
+ * name (unknown ids are rejected on create/update).
342
342
  */
343
343
  export interface Models {
344
344
  ids: Array<string>;
@@ -403,15 +403,15 @@ export namespace RouterListResponse {
403
403
  schemaVersion: 1;
404
404
 
405
405
  /**
406
- * Optional per-modality hard caps on credits for one generation. Models whose
407
- * estimated cost for that modality exceeds the cap are excluded.
406
+ * Optional per-modality credit caps, applied per generated output. Models whose
407
+ * estimated per-output cost exceeds the cap are excluded.
408
408
  */
409
409
  maxCreditsPerGeneration?: Settings.MaxCreditsPerGeneration;
410
410
 
411
411
  /**
412
412
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
413
- * the only allowed values. Each id must be a known public video model name
414
- * (unknown ids are rejected on create/update).
413
+ * the only allowed values. Each id must be a known public video or image model
414
+ * name (unknown ids are rejected on create/update).
415
415
  */
416
416
  models?: Settings.Models;
417
417
 
@@ -423,8 +423,8 @@ export namespace RouterListResponse {
423
423
 
424
424
  export namespace Settings {
425
425
  /**
426
- * Optional per-modality hard caps on credits for one generation. Models whose
427
- * estimated cost for that modality exceeds the cap are excluded.
426
+ * Optional per-modality credit caps, applied per generated output. Models whose
427
+ * estimated per-output cost exceeds the cap are excluded.
428
428
  */
429
429
  export interface MaxCreditsPerGeneration {
430
430
  audio?: number;
@@ -436,8 +436,8 @@ export namespace RouterListResponse {
436
436
 
437
437
  /**
438
438
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
439
- * the only allowed values. Each id must be a known public video model name
440
- * (unknown ids are rejected on create/update).
439
+ * the only allowed values. Each id must be a known public video or image model
440
+ * name (unknown ids are rejected on create/update).
441
441
  */
442
442
  export interface Models {
443
443
  ids: Array<string>;
@@ -482,15 +482,15 @@ export namespace RouterCreateParams {
482
482
  */
483
483
  export interface Settings {
484
484
  /**
485
- * Optional per-modality hard caps on credits for one generation. Models whose
486
- * estimated cost for that modality exceeds the cap are excluded.
485
+ * Optional per-modality credit caps, applied per generated output. Models whose
486
+ * estimated per-output cost exceeds the cap are excluded.
487
487
  */
488
488
  maxCreditsPerGeneration?: Settings.MaxCreditsPerGeneration;
489
489
 
490
490
  /**
491
491
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
492
- * the only allowed values. Each id must be a known public video model name
493
- * (unknown ids are rejected on create/update).
492
+ * the only allowed values. Each id must be a known public video or image model
493
+ * name (unknown ids are rejected on create/update).
494
494
  */
495
495
  models?: Settings.Models;
496
496
 
@@ -508,8 +508,8 @@ export namespace RouterCreateParams {
508
508
 
509
509
  export namespace Settings {
510
510
  /**
511
- * Optional per-modality hard caps on credits for one generation. Models whose
512
- * estimated cost for that modality exceeds the cap are excluded.
511
+ * Optional per-modality credit caps, applied per generated output. Models whose
512
+ * estimated per-output cost exceeds the cap are excluded.
513
513
  */
514
514
  export interface MaxCreditsPerGeneration {
515
515
  audio?: number;
@@ -521,8 +521,8 @@ export namespace RouterCreateParams {
521
521
 
522
522
  /**
523
523
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
524
- * the only allowed values. Each id must be a known public video model name
525
- * (unknown ids are rejected on create/update).
524
+ * the only allowed values. Each id must be a known public video or image model
525
+ * name (unknown ids are rejected on create/update).
526
526
  */
527
527
  export interface Models {
528
528
  ids: Array<string>;
@@ -556,15 +556,15 @@ export namespace RouterUpdateParams {
556
556
  */
557
557
  export interface Settings {
558
558
  /**
559
- * Optional per-modality hard caps on credits for one generation. Models whose
560
- * estimated cost for that modality exceeds the cap are excluded.
559
+ * Optional per-modality credit caps, applied per generated output. Models whose
560
+ * estimated per-output cost exceeds the cap are excluded.
561
561
  */
562
562
  maxCreditsPerGeneration?: Settings.MaxCreditsPerGeneration;
563
563
 
564
564
  /**
565
565
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
566
- * the only allowed values. Each id must be a known public video model name
567
- * (unknown ids are rejected on create/update).
566
+ * the only allowed values. Each id must be a known public video or image model
567
+ * name (unknown ids are rejected on create/update).
568
568
  */
569
569
  models?: Settings.Models;
570
570
 
@@ -582,8 +582,8 @@ export namespace RouterUpdateParams {
582
582
 
583
583
  export namespace Settings {
584
584
  /**
585
- * Optional per-modality hard caps on credits for one generation. Models whose
586
- * estimated cost for that modality exceeds the cap are excluded.
585
+ * Optional per-modality credit caps, applied per generated output. Models whose
586
+ * estimated per-output cost exceeds the cap are excluded.
587
587
  */
588
588
  export interface MaxCreditsPerGeneration {
589
589
  audio?: number;
@@ -595,8 +595,8 @@ export namespace RouterUpdateParams {
595
595
 
596
596
  /**
597
597
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
598
- * the only allowed values. Each id must be a known public video model name
599
- * (unknown ids are rejected on create/update).
598
+ * the only allowed values. Each id must be a known public video or image model
599
+ * name (unknown ids are rejected on create/update).
600
600
  */
601
601
  export interface Models {
602
602
  ids: Array<string>;
@@ -55,7 +55,9 @@ export namespace SpeechToSpeechCreateParams {
55
55
  type: 'audio';
56
56
 
57
57
  /**
58
- * A HTTPS URL.
58
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
59
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
60
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
59
61
  */
60
62
  uri: string;
61
63
  }
@@ -67,7 +69,9 @@ export namespace SpeechToSpeechCreateParams {
67
69
  type: 'video';
68
70
 
69
71
  /**
70
- * A HTTPS URL.
72
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
73
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
74
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
71
75
  */
72
76
  uri: string;
73
77
  }
@@ -91,13 +91,16 @@ export declare namespace TextToImageCreateParams {
91
91
  export namespace Gen4ImageTurbo {
92
92
  export interface ReferenceImage {
93
93
  /**
94
- * A HTTPS URL.
94
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
95
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
96
+ * [our docs](/assets/inputs#images) on image inputs for more information.
95
97
  */
96
98
  uri: string;
97
99
 
98
100
  /**
99
101
  * A tag to identify the reference image. This is used to reference the image in
100
- * prompt text.
102
+ * prompt text. Must be 3-16 characters, start with a letter, and use only letters,
103
+ * digits, and underscores (no hyphens or other punctuation).
101
104
  */
102
105
  tag?: string;
103
106
  }
@@ -177,13 +180,16 @@ export declare namespace TextToImageCreateParams {
177
180
 
178
181
  export interface ReferenceImage {
179
182
  /**
180
- * A HTTPS URL.
183
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
184
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
185
+ * [our docs](/assets/inputs#images) on image inputs for more information.
181
186
  */
182
187
  uri: string;
183
188
 
184
189
  /**
185
190
  * A tag to identify the reference image. This is used to reference the image in
186
- * prompt text.
191
+ * prompt text. Must be 3-16 characters, start with a letter, and use only letters,
192
+ * digits, and underscores (no hyphens or other punctuation).
187
193
  */
188
194
  tag?: string;
189
195
  }
@@ -261,13 +267,16 @@ export declare namespace TextToImageCreateParams {
261
267
  export namespace GptImage2 {
262
268
  export interface ReferenceImage {
263
269
  /**
264
- * A HTTPS URL.
270
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
271
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
272
+ * [our docs](/assets/inputs#images) on image inputs for more information.
265
273
  */
266
274
  uri: string;
267
275
 
268
276
  /**
269
277
  * A tag to identify the reference image. This may be used to reference the image
270
- * in prompt text.
278
+ * in prompt text. Must be 3-16 characters, start with a letter, and use only
279
+ * letters, digits, and underscores (no hyphens or other punctuation).
271
280
  */
272
281
  tag?: string;
273
282
  }
@@ -336,7 +345,9 @@ export declare namespace TextToImageCreateParams {
336
345
  export namespace GeminiImage3Pro {
337
346
  export interface ReferenceImage {
338
347
  /**
339
- * A HTTPS URL.
348
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
349
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
350
+ * [our docs](/assets/inputs#images) on image inputs for more information.
340
351
  */
341
352
  uri: string;
342
353
 
@@ -348,7 +359,8 @@ export declare namespace TextToImageCreateParams {
348
359
 
349
360
  /**
350
361
  * A tag to identify the reference image. This is used to reference the image in
351
- * prompt text.
362
+ * prompt text. Must be 3-16 characters, start with a letter, and use only letters,
363
+ * digits, and underscores (no hyphens or other punctuation).
352
364
  */
353
365
  tag?: string;
354
366
  }
@@ -443,7 +455,9 @@ export declare namespace TextToImageCreateParams {
443
455
  export namespace GeminiImage3_1Flash {
444
456
  export interface ReferenceImage {
445
457
  /**
446
- * A HTTPS URL.
458
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
459
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
460
+ * [our docs](/assets/inputs#images) on image inputs for more information.
447
461
  */
448
462
  uri: string;
449
463
 
@@ -455,7 +469,8 @@ export declare namespace TextToImageCreateParams {
455
469
 
456
470
  /**
457
471
  * A tag to identify the reference image. This is used to reference the image in
458
- * prompt text.
472
+ * prompt text. Must be 3-16 characters, start with a letter, and use only letters,
473
+ * digits, and underscores (no hyphens or other punctuation).
459
474
  */
460
475
  tag?: string;
461
476
  }
@@ -519,7 +534,9 @@ export declare namespace TextToImageCreateParams {
519
534
  export namespace Seedream5Pro {
520
535
  export interface ReferenceImage {
521
536
  /**
522
- * A HTTPS URL.
537
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
538
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
539
+ * [our docs](/assets/inputs#images) on image inputs for more information.
523
540
  */
524
541
  uri: string;
525
542
  }
@@ -575,7 +592,9 @@ export declare namespace TextToImageCreateParams {
575
592
  export namespace Seedream5Lite {
576
593
  export interface ReferenceImage {
577
594
  /**
578
- * A HTTPS URL.
595
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
596
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
597
+ * [our docs](/assets/inputs#images) on image inputs for more information.
579
598
  */
580
599
  uri: string;
581
600
  }
@@ -614,13 +633,16 @@ export declare namespace TextToImageCreateParams {
614
633
  export namespace Gemini2_5Flash {
615
634
  export interface ReferenceImage {
616
635
  /**
617
- * A HTTPS URL.
636
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
637
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
638
+ * [our docs](/assets/inputs#images) on image inputs for more information.
618
639
  */
619
640
  uri: string;
620
641
 
621
642
  /**
622
643
  * A tag to identify the reference image. This is used to reference the image in
623
- * prompt text.
644
+ * prompt text. Must be 3-16 characters, start with a letter, and use only letters,
645
+ * digits, and underscores (no hyphens or other punctuation).
624
646
  */
625
647
  tag?: string;
626
648
  }
@@ -80,7 +80,9 @@ export declare namespace TextToSpeechCreateParams {
80
80
  */
81
81
  export interface Voice {
82
82
  /**
83
- * A HTTPS URL.
83
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
84
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
85
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
84
86
  */
85
87
  audioUri: string;
86
88
 
@@ -253,14 +253,18 @@ export declare namespace TextToVideoCreateParams {
253
253
  type: 'audio';
254
254
 
255
255
  /**
256
- * A HTTPS URL.
256
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
257
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
258
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
257
259
  */
258
260
  uri: string;
259
261
  }
260
262
 
261
263
  export interface Reference {
262
264
  /**
263
- * A HTTPS URL.
265
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
266
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
267
+ * [our docs](/assets/inputs#images) on image inputs for more information.
264
268
  */
265
269
  uri: string;
266
270
  }
@@ -273,7 +277,9 @@ export declare namespace TextToVideoCreateParams {
273
277
  type: 'video';
274
278
 
275
279
  /**
276
- * A HTTPS URL.
280
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
281
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
282
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
277
283
  */
278
284
  uri: string;
279
285
  }
@@ -345,14 +351,18 @@ export declare namespace TextToVideoCreateParams {
345
351
  type: 'audio';
346
352
 
347
353
  /**
348
- * A HTTPS URL.
354
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
355
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
356
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
349
357
  */
350
358
  uri: string;
351
359
  }
352
360
 
353
361
  export interface Reference {
354
362
  /**
355
- * A HTTPS URL.
363
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
364
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
365
+ * [our docs](/assets/inputs#images) on image inputs for more information.
356
366
  */
357
367
  uri: string;
358
368
  }
@@ -365,7 +375,9 @@ export declare namespace TextToVideoCreateParams {
365
375
  type: 'video';
366
376
 
367
377
  /**
368
- * A HTTPS URL.
378
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
379
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
380
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
369
381
  */
370
382
  uri: string;
371
383
  }
@@ -437,14 +449,18 @@ export declare namespace TextToVideoCreateParams {
437
449
  type: 'audio';
438
450
 
439
451
  /**
440
- * A HTTPS URL.
452
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
453
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
454
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
441
455
  */
442
456
  uri: string;
443
457
  }
444
458
 
445
459
  export interface Reference {
446
460
  /**
447
- * A HTTPS URL.
461
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
462
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
463
+ * [our docs](/assets/inputs#images) on image inputs for more information.
448
464
  */
449
465
  uri: string;
450
466
  }
@@ -457,7 +473,9 @@ export declare namespace TextToVideoCreateParams {
457
473
  type: 'video';
458
474
 
459
475
  /**
460
- * A HTTPS URL.
476
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
477
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
478
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
461
479
  */
462
480
  uri: string;
463
481
  }