@runwayml/sdk 4.15.0 → 4.16.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 +18 -1
- package/README.md +16 -8
- package/client.d.mts +11 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -5
- package/client.d.ts.map +1 -1
- package/client.js +11 -5
- package/client.js.map +1 -1
- package/client.mjs +11 -5
- 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 +9 -7
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +9 -7
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +34 -22
- 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 +9 -13
- 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,83 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
7
|
+
export declare 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: VideoToHdrCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoToHdrCreateResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface VideoToHdrCreateResponse {
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
37
|
+
* the task completes.
|
|
38
|
+
*/
|
|
39
|
+
estimatedCost: VideoToHdrCreateResponse.EstimatedCost;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace VideoToHdrCreateResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
44
|
+
* the task completes.
|
|
45
|
+
*/
|
|
46
|
+
interface EstimatedCost {
|
|
47
|
+
/**
|
|
48
|
+
* Estimated cost of the generation in credits.
|
|
49
|
+
*/
|
|
50
|
+
credits: number;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export interface VideoToHdrCreateParams {
|
|
54
|
+
model: 'ruby';
|
|
55
|
+
/**
|
|
56
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
57
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
58
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
59
|
+
*/
|
|
60
|
+
videoUri: string;
|
|
61
|
+
/**
|
|
62
|
+
* The HDR delivery profile of the output. `hdr10` (default) returns an HEVC Main
|
|
63
|
+
* 10, BT.2020 + PQ .mp4; `hlg` returns an HEVC Main 10, BT.2020 + HLG .mp4;
|
|
64
|
+
* `hdr_prores` returns a BT.2020 + PQ ProRes .mov editorial mezzanine, whose tier
|
|
65
|
+
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
66
|
+
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
67
|
+
* light, 1.0 = 100 nits, ready to composite. The EXR zip is the whole delivery —
|
|
68
|
+
* the frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
69
|
+
* upconvert, and the source audio as audio.wav when the source has any. All four
|
|
70
|
+
* profiles bill at the same rate: 20 credits per second of output, rising to 40
|
|
71
|
+
* credits per second when the source is larger than 4 megapixels (roughly 4K).
|
|
72
|
+
*/
|
|
73
|
+
outputFormat?: 'hdr10' | 'hlg' | 'hdr_prores' | 'hdr_exr_sequence';
|
|
74
|
+
/**
|
|
75
|
+
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
76
|
+
* `hdr_prores`. Defaults to `422 HQ`.
|
|
77
|
+
*/
|
|
78
|
+
proresProfile?: '422' | '4444' | '422 HQ';
|
|
79
|
+
}
|
|
80
|
+
export declare namespace VideoToHdr {
|
|
81
|
+
export { type VideoToHdrCreateResponse as VideoToHdrCreateResponse, type VideoToHdrCreateParams as VideoToHdrCreateParams, };
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=video-to-hdr.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-to-hdr.d.mts","sourceRoot":"","sources":["../src/resources/video-to-hdr.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,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,wBAAwB,CAAC;CAKzD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,wBAAwB,CAAC,aAAa,CAAC;CACvD;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAEnE;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
7
|
+
export declare 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: VideoToHdrCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoToHdrCreateResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface VideoToHdrCreateResponse {
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
37
|
+
* the task completes.
|
|
38
|
+
*/
|
|
39
|
+
estimatedCost: VideoToHdrCreateResponse.EstimatedCost;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace VideoToHdrCreateResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
44
|
+
* the task completes.
|
|
45
|
+
*/
|
|
46
|
+
interface EstimatedCost {
|
|
47
|
+
/**
|
|
48
|
+
* Estimated cost of the generation in credits.
|
|
49
|
+
*/
|
|
50
|
+
credits: number;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export interface VideoToHdrCreateParams {
|
|
54
|
+
model: 'ruby';
|
|
55
|
+
/**
|
|
56
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
57
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
58
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
59
|
+
*/
|
|
60
|
+
videoUri: string;
|
|
61
|
+
/**
|
|
62
|
+
* The HDR delivery profile of the output. `hdr10` (default) returns an HEVC Main
|
|
63
|
+
* 10, BT.2020 + PQ .mp4; `hlg` returns an HEVC Main 10, BT.2020 + HLG .mp4;
|
|
64
|
+
* `hdr_prores` returns a BT.2020 + PQ ProRes .mov editorial mezzanine, whose tier
|
|
65
|
+
* is selectable with `proresProfile`; `hdr_exr_sequence` returns a .zip of
|
|
66
|
+
* half-float OpenEXR frames holding the HDR signal as linear BT.2020 display
|
|
67
|
+
* light, 1.0 = 100 nits, ready to composite. The EXR zip is the whole delivery —
|
|
68
|
+
* the frames, a colorimetry.json sidecar, a provenance.json sidecar declaring the
|
|
69
|
+
* upconvert, and the source audio as audio.wav when the source has any. All four
|
|
70
|
+
* profiles bill at the same rate: 20 credits per second of output, rising to 40
|
|
71
|
+
* credits per second when the source is larger than 4 megapixels (roughly 4K).
|
|
72
|
+
*/
|
|
73
|
+
outputFormat?: 'hdr10' | 'hlg' | 'hdr_prores' | 'hdr_exr_sequence';
|
|
74
|
+
/**
|
|
75
|
+
* The ProRes tier of the `hdr_prores` mezzanine. Only valid when `outputFormat` is
|
|
76
|
+
* `hdr_prores`. Defaults to `422 HQ`.
|
|
77
|
+
*/
|
|
78
|
+
proresProfile?: '422' | '4444' | '422 HQ';
|
|
79
|
+
}
|
|
80
|
+
export declare namespace VideoToHdr {
|
|
81
|
+
export { type VideoToHdrCreateResponse as VideoToHdrCreateResponse, type VideoToHdrCreateParams as VideoToHdrCreateParams, };
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=video-to-hdr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-to-hdr.d.ts","sourceRoot":"","sources":["../src/resources/video-to-hdr.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,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,wBAAwB,CAAC;CAKzD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,wBAAwB,CAAC,aAAa,CAAC;CACvD;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAEnE;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC3C;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -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
|
}
|
|
@@ -548,9 +550,9 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
548
550
|
*/
|
|
549
551
|
promptText?: string;
|
|
550
552
|
/**
|
|
551
|
-
* The resolution of the output video. Seedance 2.5 supports 480p
|
|
553
|
+
* The resolution of the output video. Seedance 2.5 supports 480p and 720p only.
|
|
552
554
|
*/
|
|
553
|
-
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280'
|
|
555
|
+
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
554
556
|
/**
|
|
555
557
|
* An optional array of audio references. The total combined duration must be less
|
|
556
558
|
* than 30 seconds.
|
|
@@ -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,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 @@ 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
|
}
|
|
@@ -548,9 +550,9 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
548
550
|
*/
|
|
549
551
|
promptText?: string;
|
|
550
552
|
/**
|
|
551
|
-
* The resolution of the output video. Seedance 2.5 supports 480p
|
|
553
|
+
* The resolution of the output video. Seedance 2.5 supports 480p and 720p only.
|
|
552
554
|
*/
|
|
553
|
-
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280'
|
|
555
|
+
ratio?: '992:432' | '854:480' | '752:560' | '640:640' | '560:752' | '480:854' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
554
556
|
/**
|
|
555
557
|
* An optional array of audio references. The total combined duration must be less
|
|
556
558
|
* than 30 seconds.
|
|
@@ -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;;;;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F,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QAEnD;;;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
|
*/
|
|
@@ -978,8 +983,6 @@ export class RunwayML {
|
|
|
978
983
|
* These endpoints all kick off tasks to create generations.
|
|
979
984
|
*/
|
|
980
985
|
videoUpscale: API.VideoUpscale = new API.VideoUpscale(this);
|
|
981
|
-
generate: API.Generate = new API.Generate(this);
|
|
982
|
-
routers: API.Routers = new API.Routers(this);
|
|
983
986
|
organization: API.Organization = new API.Organization(this);
|
|
984
987
|
avatars: API.Avatars = new API.Avatars(this);
|
|
985
988
|
avatarConversations: API.AvatarConversations = new API.AvatarConversations(this);
|
|
@@ -991,11 +994,14 @@ export class RunwayML {
|
|
|
991
994
|
uploads: API.Uploads = new API.Uploads(this);
|
|
992
995
|
workflows: API.Workflows = new API.Workflows(this);
|
|
993
996
|
workflowInvocations: API.WorkflowInvocations = new API.WorkflowInvocations(this);
|
|
997
|
+
generate: API.Generate = new API.Generate(this);
|
|
998
|
+
routers: API.Routers = new API.Routers(this);
|
|
994
999
|
}
|
|
995
1000
|
|
|
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;
|
|
@@ -1006,8 +1012,6 @@ RunwayML.VoiceDubbing = VoiceDubbing;
|
|
|
1006
1012
|
RunwayML.SpeechToSpeech = SpeechToSpeech;
|
|
1007
1013
|
RunwayML.ImageUpscale = ImageUpscale;
|
|
1008
1014
|
RunwayML.VideoUpscale = VideoUpscale;
|
|
1009
|
-
RunwayML.Generate = Generate;
|
|
1010
|
-
RunwayML.Routers = Routers;
|
|
1011
1015
|
RunwayML.Organization = Organization;
|
|
1012
1016
|
RunwayML.Avatars = Avatars;
|
|
1013
1017
|
RunwayML.AvatarConversations = AvatarConversations;
|
|
@@ -1019,6 +1023,8 @@ RunwayML.Voices = Voices;
|
|
|
1019
1023
|
RunwayML.Uploads = Uploads;
|
|
1020
1024
|
RunwayML.Workflows = Workflows;
|
|
1021
1025
|
RunwayML.WorkflowInvocations = WorkflowInvocations;
|
|
1026
|
+
RunwayML.Generate = Generate;
|
|
1027
|
+
RunwayML.Routers = Routers;
|
|
1022
1028
|
|
|
1023
1029
|
export declare namespace RunwayML {
|
|
1024
1030
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -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,
|
|
@@ -1100,23 +1112,6 @@ export declare namespace RunwayML {
|
|
|
1100
1112
|
type VideoUpscaleCreateParams as VideoUpscaleCreateParams,
|
|
1101
1113
|
};
|
|
1102
1114
|
|
|
1103
|
-
export { Generate as Generate };
|
|
1104
|
-
|
|
1105
|
-
export {
|
|
1106
|
-
Routers as Routers,
|
|
1107
|
-
type RouterCreateResponse as RouterCreateResponse,
|
|
1108
|
-
type RouterRetrieveResponse as RouterRetrieveResponse,
|
|
1109
|
-
type RouterUpdateResponse as RouterUpdateResponse,
|
|
1110
|
-
type RouterListResponse as RouterListResponse,
|
|
1111
|
-
type RouterListRequestsResponse as RouterListRequestsResponse,
|
|
1112
|
-
type RouterListResponsesCursorPage as RouterListResponsesCursorPage,
|
|
1113
|
-
type RouterListRequestsResponsesCursorPage as RouterListRequestsResponsesCursorPage,
|
|
1114
|
-
type RouterCreateParams as RouterCreateParams,
|
|
1115
|
-
type RouterUpdateParams as RouterUpdateParams,
|
|
1116
|
-
type RouterListParams as RouterListParams,
|
|
1117
|
-
type RouterListRequestsParams as RouterListRequestsParams,
|
|
1118
|
-
};
|
|
1119
|
-
|
|
1120
1115
|
export {
|
|
1121
1116
|
Organization as Organization,
|
|
1122
1117
|
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
|
|
@@ -1221,4 +1216,21 @@ export declare namespace RunwayML {
|
|
|
1221
1216
|
WorkflowInvocations as WorkflowInvocations,
|
|
1222
1217
|
type WorkflowInvocationRetrieveResponse as WorkflowInvocationRetrieveResponse,
|
|
1223
1218
|
};
|
|
1219
|
+
|
|
1220
|
+
export { Generate as Generate };
|
|
1221
|
+
|
|
1222
|
+
export {
|
|
1223
|
+
Routers as Routers,
|
|
1224
|
+
type RouterCreateResponse as RouterCreateResponse,
|
|
1225
|
+
type RouterRetrieveResponse as RouterRetrieveResponse,
|
|
1226
|
+
type RouterUpdateResponse as RouterUpdateResponse,
|
|
1227
|
+
type RouterListResponse as RouterListResponse,
|
|
1228
|
+
type RouterListRequestsResponse as RouterListRequestsResponse,
|
|
1229
|
+
type RouterListResponsesCursorPage as RouterListResponsesCursorPage,
|
|
1230
|
+
type RouterListRequestsResponsesCursorPage as RouterListRequestsResponsesCursorPage,
|
|
1231
|
+
type RouterCreateParams as RouterCreateParams,
|
|
1232
|
+
type RouterUpdateParams as RouterUpdateParams,
|
|
1233
|
+
type RouterListParams as RouterListParams,
|
|
1234
|
+
type RouterListRequestsParams as RouterListRequestsParams,
|
|
1235
|
+
};
|
|
1224
1236
|
}
|
|
@@ -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,
|