@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
|
@@ -24,7 +24,7 @@ export interface VideoToVideoCreateResponse {
|
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
}
|
|
27
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast;
|
|
27
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash;
|
|
28
28
|
export declare namespace VideoToVideoCreateParams {
|
|
29
29
|
interface Variant0 {
|
|
30
30
|
model: 'aleph2';
|
|
@@ -82,6 +82,30 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
82
82
|
* A HTTPS URL.
|
|
83
83
|
*/
|
|
84
84
|
uri: string;
|
|
85
|
+
/**
|
|
86
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
87
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
88
|
+
* none may.
|
|
89
|
+
*/
|
|
90
|
+
range?: UnionMember0.Range;
|
|
91
|
+
}
|
|
92
|
+
namespace UnionMember0 {
|
|
93
|
+
/**
|
|
94
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
95
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
96
|
+
* none may.
|
|
97
|
+
*/
|
|
98
|
+
interface Range {
|
|
99
|
+
/**
|
|
100
|
+
* End of the edit window (exclusive) in whole seconds from the start of the input
|
|
101
|
+
* video.
|
|
102
|
+
*/
|
|
103
|
+
end_seconds: number;
|
|
104
|
+
/**
|
|
105
|
+
* Start of the edit window in whole seconds from the start of the input video.
|
|
106
|
+
*/
|
|
107
|
+
start_seconds: number;
|
|
108
|
+
}
|
|
85
109
|
}
|
|
86
110
|
interface UnionMember1 {
|
|
87
111
|
/**
|
|
@@ -93,6 +117,30 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
93
117
|
* A HTTPS URL.
|
|
94
118
|
*/
|
|
95
119
|
uri: string;
|
|
120
|
+
/**
|
|
121
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
122
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
123
|
+
* none may.
|
|
124
|
+
*/
|
|
125
|
+
range?: UnionMember1.Range;
|
|
126
|
+
}
|
|
127
|
+
namespace UnionMember1 {
|
|
128
|
+
/**
|
|
129
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
130
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
131
|
+
* none may.
|
|
132
|
+
*/
|
|
133
|
+
interface Range {
|
|
134
|
+
/**
|
|
135
|
+
* End of the edit window (exclusive) in whole seconds from the start of the input
|
|
136
|
+
* video.
|
|
137
|
+
*/
|
|
138
|
+
end_seconds: number;
|
|
139
|
+
/**
|
|
140
|
+
* Start of the edit window in whole seconds from the start of the input video.
|
|
141
|
+
*/
|
|
142
|
+
start_seconds: number;
|
|
143
|
+
}
|
|
96
144
|
}
|
|
97
145
|
}
|
|
98
146
|
interface Seedance2 {
|
|
@@ -102,7 +150,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
102
150
|
*/
|
|
103
151
|
promptVideo: string;
|
|
104
152
|
/**
|
|
105
|
-
* Whether to generate audio for the video.
|
|
153
|
+
* Whether to generate audio for the video.
|
|
106
154
|
*/
|
|
107
155
|
audio?: boolean;
|
|
108
156
|
/**
|
|
@@ -172,7 +220,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
172
220
|
*/
|
|
173
221
|
promptVideo: string;
|
|
174
222
|
/**
|
|
175
|
-
* Whether to generate audio for the video.
|
|
223
|
+
* Whether to generate audio for the video.
|
|
176
224
|
*/
|
|
177
225
|
audio?: boolean;
|
|
178
226
|
/**
|
|
@@ -236,6 +284,100 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
236
284
|
uri: string;
|
|
237
285
|
}
|
|
238
286
|
}
|
|
287
|
+
interface Seedance2Mini {
|
|
288
|
+
model: 'seedance2_mini';
|
|
289
|
+
/**
|
|
290
|
+
* A HTTPS URL.
|
|
291
|
+
*/
|
|
292
|
+
promptVideo: string;
|
|
293
|
+
/**
|
|
294
|
+
* Whether to generate audio for the video.
|
|
295
|
+
*/
|
|
296
|
+
audio?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* The number of seconds of duration for the output video.
|
|
299
|
+
*/
|
|
300
|
+
duration?: number;
|
|
301
|
+
/**
|
|
302
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
303
|
+
* the output.
|
|
304
|
+
*/
|
|
305
|
+
promptText?: string;
|
|
306
|
+
/**
|
|
307
|
+
* The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
|
|
308
|
+
* only.
|
|
309
|
+
*/
|
|
310
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
311
|
+
/**
|
|
312
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
313
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
314
|
+
*/
|
|
315
|
+
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
316
|
+
/**
|
|
317
|
+
* An optional array of image references (up to 9). See
|
|
318
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
319
|
+
*/
|
|
320
|
+
references?: Array<Seedance2Mini.Reference>;
|
|
321
|
+
/**
|
|
322
|
+
* An optional array of video references. The combined duration across all video
|
|
323
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
324
|
+
* video inputs for more information.
|
|
325
|
+
*/
|
|
326
|
+
referenceVideos?: Array<Seedance2Mini.ReferenceVideo>;
|
|
327
|
+
}
|
|
328
|
+
namespace Seedance2Mini {
|
|
329
|
+
/**
|
|
330
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
331
|
+
* the output.
|
|
332
|
+
*/
|
|
333
|
+
interface ReferenceAudio {
|
|
334
|
+
type: 'audio';
|
|
335
|
+
/**
|
|
336
|
+
* A HTTPS URL.
|
|
337
|
+
*/
|
|
338
|
+
uri: string;
|
|
339
|
+
}
|
|
340
|
+
interface Reference {
|
|
341
|
+
/**
|
|
342
|
+
* A HTTPS URL.
|
|
343
|
+
*/
|
|
344
|
+
uri: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* A video reference allows the model to use the video as additional context for
|
|
348
|
+
* the output.
|
|
349
|
+
*/
|
|
350
|
+
interface ReferenceVideo {
|
|
351
|
+
type: 'video';
|
|
352
|
+
/**
|
|
353
|
+
* A HTTPS URL.
|
|
354
|
+
*/
|
|
355
|
+
uri: string;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
interface GeminiOmniFlash {
|
|
359
|
+
model: 'gemini_omni_flash';
|
|
360
|
+
/**
|
|
361
|
+
* A non-empty instruction describing the edit to apply.
|
|
362
|
+
*/
|
|
363
|
+
promptText: string;
|
|
364
|
+
/**
|
|
365
|
+
* A HTTPS URL.
|
|
366
|
+
*/
|
|
367
|
+
videoUri: string;
|
|
368
|
+
/**
|
|
369
|
+
* An optional array of image references to guide the edit.
|
|
370
|
+
*/
|
|
371
|
+
references?: Array<GeminiOmniFlash.Reference>;
|
|
372
|
+
}
|
|
373
|
+
namespace GeminiOmniFlash {
|
|
374
|
+
interface Reference {
|
|
375
|
+
/**
|
|
376
|
+
* A HTTPS URL.
|
|
377
|
+
*/
|
|
378
|
+
uri: string;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
239
381
|
}
|
|
240
382
|
export declare namespace VideoToVideo {
|
|
241
383
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,QAAQ,GACjC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAA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AAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,eAAe;QAC9B,KAAK,EAAE,mBAAmB,CAAC;QAE3B;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;KAC/C;IAED,UAAiB,eAAe,CAAC;QAC/B,UAAiB,SAAS;YACxB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -24,7 +24,7 @@ export interface VideoToVideoCreateResponse {
|
|
|
24
24
|
*/
|
|
25
25
|
id: string;
|
|
26
26
|
}
|
|
27
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast;
|
|
27
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash;
|
|
28
28
|
export declare namespace VideoToVideoCreateParams {
|
|
29
29
|
interface Variant0 {
|
|
30
30
|
model: 'aleph2';
|
|
@@ -82,6 +82,30 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
82
82
|
* A HTTPS URL.
|
|
83
83
|
*/
|
|
84
84
|
uri: string;
|
|
85
|
+
/**
|
|
86
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
87
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
88
|
+
* none may.
|
|
89
|
+
*/
|
|
90
|
+
range?: UnionMember0.Range;
|
|
91
|
+
}
|
|
92
|
+
namespace UnionMember0 {
|
|
93
|
+
/**
|
|
94
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
95
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
96
|
+
* none may.
|
|
97
|
+
*/
|
|
98
|
+
interface Range {
|
|
99
|
+
/**
|
|
100
|
+
* End of the edit window (exclusive) in whole seconds from the start of the input
|
|
101
|
+
* video.
|
|
102
|
+
*/
|
|
103
|
+
end_seconds: number;
|
|
104
|
+
/**
|
|
105
|
+
* Start of the edit window in whole seconds from the start of the input video.
|
|
106
|
+
*/
|
|
107
|
+
start_seconds: number;
|
|
108
|
+
}
|
|
85
109
|
}
|
|
86
110
|
interface UnionMember1 {
|
|
87
111
|
/**
|
|
@@ -93,6 +117,30 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
93
117
|
* A HTTPS URL.
|
|
94
118
|
*/
|
|
95
119
|
uri: string;
|
|
120
|
+
/**
|
|
121
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
122
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
123
|
+
* none may.
|
|
124
|
+
*/
|
|
125
|
+
range?: UnionMember1.Range;
|
|
126
|
+
}
|
|
127
|
+
namespace UnionMember1 {
|
|
128
|
+
/**
|
|
129
|
+
* Optional edit window. When set, the edit applies only to this time range and the
|
|
130
|
+
* keyframe timestamp must fall within it. All keyframes must either set a range or
|
|
131
|
+
* none may.
|
|
132
|
+
*/
|
|
133
|
+
interface Range {
|
|
134
|
+
/**
|
|
135
|
+
* End of the edit window (exclusive) in whole seconds from the start of the input
|
|
136
|
+
* video.
|
|
137
|
+
*/
|
|
138
|
+
end_seconds: number;
|
|
139
|
+
/**
|
|
140
|
+
* Start of the edit window in whole seconds from the start of the input video.
|
|
141
|
+
*/
|
|
142
|
+
start_seconds: number;
|
|
143
|
+
}
|
|
96
144
|
}
|
|
97
145
|
}
|
|
98
146
|
interface Seedance2 {
|
|
@@ -102,7 +150,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
102
150
|
*/
|
|
103
151
|
promptVideo: string;
|
|
104
152
|
/**
|
|
105
|
-
* Whether to generate audio for the video.
|
|
153
|
+
* Whether to generate audio for the video.
|
|
106
154
|
*/
|
|
107
155
|
audio?: boolean;
|
|
108
156
|
/**
|
|
@@ -172,7 +220,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
172
220
|
*/
|
|
173
221
|
promptVideo: string;
|
|
174
222
|
/**
|
|
175
|
-
* Whether to generate audio for the video.
|
|
223
|
+
* Whether to generate audio for the video.
|
|
176
224
|
*/
|
|
177
225
|
audio?: boolean;
|
|
178
226
|
/**
|
|
@@ -236,6 +284,100 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
236
284
|
uri: string;
|
|
237
285
|
}
|
|
238
286
|
}
|
|
287
|
+
interface Seedance2Mini {
|
|
288
|
+
model: 'seedance2_mini';
|
|
289
|
+
/**
|
|
290
|
+
* A HTTPS URL.
|
|
291
|
+
*/
|
|
292
|
+
promptVideo: string;
|
|
293
|
+
/**
|
|
294
|
+
* Whether to generate audio for the video.
|
|
295
|
+
*/
|
|
296
|
+
audio?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* The number of seconds of duration for the output video.
|
|
299
|
+
*/
|
|
300
|
+
duration?: number;
|
|
301
|
+
/**
|
|
302
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
303
|
+
* the output.
|
|
304
|
+
*/
|
|
305
|
+
promptText?: string;
|
|
306
|
+
/**
|
|
307
|
+
* The resolution of the output video. Seedance 2.0 Mini supports 480p and 720p
|
|
308
|
+
* only.
|
|
309
|
+
*/
|
|
310
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
311
|
+
/**
|
|
312
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
313
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
314
|
+
*/
|
|
315
|
+
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
316
|
+
/**
|
|
317
|
+
* An optional array of image references (up to 9). See
|
|
318
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
319
|
+
*/
|
|
320
|
+
references?: Array<Seedance2Mini.Reference>;
|
|
321
|
+
/**
|
|
322
|
+
* An optional array of video references. The combined duration across all video
|
|
323
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
324
|
+
* video inputs for more information.
|
|
325
|
+
*/
|
|
326
|
+
referenceVideos?: Array<Seedance2Mini.ReferenceVideo>;
|
|
327
|
+
}
|
|
328
|
+
namespace Seedance2Mini {
|
|
329
|
+
/**
|
|
330
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
331
|
+
* the output.
|
|
332
|
+
*/
|
|
333
|
+
interface ReferenceAudio {
|
|
334
|
+
type: 'audio';
|
|
335
|
+
/**
|
|
336
|
+
* A HTTPS URL.
|
|
337
|
+
*/
|
|
338
|
+
uri: string;
|
|
339
|
+
}
|
|
340
|
+
interface Reference {
|
|
341
|
+
/**
|
|
342
|
+
* A HTTPS URL.
|
|
343
|
+
*/
|
|
344
|
+
uri: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* A video reference allows the model to use the video as additional context for
|
|
348
|
+
* the output.
|
|
349
|
+
*/
|
|
350
|
+
interface ReferenceVideo {
|
|
351
|
+
type: 'video';
|
|
352
|
+
/**
|
|
353
|
+
* A HTTPS URL.
|
|
354
|
+
*/
|
|
355
|
+
uri: string;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
interface GeminiOmniFlash {
|
|
359
|
+
model: 'gemini_omni_flash';
|
|
360
|
+
/**
|
|
361
|
+
* A non-empty instruction describing the edit to apply.
|
|
362
|
+
*/
|
|
363
|
+
promptText: string;
|
|
364
|
+
/**
|
|
365
|
+
* A HTTPS URL.
|
|
366
|
+
*/
|
|
367
|
+
videoUri: string;
|
|
368
|
+
/**
|
|
369
|
+
* An optional array of image references to guide the edit.
|
|
370
|
+
*/
|
|
371
|
+
references?: Array<GeminiOmniFlash.Reference>;
|
|
372
|
+
}
|
|
373
|
+
namespace GeminiOmniFlash {
|
|
374
|
+
interface Reference {
|
|
375
|
+
/**
|
|
376
|
+
* A HTTPS URL.
|
|
377
|
+
*/
|
|
378
|
+
uri: string;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
239
381
|
}
|
|
240
382
|
export declare namespace VideoToVideo {
|
|
241
383
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,QAAQ,GACjC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AAC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;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;KAC/C;IAED,UAAiB,eAAe,CAAC;QAC/B,UAAiB,SAAS;YACxB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -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.
|
|
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.
|
|
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.
|