@runwayml/sdk 4.19.1 → 4.20.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 +7 -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 +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 +46 -22
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +46 -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-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 +15 -8
- package/resources/video-to-hdr.d.mts.map +1 -1
- package/resources/video-to-hdr.d.ts +15 -8
- 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/src/resources/image-to-video.ts +258 -26
- package/src/resources/organization/organization.ts +12 -0
- package/src/resources/organization/webapp/audit-logs.ts +90 -20
- package/src/resources/realtime-sessions.ts +6 -3
- package/src/resources/tasks.ts +12 -6
- 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 +21 -8
- package/src/resources/video-to-video.ts +70 -5
- 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
|
@@ -41,7 +41,7 @@ export declare namespace VideoToVideoCreateResponse {
|
|
|
41
41
|
credits: number;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.Seedance2_5;
|
|
44
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.Seedance2_5 | VideoToVideoCreateParams.GeminiOmniFlash1_1;
|
|
45
45
|
export declare namespace VideoToVideoCreateParams {
|
|
46
46
|
interface Variant0 {
|
|
47
47
|
model: 'aleph2';
|
|
@@ -66,7 +66,8 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
66
66
|
* `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading pipelines.
|
|
67
67
|
* Non-mp4 formats incur an additional surcharge: 5 credits per second for `prores`
|
|
68
68
|
* and `png_sequence`, and 20 credits per second for `sdr_rec709_10bit` — 40
|
|
69
|
-
* credits per second when the output is larger than 4 megapixels
|
|
69
|
+
* credits per second when the output is larger than 4 megapixels — includes
|
|
70
|
+
* anything larger than 1440p, up through 4K.
|
|
70
71
|
*/
|
|
71
72
|
outputFormat?: 'mp4' | 'prores' | 'png_sequence' | 'sdr_rec709_10bit';
|
|
72
73
|
/**
|
|
@@ -75,7 +76,9 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
75
76
|
promptText?: string;
|
|
76
77
|
/**
|
|
77
78
|
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
78
|
-
* to `4444`.
|
|
79
|
+
* to `4444`. Note: generated content contains no transparency — the alpha channel
|
|
80
|
+
* in `4444` / `4444 XQ` outputs is present but fully opaque; choose these tiers
|
|
81
|
+
* for 12-bit 4:4:4 color fidelity, not for mattes.
|
|
79
82
|
*/
|
|
80
83
|
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
81
84
|
/**
|
|
@@ -218,9 +221,12 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
218
221
|
*/
|
|
219
222
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
220
223
|
/**
|
|
221
|
-
* The output resolution.
|
|
224
|
+
* The output resolution. Hailuo 3.0 supports 768p and 2k.
|
|
225
|
+
*
|
|
226
|
+
* - `768P` - Deprecated: Use "768p" instead.
|
|
227
|
+
* - `2K` - Deprecated: Use "2k" instead.
|
|
222
228
|
*/
|
|
223
|
-
resolution?: '
|
|
229
|
+
resolution?: '768p' | '2k' | '768P' | '2K';
|
|
224
230
|
}
|
|
225
231
|
namespace Hailuo3 {
|
|
226
232
|
/**
|
|
@@ -639,6 +645,48 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
639
645
|
uri: string;
|
|
640
646
|
}
|
|
641
647
|
}
|
|
648
|
+
interface GeminiOmniFlash1_1 {
|
|
649
|
+
model: 'gemini_omni_flash_1.1';
|
|
650
|
+
/**
|
|
651
|
+
* A non-empty prompt describing the output or extension.
|
|
652
|
+
*/
|
|
653
|
+
promptText: string;
|
|
654
|
+
/**
|
|
655
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
656
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
657
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
658
|
+
*/
|
|
659
|
+
videoUri: string;
|
|
660
|
+
/**
|
|
661
|
+
* The duration in seconds. In reference mode, this is the output video length. In
|
|
662
|
+
* extend mode, this is the amount of footage added to the input video. Use "auto"
|
|
663
|
+
* to let the model choose a duration.
|
|
664
|
+
*/
|
|
665
|
+
duration?: 'auto' | number;
|
|
666
|
+
/**
|
|
667
|
+
* How the input video is used. `reference` generates a new video guided by the
|
|
668
|
+
* input, `extend` continues it, and `edit` transforms it according to the prompt.
|
|
669
|
+
*/
|
|
670
|
+
mode?: 'reference' | 'extend' | 'edit';
|
|
671
|
+
/**
|
|
672
|
+
* The resolution and aspect ratio of the output video.
|
|
673
|
+
*/
|
|
674
|
+
ratio?: '640:360' | '360:640' | '1280:720' | '720:1280' | '1920:1080' | '1080:1920' | '3840:2160' | '2160:3840';
|
|
675
|
+
/**
|
|
676
|
+
* An optional array of image references to guide the output.
|
|
677
|
+
*/
|
|
678
|
+
references?: Array<GeminiOmniFlash1_1.Reference>;
|
|
679
|
+
}
|
|
680
|
+
namespace GeminiOmniFlash1_1 {
|
|
681
|
+
interface Reference {
|
|
682
|
+
/**
|
|
683
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
684
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
685
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
686
|
+
*/
|
|
687
|
+
uri: string;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
642
690
|
}
|
|
643
691
|
export declare namespace VideoToVideo {
|
|
644
692
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,0BAA0B,CAAC,aAAa,CAAC;CACzD;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,QAAQ,GACjC,wBAAwB,CAAC,OAAO,GAChC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,eAAe,GACxC,wBAAwB,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"video-to-video.d.mts","s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ACX,WAAW,GACX,WAAW,CAAC;QAEhB;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;KAClD;IAED,UAAiB,kBAAkB,CAAC;QAClC,UAAiB,SAAS;YACxB;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -41,7 +41,7 @@ export declare namespace VideoToVideoCreateResponse {
|
|
|
41
41
|
credits: number;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.Seedance2_5;
|
|
44
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.Seedance2_5 | VideoToVideoCreateParams.GeminiOmniFlash1_1;
|
|
45
45
|
export declare namespace VideoToVideoCreateParams {
|
|
46
46
|
interface Variant0 {
|
|
47
47
|
model: 'aleph2';
|
|
@@ -66,7 +66,8 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
66
66
|
* `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading pipelines.
|
|
67
67
|
* Non-mp4 formats incur an additional surcharge: 5 credits per second for `prores`
|
|
68
68
|
* and `png_sequence`, and 20 credits per second for `sdr_rec709_10bit` — 40
|
|
69
|
-
* credits per second when the output is larger than 4 megapixels
|
|
69
|
+
* credits per second when the output is larger than 4 megapixels — includes
|
|
70
|
+
* anything larger than 1440p, up through 4K.
|
|
70
71
|
*/
|
|
71
72
|
outputFormat?: 'mp4' | 'prores' | 'png_sequence' | 'sdr_rec709_10bit';
|
|
72
73
|
/**
|
|
@@ -75,7 +76,9 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
75
76
|
promptText?: string;
|
|
76
77
|
/**
|
|
77
78
|
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
78
|
-
* to `4444`.
|
|
79
|
+
* to `4444`. Note: generated content contains no transparency — the alpha channel
|
|
80
|
+
* in `4444` / `4444 XQ` outputs is present but fully opaque; choose these tiers
|
|
81
|
+
* for 12-bit 4:4:4 color fidelity, not for mattes.
|
|
79
82
|
*/
|
|
80
83
|
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
81
84
|
/**
|
|
@@ -218,9 +221,12 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
218
221
|
*/
|
|
219
222
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
220
223
|
/**
|
|
221
|
-
* The output resolution.
|
|
224
|
+
* The output resolution. Hailuo 3.0 supports 768p and 2k.
|
|
225
|
+
*
|
|
226
|
+
* - `768P` - Deprecated: Use "768p" instead.
|
|
227
|
+
* - `2K` - Deprecated: Use "2k" instead.
|
|
222
228
|
*/
|
|
223
|
-
resolution?: '
|
|
229
|
+
resolution?: '768p' | '2k' | '768P' | '2K';
|
|
224
230
|
}
|
|
225
231
|
namespace Hailuo3 {
|
|
226
232
|
/**
|
|
@@ -639,6 +645,48 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
639
645
|
uri: string;
|
|
640
646
|
}
|
|
641
647
|
}
|
|
648
|
+
interface GeminiOmniFlash1_1 {
|
|
649
|
+
model: 'gemini_omni_flash_1.1';
|
|
650
|
+
/**
|
|
651
|
+
* A non-empty prompt describing the output or extension.
|
|
652
|
+
*/
|
|
653
|
+
promptText: string;
|
|
654
|
+
/**
|
|
655
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
656
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
657
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
658
|
+
*/
|
|
659
|
+
videoUri: string;
|
|
660
|
+
/**
|
|
661
|
+
* The duration in seconds. In reference mode, this is the output video length. In
|
|
662
|
+
* extend mode, this is the amount of footage added to the input video. Use "auto"
|
|
663
|
+
* to let the model choose a duration.
|
|
664
|
+
*/
|
|
665
|
+
duration?: 'auto' | number;
|
|
666
|
+
/**
|
|
667
|
+
* How the input video is used. `reference` generates a new video guided by the
|
|
668
|
+
* input, `extend` continues it, and `edit` transforms it according to the prompt.
|
|
669
|
+
*/
|
|
670
|
+
mode?: 'reference' | 'extend' | 'edit';
|
|
671
|
+
/**
|
|
672
|
+
* The resolution and aspect ratio of the output video.
|
|
673
|
+
*/
|
|
674
|
+
ratio?: '640:360' | '360:640' | '1280:720' | '720:1280' | '1920:1080' | '1080:1920' | '3840:2160' | '2160:3840';
|
|
675
|
+
/**
|
|
676
|
+
* An optional array of image references to guide the output.
|
|
677
|
+
*/
|
|
678
|
+
references?: Array<GeminiOmniFlash1_1.Reference>;
|
|
679
|
+
}
|
|
680
|
+
namespace GeminiOmniFlash1_1 {
|
|
681
|
+
interface Reference {
|
|
682
|
+
/**
|
|
683
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
684
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
685
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
686
|
+
*/
|
|
687
|
+
uri: string;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
642
690
|
}
|
|
643
691
|
export declare namespace VideoToVideo {
|
|
644
692
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,0BAA0B,CAAC,aAAa,CAAC;CACzD;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,QAAQ,GACjC,wBAAwB,CAAC,OAAO,GAChC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,eAAe,GACxC,wBAAwB,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAA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0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -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 {
|