@runwayml/sdk 4.4.0 → 4.6.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.
@@ -36,6 +36,8 @@ export type ImageToVideoCreateParams =
36
36
  | ImageToVideoCreateParams.Happyhorse1_0
37
37
  | ImageToVideoCreateParams.Seedance2
38
38
  | ImageToVideoCreateParams.Seedance2Fast
39
+ | ImageToVideoCreateParams.Seedance2Mini
40
+ | ImageToVideoCreateParams.GeminiOmniFlash
39
41
  | ImageToVideoCreateParams.Veo3;
40
42
 
41
43
  export declare namespace ImageToVideoCreateParams {
@@ -312,7 +314,7 @@ export declare namespace ImageToVideoCreateParams {
312
314
  promptImage: string | Array<Seedance2.PromptImage>;
313
315
 
314
316
  /**
315
- * Whether to generate audio for the video. Audio inclusion affects pricing.
317
+ * Whether to generate audio for the video.
316
318
  */
317
319
  audio?: boolean;
318
320
 
@@ -401,7 +403,7 @@ export declare namespace ImageToVideoCreateParams {
401
403
  promptImage: string | Array<Seedance2Fast.PromptImage>;
402
404
 
403
405
  /**
404
- * Whether to generate audio for the video. Audio inclusion affects pricing.
406
+ * Whether to generate audio for the video.
405
407
  */
406
408
  audio?: boolean;
407
409
 
@@ -469,6 +471,126 @@ export declare namespace ImageToVideoCreateParams {
469
471
  }
470
472
  }
471
473
 
474
+ export interface Seedance2Mini {
475
+ model: 'seedance2_mini';
476
+
477
+ /**
478
+ * An image or array of images. Use position `first`/`last` for keyframe mode, or
479
+ * omit position for reference images. The two modes cannot be mixed.
480
+ */
481
+ promptImage: string | Array<Seedance2Mini.PromptImage>;
482
+
483
+ /**
484
+ * Whether to generate audio for the video.
485
+ */
486
+ audio?: boolean;
487
+
488
+ /**
489
+ * The number of seconds of duration for the output video.
490
+ */
491
+ duration?: number;
492
+
493
+ /**
494
+ * An optional text prompt up to 3500 characters describing what should appear in
495
+ * the output.
496
+ */
497
+ promptText?: string;
498
+
499
+ /**
500
+ * The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
501
+ * only.
502
+ */
503
+ ratio?:
504
+ | '992:432'
505
+ | '864:496'
506
+ | '752:560'
507
+ | '640:640'
508
+ | '560:752'
509
+ | '496:864'
510
+ | '1470:630'
511
+ | '1280:720'
512
+ | '1112:834'
513
+ | '960:960'
514
+ | '834:1112'
515
+ | '720:1280';
516
+
517
+ /**
518
+ * An optional array of audio references. Audio references require a text prompt,
519
+ * and the total combined duration must not exceed 15 seconds.
520
+ */
521
+ referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
522
+ }
523
+
524
+ export namespace Seedance2Mini {
525
+ export interface PromptImage {
526
+ /**
527
+ * A HTTPS URL.
528
+ */
529
+ uri: string;
530
+
531
+ /**
532
+ * The position of the image in the output video. "first" will use the image as the
533
+ * first frame, "last" as the last frame. Omit for a reference image.
534
+ */
535
+ position?: 'first' | 'last';
536
+ }
537
+
538
+ /**
539
+ * An audio reference allows the model to use the audio as additional context for
540
+ * the output.
541
+ */
542
+ export interface ReferenceAudio {
543
+ type: 'audio';
544
+
545
+ /**
546
+ * A HTTPS URL.
547
+ */
548
+ uri: string;
549
+ }
550
+ }
551
+
552
+ export interface GeminiOmniFlash {
553
+ model: 'gemini_omni_flash';
554
+
555
+ /**
556
+ * An image to use as the first frame of the output video. Gemini Omni Flash only
557
+ * supports a first frame.
558
+ */
559
+ promptImage: string | Array<GeminiOmniFlash.PromptImage>;
560
+
561
+ /**
562
+ * The duration of the output video in seconds, as a whole number from 3 to 10.
563
+ */
564
+ duration?: number;
565
+
566
+ /**
567
+ * An optional text prompt describing how the video should evolve from the first
568
+ * frame.
569
+ */
570
+ promptText?: string;
571
+
572
+ /**
573
+ * The aspect ratio of the output video: `1280:720` (landscape) or `720:1280`
574
+ * (portrait).
575
+ */
576
+ ratio?: '1280:720' | '720:1280';
577
+ }
578
+
579
+ export namespace GeminiOmniFlash {
580
+ export interface PromptImage {
581
+ /**
582
+ * The position of the image in the output video. "first" will use the image as the
583
+ * first frame of the video.
584
+ */
585
+ position: 'first';
586
+
587
+ /**
588
+ * A HTTPS URL.
589
+ */
590
+ uri: string;
591
+ }
592
+ }
593
+
472
594
  export interface Veo3 {
473
595
  /**
474
596
  * The number of seconds of duration for the output video.
@@ -138,6 +138,18 @@ export interface RecipeMarketingStockImageParams {
138
138
  */
139
139
  version: '2026-06' | 'unsafe-latest';
140
140
 
141
+ /**
142
+ * The number of images to generate (1–4). Defaults to 4. Increasing this number
143
+ * affects credits consumed.
144
+ */
145
+ outputCount?: number;
146
+
147
+ /**
148
+ * GPT Image 2 rendering quality (`low`, `medium`, or `high`). Lower settings are
149
+ * faster and use fewer credits; `high` (default) is slowest and highest fidelity.
150
+ */
151
+ quality?: 'low' | 'medium' | 'high';
152
+
141
153
  /**
142
154
  * Optional brand logo image to guide the generated marketing stock image. See
143
155
  * [our docs](/assets/inputs#images) on image inputs.
@@ -35,6 +35,8 @@ export type TextToVideoCreateParams =
35
35
  | TextToVideoCreateParams.Happyhorse1_0
36
36
  | TextToVideoCreateParams.Seedance2
37
37
  | TextToVideoCreateParams.Seedance2Fast
38
+ | TextToVideoCreateParams.Seedance2Mini
39
+ | TextToVideoCreateParams.GeminiOmniFlash
38
40
  | TextToVideoCreateParams.Veo3;
39
41
 
40
42
  export declare namespace TextToVideoCreateParams {
@@ -174,7 +176,7 @@ export declare namespace TextToVideoCreateParams {
174
176
  promptText: string;
175
177
 
176
178
  /**
177
- * Whether to generate audio for the video. Audio inclusion affects pricing.
179
+ * Whether to generate audio for the video.
178
180
  */
179
181
  audio?: boolean;
180
182
 
@@ -277,7 +279,7 @@ export declare namespace TextToVideoCreateParams {
277
279
  promptText: string;
278
280
 
279
281
  /**
280
- * Whether to generate audio for the video. Audio inclusion affects pricing.
282
+ * Whether to generate audio for the video.
281
283
  */
282
284
  audio?: boolean;
283
285
 
@@ -359,6 +361,118 @@ export declare namespace TextToVideoCreateParams {
359
361
  }
360
362
  }
361
363
 
364
+ export interface Seedance2Mini {
365
+ model: 'seedance2_mini';
366
+
367
+ /**
368
+ * A non-empty text prompt up to 3500 characters describing what should appear in
369
+ * the output.
370
+ */
371
+ promptText: string;
372
+
373
+ /**
374
+ * Whether to generate audio for the video.
375
+ */
376
+ audio?: boolean;
377
+
378
+ /**
379
+ * The number of seconds of duration for the output video.
380
+ */
381
+ duration?: number;
382
+
383
+ /**
384
+ * The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
385
+ * only.
386
+ */
387
+ ratio?:
388
+ | '992:432'
389
+ | '864:496'
390
+ | '752:560'
391
+ | '640:640'
392
+ | '560:752'
393
+ | '496:864'
394
+ | '1470:630'
395
+ | '1280:720'
396
+ | '1112:834'
397
+ | '960:960'
398
+ | '834:1112'
399
+ | '720:1280';
400
+
401
+ /**
402
+ * An optional array of audio references. Audio references require a text prompt,
403
+ * and the total combined duration must not exceed 15 seconds.
404
+ */
405
+ referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
406
+
407
+ /**
408
+ * An optional array of image references (up to 9). See
409
+ * [our docs](/assets/inputs#images) on image inputs for more information.
410
+ */
411
+ references?: Array<Seedance2Mini.Reference>;
412
+
413
+ /**
414
+ * An optional array of video references. The combined duration across all video
415
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
416
+ * video inputs for more information.
417
+ */
418
+ referenceVideos?: Array<Seedance2Mini.ReferenceVideo>;
419
+ }
420
+
421
+ export namespace Seedance2Mini {
422
+ /**
423
+ * An audio reference allows the model to use the audio as additional context for
424
+ * the output.
425
+ */
426
+ export interface ReferenceAudio {
427
+ type: 'audio';
428
+
429
+ /**
430
+ * A HTTPS URL.
431
+ */
432
+ uri: string;
433
+ }
434
+
435
+ export interface Reference {
436
+ /**
437
+ * A HTTPS URL.
438
+ */
439
+ uri: string;
440
+ }
441
+
442
+ /**
443
+ * A video reference allows the model to use the video as additional context for
444
+ * the output.
445
+ */
446
+ export interface ReferenceVideo {
447
+ type: 'video';
448
+
449
+ /**
450
+ * A HTTPS URL.
451
+ */
452
+ uri: string;
453
+ }
454
+ }
455
+
456
+ export interface GeminiOmniFlash {
457
+ model: 'gemini_omni_flash';
458
+
459
+ /**
460
+ * A non-empty text prompt describing the video to generate.
461
+ */
462
+ promptText: string;
463
+
464
+ /**
465
+ * The duration of the output video in seconds, as a whole number from 3 to 10.
466
+ */
467
+ duration?: number;
468
+
469
+ /**
470
+ * The aspect ratio of the output video: `1280:720` (landscape) or `720:1280`
471
+ * (portrait).
472
+ */
473
+ ratio?: '1280:720' | '720:1280';
474
+ }
475
+
362
476
  export interface Veo3 {
363
477
  /**
364
478
  * The number of seconds of duration for the output video.
@@ -39,7 +39,9 @@ export interface VideoToVideoCreateResponse {
39
39
  export type VideoToVideoCreateParams =
40
40
  | VideoToVideoCreateParams.Variant0
41
41
  | VideoToVideoCreateParams.Seedance2
42
- | VideoToVideoCreateParams.Seedance2Fast;
42
+ | VideoToVideoCreateParams.Seedance2Fast
43
+ | VideoToVideoCreateParams.Seedance2Mini
44
+ | VideoToVideoCreateParams.GeminiOmniFlash;
43
45
 
44
46
  export declare namespace VideoToVideoCreateParams {
45
47
  export interface Variant0 {
@@ -108,6 +110,33 @@ export declare namespace VideoToVideoCreateParams {
108
110
  * A HTTPS URL.
109
111
  */
110
112
  uri: string;
113
+
114
+ /**
115
+ * Optional edit window. When set, the edit applies only to this time range and the
116
+ * keyframe timestamp must fall within it. All keyframes must either set a range or
117
+ * none may.
118
+ */
119
+ range?: UnionMember0.Range;
120
+ }
121
+
122
+ export namespace UnionMember0 {
123
+ /**
124
+ * Optional edit window. When set, the edit applies only to this time range and the
125
+ * keyframe timestamp must fall within it. All keyframes must either set a range or
126
+ * none may.
127
+ */
128
+ export interface Range {
129
+ /**
130
+ * End of the edit window (exclusive) in whole seconds from the start of the input
131
+ * video.
132
+ */
133
+ end_seconds: number;
134
+
135
+ /**
136
+ * Start of the edit window in whole seconds from the start of the input video.
137
+ */
138
+ start_seconds: number;
139
+ }
111
140
  }
112
141
 
113
142
  export interface UnionMember1 {
@@ -121,6 +150,33 @@ export declare namespace VideoToVideoCreateParams {
121
150
  * A HTTPS URL.
122
151
  */
123
152
  uri: string;
153
+
154
+ /**
155
+ * Optional edit window. When set, the edit applies only to this time range and the
156
+ * keyframe timestamp must fall within it. All keyframes must either set a range or
157
+ * none may.
158
+ */
159
+ range?: UnionMember1.Range;
160
+ }
161
+
162
+ export namespace UnionMember1 {
163
+ /**
164
+ * Optional edit window. When set, the edit applies only to this time range and the
165
+ * keyframe timestamp must fall within it. All keyframes must either set a range or
166
+ * none may.
167
+ */
168
+ export interface Range {
169
+ /**
170
+ * End of the edit window (exclusive) in whole seconds from the start of the input
171
+ * video.
172
+ */
173
+ end_seconds: number;
174
+
175
+ /**
176
+ * Start of the edit window in whole seconds from the start of the input video.
177
+ */
178
+ start_seconds: number;
179
+ }
124
180
  }
125
181
  }
126
182
 
@@ -133,7 +189,7 @@ export declare namespace VideoToVideoCreateParams {
133
189
  promptVideo: string;
134
190
 
135
191
  /**
136
- * Whether to generate audio for the video. Audio inclusion affects pricing.
192
+ * Whether to generate audio for the video.
137
193
  */
138
194
  audio?: boolean;
139
195
 
@@ -241,7 +297,7 @@ export declare namespace VideoToVideoCreateParams {
241
297
  promptVideo: string;
242
298
 
243
299
  /**
244
- * Whether to generate audio for the video. Audio inclusion affects pricing.
300
+ * Whether to generate audio for the video.
245
301
  */
246
302
  audio?: boolean;
247
303
 
@@ -328,6 +384,131 @@ export declare namespace VideoToVideoCreateParams {
328
384
  uri: string;
329
385
  }
330
386
  }
387
+
388
+ export interface Seedance2Mini {
389
+ model: 'seedance2_mini';
390
+
391
+ /**
392
+ * A HTTPS URL.
393
+ */
394
+ promptVideo: string;
395
+
396
+ /**
397
+ * Whether to generate audio for the video.
398
+ */
399
+ audio?: boolean;
400
+
401
+ /**
402
+ * The number of seconds of duration for the output video.
403
+ */
404
+ duration?: number;
405
+
406
+ /**
407
+ * An optional text prompt up to 3500 characters describing what should appear in
408
+ * the output.
409
+ */
410
+ promptText?: string;
411
+
412
+ /**
413
+ * The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
414
+ * only.
415
+ */
416
+ ratio?:
417
+ | '992:432'
418
+ | '864:496'
419
+ | '752:560'
420
+ | '640:640'
421
+ | '560:752'
422
+ | '496:864'
423
+ | '1470:630'
424
+ | '1280:720'
425
+ | '1112:834'
426
+ | '960:960'
427
+ | '834:1112'
428
+ | '720:1280';
429
+
430
+ /**
431
+ * An optional array of audio references. Audio references require a text prompt,
432
+ * and the total combined duration must not exceed 15 seconds.
433
+ */
434
+ referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
435
+
436
+ /**
437
+ * An optional array of image references (up to 9). See
438
+ * [our docs](/assets/inputs#images) on image inputs for more information.
439
+ */
440
+ references?: Array<Seedance2Mini.Reference>;
441
+
442
+ /**
443
+ * An optional array of video references. The combined duration across all video
444
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
445
+ * video inputs for more information.
446
+ */
447
+ referenceVideos?: Array<Seedance2Mini.ReferenceVideo>;
448
+ }
449
+
450
+ export namespace Seedance2Mini {
451
+ /**
452
+ * An audio reference allows the model to use the audio as additional context for
453
+ * the output.
454
+ */
455
+ export interface ReferenceAudio {
456
+ type: 'audio';
457
+
458
+ /**
459
+ * A HTTPS URL.
460
+ */
461
+ uri: string;
462
+ }
463
+
464
+ export interface Reference {
465
+ /**
466
+ * A HTTPS URL.
467
+ */
468
+ uri: string;
469
+ }
470
+
471
+ /**
472
+ * A video reference allows the model to use the video as additional context for
473
+ * the output.
474
+ */
475
+ export interface ReferenceVideo {
476
+ type: 'video';
477
+
478
+ /**
479
+ * A HTTPS URL.
480
+ */
481
+ uri: string;
482
+ }
483
+ }
484
+
485
+ export interface GeminiOmniFlash {
486
+ model: 'gemini_omni_flash';
487
+
488
+ /**
489
+ * A non-empty instruction describing the edit to apply.
490
+ */
491
+ promptText: string;
492
+
493
+ /**
494
+ * A HTTPS URL.
495
+ */
496
+ videoUri: string;
497
+
498
+ /**
499
+ * An optional array of image references to guide the edit.
500
+ */
501
+ references?: Array<GeminiOmniFlash.Reference>;
502
+ }
503
+
504
+ export namespace GeminiOmniFlash {
505
+ export interface Reference {
506
+ /**
507
+ * A HTTPS URL.
508
+ */
509
+ uri: string;
510
+ }
511
+ }
331
512
  }
332
513
 
333
514
  export declare namespace VideoToVideo {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.4.0'; // x-release-please-version
1
+ export const VERSION = '4.6.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.4.0";
1
+ export declare const VERSION = "4.6.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.4.0";
1
+ export declare const VERSION = "4.6.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.4.0'; // x-release-please-version
4
+ exports.VERSION = '4.6.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.4.0'; // x-release-please-version
1
+ export const VERSION = '4.6.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map