@runwayml/sdk 4.5.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.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +93 -3
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +93 -3
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +86 -3
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +86 -3
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +145 -3
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +145 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/resources/image-to-video.ts +124 -2
- package/src/resources/text-to-video.ts +116 -2
- package/src/resources/video-to-video.ts +184 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "4.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.6.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|