@runwayml/sdk 4.19.1 → 4.20.1
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/package.json +1 -1
- package/resources/image-to-video.d.mts +192 -19
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +192 -19
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +9 -0
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +9 -0
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/organization/organization.d.mts +6 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +6 -4
- 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 +59 -22
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +59 -22
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +6 -3
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts +6 -3
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/resources/tasks.d.mts +12 -6
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +12 -6
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +142 -47
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +142 -47
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +5 -3
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +5 -3
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +177 -24
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +177 -24
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.js +8 -0
- package/resources/text-to-video.js.map +1 -1
- package/resources/text-to-video.mjs +8 -0
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/video-to-hdr.d.mts +25 -9
- package/resources/video-to-hdr.d.mts.map +1 -1
- package/resources/video-to-hdr.d.ts +25 -9
- package/resources/video-to-hdr.d.ts.map +1 -1
- package/resources/video-to-hdr.js +4 -2
- package/resources/video-to-hdr.js.map +1 -1
- package/resources/video-to-hdr.mjs +4 -2
- package/resources/video-to-hdr.mjs.map +1 -1
- package/resources/video-to-video.d.mts +53 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +53 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +49 -33
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +49 -33
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/workflow-invocations.d.mts +29 -4
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts +29 -4
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/resources/workflow-invocations.js +3 -1
- package/resources/workflow-invocations.js.map +1 -1
- package/resources/workflow-invocations.mjs +3 -1
- package/resources/workflow-invocations.mjs.map +1 -1
- package/src/resources/image-to-video.ts +258 -26
- package/src/resources/organization/organization.ts +22 -2
- package/src/resources/organization/webapp/audit-logs.ts +119 -22
- package/src/resources/realtime-sessions.ts +6 -3
- package/src/resources/tasks.ts +12 -6
- package/src/resources/text-to-image.ts +262 -85
- package/src/resources/text-to-speech.ts +5 -3
- package/src/resources/text-to-video.ts +242 -31
- package/src/resources/video-to-hdr.ts +31 -9
- package/src/resources/video-to-video.ts +70 -5
- package/src/resources/video-upscale.ts +55 -33
- package/src/resources/workflow-invocations.ts +32 -4
- 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
|
@@ -9,7 +9,9 @@ class WorkflowInvocations extends resource_1.APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* Return details about a workflow invocation. Consumers of this API should not
|
|
11
11
|
* expect updates more frequent than once every five seconds for a given workflow
|
|
12
|
-
* invocation.
|
|
12
|
+
* invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
|
|
13
|
+
* so check `nodeErrors` to detect a partial run rather than relying on `status`
|
|
14
|
+
* alone.
|
|
13
15
|
*/
|
|
14
16
|
retrieve(id, options) {
|
|
15
17
|
return (0, polling_1.wrapAsWaitableWorkflowInvocation)(this._client)(this._client.get((0, path_1.path) `/v1/workflow_invocations/${id}`, options), true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-invocations.js","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAA8C;AAC9C,+CAA6G;AAE7G,MAAa,mBAAoB,SAAQ,sBAAW;IAClD
|
|
1
|
+
{"version":3,"file":"workflow-invocations.js","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAA8C;AAC9C,+CAA6G;AAE7G,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,OAAwB;QAExB,OAAO,IAAA,0CAAgC,EAAqC,IAAI,CAAC,OAAO,CAAC,CACvF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;CACF;AAjBD,kDAiBC"}
|
|
@@ -6,7 +6,9 @@ export class WorkflowInvocations extends APIResource {
|
|
|
6
6
|
/**
|
|
7
7
|
* Return details about a workflow invocation. Consumers of this API should not
|
|
8
8
|
* expect updates more frequent than once every five seconds for a given workflow
|
|
9
|
-
* invocation.
|
|
9
|
+
* invocation. A `SUCCEEDED` invocation may still have had individual nodes fail,
|
|
10
|
+
* so check `nodeErrors` to detect a partial run rather than relying on `status`
|
|
11
|
+
* alone.
|
|
10
12
|
*/
|
|
11
13
|
retrieve(id, options) {
|
|
12
14
|
return wrapAsWaitableWorkflowInvocation(this._client)(this._client.get(path `/v1/workflow_invocations/${id}`, options), true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-invocations.mjs","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAC9C,OAAO,EAA6C,gCAAgC,EAAE,2BAAuB;AAE7G,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD
|
|
1
|
+
{"version":3,"file":"workflow-invocations.mjs","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAC9C,OAAO,EAA6C,gCAAgC,EAAE,2BAAuB;AAE7G,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,OAAwB;QAExB,OAAO,gCAAgC,CAAqC,IAAI,CAAC,OAAO,CAAC,CACvF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,EAC/D,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -10,6 +10,15 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
10
10
|
export class ImageToVideo extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* This endpoint will start a new task to generate a video from an image.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const imageToVideo = await client.imageToVideo.create({
|
|
17
|
+
* model: 'hailuo3',
|
|
18
|
+
* promptImage: 'https://example.com/image.jpg',
|
|
19
|
+
* promptText: 'x',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
13
22
|
*/
|
|
14
23
|
create(
|
|
15
24
|
body: ImageToVideoCreateParams,
|
|
@@ -60,7 +69,10 @@ export type ImageToVideoCreateParams =
|
|
|
60
69
|
| ImageToVideoCreateParams.GeminiOmniFlash
|
|
61
70
|
| ImageToVideoCreateParams.Seedance2_5
|
|
62
71
|
| ImageToVideoCreateParams.GrokImagine1_5
|
|
63
|
-
| ImageToVideoCreateParams.Wan3
|
|
72
|
+
| ImageToVideoCreateParams.Wan3
|
|
73
|
+
| ImageToVideoCreateParams.GeminiOmniFlash1_1
|
|
74
|
+
| ImageToVideoCreateParams.Wan3Prime
|
|
75
|
+
| ImageToVideoCreateParams.H3Max;
|
|
64
76
|
|
|
65
77
|
export declare namespace ImageToVideoCreateParams {
|
|
66
78
|
export interface Gen4_5 {
|
|
@@ -109,11 +121,16 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
109
121
|
* losslessly (plus a colorimetry.json sidecar and a separate .wav when the output
|
|
110
122
|
* has audio); `hdr_exr_sequence` returns a .zip of half-float OpenEXR frames
|
|
111
123
|
* carrying the HDR signal as linear BT.2020 display light, 1.0 = 100 nits (plus a
|
|
112
|
-
* colorimetry.json sidecar and a separate .wav when the output has audio)
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
124
|
+
* colorimetry.json sidecar and a separate .wav when the output has audio);
|
|
125
|
+
* `hdr_exr_acescg_sequence_1_3` returns the same delivery as scene-referred ACEScg
|
|
126
|
+
* (inverted through the ACES 1.3 Output Transform), reading correctly with the
|
|
127
|
+
* stock `ACES - ACEScg` input transform in ACES-configured pipelines, with VFX
|
|
128
|
+
* sequence frame naming (frame.0001.exr). Non-mp4 formats incur an additional
|
|
129
|
+
* per-second credit surcharge: 5 credits per second for `prores` and
|
|
130
|
+
* `png_sequence`, and 20 credits per second for every 10-bit and deeper profile
|
|
131
|
+
* (including the 12-bit, 16-bit, and EXR ones), rising to 40 credits per second
|
|
132
|
+
* when the output is larger than 4 megapixels — that includes 1440p (2560x1440 is
|
|
133
|
+
* under the line, but anything larger crosses it) up through 4K.
|
|
117
134
|
*/
|
|
118
135
|
outputFormat?:
|
|
119
136
|
| 'mp4'
|
|
@@ -125,7 +142,9 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
125
142
|
| 'hdr_pq_12bit_master'
|
|
126
143
|
| 'hdr_prores'
|
|
127
144
|
| 'hdr_png_sequence'
|
|
128
|
-
| 'hdr_exr_sequence'
|
|
145
|
+
| 'hdr_exr_sequence'
|
|
146
|
+
| 'hdr_exr_acescg_sequence_1_3'
|
|
147
|
+
| 'hdr_exr_acescg_sequence_2_0';
|
|
129
148
|
|
|
130
149
|
/**
|
|
131
150
|
* The ProRes profile to use. Only valid when `outputFormat` is `prores` or
|
|
@@ -396,9 +415,12 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
396
415
|
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
397
416
|
|
|
398
417
|
/**
|
|
399
|
-
* The output resolution.
|
|
418
|
+
* The output resolution. Hailuo 3.0 supports 768p and 2k.
|
|
419
|
+
*
|
|
420
|
+
* - `768P` - Deprecated: Use "768p" instead.
|
|
421
|
+
* - `2K` - Deprecated: Use "2k" instead.
|
|
400
422
|
*/
|
|
401
|
-
resolution?: '
|
|
423
|
+
resolution?: '768p' | '2k' | '768P' | '2K';
|
|
402
424
|
}
|
|
403
425
|
|
|
404
426
|
export namespace Hailuo3 {
|
|
@@ -411,7 +433,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
411
433
|
|
|
412
434
|
/**
|
|
413
435
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
414
|
-
* `data:audio/mp3;base64
|
|
436
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
415
437
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
416
438
|
*/
|
|
417
439
|
uri: string;
|
|
@@ -441,8 +463,11 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
441
463
|
|
|
442
464
|
/**
|
|
443
465
|
* Output quality tier. Output aspect ratio follows the input image.
|
|
466
|
+
*
|
|
467
|
+
* - `720P` - Deprecated: Use "720p" instead.
|
|
468
|
+
* - `1080P` - Deprecated: Use "1080p" instead.
|
|
444
469
|
*/
|
|
445
|
-
resolution?: '720P' | '1080P';
|
|
470
|
+
resolution?: '720p' | '1080p' | '720P' | '1080P';
|
|
446
471
|
}
|
|
447
472
|
|
|
448
473
|
export namespace Happyhorse1_0 {
|
|
@@ -557,7 +582,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
557
582
|
|
|
558
583
|
/**
|
|
559
584
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
560
|
-
* `data:audio/mp3;base64,...`, up to
|
|
585
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
561
586
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
562
587
|
*/
|
|
563
588
|
uri: string;
|
|
@@ -648,7 +673,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
648
673
|
|
|
649
674
|
/**
|
|
650
675
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
651
|
-
* `data:audio/mp3;base64,...`, up to
|
|
676
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
652
677
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
653
678
|
*/
|
|
654
679
|
uri: string;
|
|
@@ -739,7 +764,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
739
764
|
|
|
740
765
|
/**
|
|
741
766
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
742
|
-
* `data:audio/mp3;base64,...`, up to
|
|
767
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
743
768
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
744
769
|
*/
|
|
745
770
|
uri: string;
|
|
@@ -879,7 +904,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
879
904
|
|
|
880
905
|
/**
|
|
881
906
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
882
|
-
* `data:audio/mp3;base64,...`, up to
|
|
907
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
883
908
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
884
909
|
*/
|
|
885
910
|
uri: string;
|
|
@@ -954,24 +979,25 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
954
979
|
duration?: number;
|
|
955
980
|
|
|
956
981
|
/**
|
|
957
|
-
* The resolution of the output video, as `<width>:<height>`.
|
|
958
|
-
* `auto_720p`, or `auto_1080p`
|
|
982
|
+
* The resolution of the output video, as `<width>:<height>`. Keyframe
|
|
983
|
+
* image-to-video requests must use `auto_480p`, `auto_720p`, or `auto_1080p`
|
|
984
|
+
* because their aspect ratio follows the first frame.
|
|
959
985
|
*/
|
|
960
986
|
ratio?:
|
|
961
987
|
| '832:480'
|
|
962
|
-
| '
|
|
963
|
-
| '
|
|
964
|
-
| '
|
|
988
|
+
| '720:544'
|
|
989
|
+
| '624:624'
|
|
990
|
+
| '544:720'
|
|
965
991
|
| '480:832'
|
|
966
992
|
| '1280:720'
|
|
967
|
-
| '
|
|
968
|
-
| '
|
|
969
|
-
| '
|
|
993
|
+
| '1104:832'
|
|
994
|
+
| '960:960'
|
|
995
|
+
| '832:1104'
|
|
970
996
|
| '720:1280'
|
|
971
997
|
| '1920:1080'
|
|
972
|
-
| '
|
|
973
|
-
| '
|
|
974
|
-
| '
|
|
998
|
+
| '1648:1248'
|
|
999
|
+
| '1440:1440'
|
|
1000
|
+
| '1248:1648'
|
|
975
1001
|
| '1080:1920'
|
|
976
1002
|
| 'auto_480p'
|
|
977
1003
|
| 'auto_720p'
|
|
@@ -1022,6 +1048,212 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
1022
1048
|
uri: string;
|
|
1023
1049
|
}
|
|
1024
1050
|
}
|
|
1051
|
+
|
|
1052
|
+
export interface GeminiOmniFlash1_1 {
|
|
1053
|
+
model: 'gemini_omni_flash_1.1';
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* An image to use as the first frame, or an array containing a first frame and
|
|
1057
|
+
* optional last frame.
|
|
1058
|
+
*/
|
|
1059
|
+
promptImage: string | Array<GeminiOmniFlash1_1.PromptImage>;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* A non-empty text prompt describing how the video should evolve between the
|
|
1063
|
+
* provided frames.
|
|
1064
|
+
*/
|
|
1065
|
+
promptText: string;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* The duration of the output video in seconds. Use "auto" to let the model choose
|
|
1069
|
+
* a duration. Numeric durations must be between 3 and 10 seconds.
|
|
1070
|
+
*/
|
|
1071
|
+
duration?: 'auto' | number;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* The resolution and aspect ratio of the output video.
|
|
1075
|
+
*/
|
|
1076
|
+
ratio?:
|
|
1077
|
+
| '640:360'
|
|
1078
|
+
| '360:640'
|
|
1079
|
+
| '1280:720'
|
|
1080
|
+
| '720:1280'
|
|
1081
|
+
| '1920:1080'
|
|
1082
|
+
| '1080:1920'
|
|
1083
|
+
| '3840:2160'
|
|
1084
|
+
| '2160:3840';
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
export namespace GeminiOmniFlash1_1 {
|
|
1088
|
+
export interface PromptImage {
|
|
1089
|
+
/**
|
|
1090
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
1091
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
1092
|
+
* video.
|
|
1093
|
+
*/
|
|
1094
|
+
position: 'first' | 'last';
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1098
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1099
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1100
|
+
*/
|
|
1101
|
+
uri: string;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
export interface Wan3Prime {
|
|
1106
|
+
model: 'wan3_prime';
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
1110
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
1111
|
+
*/
|
|
1112
|
+
promptImage: string | Array<unknown>;
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
1116
|
+
*/
|
|
1117
|
+
promptText: string;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Whether to generate audio with the video.
|
|
1121
|
+
*/
|
|
1122
|
+
audio?: boolean;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* The number of seconds of duration for the output video.
|
|
1126
|
+
*/
|
|
1127
|
+
duration?: number;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* The resolution of the output video, as `<width>:<height>`. Keyframe
|
|
1131
|
+
* image-to-video requests must use `auto_480p`, `auto_720p`, or `auto_1080p`
|
|
1132
|
+
* because their aspect ratio follows the first frame.
|
|
1133
|
+
*/
|
|
1134
|
+
ratio?:
|
|
1135
|
+
| '832:480'
|
|
1136
|
+
| '720:544'
|
|
1137
|
+
| '624:624'
|
|
1138
|
+
| '544:720'
|
|
1139
|
+
| '480:832'
|
|
1140
|
+
| '1280:720'
|
|
1141
|
+
| '1104:832'
|
|
1142
|
+
| '960:960'
|
|
1143
|
+
| '832:1104'
|
|
1144
|
+
| '720:1280'
|
|
1145
|
+
| '1920:1080'
|
|
1146
|
+
| '1648:1248'
|
|
1147
|
+
| '1440:1440'
|
|
1148
|
+
| '1248:1648'
|
|
1149
|
+
| '1080:1920'
|
|
1150
|
+
| 'auto_480p'
|
|
1151
|
+
| 'auto_720p'
|
|
1152
|
+
| 'auto_1080p';
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* An optional array of audio references. The total combined duration must not
|
|
1156
|
+
* exceed 15 seconds.
|
|
1157
|
+
*/
|
|
1158
|
+
referenceAudio?: Array<Wan3Prime.ReferenceAudio>;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* An optional array of video references. The combined duration across all video
|
|
1162
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
1163
|
+
* video inputs for more information.
|
|
1164
|
+
*/
|
|
1165
|
+
referenceVideos?: Array<Wan3Prime.ReferenceVideo>;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export namespace Wan3Prime {
|
|
1169
|
+
/**
|
|
1170
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
1171
|
+
* the output.
|
|
1172
|
+
*/
|
|
1173
|
+
export interface ReferenceAudio {
|
|
1174
|
+
type: 'audio';
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1178
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
1179
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
1180
|
+
*/
|
|
1181
|
+
uri: string;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* A video reference allows the model to use the video as additional context for
|
|
1186
|
+
* the output.
|
|
1187
|
+
*/
|
|
1188
|
+
export interface ReferenceVideo {
|
|
1189
|
+
type: 'video';
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1193
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1194
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1195
|
+
*/
|
|
1196
|
+
uri: string;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
export interface H3Max {
|
|
1201
|
+
model: 'h3_max';
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* An image to use as the first frame, or an array with a first frame and
|
|
1205
|
+
* optionally a last frame. A last frame requires a first frame. Each image must be
|
|
1206
|
+
* at least 256 pixels on both sides.
|
|
1207
|
+
*/
|
|
1208
|
+
promptImage: string | Array<H3Max.PromptImage>;
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
1212
|
+
*/
|
|
1213
|
+
promptText: string;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* The number of seconds of duration for the output video.
|
|
1217
|
+
*/
|
|
1218
|
+
duration?: number;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* How the model rewrites the prompt before generating. disabled keeps the prompt
|
|
1222
|
+
* as written. balanced (the default) does a short rewrite. quality spends extra
|
|
1223
|
+
* time rewriting for a stronger result.
|
|
1224
|
+
*/
|
|
1225
|
+
promptExpansionMode?: 'disabled' | 'balanced' | 'quality';
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* The output resolution. MiniMax H3 Max supports 480p and 768p.
|
|
1229
|
+
*/
|
|
1230
|
+
resolution?: '480p' | '768p';
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* If unspecified, a random number is chosen. Identical results also need
|
|
1234
|
+
* promptExpansionMode set to disabled; balanced and quality rewrite the prompt and
|
|
1235
|
+
* will not repeat.
|
|
1236
|
+
*/
|
|
1237
|
+
seed?: number;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
export namespace H3Max {
|
|
1241
|
+
export interface PromptImage {
|
|
1242
|
+
/**
|
|
1243
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
1244
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
1245
|
+
* video.
|
|
1246
|
+
*/
|
|
1247
|
+
position: 'first' | 'last';
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1251
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1252
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1253
|
+
*/
|
|
1254
|
+
uri: string;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1025
1257
|
}
|
|
1026
1258
|
|
|
1027
1259
|
export declare namespace ImageToVideo {
|
|
@@ -75,13 +75,15 @@ export namespace OrganizationRetrieveResponse {
|
|
|
75
75
|
export interface Models {
|
|
76
76
|
/**
|
|
77
77
|
* The maximum number of generations that can be run concurrently for this model.
|
|
78
|
+
* null means no limit.
|
|
78
79
|
*/
|
|
79
|
-
maxConcurrentGenerations: number;
|
|
80
|
+
maxConcurrentGenerations: number | null;
|
|
80
81
|
|
|
81
82
|
/**
|
|
82
83
|
* The maximum number of generations that can be created each day for this model.
|
|
84
|
+
* null means no limit.
|
|
83
85
|
*/
|
|
84
|
-
maxDailyGenerations: number;
|
|
86
|
+
maxDailyGenerations: number | null;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
|
|
@@ -116,6 +118,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
116
118
|
| 'gen4_image'
|
|
117
119
|
| 'gen4_image_turbo'
|
|
118
120
|
| 'gpt_image_2'
|
|
121
|
+
| 'gpt_image_2_5_flare'
|
|
122
|
+
| 'gpt_image_2_5_sunburst'
|
|
119
123
|
| 'act_two'
|
|
120
124
|
| 'gen4_aleph'
|
|
121
125
|
| 'veo3'
|
|
@@ -127,6 +131,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
127
131
|
| 'seedream5_pro'
|
|
128
132
|
| 'seedream5_lite'
|
|
129
133
|
| 'gemini_omni_flash'
|
|
134
|
+
| 'gemini_omni_flash_1.1'
|
|
130
135
|
| 'eleven_multilingual_v2'
|
|
131
136
|
| 'seed_audio'
|
|
132
137
|
| 'eleven_v3'
|
|
@@ -144,10 +149,16 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
144
149
|
| 'seedance2_fast'
|
|
145
150
|
| 'seedance2_mini'
|
|
146
151
|
| 'hailuo3'
|
|
152
|
+
| 'h3_max'
|
|
147
153
|
| 'wan3'
|
|
154
|
+
| 'wan3_prime'
|
|
155
|
+
| 'grok_imagine_1_5'
|
|
156
|
+
| 'grok_imagine_image_2'
|
|
148
157
|
| 'muse_image'
|
|
149
158
|
| 'magnific_precision_upscaler_v2'
|
|
150
159
|
| 'magnific_video_upscaler_creative'
|
|
160
|
+
| 'ruby'
|
|
161
|
+
| 'enhance_frame_rate'
|
|
151
162
|
| 'kling2.5_turbo_pro'
|
|
152
163
|
| 'kling3.0_pro'
|
|
153
164
|
| 'kling3.0_4k'
|
|
@@ -211,6 +222,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
211
222
|
| 'gen4_image'
|
|
212
223
|
| 'gen4_image_turbo'
|
|
213
224
|
| 'gpt_image_2'
|
|
225
|
+
| 'gpt_image_2_5_flare'
|
|
226
|
+
| 'gpt_image_2_5_sunburst'
|
|
214
227
|
| 'act_two'
|
|
215
228
|
| 'gen4_aleph'
|
|
216
229
|
| 'veo3'
|
|
@@ -222,6 +235,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
222
235
|
| 'seedream5_pro'
|
|
223
236
|
| 'seedream5_lite'
|
|
224
237
|
| 'gemini_omni_flash'
|
|
238
|
+
| 'gemini_omni_flash_1.1'
|
|
225
239
|
| 'eleven_multilingual_v2'
|
|
226
240
|
| 'seed_audio'
|
|
227
241
|
| 'eleven_v3'
|
|
@@ -239,10 +253,16 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
239
253
|
| 'seedance2_fast'
|
|
240
254
|
| 'seedance2_mini'
|
|
241
255
|
| 'hailuo3'
|
|
256
|
+
| 'h3_max'
|
|
242
257
|
| 'wan3'
|
|
258
|
+
| 'wan3_prime'
|
|
259
|
+
| 'grok_imagine_1_5'
|
|
260
|
+
| 'grok_imagine_image_2'
|
|
243
261
|
| 'muse_image'
|
|
244
262
|
| 'magnific_precision_upscaler_v2'
|
|
245
263
|
| 'magnific_video_upscaler_creative'
|
|
264
|
+
| 'ruby'
|
|
265
|
+
| 'enhance_frame_rate'
|
|
246
266
|
| 'kling2.5_turbo_pro'
|
|
247
267
|
| 'kling3.0_pro'
|
|
248
268
|
| 'kling3.0_4k'
|