@runwayml/sdk 3.21.1 → 3.23.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 +22 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +88 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +88 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +62 -0
- package/resources/image-upscale.d.mts.map +1 -0
- package/resources/image-upscale.d.ts +62 -0
- package/resources/image-upscale.d.ts.map +1 -0
- package/resources/image-upscale.js +30 -0
- package/resources/image-upscale.js.map +1 -0
- package/resources/image-upscale.mjs +26 -0
- package/resources/image-upscale.mjs.map +1 -0
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +45 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +45 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +88 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +88 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +218 -46
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +218 -46
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +16 -0
- package/src/resources/image-to-video.ts +125 -0
- package/src/resources/image-upscale.ts +83 -0
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +21 -1
- package/src/resources/text-to-image.ts +109 -0
- package/src/resources/text-to-video.ts +135 -0
- package/src/resources/video-to-video.ts +282 -47
- 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
|
@@ -33,6 +33,7 @@ export type TextToImageCreateParams =
|
|
|
33
33
|
| TextToImageCreateParams.Gen4Image
|
|
34
34
|
| TextToImageCreateParams.GptImage2
|
|
35
35
|
| TextToImageCreateParams.GeminiImage3Pro
|
|
36
|
+
| TextToImageCreateParams.GeminiImage3_1Flash
|
|
36
37
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
37
38
|
|
|
38
39
|
export declare namespace TextToImageCreateParams {
|
|
@@ -352,6 +353,114 @@ export declare namespace TextToImageCreateParams {
|
|
|
352
353
|
}
|
|
353
354
|
}
|
|
354
355
|
|
|
356
|
+
export interface GeminiImage3_1Flash {
|
|
357
|
+
model: 'gemini_image3.1_flash';
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
361
|
+
* should describe in detail what should appear in the output.
|
|
362
|
+
*/
|
|
363
|
+
promptText: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* The resolution of the output image.
|
|
367
|
+
*/
|
|
368
|
+
ratio:
|
|
369
|
+
| '512:512'
|
|
370
|
+
| '416:624'
|
|
371
|
+
| '624:416'
|
|
372
|
+
| '432:592'
|
|
373
|
+
| '592:432'
|
|
374
|
+
| '448:576'
|
|
375
|
+
| '576:448'
|
|
376
|
+
| '384:672'
|
|
377
|
+
| '672:384'
|
|
378
|
+
| '768:336'
|
|
379
|
+
| '256:1024'
|
|
380
|
+
| '1024:256'
|
|
381
|
+
| '176:1408'
|
|
382
|
+
| '1408:176'
|
|
383
|
+
| '1024:1024'
|
|
384
|
+
| '832:1248'
|
|
385
|
+
| '1248:832'
|
|
386
|
+
| '864:1184'
|
|
387
|
+
| '1184:864'
|
|
388
|
+
| '896:1152'
|
|
389
|
+
| '1152:896'
|
|
390
|
+
| '768:1344'
|
|
391
|
+
| '1344:768'
|
|
392
|
+
| '1536:672'
|
|
393
|
+
| '512:2048'
|
|
394
|
+
| '2048:512'
|
|
395
|
+
| '352:2816'
|
|
396
|
+
| '2816:352'
|
|
397
|
+
| '2048:2048'
|
|
398
|
+
| '1696:2528'
|
|
399
|
+
| '2528:1696'
|
|
400
|
+
| '1792:2400'
|
|
401
|
+
| '2400:1792'
|
|
402
|
+
| '1856:2304'
|
|
403
|
+
| '2304:1856'
|
|
404
|
+
| '1536:2752'
|
|
405
|
+
| '2752:1536'
|
|
406
|
+
| '3168:1344'
|
|
407
|
+
| '1024:4096'
|
|
408
|
+
| '4096:1024'
|
|
409
|
+
| '704:5632'
|
|
410
|
+
| '5632:704'
|
|
411
|
+
| '4096:4096'
|
|
412
|
+
| '3392:5056'
|
|
413
|
+
| '5056:3392'
|
|
414
|
+
| '3584:4800'
|
|
415
|
+
| '4800:3584'
|
|
416
|
+
| '3712:4608'
|
|
417
|
+
| '4608:3712'
|
|
418
|
+
| '3072:5504'
|
|
419
|
+
| '5504:3072'
|
|
420
|
+
| '6336:2688'
|
|
421
|
+
| '2048:8192'
|
|
422
|
+
| '8192:2048'
|
|
423
|
+
| '1408:11264'
|
|
424
|
+
| '11264:1408';
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
428
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
429
|
+
* once.
|
|
430
|
+
*/
|
|
431
|
+
outputCount?: 1 | 4;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
435
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
436
|
+
* character consistency, and up to nine of those images can pass
|
|
437
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
438
|
+
* output.
|
|
439
|
+
*/
|
|
440
|
+
referenceImages?: Array<GeminiImage3_1Flash.ReferenceImage>;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export namespace GeminiImage3_1Flash {
|
|
444
|
+
export interface ReferenceImage {
|
|
445
|
+
/**
|
|
446
|
+
* A HTTPS URL.
|
|
447
|
+
*/
|
|
448
|
+
uri: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
452
|
+
* object that appears in the output.
|
|
453
|
+
*/
|
|
454
|
+
subject?: 'object' | 'human';
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
458
|
+
* prompt text.
|
|
459
|
+
*/
|
|
460
|
+
tag?: string;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
355
464
|
export interface Gemini2_5Flash {
|
|
356
465
|
model: 'gemini_2.5_flash';
|
|
357
466
|
|
|
@@ -32,6 +32,8 @@ export type TextToVideoCreateParams =
|
|
|
32
32
|
| TextToVideoCreateParams.Gen4_5
|
|
33
33
|
| TextToVideoCreateParams.Veo3_1
|
|
34
34
|
| TextToVideoCreateParams.Veo3_1Fast
|
|
35
|
+
| TextToVideoCreateParams.Happyhorse1_0
|
|
36
|
+
| TextToVideoCreateParams.Seedance2
|
|
35
37
|
| TextToVideoCreateParams.Veo3;
|
|
36
38
|
|
|
37
39
|
export declare namespace TextToVideoCreateParams {
|
|
@@ -131,6 +133,139 @@ export declare namespace TextToVideoCreateParams {
|
|
|
131
133
|
duration?: 4 | 6 | 8;
|
|
132
134
|
}
|
|
133
135
|
|
|
136
|
+
export interface Happyhorse1_0 {
|
|
137
|
+
model: 'happyhorse_1_0';
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A non-empty string up to 2500 characters (measured in UTF-16 code units). This
|
|
141
|
+
* should describe in detail what should appear in the output.
|
|
142
|
+
*/
|
|
143
|
+
promptText: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The number of seconds of duration for the output video.
|
|
147
|
+
*/
|
|
148
|
+
duration?: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The resolution of the output video.
|
|
152
|
+
*/
|
|
153
|
+
ratio?:
|
|
154
|
+
| '1280:720'
|
|
155
|
+
| '720:1280'
|
|
156
|
+
| '960:960'
|
|
157
|
+
| '1108:832'
|
|
158
|
+
| '832:1108'
|
|
159
|
+
| '1920:1080'
|
|
160
|
+
| '1080:1920'
|
|
161
|
+
| '1440:1440'
|
|
162
|
+
| '1662:1248'
|
|
163
|
+
| '1248:1662';
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface Seedance2 {
|
|
167
|
+
model: 'seedance2';
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
171
|
+
* should describe in detail what should appear in the output.
|
|
172
|
+
*/
|
|
173
|
+
promptText: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
177
|
+
*/
|
|
178
|
+
audio?: boolean;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The number of seconds of duration for the output video.
|
|
182
|
+
*/
|
|
183
|
+
duration?: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The resolution of the output video.
|
|
187
|
+
*/
|
|
188
|
+
ratio?:
|
|
189
|
+
| '992:432'
|
|
190
|
+
| '864:496'
|
|
191
|
+
| '752:560'
|
|
192
|
+
| '640:640'
|
|
193
|
+
| '560:752'
|
|
194
|
+
| '496:864'
|
|
195
|
+
| '1470:630'
|
|
196
|
+
| '1280:720'
|
|
197
|
+
| '1112:834'
|
|
198
|
+
| '960:960'
|
|
199
|
+
| '834:1112'
|
|
200
|
+
| '720:1280'
|
|
201
|
+
| '2206:946'
|
|
202
|
+
| '1920:1080'
|
|
203
|
+
| '1664:1248'
|
|
204
|
+
| '1440:1440'
|
|
205
|
+
| '1248:1664'
|
|
206
|
+
| '1080:1920';
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
210
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
211
|
+
*/
|
|
212
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* An optional array of image references (up to 9). See
|
|
216
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
217
|
+
*/
|
|
218
|
+
references?: Array<Seedance2.Reference>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* An optional array of video references. The combined duration across all video
|
|
222
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
223
|
+
* video inputs for more information.
|
|
224
|
+
*/
|
|
225
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export namespace Seedance2 {
|
|
229
|
+
/**
|
|
230
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
231
|
+
* the output.
|
|
232
|
+
*/
|
|
233
|
+
export interface ReferenceAudio {
|
|
234
|
+
type: 'audio';
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* A HTTPS URL.
|
|
238
|
+
*/
|
|
239
|
+
uri: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface Reference {
|
|
243
|
+
/**
|
|
244
|
+
* A HTTPS URL.
|
|
245
|
+
*/
|
|
246
|
+
uri: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
250
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
251
|
+
*/
|
|
252
|
+
position?: 'first' | 'last';
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* A video reference allows the model to use the video as additional context for
|
|
257
|
+
* the output.
|
|
258
|
+
*/
|
|
259
|
+
export interface ReferenceVideo {
|
|
260
|
+
type: 'video';
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* A HTTPS URL.
|
|
264
|
+
*/
|
|
265
|
+
uri: string;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
134
269
|
export interface Veo3 {
|
|
135
270
|
/**
|
|
136
271
|
* The number of seconds of duration for the output video.
|
|
@@ -37,68 +37,303 @@ export interface VideoToVideoCreateResponse {
|
|
|
37
37
|
id: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export
|
|
41
|
-
|
|
40
|
+
export type VideoToVideoCreateParams =
|
|
41
|
+
| VideoToVideoCreateParams.Gen4Aleph
|
|
42
|
+
| VideoToVideoCreateParams.Aleph2
|
|
43
|
+
| VideoToVideoCreateParams.Seedance2;
|
|
42
44
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*/
|
|
47
|
-
promptText: string;
|
|
45
|
+
export declare namespace VideoToVideoCreateParams {
|
|
46
|
+
export interface Gen4Aleph {
|
|
47
|
+
model: 'gen4_aleph';
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
/**
|
|
50
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
51
|
+
* should describe in detail what should appear in the output.
|
|
52
|
+
*/
|
|
53
|
+
promptText: string;
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
/**
|
|
56
|
+
* A HTTPS URL.
|
|
57
|
+
*/
|
|
58
|
+
videoUri: string;
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
60
|
+
/**
|
|
61
|
+
* Settings that affect the behavior of the content moderation system.
|
|
62
|
+
*/
|
|
63
|
+
contentModeration?: Gen4Aleph.ContentModeration;
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
67
|
+
* video is determined by the input video.
|
|
68
|
+
*/
|
|
69
|
+
ratio?:
|
|
70
|
+
| '1280:720'
|
|
71
|
+
| '720:1280'
|
|
72
|
+
| '1104:832'
|
|
73
|
+
| '960:960'
|
|
74
|
+
| '832:1104'
|
|
75
|
+
| '1584:672'
|
|
76
|
+
| '848:480'
|
|
77
|
+
| '640:480';
|
|
70
78
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
seed?: number;
|
|
77
|
-
}
|
|
79
|
+
/**
|
|
80
|
+
* An array of references. Currently up to one reference is supported. See
|
|
81
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
82
|
+
*/
|
|
83
|
+
references?: Array<Gen4Aleph.Reference>;
|
|
78
84
|
|
|
79
|
-
export namespace VideoToVideoCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* Settings that affect the behavior of the content moderation system.
|
|
82
|
-
*/
|
|
83
|
-
export interface ContentModeration {
|
|
84
85
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
86
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
87
|
+
* get different results for the same other request parameters. Using the same seed
|
|
88
|
+
* integer for an identical request will produce similar results.
|
|
87
89
|
*/
|
|
88
|
-
|
|
90
|
+
seed?: number;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
export namespace Gen4Aleph {
|
|
94
|
+
/**
|
|
95
|
+
* Settings that affect the behavior of the content moderation system.
|
|
96
|
+
*/
|
|
97
|
+
export interface ContentModeration {
|
|
98
|
+
/**
|
|
99
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
100
|
+
* preventing generations that include recognizable public figures.
|
|
101
|
+
*/
|
|
102
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Passing an image reference allows the model to emulate the style or content of
|
|
107
|
+
* the reference in the output.
|
|
108
|
+
*/
|
|
109
|
+
export interface Reference {
|
|
110
|
+
type: 'image';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* A HTTPS URL.
|
|
114
|
+
*/
|
|
115
|
+
uri: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface Aleph2 {
|
|
120
|
+
model: 'aleph2';
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* A non-empty string up to 1000 characters describing what should appear in the
|
|
124
|
+
* output.
|
|
125
|
+
*/
|
|
126
|
+
promptText: string;
|
|
97
127
|
|
|
98
128
|
/**
|
|
99
129
|
* A HTTPS URL.
|
|
100
130
|
*/
|
|
101
|
-
|
|
131
|
+
videoUri: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Settings that affect the behavior of the content moderation system.
|
|
135
|
+
*/
|
|
136
|
+
contentModeration?: Aleph2.ContentModeration;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Timed guidance images placed at specific points in the input video. Up to 5
|
|
140
|
+
* keyframes.
|
|
141
|
+
*/
|
|
142
|
+
keyframes?: Array<Aleph2.UnionMember0 | Aleph2.UnionMember1>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* A list of up to 5 image keyframes for guiding the edit at specific points in the
|
|
146
|
+
* video.
|
|
147
|
+
*/
|
|
148
|
+
promptImage?: Array<Aleph2.PromptImage>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
152
|
+
* get different results for the same other request parameters. Using the same seed
|
|
153
|
+
* integer for an identical request will produce similar results.
|
|
154
|
+
*/
|
|
155
|
+
seed?: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export namespace Aleph2 {
|
|
159
|
+
/**
|
|
160
|
+
* Settings that affect the behavior of the content moderation system.
|
|
161
|
+
*/
|
|
162
|
+
export interface ContentModeration {
|
|
163
|
+
/**
|
|
164
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
165
|
+
* preventing generations that include recognizable public figures.
|
|
166
|
+
*/
|
|
167
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface UnionMember0 {
|
|
171
|
+
/**
|
|
172
|
+
* Absolute timestamp in seconds from the start of the input video when this
|
|
173
|
+
* guidance image should apply.
|
|
174
|
+
*/
|
|
175
|
+
seconds: number;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* A HTTPS URL.
|
|
179
|
+
*/
|
|
180
|
+
uri: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface UnionMember1 {
|
|
184
|
+
/**
|
|
185
|
+
* Position as a fraction [0.0, 1.0] of the input video duration when this guidance
|
|
186
|
+
* image should apply.
|
|
187
|
+
*/
|
|
188
|
+
at: number;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* A HTTPS URL.
|
|
192
|
+
*/
|
|
193
|
+
uri: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface PromptImage {
|
|
197
|
+
/**
|
|
198
|
+
* - `first` - Places the image at the start of the output video (timestamp 0).
|
|
199
|
+
* - `last` - Places the image at the end of the output video (timestamp =
|
|
200
|
+
* duration).
|
|
201
|
+
*/
|
|
202
|
+
position: 'first' | 'last' | PromptImage.TimestampPosition | PromptImage.RelativePosition;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* A HTTPS URL.
|
|
206
|
+
*/
|
|
207
|
+
uri: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export namespace PromptImage {
|
|
211
|
+
export interface TimestampPosition {
|
|
212
|
+
/**
|
|
213
|
+
* Absolute timestamp in seconds from the start of the output video.
|
|
214
|
+
*/
|
|
215
|
+
timestampSeconds: number;
|
|
216
|
+
|
|
217
|
+
type: 'timestamp';
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface RelativePosition {
|
|
221
|
+
/**
|
|
222
|
+
* Position as a fraction [0.0, 1.0] of the total video duration.
|
|
223
|
+
*/
|
|
224
|
+
positionPercentage: number;
|
|
225
|
+
|
|
226
|
+
type: 'position';
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface Seedance2 {
|
|
232
|
+
model: 'seedance2';
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* A HTTPS URL.
|
|
236
|
+
*/
|
|
237
|
+
promptVideo: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
241
|
+
*/
|
|
242
|
+
audio?: boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* The number of seconds of duration for the output video.
|
|
246
|
+
*/
|
|
247
|
+
duration?: number;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
251
|
+
* the output video.
|
|
252
|
+
*/
|
|
253
|
+
promptText?: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The resolution of the output video.
|
|
257
|
+
*/
|
|
258
|
+
ratio?:
|
|
259
|
+
| '992:432'
|
|
260
|
+
| '864:496'
|
|
261
|
+
| '752:560'
|
|
262
|
+
| '640:640'
|
|
263
|
+
| '560:752'
|
|
264
|
+
| '496:864'
|
|
265
|
+
| '1470:630'
|
|
266
|
+
| '1280:720'
|
|
267
|
+
| '1112:834'
|
|
268
|
+
| '960:960'
|
|
269
|
+
| '834:1112'
|
|
270
|
+
| '720:1280'
|
|
271
|
+
| '2206:946'
|
|
272
|
+
| '1920:1080'
|
|
273
|
+
| '1664:1248'
|
|
274
|
+
| '1440:1440'
|
|
275
|
+
| '1248:1664'
|
|
276
|
+
| '1080:1920';
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
280
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
281
|
+
*/
|
|
282
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* An optional array of image references (up to 9). See
|
|
286
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
287
|
+
*/
|
|
288
|
+
references?: Array<Seedance2.Reference>;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* An optional array of video references. The combined duration across all video
|
|
292
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
293
|
+
* video inputs for more information.
|
|
294
|
+
*/
|
|
295
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export namespace Seedance2 {
|
|
299
|
+
/**
|
|
300
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
301
|
+
* the output.
|
|
302
|
+
*/
|
|
303
|
+
export interface ReferenceAudio {
|
|
304
|
+
type: 'audio';
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* A HTTPS URL.
|
|
308
|
+
*/
|
|
309
|
+
uri: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface Reference {
|
|
313
|
+
/**
|
|
314
|
+
* A HTTPS URL.
|
|
315
|
+
*/
|
|
316
|
+
uri: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
320
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
321
|
+
*/
|
|
322
|
+
position?: 'first' | 'last';
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* A video reference allows the model to use the video as additional context for
|
|
327
|
+
* the output.
|
|
328
|
+
*/
|
|
329
|
+
export interface ReferenceVideo {
|
|
330
|
+
type: 'video';
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A HTTPS URL.
|
|
334
|
+
*/
|
|
335
|
+
uri: string;
|
|
336
|
+
}
|
|
102
337
|
}
|
|
103
338
|
}
|
|
104
339
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.23.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.23.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|