@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
@@ -51,7 +51,9 @@ export declare namespace ImageToVideoCreateParams {
51
51
  model: 'gen4.5';
52
52
 
53
53
  /**
54
- * A HTTPS URL.
54
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
55
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
56
+ * [our docs](/assets/inputs#images) on image inputs for more information.
55
57
  */
56
58
  promptImage: string | Array<Gen4_5.PromptImage>;
57
59
 
@@ -88,7 +90,9 @@ export declare namespace ImageToVideoCreateParams {
88
90
  position: 'first';
89
91
 
90
92
  /**
91
- * A HTTPS URL.
93
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
94
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
95
+ * [our docs](/assets/inputs#images) on image inputs for more information.
92
96
  */
93
97
  uri: string;
94
98
  }
@@ -109,7 +113,9 @@ export declare namespace ImageToVideoCreateParams {
109
113
  model: 'gen4_turbo';
110
114
 
111
115
  /**
112
- * A HTTPS URL.
116
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
117
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
118
+ * [our docs](/assets/inputs#images) on image inputs for more information.
113
119
  */
114
120
  promptImage: string | Array<Gen4Turbo.PromptImage>;
115
121
 
@@ -151,7 +157,9 @@ export declare namespace ImageToVideoCreateParams {
151
157
  position: 'first';
152
158
 
153
159
  /**
154
- * A HTTPS URL.
160
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
161
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
162
+ * [our docs](/assets/inputs#images) on image inputs for more information.
155
163
  */
156
164
  uri: string;
157
165
  }
@@ -215,7 +223,9 @@ export declare namespace ImageToVideoCreateParams {
215
223
  position: 'first' | 'last';
216
224
 
217
225
  /**
218
- * A HTTPS URL.
226
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
227
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
228
+ * [our docs](/assets/inputs#images) on image inputs for more information.
219
229
  */
220
230
  uri: string;
221
231
  }
@@ -268,7 +278,9 @@ export declare namespace ImageToVideoCreateParams {
268
278
  position: 'first' | 'last';
269
279
 
270
280
  /**
271
- * A HTTPS URL.
281
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
282
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
283
+ * [our docs](/assets/inputs#images) on image inputs for more information.
272
284
  */
273
285
  uri: string;
274
286
  }
@@ -278,7 +290,9 @@ export declare namespace ImageToVideoCreateParams {
278
290
  model: 'happyhorse_1_0';
279
291
 
280
292
  /**
281
- * A HTTPS URL.
293
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
294
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
295
+ * [our docs](/assets/inputs#images) on image inputs for more information.
282
296
  */
283
297
  promptImage: string | Array<Happyhorse1_0.PromptImage>;
284
298
 
@@ -308,7 +322,9 @@ export declare namespace ImageToVideoCreateParams {
308
322
  position: 'first';
309
323
 
310
324
  /**
311
- * A HTTPS URL.
325
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
326
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
327
+ * [our docs](/assets/inputs#images) on image inputs for more information.
312
328
  */
313
329
  uri: string;
314
330
  }
@@ -378,7 +394,9 @@ export declare namespace ImageToVideoCreateParams {
378
394
  export namespace Seedance2 {
379
395
  export interface PromptImage {
380
396
  /**
381
- * A HTTPS URL.
397
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
398
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
399
+ * [our docs](/assets/inputs#images) on image inputs for more information.
382
400
  */
383
401
  uri: string;
384
402
 
@@ -397,7 +415,9 @@ export declare namespace ImageToVideoCreateParams {
397
415
  type: 'audio';
398
416
 
399
417
  /**
400
- * A HTTPS URL.
418
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
419
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
420
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
401
421
  */
402
422
  uri: string;
403
423
  }
@@ -456,7 +476,9 @@ export declare namespace ImageToVideoCreateParams {
456
476
  export namespace Seedance2Fast {
457
477
  export interface PromptImage {
458
478
  /**
459
- * A HTTPS URL.
479
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
480
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
481
+ * [our docs](/assets/inputs#images) on image inputs for more information.
460
482
  */
461
483
  uri: string;
462
484
 
@@ -475,7 +497,9 @@ export declare namespace ImageToVideoCreateParams {
475
497
  type: 'audio';
476
498
 
477
499
  /**
478
- * A HTTPS URL.
500
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
501
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
502
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
479
503
  */
480
504
  uri: string;
481
505
  }
@@ -534,7 +558,9 @@ export declare namespace ImageToVideoCreateParams {
534
558
  export namespace Seedance2Mini {
535
559
  export interface PromptImage {
536
560
  /**
537
- * A HTTPS URL.
561
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
562
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
563
+ * [our docs](/assets/inputs#images) on image inputs for more information.
538
564
  */
539
565
  uri: string;
540
566
 
@@ -553,7 +579,9 @@ export declare namespace ImageToVideoCreateParams {
553
579
  type: 'audio';
554
580
 
555
581
  /**
556
- * A HTTPS URL.
582
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
583
+ * `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
584
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
557
585
  */
558
586
  uri: string;
559
587
  }
@@ -595,7 +623,9 @@ export declare namespace ImageToVideoCreateParams {
595
623
  position: 'first';
596
624
 
597
625
  /**
598
- * A HTTPS URL.
626
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
627
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
628
+ * [our docs](/assets/inputs#images) on image inputs for more information.
599
629
  */
600
630
  uri: string;
601
631
  }
@@ -610,7 +640,9 @@ export declare namespace ImageToVideoCreateParams {
610
640
  model: 'veo3';
611
641
 
612
642
  /**
613
- * A HTTPS URL.
643
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
644
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
645
+ * [our docs](/assets/inputs#images) on image inputs for more information.
614
646
  */
615
647
  promptImage: string | Array<Veo3.PromptImage>;
616
648
 
@@ -640,7 +672,9 @@ export declare namespace ImageToVideoCreateParams {
640
672
  position: 'first';
641
673
 
642
674
  /**
643
- * A HTTPS URL.
675
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
676
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
677
+ * [our docs](/assets/inputs#images) on image inputs for more information.
644
678
  */
645
679
  uri: string;
646
680
  }
@@ -41,7 +41,9 @@ export interface ImageUpscaleCreateResponse {
41
41
 
42
42
  export interface ImageUpscaleCreateParams {
43
43
  /**
44
- * A HTTPS URL.
44
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
45
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
46
+ * [our docs](/assets/inputs#images) on image inputs for more information.
45
47
  */
46
48
  imageUri: string;
47
49
 
@@ -55,6 +55,7 @@ export {
55
55
  } from './organization';
56
56
  export {
57
57
  RealtimeSessions,
58
+ type DeprecatedLivekit,
58
59
  type RealtimeSessionCreateResponse,
59
60
  type RealtimeSessionRetrieveResponse,
60
61
  type RealtimeSessionCreateParams,
@@ -38,6 +38,33 @@ export class RealtimeSessions extends APIResource {
38
38
  }
39
39
  }
40
40
 
41
+ /**
42
+ * @deprecated Use integration with type "livekit" instead.
43
+ */
44
+ export interface DeprecatedLivekit {
45
+ /**
46
+ * LiveKit access token granting the avatar worker publish rights in the external
47
+ * room.
48
+ */
49
+ token: string;
50
+
51
+ /**
52
+ * Name of the external LiveKit room.
53
+ */
54
+ roomName: string;
55
+
56
+ /**
57
+ * WebSocket URL of the external LiveKit server the avatar worker should join.
58
+ */
59
+ url: string;
60
+
61
+ /**
62
+ * The participant identity of the customer agent already in the room. When
63
+ * provided, the avatar worker trusts audio published by this identity.
64
+ */
65
+ agentIdentity?: string;
66
+ }
67
+
41
68
  export interface RealtimeSessionCreateResponse {
42
69
  /**
43
70
  * The ID of the created realtime session. This same value is later used as the
@@ -220,7 +247,7 @@ export interface RealtimeSessionCreateParams {
220
247
  /**
221
248
  * @deprecated Use integration with type "livekit" instead.
222
249
  */
223
- livekit?: RealtimeSessionCreateParams.Livekit;
250
+ livekit?: DeprecatedLivekit;
224
251
 
225
252
  /**
226
253
  * Maximum session duration in seconds.
@@ -321,33 +348,6 @@ export namespace RealtimeSessionCreateParams {
321
348
  agentIdentity?: string;
322
349
  }
323
350
 
324
- /**
325
- * @deprecated Use integration with type "livekit" instead.
326
- */
327
- export interface Livekit {
328
- /**
329
- * LiveKit access token granting the avatar worker publish rights in the external
330
- * room.
331
- */
332
- token: string;
333
-
334
- /**
335
- * Name of the external LiveKit room.
336
- */
337
- roomName: string;
338
-
339
- /**
340
- * WebSocket URL of the external LiveKit server the avatar worker should join.
341
- */
342
- url: string;
343
-
344
- /**
345
- * The participant identity of the customer agent already in the room. When
346
- * provided, the avatar worker trusts audio published by this identity.
347
- */
348
- agentIdentity?: string;
349
- }
350
-
351
351
  /**
352
352
  * A fire-and-forget tool that sends arguments to the frontend client of the
353
353
  * realtime session.
@@ -700,6 +700,7 @@ export namespace RealtimeSessionCreateParams {
700
700
 
701
701
  export declare namespace RealtimeSessions {
702
702
  export {
703
+ type DeprecatedLivekit as DeprecatedLivekit,
703
704
  type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse,
704
705
  type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse,
705
706
  type RealtimeSessionCreateParams as RealtimeSessionCreateParams,
@@ -194,7 +194,9 @@ export namespace RecipeAdLocalizationParams {
194
194
  */
195
195
  export interface ReferenceImage {
196
196
  /**
197
- * A HTTPS URL.
197
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
198
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
199
+ * [our docs](/assets/inputs#images) on image inputs for more information.
198
200
  */
199
201
  uri: string;
200
202
  }
@@ -214,7 +216,7 @@ export interface RecipeMarketingStockImageParams {
214
216
  version: '2026-06' | 'unsafe-latest';
215
217
 
216
218
  /**
217
- * The number of images to generate (1–4). Defaults to 4. Increasing this number
219
+ * The number of images to generate (1-4). Defaults to 4. Increasing this number
218
220
  * affects credits consumed.
219
221
  */
220
222
  outputCount?: number;
@@ -239,7 +241,9 @@ export namespace RecipeMarketingStockImageParams {
239
241
  */
240
242
  export interface ReferenceImage {
241
243
  /**
242
- * A HTTPS URL.
244
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
245
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
246
+ * [our docs](/assets/inputs#images) on image inputs for more information.
243
247
  */
244
248
  uri: string;
245
249
  }
@@ -298,7 +302,9 @@ export declare namespace RecipeMultiShotVideoParams {
298
302
  */
299
303
  export interface FirstFrame {
300
304
  /**
301
- * A HTTPS URL.
305
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
306
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
307
+ * [our docs](/assets/inputs#images) on image inputs for more information.
302
308
  */
303
309
  uri: string;
304
310
  }
@@ -306,12 +312,12 @@ export declare namespace RecipeMultiShotVideoParams {
306
312
 
307
313
  export interface Variant1 {
308
314
  /**
309
- * Workflow mode. `custom` polishes a user-provided shot list of 3–5 shots.
315
+ * Workflow mode. `custom` polishes a user-provided shot list of 3-5 shots.
310
316
  */
311
317
  mode: 'custom';
312
318
 
313
319
  /**
314
- * Shot list for custom mode (3–5 shots). Per-shot durations must sum to
320
+ * Shot list for custom mode (3-5 shots). Per-shot durations must sum to
315
321
  * `duration`.
316
322
  */
317
323
  shots: Array<Variant1.Shot>;
@@ -365,7 +371,9 @@ export declare namespace RecipeMultiShotVideoParams {
365
371
  */
366
372
  export interface FirstFrame {
367
373
  /**
368
- * A HTTPS URL.
374
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
375
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
376
+ * [our docs](/assets/inputs#images) on image inputs for more information.
369
377
  */
370
378
  uri: string;
371
379
  }
@@ -374,7 +382,7 @@ export declare namespace RecipeMultiShotVideoParams {
374
382
 
375
383
  export interface RecipeProductAdParams {
376
384
  /**
377
- * Product images (1–10). Multiple angles of the same product. All images inform
385
+ * Product images (1-10). Multiple angles of the same product. All images inform
378
386
  * product analysis and reference generation; only the first image is used as the
379
387
  * primary product reference in the storyboard grid. See
380
388
  * [our docs](/assets/inputs#images) on image inputs.
@@ -393,7 +401,7 @@ export interface RecipeProductAdParams {
393
401
  audio?: boolean;
394
402
 
395
403
  /**
396
- * Duration of the output video in seconds (4–15). Defaults to 10 seconds.
404
+ * Duration of the output video in seconds (4-15). Defaults to 10 seconds.
397
405
  */
398
406
  duration?: number;
399
407
 
@@ -417,7 +425,7 @@ export interface RecipeProductAdParams {
417
425
  | '1248:1664';
418
426
 
419
427
  /**
420
- * Optional style reference images (0–4). Defines the visual treatment (lighting,
428
+ * Optional style reference images (0-4). Defines the visual treatment (lighting,
421
429
  * palette, mood). Treated as a moodboard when multiple are provided.
422
430
  */
423
431
  styleImages?: Array<RecipeProductAdParams.StyleImage>;
@@ -432,14 +440,18 @@ export interface RecipeProductAdParams {
432
440
  export namespace RecipeProductAdParams {
433
441
  export interface ProductImage {
434
442
  /**
435
- * A HTTPS URL.
443
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
444
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
445
+ * [our docs](/assets/inputs#images) on image inputs for more information.
436
446
  */
437
447
  uri: string;
438
448
  }
439
449
 
440
450
  export interface StyleImage {
441
451
  /**
442
- * A HTTPS URL.
452
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
453
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
454
+ * [our docs](/assets/inputs#images) on image inputs for more information.
443
455
  */
444
456
  uri: string;
445
457
  }
@@ -472,7 +484,9 @@ export namespace RecipeProductCampaignImageParams {
472
484
  */
473
485
  export interface Image {
474
486
  /**
475
- * A HTTPS URL.
487
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
488
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
489
+ * [our docs](/assets/inputs#images) on image inputs for more information.
476
490
  */
477
491
  uri: string;
478
492
  }
@@ -480,8 +494,8 @@ export namespace RecipeProductCampaignImageParams {
480
494
 
481
495
  export interface RecipeProductSwapParams {
482
496
  /**
483
- * Reference images of the new product (1–10). Supply multiple angles when the
484
- * reference video shows the product from different views — optionally label each
497
+ * Reference images of the new product (1-10). Supply multiple angles when the
498
+ * reference video shows the product from different views - optionally label each
485
499
  * with `view` ("front", "side", or "back"). A single pre-composed reference sheet
486
500
  * is also supported (omit `view`). See [our docs](/assets/inputs#images) on image
487
501
  * inputs.
@@ -512,7 +526,7 @@ export interface RecipeProductSwapParams {
512
526
  audio?: boolean;
513
527
 
514
528
  /**
515
- * Duration of the output video in seconds (4–15). Defaults to 10 seconds.
529
+ * Duration of the output video in seconds (4-15). Defaults to 10 seconds.
516
530
  */
517
531
  duration?: number;
518
532
 
@@ -525,7 +539,9 @@ export interface RecipeProductSwapParams {
525
539
  export namespace RecipeProductSwapParams {
526
540
  export interface NewProductImage {
527
541
  /**
528
- * A HTTPS URL.
542
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
543
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
544
+ * [our docs](/assets/inputs#images) on image inputs for more information.
529
545
  */
530
546
  uri: string;
531
547
 
@@ -542,7 +558,9 @@ export namespace RecipeProductSwapParams {
542
558
  */
543
559
  export interface OriginalProductImage {
544
560
  /**
545
- * A HTTPS URL.
561
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
562
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
563
+ * [our docs](/assets/inputs#images) on image inputs for more information.
546
564
  */
547
565
  uri: string;
548
566
  }
@@ -553,7 +571,9 @@ export namespace RecipeProductSwapParams {
553
571
  */
554
572
  export interface ReferenceVideo {
555
573
  /**
556
- * A HTTPS URL.
574
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
575
+ * `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
576
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
557
577
  */
558
578
  uri: string;
559
579
  }
@@ -586,12 +606,12 @@ export interface RecipeProductUgcParams {
586
606
  audio?: boolean;
587
607
 
588
608
  /**
589
- * Duration of the output video in seconds (4–15). Defaults to 15 seconds.
609
+ * Duration of the output video in seconds (4-15). Defaults to 15 seconds.
590
610
  */
591
611
  duration?: number;
592
612
 
593
613
  /**
594
- * Product details and creative brief — what the product is, key benefits, and any
614
+ * Product details and creative brief - what the product is, key benefits, and any
595
615
  * specifics the script should reference.
596
616
  */
597
617
  productInfo?: string;
@@ -602,7 +622,7 @@ export interface RecipeProductUgcParams {
602
622
  ratio?: '720:1280' | '1080:1920';
603
623
 
604
624
  /**
605
- * Optional creative direction for the UGC video — tone, voice register, specific
625
+ * Optional creative direction for the UGC video - tone, voice register, specific
606
626
  * message, or an entire dialog script.
607
627
  */
608
628
  userConcept?: string;
@@ -616,7 +636,9 @@ export namespace RecipeProductUgcParams {
616
636
  */
617
637
  export interface CharacterImage {
618
638
  /**
619
- * A HTTPS URL.
639
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
640
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
641
+ * [our docs](/assets/inputs#images) on image inputs for more information.
620
642
  */
621
643
  uri: string;
622
644
  }
@@ -628,7 +650,9 @@ export namespace RecipeProductUgcParams {
628
650
  */
629
651
  export interface ProductImage {
630
652
  /**
631
- * A HTTPS URL.
653
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
654
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
655
+ * [our docs](/assets/inputs#images) on image inputs for more information.
632
656
  */
633
657
  uri: string;
634
658
  }