@runwayml/sdk 4.15.0 → 4.16.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 -1
- package/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +27 -9
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +27 -9
- 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/text-to-video.d.mts +26 -8
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +26 -8
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-hdr.d.mts +83 -0
- package/resources/video-to-hdr.d.mts.map +1 -0
- package/resources/video-to-hdr.d.ts +83 -0
- package/resources/video-to-hdr.d.ts.map +1 -0
- package/resources/video-to-hdr.js +36 -0
- package/resources/video-to-hdr.js.map +1 -0
- package/resources/video-to-hdr.mjs +32 -0
- package/resources/video-to-hdr.mjs.map +1 -0
- package/resources/video-to-video.d.mts +7 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +7 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +13 -1
- package/src/resources/image-to-video.ts +38 -10
- package/src/resources/index.ts +1 -0
- package/src/resources/text-to-video.ts +37 -9
- package/src/resources/video-to-hdr.ts +103 -0
- package/src/resources/video-to-video.ts +7 -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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.VideoToHdr = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
10
|
+
class VideoToHdr extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint starts a task to upconvert an SDR video to true HDR with Ruby,
|
|
13
|
+
* Runway's HDR grading model. The output keeps the source's own pixels — luma and
|
|
14
|
+
* color are extended into the HDR range, nothing is re-synthesized. Set
|
|
15
|
+
* `outputFormat` to choose the delivery profile: `hdr10` (HEVC Main 10, BT.2020 +
|
|
16
|
+
* PQ, the default), `hlg` (HEVC Main 10, BT.2020 + HLG), `hdr_prores` (BT.2020 +
|
|
17
|
+
* PQ ProRes .mov editorial mezzanine, tier selectable with `proresProfile`), or
|
|
18
|
+
* `hdr_exr_sequence` (a .zip of half-float OpenEXR frames in linear BT.2020
|
|
19
|
+
* display light, for compositing). Tasks bill per second of output at 20 credits
|
|
20
|
+
* per second, rising to 40 credits per second when the source is larger than 4
|
|
21
|
+
* megapixels (roughly 4K) — an upconvert delivers at the source's own resolution.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const videoToHdr = await client.videoToHdr.create({
|
|
26
|
+
* model: 'ruby',
|
|
27
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(body, options) {
|
|
32
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/video_to_hdr', { body, ...options }));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.VideoToHdr = VideoToHdr;
|
|
36
|
+
//# sourceMappingURL=video-to-hdr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-to-hdr.js","sourceRoot":"","sources":["../src/resources/video-to-hdr.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA2B,IAAI,CAAC,OAAO,CAAC,CACnE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF;AA7BD,gCA6BC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
7
|
+
export class VideoToHdr extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* This endpoint starts a task to upconvert an SDR video to true HDR with Ruby,
|
|
10
|
+
* Runway's HDR grading model. The output keeps the source's own pixels — luma and
|
|
11
|
+
* color are extended into the HDR range, nothing is re-synthesized. Set
|
|
12
|
+
* `outputFormat` to choose the delivery profile: `hdr10` (HEVC Main 10, BT.2020 +
|
|
13
|
+
* PQ, the default), `hlg` (HEVC Main 10, BT.2020 + HLG), `hdr_prores` (BT.2020 +
|
|
14
|
+
* PQ ProRes .mov editorial mezzanine, tier selectable with `proresProfile`), or
|
|
15
|
+
* `hdr_exr_sequence` (a .zip of half-float OpenEXR frames in linear BT.2020
|
|
16
|
+
* display light, for compositing). Tasks bill per second of output at 20 credits
|
|
17
|
+
* per second, rising to 40 credits per second when the source is larger than 4
|
|
18
|
+
* megapixels (roughly 4K) — an upconvert delivers at the source's own resolution.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const videoToHdr = await client.videoToHdr.create({
|
|
23
|
+
* model: 'ruby',
|
|
24
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(body, options) {
|
|
29
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/video_to_hdr', { body, ...options }));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=video-to-hdr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-to-hdr.mjs","sourceRoot":"","sources":["../src/resources/video-to-hdr.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAA+B,sBAAsB,EAAE,2BAAuB;AAErF;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,sBAAsB,CAA2B,IAAI,CAAC,OAAO,CAAC,CACnE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -62,11 +62,13 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
62
62
|
keyframes?: Array<Variant0.UnionMember0 | Variant0.UnionMember1>;
|
|
63
63
|
/**
|
|
64
64
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
65
|
-
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
66
|
-
*
|
|
67
|
-
* an additional surcharge
|
|
65
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames.
|
|
66
|
+
* `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading pipelines.
|
|
67
|
+
* Non-mp4 formats incur an additional surcharge: 5 credits per second for `prores`
|
|
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 (roughly 4K).
|
|
68
70
|
*/
|
|
69
|
-
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
71
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence' | 'sdr_rec709_10bit';
|
|
70
72
|
/**
|
|
71
73
|
* A non-empty and optional string describing what should appear in the output.
|
|
72
74
|
*/
|
|
@@ -216,7 +218,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
216
218
|
*/
|
|
217
219
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
218
220
|
/**
|
|
219
|
-
* The output resolution.
|
|
221
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
220
222
|
*/
|
|
221
223
|
resolution?: '2K' | '768P';
|
|
222
224
|
}
|
|
@@ -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,E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CAAC;YAEd;;;;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"}
|
|
@@ -62,11 +62,13 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
62
62
|
keyframes?: Array<Variant0.UnionMember0 | Variant0.UnionMember1>;
|
|
63
63
|
/**
|
|
64
64
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
65
|
-
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
66
|
-
*
|
|
67
|
-
* an additional surcharge
|
|
65
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames.
|
|
66
|
+
* `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading pipelines.
|
|
67
|
+
* Non-mp4 formats incur an additional surcharge: 5 credits per second for `prores`
|
|
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 (roughly 4K).
|
|
68
70
|
*/
|
|
69
|
-
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
71
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence' | 'sdr_rec709_10bit';
|
|
70
72
|
/**
|
|
71
73
|
* A non-empty and optional string describing what should appear in the output.
|
|
72
74
|
*/
|
|
@@ -216,7 +218,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
216
218
|
*/
|
|
217
219
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
218
220
|
/**
|
|
219
|
-
* The output resolution.
|
|
221
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
220
222
|
*/
|
|
221
223
|
resolution?: '2K' | '768P';
|
|
222
224
|
}
|
|
@@ -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;AAEzC,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,QAAQ;QACvB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;;;WAIG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,iBAAiB,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC;QAE/C;;;WAGG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAEjE
|
|
1
|
+
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-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AEnD;;;WAGG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAE1C;;;;WAIG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;KACrD;IAED,UAAiB,WAAW,CAAC;QAC3B;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,SAAS;YACxB;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;;;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"}
|
package/src/client.ts
CHANGED
|
@@ -117,6 +117,7 @@ import {
|
|
|
117
117
|
TextToSpeechCreateResponse,
|
|
118
118
|
} from './resources/text-to-speech';
|
|
119
119
|
import { TextToVideo, TextToVideoCreateParams, TextToVideoCreateResponse } from './resources/text-to-video';
|
|
120
|
+
import { VideoToHdr, VideoToHdrCreateParams, VideoToHdrCreateResponse } from './resources/video-to-hdr';
|
|
120
121
|
import {
|
|
121
122
|
VideoToVideo,
|
|
122
123
|
VideoToVideoCreateParams,
|
|
@@ -137,7 +138,6 @@ import {
|
|
|
137
138
|
VoiceIsolationCreateParams,
|
|
138
139
|
VoiceIsolationCreateResponse,
|
|
139
140
|
} from './resources/voice-isolation';
|
|
140
|
-
import { Uploads, UploadsCreateEphemeralParams, UploadCreateEphemeralResponse } from './resources/uploads';
|
|
141
141
|
import {
|
|
142
142
|
VoiceCreateParams,
|
|
143
143
|
VoiceCreateResponse,
|
|
@@ -151,6 +151,7 @@ import {
|
|
|
151
151
|
VoiceUpdateResponse,
|
|
152
152
|
Voices,
|
|
153
153
|
} from './resources/voices';
|
|
154
|
+
import { Uploads, UploadsCreateEphemeralParams, UploadCreateEphemeralResponse } from './resources/uploads';
|
|
154
155
|
import { WorkflowInvocationRetrieveResponse, WorkflowInvocations } from './resources/workflow-invocations';
|
|
155
156
|
import {
|
|
156
157
|
WorkflowListResponse,
|
|
@@ -938,6 +939,10 @@ export class RunwayML {
|
|
|
938
939
|
* These endpoints all kick off tasks to create generations.
|
|
939
940
|
*/
|
|
940
941
|
videoToVideo: API.VideoToVideo = new API.VideoToVideo(this);
|
|
942
|
+
/**
|
|
943
|
+
* These endpoints all kick off tasks to create generations.
|
|
944
|
+
*/
|
|
945
|
+
videoToHdr: API.VideoToHdr = new API.VideoToHdr(this);
|
|
941
946
|
/**
|
|
942
947
|
* These endpoints all kick off tasks to create generations.
|
|
943
948
|
*/
|
|
@@ -996,6 +1001,7 @@ export class RunwayML {
|
|
|
996
1001
|
RunwayML.Tasks = Tasks;
|
|
997
1002
|
RunwayML.ImageToVideo = ImageToVideo;
|
|
998
1003
|
RunwayML.VideoToVideo = VideoToVideo;
|
|
1004
|
+
RunwayML.VideoToHdr = VideoToHdr;
|
|
999
1005
|
RunwayML.TextToVideo = TextToVideo;
|
|
1000
1006
|
RunwayML.TextToImage = TextToImage;
|
|
1001
1007
|
RunwayML.CharacterPerformance = CharacterPerformance;
|
|
@@ -1040,6 +1046,12 @@ export declare namespace RunwayML {
|
|
|
1040
1046
|
type VideoToVideoCreateParams as VideoToVideoCreateParams,
|
|
1041
1047
|
};
|
|
1042
1048
|
|
|
1049
|
+
export {
|
|
1050
|
+
VideoToHdr as VideoToHdr,
|
|
1051
|
+
type VideoToHdrCreateResponse as VideoToHdrCreateResponse,
|
|
1052
|
+
type VideoToHdrCreateParams as VideoToHdrCreateParams,
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1043
1055
|
export {
|
|
1044
1056
|
TextToVideo as TextToVideo,
|
|
1045
1057
|
type TextToVideoCreateResponse as TextToVideoCreateResponse,
|
|
@@ -97,14 +97,42 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
97
97
|
/**
|
|
98
98
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
99
99
|
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
100
|
-
* (plus a separate .wav artifact when the output has audio).
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
*
|
|
107
|
-
*
|
|
100
|
+
* (plus a separate .wav artifact when the output has audio). `hdr10` (HEVC Main
|
|
101
|
+
* 10, BT.2020 + PQ) and `hlg` (HEVC Main 10, BT.2020 + HLG) return true-HDR 10-bit
|
|
102
|
+
* .mp4s; `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading
|
|
103
|
+
* pipelines; `hdr_pq_12bit_master` returns a 12-bit 4:4:4 BT.2020 + PQ HEVC .mov
|
|
104
|
+
* with measured HDR10 content-light metadata for mastering; `hdr_prores` returns a
|
|
105
|
+
* BT.2020 + PQ ProRes .mov editorial mezzanine, whose tier is selectable with
|
|
106
|
+
* `proresProfile` (`422`, `422 HQ`, or `4444`; defaults to `422 HQ`);
|
|
107
|
+
* `hdr_png_sequence` returns a .zip of 16-bit PNG frames carrying the PQ signal
|
|
108
|
+
* losslessly (plus a colorimetry.json sidecar and a separate .wav when the output
|
|
109
|
+
* has audio); `hdr_exr_sequence` returns a .zip of half-float OpenEXR frames
|
|
110
|
+
* carrying the HDR signal as linear BT.2020 display light, 1.0 = 100 nits (plus a
|
|
111
|
+
* colorimetry.json sidecar and a separate .wav when the output has audio). Non-mp4
|
|
112
|
+
* formats incur an additional per-second credit surcharge: 5 credits per second
|
|
113
|
+
* for `prores` and `png_sequence`, and 20 credits per second for every 10-bit and
|
|
114
|
+
* deeper profile (including the 12-bit, 16-bit, and EXR ones), rising to 40
|
|
115
|
+
* credits per second when the output is larger than 4 megapixels (roughly 4K).
|
|
116
|
+
*/
|
|
117
|
+
outputFormat?:
|
|
118
|
+
| 'mp4'
|
|
119
|
+
| 'prores'
|
|
120
|
+
| 'png_sequence'
|
|
121
|
+
| 'hdr10'
|
|
122
|
+
| 'hlg'
|
|
123
|
+
| 'sdr_rec709_10bit'
|
|
124
|
+
| 'hdr_pq_12bit_master'
|
|
125
|
+
| 'hdr_prores'
|
|
126
|
+
| 'hdr_png_sequence'
|
|
127
|
+
| 'hdr_exr_sequence';
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores` or
|
|
131
|
+
* `hdr_prores`. For `prores`, any profile is accepted and the default is `4444`.
|
|
132
|
+
* For `hdr_prores`, only `422`, `422 HQ` and `4444` are available and the default
|
|
133
|
+
* is `422 HQ` — `422 Proxy` and `422 LT` quantize too heavily to hold the HDR
|
|
134
|
+
* gradients, and 12-bit output is served by `hdr_pq_12bit_master` instead of
|
|
135
|
+
* `4444 XQ`.
|
|
108
136
|
*/
|
|
109
137
|
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
110
138
|
|
|
@@ -353,7 +381,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
353
381
|
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
354
382
|
|
|
355
383
|
/**
|
|
356
|
-
* The output resolution.
|
|
384
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
357
385
|
*/
|
|
358
386
|
resolution?: '2K' | '768P';
|
|
359
387
|
}
|
|
@@ -368,7 +396,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
368
396
|
|
|
369
397
|
/**
|
|
370
398
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
371
|
-
* `data:audio/mp3;base64
|
|
399
|
+
* `data:audio/mp3;base64,...`) containing an encoded audio. See
|
|
372
400
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
373
401
|
*/
|
|
374
402
|
uri: string;
|
package/src/resources/index.ts
CHANGED
|
@@ -105,6 +105,7 @@ export {
|
|
|
105
105
|
type TextToSpeechCreateParams,
|
|
106
106
|
} from './text-to-speech';
|
|
107
107
|
export { TextToVideo, type TextToVideoCreateResponse, type TextToVideoCreateParams } from './text-to-video';
|
|
108
|
+
export { VideoToHdr, type VideoToHdrCreateResponse, type VideoToHdrCreateParams } from './video-to-hdr';
|
|
108
109
|
export {
|
|
109
110
|
VideoToVideo,
|
|
110
111
|
type VideoToVideoCreateResponse,
|
|
@@ -89,14 +89,42 @@ export declare namespace TextToVideoCreateParams {
|
|
|
89
89
|
/**
|
|
90
90
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
91
91
|
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
92
|
-
* (plus a separate .wav artifact when the output has audio).
|
|
93
|
-
*
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
*
|
|
99
|
-
*
|
|
92
|
+
* (plus a separate .wav artifact when the output has audio). `hdr10` (HEVC Main
|
|
93
|
+
* 10, BT.2020 + PQ) and `hlg` (HEVC Main 10, BT.2020 + HLG) return true-HDR 10-bit
|
|
94
|
+
* .mp4s; `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading
|
|
95
|
+
* pipelines; `hdr_pq_12bit_master` returns a 12-bit 4:4:4 BT.2020 + PQ HEVC .mov
|
|
96
|
+
* with measured HDR10 content-light metadata for mastering; `hdr_prores` returns a
|
|
97
|
+
* BT.2020 + PQ ProRes .mov editorial mezzanine, whose tier is selectable with
|
|
98
|
+
* `proresProfile` (`422`, `422 HQ`, or `4444`; defaults to `422 HQ`);
|
|
99
|
+
* `hdr_png_sequence` returns a .zip of 16-bit PNG frames carrying the PQ signal
|
|
100
|
+
* losslessly (plus a colorimetry.json sidecar and a separate .wav when the output
|
|
101
|
+
* has audio); `hdr_exr_sequence` returns a .zip of half-float OpenEXR frames
|
|
102
|
+
* carrying the HDR signal as linear BT.2020 display light, 1.0 = 100 nits (plus a
|
|
103
|
+
* colorimetry.json sidecar and a separate .wav when the output has audio). Non-mp4
|
|
104
|
+
* formats incur an additional per-second credit surcharge: 5 credits per second
|
|
105
|
+
* for `prores` and `png_sequence`, and 20 credits per second for every 10-bit and
|
|
106
|
+
* deeper profile (including the 12-bit, 16-bit, and EXR ones), rising to 40
|
|
107
|
+
* credits per second when the output is larger than 4 megapixels (roughly 4K).
|
|
108
|
+
*/
|
|
109
|
+
outputFormat?:
|
|
110
|
+
| 'mp4'
|
|
111
|
+
| 'prores'
|
|
112
|
+
| 'png_sequence'
|
|
113
|
+
| 'hdr10'
|
|
114
|
+
| 'hlg'
|
|
115
|
+
| 'sdr_rec709_10bit'
|
|
116
|
+
| 'hdr_pq_12bit_master'
|
|
117
|
+
| 'hdr_prores'
|
|
118
|
+
| 'hdr_png_sequence'
|
|
119
|
+
| 'hdr_exr_sequence';
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores` or
|
|
123
|
+
* `hdr_prores`. For `prores`, any profile is accepted and the default is `4444`.
|
|
124
|
+
* For `hdr_prores`, only `422`, `422 HQ` and `4444` are available and the default
|
|
125
|
+
* is `422 HQ` — `422 Proxy` and `422 LT` quantize too heavily to hold the HDR
|
|
126
|
+
* gradients, and 12-bit output is served by `hdr_pq_12bit_master` instead of
|
|
127
|
+
* `4444 XQ`.
|
|
100
128
|
*/
|
|
101
129
|
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
102
130
|
|
|
@@ -220,7 +248,7 @@ export declare namespace TextToVideoCreateParams {
|
|
|
220
248
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
221
249
|
|
|
222
250
|
/**
|
|
223
|
-
* The output resolution.
|
|
251
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
224
252
|
*/
|
|
225
253
|
resolution?: '2K' | '768P';
|
|
226
254
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { RequestOptions } from '../internal/request-options';
|
|
5
|
+
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
10
|
+
export class VideoToHdr extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint starts a task to upconvert an SDR video to true HDR with Ruby,
|
|
13
|
+
* Runway's HDR grading model. The output keeps the source's own pixels — luma and
|
|
14
|
+
* color are extended into the HDR range, nothing is re-synthesized. Set
|
|
15
|
+
* `outputFormat` to choose the delivery profile: `hdr10` (HEVC Main 10, BT.2020 +
|
|
16
|
+
* PQ, the default), `hlg` (HEVC Main 10, BT.2020 + HLG), `hdr_prores` (BT.2020 +
|
|
17
|
+
* PQ ProRes .mov editorial mezzanine, tier selectable with `proresProfile`), or
|
|
18
|
+
* `hdr_exr_sequence` (a .zip of half-float OpenEXR frames in linear BT.2020
|
|
19
|
+
* display light, for compositing). Tasks bill per second of output at 20 credits
|
|
20
|
+
* per second, rising to 40 credits per second when the source is larger than 4
|
|
21
|
+
* megapixels (roughly 4K) — an upconvert delivers at the source's own resolution.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const videoToHdr = await client.videoToHdr.create({
|
|
26
|
+
* model: 'ruby',
|
|
27
|
+
* videoUri: 'https://example.com/video.mp4',
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(
|
|
32
|
+
body: VideoToHdrCreateParams,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromiseWithAwaitableTask<VideoToHdrCreateResponse> {
|
|
35
|
+
return wrapAsWaitableResource<VideoToHdrCreateResponse>(this._client)(
|
|
36
|
+
this._client.post('/v1/video_to_hdr', { body, ...options }),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface VideoToHdrCreateResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
49
|
+
* the task completes.
|
|
50
|
+
*/
|
|
51
|
+
estimatedCost: VideoToHdrCreateResponse.EstimatedCost;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export namespace VideoToHdrCreateResponse {
|
|
55
|
+
/**
|
|
56
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
57
|
+
* the task completes.
|
|
58
|
+
*/
|
|
59
|
+
export interface EstimatedCost {
|
|
60
|
+
/**
|
|
61
|
+
* Estimated cost of the generation in credits.
|
|
62
|
+
*/
|
|
63
|
+
credits: number;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface VideoToHdrCreateParams {
|
|
68
|
+
model: 'ruby';
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
72
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
73
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
74
|
+
*/
|
|
75
|
+
videoUri: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The HDR delivery profile of the output. `hdr10` (default) returns an HEVC Main
|
|
79
|
+
* 10, BT.2020 + PQ .mp4; `hlg` returns an HEVC Main 10, BT.2020 + HLG .mp4;
|
|
80
|
+
* `hdr_prores` returns a BT.2020 + PQ ProRes .mov editorial mezzanine, whose tier
|
|
81
|
+
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
82
|
+
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
83
|
+
* light, 1.0 = 100 nits, ready to composite. The EXR zip is the whole delivery —
|
|
84
|
+
* the frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
85
|
+
* upconvert, and the source audio as audio.wav when the source has any. All four
|
|
86
|
+
* profiles bill at the same rate: 20 credits per second of output, rising to 40
|
|
87
|
+
* credits per second when the source is larger than 4 megapixels (roughly 4K).
|
|
88
|
+
*/
|
|
89
|
+
outputFormat?: 'hdr10' | 'hlg' | 'hdr_prores' | 'hdr_exr_sequence';
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
93
|
+
* `hdr_prores`. Defaults to `422 HQ`.
|
|
94
|
+
*/
|
|
95
|
+
proresProfile?: '422' | '4444' | '422 HQ';
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export declare namespace VideoToHdr {
|
|
99
|
+
export {
|
|
100
|
+
type VideoToHdrCreateResponse as VideoToHdrCreateResponse,
|
|
101
|
+
type VideoToHdrCreateParams as VideoToHdrCreateParams,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -88,11 +88,13 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
91
|
-
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
92
|
-
*
|
|
93
|
-
* an additional surcharge
|
|
91
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames.
|
|
92
|
+
* `sdr_rec709_10bit` returns a 10-bit Rec.709 HEVC .mp4 for SDR grading pipelines.
|
|
93
|
+
* Non-mp4 formats incur an additional surcharge: 5 credits per second for `prores`
|
|
94
|
+
* and `png_sequence`, and 20 credits per second for `sdr_rec709_10bit` — 40
|
|
95
|
+
* credits per second when the output is larger than 4 megapixels (roughly 4K).
|
|
94
96
|
*/
|
|
95
|
-
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
97
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence' | 'sdr_rec709_10bit';
|
|
96
98
|
|
|
97
99
|
/**
|
|
98
100
|
* A non-empty and optional string describing what should appear in the output.
|
|
@@ -267,7 +269,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
267
269
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
268
270
|
|
|
269
271
|
/**
|
|
270
|
-
* The output resolution.
|
|
272
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
271
273
|
*/
|
|
272
274
|
resolution?: '2K' | '768P';
|
|
273
275
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.16.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.16.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.16.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.16.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|