@runwayml/sdk 4.22.0 → 4.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.
- package/CHANGELOG.md +15 -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/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/generate/image.d.mts +6 -4
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +6 -4
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +683 -73
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +683 -73
- package/resources/image-to-video.d.ts.map +1 -1
- 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/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +105 -80
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +105 -80
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +6 -4
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +6 -4
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/routers.d.mts +14 -10
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +14 -10
- package/resources/routers.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +28 -1
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +28 -1
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/tasks.d.mts +7 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +7 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +7 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +7 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +238 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +238 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +492 -81
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +492 -81
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-audio.d.mts +84 -0
- package/resources/video-to-audio.d.mts.map +1 -0
- package/resources/video-to-audio.d.ts +84 -0
- package/resources/video-to-audio.d.ts.map +1 -0
- package/resources/video-to-audio.js +29 -0
- package/resources/video-to-audio.js.map +1 -0
- package/resources/video-to-audio.mjs +25 -0
- package/resources/video-to-audio.mjs.map +1 -0
- package/resources/video-to-video.d.mts +277 -20
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +277 -20
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +16 -0
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/generate/image.ts +6 -4
- package/src/resources/image-to-video.ts +836 -111
- package/src/resources/index.ts +5 -0
- package/src/resources/organization/organization.ts +20 -0
- package/src/resources/organization/webapp/audit-logs.ts +142 -78
- package/src/resources/organization/webapp/webapp.ts +6 -4
- package/src/resources/routers.ts +14 -10
- package/src/resources/sound-effect.ts +35 -0
- package/src/resources/tasks.ts +7 -0
- package/src/resources/text-to-image.ts +406 -0
- package/src/resources/text-to-video.ts +621 -114
- package/src/resources/video-to-audio.ts +109 -0
- package/src/resources/video-to-video.ts +335 -30
- 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
|
@@ -59,19 +59,27 @@ export type TextToVideoCreateParams =
|
|
|
59
59
|
| TextToVideoCreateParams.Gen4_5
|
|
60
60
|
| TextToVideoCreateParams.Veo3_1
|
|
61
61
|
| TextToVideoCreateParams.Veo3_1Fast
|
|
62
|
+
| TextToVideoCreateParams.KlingO3_4k
|
|
62
63
|
| TextToVideoCreateParams.Hailuo3
|
|
64
|
+
| TextToVideoCreateParams.Kling3_0_4k
|
|
63
65
|
| TextToVideoCreateParams.Happyhorse1_0
|
|
66
|
+
| TextToVideoCreateParams.Kling2_5TurboPro
|
|
67
|
+
| TextToVideoCreateParams.Kling3_0Pro
|
|
68
|
+
| TextToVideoCreateParams.Kling3_0Standard
|
|
69
|
+
| TextToVideoCreateParams.KlingO3Pro
|
|
70
|
+
| TextToVideoCreateParams.KlingO3Standard
|
|
64
71
|
| TextToVideoCreateParams.Seedance2
|
|
65
72
|
| TextToVideoCreateParams.Seedance2Fast
|
|
66
73
|
| TextToVideoCreateParams.Seedance2Mini
|
|
67
74
|
| TextToVideoCreateParams.GeminiOmniFlash
|
|
68
|
-
| TextToVideoCreateParams.Seedance2_5
|
|
69
75
|
| TextToVideoCreateParams.GrokImagine1_5
|
|
70
76
|
| TextToVideoCreateParams.Wan3
|
|
71
77
|
| TextToVideoCreateParams.GeminiOmniFlash1_1
|
|
72
78
|
| TextToVideoCreateParams.Wan3Prime
|
|
73
79
|
| TextToVideoCreateParams.H3Max
|
|
74
|
-
| TextToVideoCreateParams.
|
|
80
|
+
| TextToVideoCreateParams.Seedance2_5
|
|
81
|
+
| TextToVideoCreateParams.GrokImagine1_5Lite
|
|
82
|
+
| TextToVideoCreateParams.Kling4;
|
|
75
83
|
|
|
76
84
|
export declare namespace TextToVideoCreateParams {
|
|
77
85
|
export interface Gen4_5 {
|
|
@@ -243,6 +251,70 @@ export declare namespace TextToVideoCreateParams {
|
|
|
243
251
|
seed?: number;
|
|
244
252
|
}
|
|
245
253
|
|
|
254
|
+
export interface KlingO3_4k {
|
|
255
|
+
model: 'klingO3_4k';
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The resolution of the output video.
|
|
259
|
+
*/
|
|
260
|
+
ratio: '3840:2160' | '2160:3840' | '2880:2880';
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Whether to generate audio for the video.
|
|
264
|
+
*/
|
|
265
|
+
audio?: boolean;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The number of seconds of duration for the output video.
|
|
269
|
+
*/
|
|
270
|
+
duration?: number;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* A text prompt describing what should appear in the output video.
|
|
274
|
+
*/
|
|
275
|
+
promptText?: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Provider-specific settings for multishot video generation.
|
|
279
|
+
*/
|
|
280
|
+
providerSettings?: KlingO3_4k.ProviderSettings;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export namespace KlingO3_4k {
|
|
284
|
+
/**
|
|
285
|
+
* Provider-specific settings for multishot video generation.
|
|
286
|
+
*/
|
|
287
|
+
export interface ProviderSettings {
|
|
288
|
+
/**
|
|
289
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
290
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
291
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
292
|
+
* `"intelligence"`.
|
|
293
|
+
*/
|
|
294
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
298
|
+
* multiPrompt is provided.
|
|
299
|
+
*/
|
|
300
|
+
shotType?: 'intelligence' | 'customize';
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export namespace ProviderSettings {
|
|
304
|
+
export interface MultiPrompt {
|
|
305
|
+
/**
|
|
306
|
+
* Duration in seconds for this segment.
|
|
307
|
+
*/
|
|
308
|
+
duration: number;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* The text prompt for this segment.
|
|
312
|
+
*/
|
|
313
|
+
prompt: string;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
246
318
|
export interface Hailuo3 {
|
|
247
319
|
model: 'hailuo3';
|
|
248
320
|
|
|
@@ -331,6 +403,76 @@ export declare namespace TextToVideoCreateParams {
|
|
|
331
403
|
}
|
|
332
404
|
}
|
|
333
405
|
|
|
406
|
+
export interface Kling3_0_4k {
|
|
407
|
+
model: 'kling3.0_4k';
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* The resolution of the output video.
|
|
411
|
+
*/
|
|
412
|
+
ratio: '3840:2160' | '2160:3840' | '2880:2880';
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Whether to generate audio for the video.
|
|
416
|
+
*/
|
|
417
|
+
audio?: boolean;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
421
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
422
|
+
*/
|
|
423
|
+
cfgScale?: number;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The number of seconds of duration for the output video.
|
|
427
|
+
*/
|
|
428
|
+
duration?: number;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* A text prompt describing what should appear in the output video.
|
|
432
|
+
*/
|
|
433
|
+
promptText?: string;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Provider-specific settings for multishot video generation.
|
|
437
|
+
*/
|
|
438
|
+
providerSettings?: Kling3_0_4k.ProviderSettings;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export namespace Kling3_0_4k {
|
|
442
|
+
/**
|
|
443
|
+
* Provider-specific settings for multishot video generation.
|
|
444
|
+
*/
|
|
445
|
+
export interface ProviderSettings {
|
|
446
|
+
/**
|
|
447
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
448
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
449
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
450
|
+
* `"intelligence"`.
|
|
451
|
+
*/
|
|
452
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
456
|
+
* multiPrompt is provided.
|
|
457
|
+
*/
|
|
458
|
+
shotType?: 'intelligence' | 'customize';
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export namespace ProviderSettings {
|
|
462
|
+
export interface MultiPrompt {
|
|
463
|
+
/**
|
|
464
|
+
* Duration in seconds for this segment.
|
|
465
|
+
*/
|
|
466
|
+
duration: number;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* The text prompt for this segment.
|
|
470
|
+
*/
|
|
471
|
+
prompt: string;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
334
476
|
export interface Happyhorse1_0 {
|
|
335
477
|
model: 'happyhorse_1_0';
|
|
336
478
|
|
|
@@ -361,6 +503,296 @@ export declare namespace TextToVideoCreateParams {
|
|
|
361
503
|
| '1248:1662';
|
|
362
504
|
}
|
|
363
505
|
|
|
506
|
+
export interface Kling2_5TurboPro {
|
|
507
|
+
model: 'kling2.5_turbo_pro';
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* A text prompt describing what should appear in the output video.
|
|
511
|
+
*/
|
|
512
|
+
promptText: string;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
516
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
517
|
+
*/
|
|
518
|
+
cfgScale?: number;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* The duration of the output video in seconds. Defaults to 5.
|
|
522
|
+
*/
|
|
523
|
+
duration?: 5 | 10;
|
|
524
|
+
|
|
525
|
+
ratio?: '1920:1080' | '1440:1440' | '1080:1920' | '1280:720' | '720:720' | '720:1280';
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export interface Kling3_0Pro {
|
|
529
|
+
model: 'kling3.0_pro';
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* The resolution of the output video.
|
|
533
|
+
*/
|
|
534
|
+
ratio: '1920:1080' | '1080:1920' | '1440:1440';
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Whether to generate audio for the video.
|
|
538
|
+
*/
|
|
539
|
+
audio?: boolean;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
543
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
544
|
+
*/
|
|
545
|
+
cfgScale?: number;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* The number of seconds of duration for the output video.
|
|
549
|
+
*/
|
|
550
|
+
duration?: number;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* A text prompt describing what should appear in the output video.
|
|
554
|
+
*/
|
|
555
|
+
promptText?: string;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Provider-specific settings for multishot video generation.
|
|
559
|
+
*/
|
|
560
|
+
providerSettings?: Kling3_0Pro.ProviderSettings;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export namespace Kling3_0Pro {
|
|
564
|
+
/**
|
|
565
|
+
* Provider-specific settings for multishot video generation.
|
|
566
|
+
*/
|
|
567
|
+
export interface ProviderSettings {
|
|
568
|
+
/**
|
|
569
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
570
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
571
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
572
|
+
* `"intelligence"`.
|
|
573
|
+
*/
|
|
574
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
578
|
+
* multiPrompt is provided.
|
|
579
|
+
*/
|
|
580
|
+
shotType?: 'intelligence' | 'customize';
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export namespace ProviderSettings {
|
|
584
|
+
export interface MultiPrompt {
|
|
585
|
+
/**
|
|
586
|
+
* Duration in seconds for this segment.
|
|
587
|
+
*/
|
|
588
|
+
duration: number;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* The text prompt for this segment.
|
|
592
|
+
*/
|
|
593
|
+
prompt: string;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export interface Kling3_0Standard {
|
|
599
|
+
model: 'kling3.0_standard';
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* The resolution of the output video.
|
|
603
|
+
*/
|
|
604
|
+
ratio: '1280:720' | '720:1280' | '960:960';
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Whether to generate audio for the video.
|
|
608
|
+
*/
|
|
609
|
+
audio?: boolean;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Creativity/freedom scale for generation. 0 gives the model maximum creative
|
|
613
|
+
* freedom, 1 makes it follow the prompt most strictly. Defaults to 0.5.
|
|
614
|
+
*/
|
|
615
|
+
cfgScale?: number;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* The number of seconds of duration for the output video.
|
|
619
|
+
*/
|
|
620
|
+
duration?: number;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* A text prompt describing what should appear in the output video.
|
|
624
|
+
*/
|
|
625
|
+
promptText?: string;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Provider-specific settings for multishot video generation.
|
|
629
|
+
*/
|
|
630
|
+
providerSettings?: Kling3_0Standard.ProviderSettings;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export namespace Kling3_0Standard {
|
|
634
|
+
/**
|
|
635
|
+
* Provider-specific settings for multishot video generation.
|
|
636
|
+
*/
|
|
637
|
+
export interface ProviderSettings {
|
|
638
|
+
/**
|
|
639
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
640
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
641
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
642
|
+
* `"intelligence"`.
|
|
643
|
+
*/
|
|
644
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
648
|
+
* multiPrompt is provided.
|
|
649
|
+
*/
|
|
650
|
+
shotType?: 'intelligence' | 'customize';
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
export namespace ProviderSettings {
|
|
654
|
+
export interface MultiPrompt {
|
|
655
|
+
/**
|
|
656
|
+
* Duration in seconds for this segment.
|
|
657
|
+
*/
|
|
658
|
+
duration: number;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* The text prompt for this segment.
|
|
662
|
+
*/
|
|
663
|
+
prompt: string;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
export interface KlingO3Pro {
|
|
669
|
+
model: 'klingO3_pro';
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* The resolution of the output video.
|
|
673
|
+
*/
|
|
674
|
+
ratio: '1920:1080' | '1080:1920' | '1440:1440';
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Whether to generate audio for the video.
|
|
678
|
+
*/
|
|
679
|
+
audio?: boolean;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* The number of seconds of duration for the output video.
|
|
683
|
+
*/
|
|
684
|
+
duration?: number;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* A text prompt describing what should appear in the output video.
|
|
688
|
+
*/
|
|
689
|
+
promptText?: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Provider-specific settings for multishot video generation.
|
|
693
|
+
*/
|
|
694
|
+
providerSettings?: KlingO3Pro.ProviderSettings;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export namespace KlingO3Pro {
|
|
698
|
+
/**
|
|
699
|
+
* Provider-specific settings for multishot video generation.
|
|
700
|
+
*/
|
|
701
|
+
export interface ProviderSettings {
|
|
702
|
+
/**
|
|
703
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
704
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
705
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
706
|
+
* `"intelligence"`.
|
|
707
|
+
*/
|
|
708
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
712
|
+
* multiPrompt is provided.
|
|
713
|
+
*/
|
|
714
|
+
shotType?: 'intelligence' | 'customize';
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
export namespace ProviderSettings {
|
|
718
|
+
export interface MultiPrompt {
|
|
719
|
+
/**
|
|
720
|
+
* Duration in seconds for this segment.
|
|
721
|
+
*/
|
|
722
|
+
duration: number;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* The text prompt for this segment.
|
|
726
|
+
*/
|
|
727
|
+
prompt: string;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
export interface KlingO3Standard {
|
|
733
|
+
model: 'klingO3_standard';
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* The resolution of the output video.
|
|
737
|
+
*/
|
|
738
|
+
ratio: '1280:720' | '720:1280' | '960:960';
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Whether to generate audio for the video.
|
|
742
|
+
*/
|
|
743
|
+
audio?: boolean;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* The number of seconds of duration for the output video.
|
|
747
|
+
*/
|
|
748
|
+
duration?: number;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* A text prompt describing what should appear in the output video.
|
|
752
|
+
*/
|
|
753
|
+
promptText?: string;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Provider-specific settings for multishot video generation.
|
|
757
|
+
*/
|
|
758
|
+
providerSettings?: KlingO3Standard.ProviderSettings;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export namespace KlingO3Standard {
|
|
762
|
+
/**
|
|
763
|
+
* Provider-specific settings for multishot video generation.
|
|
764
|
+
*/
|
|
765
|
+
export interface ProviderSettings {
|
|
766
|
+
/**
|
|
767
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
768
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
769
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
770
|
+
* `"intelligence"`.
|
|
771
|
+
*/
|
|
772
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
776
|
+
* multiPrompt is provided.
|
|
777
|
+
*/
|
|
778
|
+
shotType?: 'intelligence' | 'customize';
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export namespace ProviderSettings {
|
|
782
|
+
export interface MultiPrompt {
|
|
783
|
+
/**
|
|
784
|
+
* Duration in seconds for this segment.
|
|
785
|
+
*/
|
|
786
|
+
duration: number;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* The text prompt for this segment.
|
|
790
|
+
*/
|
|
791
|
+
prompt: string;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
364
796
|
export interface Seedance2 {
|
|
365
797
|
model: 'seedance2';
|
|
366
798
|
|
|
@@ -713,118 +1145,6 @@ export declare namespace TextToVideoCreateParams {
|
|
|
713
1145
|
ratio?: '1280:720' | '720:1280';
|
|
714
1146
|
}
|
|
715
1147
|
|
|
716
|
-
export interface Seedance2_5 {
|
|
717
|
-
model: 'seedance2_5';
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Whether to generate audio for the video.
|
|
721
|
-
*/
|
|
722
|
-
audio?: boolean;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
726
|
-
* billed at the variant maximum up front; unused credits are refunded after the
|
|
727
|
-
* generation finishes.
|
|
728
|
-
*/
|
|
729
|
-
duration?: number | 'auto';
|
|
730
|
-
|
|
731
|
-
/**
|
|
732
|
-
* An optional text prompt up to 15000 characters describing what should appear in
|
|
733
|
-
* the output.
|
|
734
|
-
*/
|
|
735
|
-
promptText?: string;
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
739
|
-
*/
|
|
740
|
-
ratio?:
|
|
741
|
-
| '992:432'
|
|
742
|
-
| '854:480'
|
|
743
|
-
| '752:560'
|
|
744
|
-
| '640:640'
|
|
745
|
-
| '560:752'
|
|
746
|
-
| '480:854'
|
|
747
|
-
| '1470:630'
|
|
748
|
-
| '1280:720'
|
|
749
|
-
| '1112:834'
|
|
750
|
-
| '960:960'
|
|
751
|
-
| '834:1112'
|
|
752
|
-
| '720:1280'
|
|
753
|
-
| '2206:946'
|
|
754
|
-
| '1920:1080'
|
|
755
|
-
| '1664:1248'
|
|
756
|
-
| '1440:1440'
|
|
757
|
-
| '1248:1664'
|
|
758
|
-
| '1080:1920';
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* An optional array of audio references. The total combined duration must be less
|
|
762
|
-
* than 30 seconds.
|
|
763
|
-
*/
|
|
764
|
-
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* An optional array of image references (up to 30). See
|
|
768
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
769
|
-
*/
|
|
770
|
-
references?: Array<Seedance2_5.Reference>;
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* An optional array of video references. The combined duration across all video
|
|
774
|
-
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
775
|
-
* video inputs for more information.
|
|
776
|
-
*/
|
|
777
|
-
referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
|
|
778
|
-
|
|
779
|
-
/**
|
|
780
|
-
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
781
|
-
* get different results for the same other request parameters. Using the same seed
|
|
782
|
-
* integer for an identical request will produce similar results.
|
|
783
|
-
*/
|
|
784
|
-
seed?: number;
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
export namespace Seedance2_5 {
|
|
788
|
-
/**
|
|
789
|
-
* An audio reference allows the model to use the audio as additional context for
|
|
790
|
-
* the output.
|
|
791
|
-
*/
|
|
792
|
-
export interface ReferenceAudio {
|
|
793
|
-
type: 'audio';
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
797
|
-
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
798
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
799
|
-
*/
|
|
800
|
-
uri: string;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export interface Reference {
|
|
804
|
-
/**
|
|
805
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
806
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
807
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
808
|
-
*/
|
|
809
|
-
uri: string;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* A video reference allows the model to use the video as additional context for
|
|
814
|
-
* the output.
|
|
815
|
-
*/
|
|
816
|
-
export interface ReferenceVideo {
|
|
817
|
-
type: 'video';
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
821
|
-
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
822
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
823
|
-
*/
|
|
824
|
-
uri: string;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
1148
|
export interface GrokImagine1_5 {
|
|
829
1149
|
model: 'grok_imagine_1_5';
|
|
830
1150
|
|
|
@@ -1180,6 +1500,140 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1180
1500
|
seed?: number;
|
|
1181
1501
|
}
|
|
1182
1502
|
|
|
1503
|
+
export interface Seedance2_5 {
|
|
1504
|
+
model: 'seedance2_5';
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Whether to generate audio for the video. Defaults to `true`.
|
|
1508
|
+
*/
|
|
1509
|
+
audio?: boolean;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Generate a cheap 480p preview instead of a full-quality video. The returned task
|
|
1513
|
+
* ID can later be enhanced to a 1080p video with the same content by passing it as
|
|
1514
|
+
* `draftTaskId` to `text_to_video`. Drafts can be enhanced within 7 days of
|
|
1515
|
+
* creation. Defaults to false.
|
|
1516
|
+
*/
|
|
1517
|
+
draft?: boolean;
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* The ID of a succeeded draft task to enhance to 1080p. The draft is regenerated
|
|
1521
|
+
* with its original prompt, references, and settings, so no other generation
|
|
1522
|
+
* fields may be provided.
|
|
1523
|
+
*/
|
|
1524
|
+
draftTaskId?: string;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
1528
|
+
* billed at the variant maximum up front; unused credits are refunded after the
|
|
1529
|
+
* generation finishes. Defaults to 5.
|
|
1530
|
+
*/
|
|
1531
|
+
duration?: number | 'auto';
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Container for the output video. `mov` keeps high colour precision for grading
|
|
1535
|
+
* and compositing. Defaults to `mp4`. Draft mode only supports `mp4`.
|
|
1536
|
+
*/
|
|
1537
|
+
outputFormat?: 'mp4' | 'mov';
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
1541
|
+
* the output.
|
|
1542
|
+
*/
|
|
1543
|
+
promptText?: string;
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
1547
|
+
* Defaults to `1280:720`.
|
|
1548
|
+
*/
|
|
1549
|
+
ratio?:
|
|
1550
|
+
| '992:432'
|
|
1551
|
+
| '854:480'
|
|
1552
|
+
| '752:560'
|
|
1553
|
+
| '640:640'
|
|
1554
|
+
| '560:752'
|
|
1555
|
+
| '480:854'
|
|
1556
|
+
| '1470:630'
|
|
1557
|
+
| '1280:720'
|
|
1558
|
+
| '1112:834'
|
|
1559
|
+
| '960:960'
|
|
1560
|
+
| '834:1112'
|
|
1561
|
+
| '720:1280'
|
|
1562
|
+
| '2206:946'
|
|
1563
|
+
| '1920:1080'
|
|
1564
|
+
| '1664:1248'
|
|
1565
|
+
| '1440:1440'
|
|
1566
|
+
| '1248:1664'
|
|
1567
|
+
| '1080:1920';
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* An optional array of audio references. The total combined duration must be less
|
|
1571
|
+
* than 30 seconds.
|
|
1572
|
+
*/
|
|
1573
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* An optional array of image references (up to 30). See
|
|
1577
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1578
|
+
*/
|
|
1579
|
+
references?: Array<Seedance2_5.Reference>;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* An optional array of video references. The combined duration across all video
|
|
1583
|
+
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
1584
|
+
* video inputs for more information.
|
|
1585
|
+
*/
|
|
1586
|
+
referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
1590
|
+
* get different results for the same other request parameters. Using the same seed
|
|
1591
|
+
* integer for an identical request will produce similar results.
|
|
1592
|
+
*/
|
|
1593
|
+
seed?: number;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
export namespace Seedance2_5 {
|
|
1597
|
+
/**
|
|
1598
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
1599
|
+
* the output.
|
|
1600
|
+
*/
|
|
1601
|
+
export interface ReferenceAudio {
|
|
1602
|
+
type: 'audio';
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1606
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
1607
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
1608
|
+
*/
|
|
1609
|
+
uri: string;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
export interface Reference {
|
|
1613
|
+
/**
|
|
1614
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1615
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1616
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1617
|
+
*/
|
|
1618
|
+
uri: string;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* A video reference allows the model to use the video as additional context for
|
|
1623
|
+
* the output.
|
|
1624
|
+
*/
|
|
1625
|
+
export interface ReferenceVideo {
|
|
1626
|
+
type: 'video';
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1630
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1631
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1632
|
+
*/
|
|
1633
|
+
uri: string;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1183
1637
|
export interface GrokImagine1_5Lite {
|
|
1184
1638
|
model: 'grok_imagine_1_5_lite';
|
|
1185
1639
|
|
|
@@ -1220,6 +1674,59 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1220
1674
|
| '1744:1152'
|
|
1221
1675
|
| '1152:1744';
|
|
1222
1676
|
}
|
|
1677
|
+
|
|
1678
|
+
export interface Kling4 {
|
|
1679
|
+
model: 'kling_4';
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* A text prompt describing what should happen in the video.
|
|
1683
|
+
*/
|
|
1684
|
+
promptText: string;
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* The duration of the output video in seconds.
|
|
1688
|
+
*/
|
|
1689
|
+
duration?: number;
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* The target output size. Use a pixel ratio such as `1280:720` or `auto_720p` /
|
|
1693
|
+
* `auto_1080p` for adaptive framing.
|
|
1694
|
+
*/
|
|
1695
|
+
ratio?:
|
|
1696
|
+
| '1280:720'
|
|
1697
|
+
| '720:1280'
|
|
1698
|
+
| '940:940'
|
|
1699
|
+
| '1460:624'
|
|
1700
|
+
| '1920:1080'
|
|
1701
|
+
| '1080:1920'
|
|
1702
|
+
| '1440:1440'
|
|
1703
|
+
| '2200:940'
|
|
1704
|
+
| 'auto_720p'
|
|
1705
|
+
| 'auto_1080p';
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
|
1709
|
+
* total, frames included.
|
|
1710
|
+
*/
|
|
1711
|
+
references?: Array<Kling4.Reference>;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Up to 5 videos whose style, motion or camera work should guide the output,
|
|
1715
|
+
* together at most 30 seconds long.
|
|
1716
|
+
*/
|
|
1717
|
+
referenceVideos?: Array<unknown>;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
export namespace Kling4 {
|
|
1721
|
+
export interface Reference {
|
|
1722
|
+
/**
|
|
1723
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1724
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1725
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1726
|
+
*/
|
|
1727
|
+
uri: string;
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1223
1730
|
}
|
|
1224
1731
|
|
|
1225
1732
|
export declare namespace TextToVideo {
|