@runwayml/sdk 3.22.0 → 3.24.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.
@@ -43,6 +43,9 @@ export type ImageToVideoCreateParams =
43
43
  | ImageToVideoCreateParams.Veo3_1
44
44
  | ImageToVideoCreateParams.Gen3aTurbo
45
45
  | ImageToVideoCreateParams.Veo3_1Fast
46
+ | ImageToVideoCreateParams.Happyhorse1_0
47
+ | ImageToVideoCreateParams.Seedance2
48
+ | ImageToVideoCreateParams.Seedance2Fast
46
49
  | ImageToVideoCreateParams.Veo3;
47
50
 
48
51
  export declare namespace ImageToVideoCreateParams {
@@ -333,6 +336,207 @@ export declare namespace ImageToVideoCreateParams {
333
336
  }
334
337
  }
335
338
 
339
+ export interface Happyhorse1_0 {
340
+ model: 'happyhorse_1_0';
341
+
342
+ /**
343
+ * A HTTPS URL.
344
+ */
345
+ promptImage: string | Array<Happyhorse1_0.PromptImage>;
346
+
347
+ /**
348
+ * The number of seconds of duration for the output video.
349
+ */
350
+ duration?: number;
351
+
352
+ /**
353
+ * A string up to 2500 characters (measured in UTF-16 code units) describing motion
354
+ * or changes in the output video.
355
+ */
356
+ promptText?: string;
357
+
358
+ /**
359
+ * Output quality tier. Output aspect ratio follows the input image.
360
+ */
361
+ resolution?: '720P' | '1080P';
362
+ }
363
+
364
+ export namespace Happyhorse1_0 {
365
+ export interface PromptImage {
366
+ /**
367
+ * The position of the image in the output video. "first" will use the image as the
368
+ * first frame of the video.
369
+ */
370
+ position: 'first';
371
+
372
+ /**
373
+ * A HTTPS URL.
374
+ */
375
+ uri: string;
376
+ }
377
+ }
378
+
379
+ export interface Seedance2 {
380
+ model: 'seedance2';
381
+
382
+ /**
383
+ * An image or array of images. Use position `first`/`last` for keyframe mode, or
384
+ * omit position for reference images. The two modes cannot be mixed.
385
+ */
386
+ promptImage: string | Array<Seedance2.PromptImage>;
387
+
388
+ /**
389
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
390
+ */
391
+ audio?: boolean;
392
+
393
+ /**
394
+ * The number of seconds of duration for the output video.
395
+ */
396
+ duration?: number;
397
+
398
+ /**
399
+ * An optional text prompt up to 3500 characters describing what should appear in
400
+ * the output.
401
+ */
402
+ promptText?: string;
403
+
404
+ /**
405
+ * The resolution of the output video.
406
+ */
407
+ ratio?:
408
+ | '992:432'
409
+ | '864:496'
410
+ | '752:560'
411
+ | '640:640'
412
+ | '560:752'
413
+ | '496:864'
414
+ | '1470:630'
415
+ | '1280:720'
416
+ | '1112:834'
417
+ | '960:960'
418
+ | '834:1112'
419
+ | '720:1280'
420
+ | '2206:946'
421
+ | '1920:1080'
422
+ | '1664:1248'
423
+ | '1440:1440'
424
+ | '1248:1664'
425
+ | '1080:1920';
426
+
427
+ /**
428
+ * An optional array of audio references. Audio references require a text prompt,
429
+ * and the total combined duration must not exceed 15 seconds.
430
+ */
431
+ referenceAudio?: Array<Seedance2.ReferenceAudio>;
432
+ }
433
+
434
+ export namespace Seedance2 {
435
+ export interface PromptImage {
436
+ /**
437
+ * A HTTPS URL.
438
+ */
439
+ uri: string;
440
+
441
+ /**
442
+ * The position of the image in the output video. "first" will use the image as the
443
+ * first frame, "last" as the last frame. Omit for a reference image.
444
+ */
445
+ position?: 'first' | 'last';
446
+ }
447
+
448
+ /**
449
+ * An audio reference allows the model to use the audio as additional context for
450
+ * the output.
451
+ */
452
+ export interface ReferenceAudio {
453
+ type: 'audio';
454
+
455
+ /**
456
+ * A HTTPS URL.
457
+ */
458
+ uri: string;
459
+ }
460
+ }
461
+
462
+ export interface Seedance2Fast {
463
+ model: 'seedance2_fast';
464
+
465
+ /**
466
+ * An image or array of images. Use position `first`/`last` for keyframe mode, or
467
+ * omit position for reference images. The two modes cannot be mixed.
468
+ */
469
+ promptImage: string | Array<Seedance2Fast.PromptImage>;
470
+
471
+ /**
472
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
473
+ */
474
+ audio?: boolean;
475
+
476
+ /**
477
+ * The number of seconds of duration for the output video.
478
+ */
479
+ duration?: number;
480
+
481
+ /**
482
+ * An optional text prompt up to 3500 characters describing what should appear in
483
+ * the output.
484
+ */
485
+ promptText?: string;
486
+
487
+ /**
488
+ * The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p
489
+ * only.
490
+ */
491
+ ratio?:
492
+ | '992:432'
493
+ | '864:496'
494
+ | '752:560'
495
+ | '640:640'
496
+ | '560:752'
497
+ | '496:864'
498
+ | '1470:630'
499
+ | '1280:720'
500
+ | '1112:834'
501
+ | '960:960'
502
+ | '834:1112'
503
+ | '720:1280';
504
+
505
+ /**
506
+ * An optional array of audio references. Audio references require a text prompt,
507
+ * and the total combined duration must not exceed 15 seconds.
508
+ */
509
+ referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
510
+ }
511
+
512
+ export namespace Seedance2Fast {
513
+ export interface PromptImage {
514
+ /**
515
+ * A HTTPS URL.
516
+ */
517
+ uri: string;
518
+
519
+ /**
520
+ * The position of the image in the output video. "first" will use the image as the
521
+ * first frame, "last" as the last frame. Omit for a reference image.
522
+ */
523
+ position?: 'first' | 'last';
524
+ }
525
+
526
+ /**
527
+ * An audio reference allows the model to use the audio as additional context for
528
+ * the output.
529
+ */
530
+ export interface ReferenceAudio {
531
+ type: 'audio';
532
+
533
+ /**
534
+ * A HTTPS URL.
535
+ */
536
+ uri: string;
537
+ }
538
+ }
539
+
336
540
  export interface Veo3 {
337
541
  /**
338
542
  * The number of seconds of duration for the output video.
@@ -127,6 +127,7 @@ export interface OrganizationRetrieveUsageResponse {
127
127
  | 'gwm1_avatar_async_text_to_video'
128
128
  | 'voice_processing'
129
129
  | 'seedance2'
130
+ | 'seedance2_fast'
130
131
  | 'magnific_precision_upscaler_v2'
131
132
  | 'kling2.5_turbo_pro'
132
133
  | 'kling3.0_pro'
@@ -194,6 +195,7 @@ export namespace OrganizationRetrieveUsageResponse {
194
195
  | 'gwm1_avatar_async_text_to_video'
195
196
  | 'voice_processing'
196
197
  | 'seedance2'
198
+ | 'seedance2_fast'
197
199
  | 'magnific_precision_upscaler_v2'
198
200
  | 'kling2.5_turbo_pro'
199
201
  | 'kling3.0_pro'
@@ -32,6 +32,9 @@ 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
37
+ | TextToVideoCreateParams.Seedance2Fast
35
38
  | TextToVideoCreateParams.Veo3;
36
39
 
37
40
  export declare namespace TextToVideoCreateParams {
@@ -131,6 +134,237 @@ export declare namespace TextToVideoCreateParams {
131
134
  duration?: 4 | 6 | 8;
132
135
  }
133
136
 
137
+ export interface Happyhorse1_0 {
138
+ model: 'happyhorse_1_0';
139
+
140
+ /**
141
+ * A non-empty string up to 2500 characters (measured in UTF-16 code units). This
142
+ * should describe in detail what should appear in the output.
143
+ */
144
+ promptText: string;
145
+
146
+ /**
147
+ * The number of seconds of duration for the output video.
148
+ */
149
+ duration?: number;
150
+
151
+ /**
152
+ * The resolution of the output video.
153
+ */
154
+ ratio?:
155
+ | '1280:720'
156
+ | '720:1280'
157
+ | '960:960'
158
+ | '1108:832'
159
+ | '832:1108'
160
+ | '1920:1080'
161
+ | '1080:1920'
162
+ | '1440:1440'
163
+ | '1662:1248'
164
+ | '1248:1662';
165
+ }
166
+
167
+ export interface Seedance2 {
168
+ model: 'seedance2';
169
+
170
+ /**
171
+ * A non-empty text prompt up to 3500 characters describing what should appear in
172
+ * the output.
173
+ */
174
+ promptText: string;
175
+
176
+ /**
177
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
178
+ */
179
+ audio?: boolean;
180
+
181
+ /**
182
+ * The number of seconds of duration for the output video.
183
+ */
184
+ duration?: number;
185
+
186
+ /**
187
+ * The resolution of the output video.
188
+ */
189
+ ratio?:
190
+ | '992:432'
191
+ | '864:496'
192
+ | '752:560'
193
+ | '640:640'
194
+ | '560:752'
195
+ | '496:864'
196
+ | '1470:630'
197
+ | '1280:720'
198
+ | '1112:834'
199
+ | '960:960'
200
+ | '834:1112'
201
+ | '720:1280'
202
+ | '2206:946'
203
+ | '1920:1080'
204
+ | '1664:1248'
205
+ | '1440:1440'
206
+ | '1248:1664'
207
+ | '1080:1920';
208
+
209
+ /**
210
+ * An optional array of audio references. Audio references require a text prompt,
211
+ * and the total combined duration must not exceed 15 seconds.
212
+ */
213
+ referenceAudio?: Array<Seedance2.ReferenceAudio>;
214
+
215
+ /**
216
+ * An optional array of image references (up to 9). See
217
+ * [our docs](/assets/inputs#images) on image inputs for more information.
218
+ */
219
+ references?: Array<Seedance2.Reference>;
220
+
221
+ /**
222
+ * An optional array of video references. The combined duration across all video
223
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
224
+ * video inputs for more information.
225
+ */
226
+ referenceVideos?: Array<Seedance2.ReferenceVideo>;
227
+ }
228
+
229
+ export namespace Seedance2 {
230
+ /**
231
+ * An audio reference allows the model to use the audio as additional context for
232
+ * the output.
233
+ */
234
+ export interface ReferenceAudio {
235
+ type: 'audio';
236
+
237
+ /**
238
+ * A HTTPS URL.
239
+ */
240
+ uri: string;
241
+ }
242
+
243
+ export interface Reference {
244
+ /**
245
+ * A HTTPS URL.
246
+ */
247
+ uri: string;
248
+
249
+ /**
250
+ * The position of the image in the output video. "first" will use the image as the
251
+ * first frame, "last" as the last frame. Omit for a reference image.
252
+ */
253
+ position?: 'first' | 'last';
254
+ }
255
+
256
+ /**
257
+ * A video reference allows the model to use the video as additional context for
258
+ * the output.
259
+ */
260
+ export interface ReferenceVideo {
261
+ type: 'video';
262
+
263
+ /**
264
+ * A HTTPS URL.
265
+ */
266
+ uri: string;
267
+ }
268
+ }
269
+
270
+ export interface Seedance2Fast {
271
+ model: 'seedance2_fast';
272
+
273
+ /**
274
+ * A non-empty text prompt up to 3500 characters describing what should appear in
275
+ * the output.
276
+ */
277
+ promptText: string;
278
+
279
+ /**
280
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
281
+ */
282
+ audio?: boolean;
283
+
284
+ /**
285
+ * The number of seconds of duration for the output video.
286
+ */
287
+ duration?: number;
288
+
289
+ /**
290
+ * The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p
291
+ * only.
292
+ */
293
+ ratio?:
294
+ | '992:432'
295
+ | '864:496'
296
+ | '752:560'
297
+ | '640:640'
298
+ | '560:752'
299
+ | '496:864'
300
+ | '1470:630'
301
+ | '1280:720'
302
+ | '1112:834'
303
+ | '960:960'
304
+ | '834:1112'
305
+ | '720:1280';
306
+
307
+ /**
308
+ * An optional array of audio references. Audio references require a text prompt,
309
+ * and the total combined duration must not exceed 15 seconds.
310
+ */
311
+ referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
312
+
313
+ /**
314
+ * An optional array of image references (up to 9). See
315
+ * [our docs](/assets/inputs#images) on image inputs for more information.
316
+ */
317
+ references?: Array<Seedance2Fast.Reference>;
318
+
319
+ /**
320
+ * An optional array of video references. The combined duration across all video
321
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
322
+ * video inputs for more information.
323
+ */
324
+ referenceVideos?: Array<Seedance2Fast.ReferenceVideo>;
325
+ }
326
+
327
+ export namespace Seedance2Fast {
328
+ /**
329
+ * An audio reference allows the model to use the audio as additional context for
330
+ * the output.
331
+ */
332
+ export interface ReferenceAudio {
333
+ type: 'audio';
334
+
335
+ /**
336
+ * A HTTPS URL.
337
+ */
338
+ uri: string;
339
+ }
340
+
341
+ export interface Reference {
342
+ /**
343
+ * A HTTPS URL.
344
+ */
345
+ uri: string;
346
+
347
+ /**
348
+ * The position of the image in the output video. "first" will use the image as the
349
+ * first frame, "last" as the last frame. Omit for a reference image.
350
+ */
351
+ position?: 'first' | 'last';
352
+ }
353
+
354
+ /**
355
+ * A video reference allows the model to use the video as additional context for
356
+ * the output.
357
+ */
358
+ export interface ReferenceVideo {
359
+ type: 'video';
360
+
361
+ /**
362
+ * A HTTPS URL.
363
+ */
364
+ uri: string;
365
+ }
366
+ }
367
+
134
368
  export interface Veo3 {
135
369
  /**
136
370
  * The number of seconds of duration for the output video.
@@ -37,7 +37,11 @@ export interface VideoToVideoCreateResponse {
37
37
  id: string;
38
38
  }
39
39
 
40
- export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2;
40
+ export type VideoToVideoCreateParams =
41
+ | VideoToVideoCreateParams.Gen4Aleph
42
+ | VideoToVideoCreateParams.Aleph2
43
+ | VideoToVideoCreateParams.Seedance2
44
+ | VideoToVideoCreateParams.Seedance2Fast;
41
45
 
42
46
  export declare namespace VideoToVideoCreateParams {
43
47
  export interface Gen4Aleph {
@@ -224,6 +228,217 @@ export declare namespace VideoToVideoCreateParams {
224
228
  }
225
229
  }
226
230
  }
231
+
232
+ export interface Seedance2 {
233
+ model: 'seedance2';
234
+
235
+ /**
236
+ * A HTTPS URL.
237
+ */
238
+ promptVideo: string;
239
+
240
+ /**
241
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
242
+ */
243
+ audio?: boolean;
244
+
245
+ /**
246
+ * The number of seconds of duration for the output video.
247
+ */
248
+ duration?: number;
249
+
250
+ /**
251
+ * An optional text prompt up to 3500 characters describing what should appear in
252
+ * the output.
253
+ */
254
+ promptText?: string;
255
+
256
+ /**
257
+ * The resolution of the output video.
258
+ */
259
+ ratio?:
260
+ | '992:432'
261
+ | '864:496'
262
+ | '752:560'
263
+ | '640:640'
264
+ | '560:752'
265
+ | '496:864'
266
+ | '1470:630'
267
+ | '1280:720'
268
+ | '1112:834'
269
+ | '960:960'
270
+ | '834:1112'
271
+ | '720:1280'
272
+ | '2206:946'
273
+ | '1920:1080'
274
+ | '1664:1248'
275
+ | '1440:1440'
276
+ | '1248:1664'
277
+ | '1080:1920';
278
+
279
+ /**
280
+ * An optional array of audio references. Audio references require a text prompt,
281
+ * and the total combined duration must not exceed 15 seconds.
282
+ */
283
+ referenceAudio?: Array<Seedance2.ReferenceAudio>;
284
+
285
+ /**
286
+ * An optional array of image references (up to 9). See
287
+ * [our docs](/assets/inputs#images) on image inputs for more information.
288
+ */
289
+ references?: Array<Seedance2.Reference>;
290
+
291
+ /**
292
+ * An optional array of video references. The combined duration across all video
293
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
294
+ * video inputs for more information.
295
+ */
296
+ referenceVideos?: Array<Seedance2.ReferenceVideo>;
297
+ }
298
+
299
+ export namespace Seedance2 {
300
+ /**
301
+ * An audio reference allows the model to use the audio as additional context for
302
+ * the output.
303
+ */
304
+ export interface ReferenceAudio {
305
+ type: 'audio';
306
+
307
+ /**
308
+ * A HTTPS URL.
309
+ */
310
+ uri: string;
311
+ }
312
+
313
+ export interface Reference {
314
+ /**
315
+ * A HTTPS URL.
316
+ */
317
+ uri: string;
318
+
319
+ /**
320
+ * The position of the image in the output video. "first" will use the image as the
321
+ * first frame, "last" as the last frame. Omit for a reference image.
322
+ */
323
+ position?: 'first' | 'last';
324
+ }
325
+
326
+ /**
327
+ * A video reference allows the model to use the video as additional context for
328
+ * the output.
329
+ */
330
+ export interface ReferenceVideo {
331
+ type: 'video';
332
+
333
+ /**
334
+ * A HTTPS URL.
335
+ */
336
+ uri: string;
337
+ }
338
+ }
339
+
340
+ export interface Seedance2Fast {
341
+ model: 'seedance2_fast';
342
+
343
+ /**
344
+ * A HTTPS URL.
345
+ */
346
+ promptVideo: string;
347
+
348
+ /**
349
+ * Whether to generate audio for the video. Audio inclusion affects pricing.
350
+ */
351
+ audio?: boolean;
352
+
353
+ /**
354
+ * The number of seconds of duration for the output video.
355
+ */
356
+ duration?: number;
357
+
358
+ /**
359
+ * An optional text prompt up to 3500 characters describing what should appear in
360
+ * the output.
361
+ */
362
+ promptText?: string;
363
+
364
+ /**
365
+ * The resolution of the output video. Seedance 2.0 Fast supports 480p and 720p
366
+ * only.
367
+ */
368
+ ratio?:
369
+ | '992:432'
370
+ | '864:496'
371
+ | '752:560'
372
+ | '640:640'
373
+ | '560:752'
374
+ | '496:864'
375
+ | '1470:630'
376
+ | '1280:720'
377
+ | '1112:834'
378
+ | '960:960'
379
+ | '834:1112'
380
+ | '720:1280';
381
+
382
+ /**
383
+ * An optional array of audio references. Audio references require a text prompt,
384
+ * and the total combined duration must not exceed 15 seconds.
385
+ */
386
+ referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
387
+
388
+ /**
389
+ * An optional array of image references (up to 9). See
390
+ * [our docs](/assets/inputs#images) on image inputs for more information.
391
+ */
392
+ references?: Array<Seedance2Fast.Reference>;
393
+
394
+ /**
395
+ * An optional array of video references. The combined duration across all video
396
+ * references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
397
+ * video inputs for more information.
398
+ */
399
+ referenceVideos?: Array<Seedance2Fast.ReferenceVideo>;
400
+ }
401
+
402
+ export namespace Seedance2Fast {
403
+ /**
404
+ * An audio reference allows the model to use the audio as additional context for
405
+ * the output.
406
+ */
407
+ export interface ReferenceAudio {
408
+ type: 'audio';
409
+
410
+ /**
411
+ * A HTTPS URL.
412
+ */
413
+ uri: string;
414
+ }
415
+
416
+ export interface Reference {
417
+ /**
418
+ * A HTTPS URL.
419
+ */
420
+ uri: string;
421
+
422
+ /**
423
+ * The position of the image in the output video. "first" will use the image as the
424
+ * first frame, "last" as the last frame. Omit for a reference image.
425
+ */
426
+ position?: 'first' | 'last';
427
+ }
428
+
429
+ /**
430
+ * A video reference allows the model to use the video as additional context for
431
+ * the output.
432
+ */
433
+ export interface ReferenceVideo {
434
+ type: 'video';
435
+
436
+ /**
437
+ * A HTTPS URL.
438
+ */
439
+ uri: string;
440
+ }
441
+ }
227
442
  }
228
443
 
229
444
  export declare namespace VideoToVideo {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.22.0'; // x-release-please-version
1
+ export const VERSION = '3.24.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.22.0";
1
+ export declare const VERSION = "3.24.0";
2
2
  //# sourceMappingURL=version.d.mts.map