@runwayml/sdk 4.14.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 +25 -0
- 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 +66 -12
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +66 -12
- 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-image.d.mts +46 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +46 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +81 -11
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +81 -11
- 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 +34 -22
- package/src/resources/image-to-video.ts +91 -13
- package/src/resources/index.ts +1 -0
- package/src/resources/text-to-image.ts +82 -0
- package/src/resources/text-to-video.ts +109 -12
- 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 @@
|
|
|
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
|
}
|
|
@@ -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;;OAE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ACb;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-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE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,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
|
}
|
|
@@ -58,7 +58,8 @@ export type ImageToVideoCreateParams =
|
|
|
58
58
|
| ImageToVideoCreateParams.Seedance2Fast
|
|
59
59
|
| ImageToVideoCreateParams.Seedance2Mini
|
|
60
60
|
| ImageToVideoCreateParams.GeminiOmniFlash
|
|
61
|
-
| ImageToVideoCreateParams.Seedance2_5
|
|
61
|
+
| ImageToVideoCreateParams.Seedance2_5
|
|
62
|
+
| ImageToVideoCreateParams.GrokImagine1_5;
|
|
62
63
|
|
|
63
64
|
export declare namespace ImageToVideoCreateParams {
|
|
64
65
|
export interface Gen4_5 {
|
|
@@ -96,14 +97,42 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
96
97
|
/**
|
|
97
98
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
98
99
|
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
99
|
-
* (plus a separate .wav artifact when the output has audio).
|
|
100
|
-
*
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*
|
|
106
|
-
*
|
|
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`.
|
|
107
136
|
*/
|
|
108
137
|
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
109
138
|
|
|
@@ -352,7 +381,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
352
381
|
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
353
382
|
|
|
354
383
|
/**
|
|
355
|
-
* The output resolution.
|
|
384
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
356
385
|
*/
|
|
357
386
|
resolution?: '2K' | '768P';
|
|
358
387
|
}
|
|
@@ -367,7 +396,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
367
396
|
|
|
368
397
|
/**
|
|
369
398
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
370
|
-
* `data:audio/mp3;base64
|
|
399
|
+
* `data:audio/mp3;base64,...`) containing an encoded audio. See
|
|
371
400
|
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
372
401
|
*/
|
|
373
402
|
uri: string;
|
|
@@ -745,7 +774,7 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
745
774
|
promptText?: string;
|
|
746
775
|
|
|
747
776
|
/**
|
|
748
|
-
* The resolution of the output video. Seedance 2.5 supports 480p and
|
|
777
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
749
778
|
*/
|
|
750
779
|
ratio?:
|
|
751
780
|
| '992:432'
|
|
@@ -759,7 +788,13 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
759
788
|
| '1112:834'
|
|
760
789
|
| '960:960'
|
|
761
790
|
| '834:1112'
|
|
762
|
-
| '720:1280'
|
|
791
|
+
| '720:1280'
|
|
792
|
+
| '2206:946'
|
|
793
|
+
| '1920:1080'
|
|
794
|
+
| '1664:1248'
|
|
795
|
+
| '1440:1440'
|
|
796
|
+
| '1248:1664'
|
|
797
|
+
| '1080:1920';
|
|
763
798
|
|
|
764
799
|
/**
|
|
765
800
|
* An optional array of audio references. The total combined duration must not
|
|
@@ -799,6 +834,49 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
799
834
|
uri: string;
|
|
800
835
|
}
|
|
801
836
|
}
|
|
837
|
+
|
|
838
|
+
export interface GrokImagine1_5 {
|
|
839
|
+
model: 'grok_imagine_1_5';
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
843
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
844
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
845
|
+
*/
|
|
846
|
+
promptImage: string | Array<GrokImagine1_5.PromptImage>;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* The number of seconds of duration for the output video.
|
|
850
|
+
*/
|
|
851
|
+
duration?: number;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* An optional text prompt describing motion or changes in the output video.
|
|
855
|
+
*/
|
|
856
|
+
promptText?: string;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* The output resolution. Output aspect ratio follows the input image.
|
|
860
|
+
*/
|
|
861
|
+
resolution?: '480p' | '720p' | '1080p';
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
export namespace GrokImagine1_5 {
|
|
865
|
+
export interface PromptImage {
|
|
866
|
+
/**
|
|
867
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
868
|
+
* first frame of the video.
|
|
869
|
+
*/
|
|
870
|
+
position: 'first';
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
874
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
875
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
876
|
+
*/
|
|
877
|
+
uri: string;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
802
880
|
}
|
|
803
881
|
|
|
804
882
|
export declare namespace ImageToVideo {
|
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,
|
|
@@ -55,6 +55,7 @@ export type TextToImageCreateParams =
|
|
|
55
55
|
| TextToImageCreateParams.GeminiImage3_1Flash
|
|
56
56
|
| TextToImageCreateParams.Seedream5Pro
|
|
57
57
|
| TextToImageCreateParams.Seedream5Lite
|
|
58
|
+
| TextToImageCreateParams.GrokImagineImage2
|
|
58
59
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
59
60
|
|
|
60
61
|
export declare namespace TextToImageCreateParams {
|
|
@@ -625,6 +626,87 @@ export declare namespace TextToImageCreateParams {
|
|
|
625
626
|
}
|
|
626
627
|
}
|
|
627
628
|
|
|
629
|
+
export interface GrokImagineImage2 {
|
|
630
|
+
model: 'grok_imagine_image_2';
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* A non-empty text prompt describing what should appear in the output image.
|
|
634
|
+
*/
|
|
635
|
+
promptText: string;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* The resolution of the output image, expressed as `<width>:<height>`. 2K ratios
|
|
639
|
+
* cost 2 additional credits per image. Use `auto_1k` or `auto_2k` to pick a
|
|
640
|
+
* resolution tier and let the model choose the framing from the prompt.
|
|
641
|
+
*/
|
|
642
|
+
ratio:
|
|
643
|
+
| '1024:1024'
|
|
644
|
+
| '1280:720'
|
|
645
|
+
| '720:1280'
|
|
646
|
+
| '1152:864'
|
|
647
|
+
| '864:1152'
|
|
648
|
+
| '1248:832'
|
|
649
|
+
| '832:1248'
|
|
650
|
+
| '1248:576'
|
|
651
|
+
| '576:1248'
|
|
652
|
+
| '1280:576'
|
|
653
|
+
| '576:1280'
|
|
654
|
+
| '1408:704'
|
|
655
|
+
| '704:1408'
|
|
656
|
+
| '2048:2048'
|
|
657
|
+
| '2816:1584'
|
|
658
|
+
| '1584:2816'
|
|
659
|
+
| '2368:1776'
|
|
660
|
+
| '1776:2368'
|
|
661
|
+
| '2496:1664'
|
|
662
|
+
| '1664:2496'
|
|
663
|
+
| '2912:1344'
|
|
664
|
+
| '1344:2912'
|
|
665
|
+
| '3200:1440'
|
|
666
|
+
| '1440:3200'
|
|
667
|
+
| '2912:1456'
|
|
668
|
+
| '1456:2912'
|
|
669
|
+
| 'auto_1k'
|
|
670
|
+
| 'auto_2k';
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* When true with exactly one reference image, edit that image directly instead of
|
|
674
|
+
* using it as a loose visual reference. With several reference images the prompt
|
|
675
|
+
* describes how they should be edited or combined. Requires at least one reference
|
|
676
|
+
* image.
|
|
677
|
+
*/
|
|
678
|
+
edit?: boolean;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
682
|
+
* of credits consumed by the generation.
|
|
683
|
+
*/
|
|
684
|
+
outputCount?: number;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* How much rendering effort the model spends on the output. Defaults to `medium`;
|
|
688
|
+
* `low` is faster and costs 2 fewer credits per image.
|
|
689
|
+
*/
|
|
690
|
+
quality?: 'low' | 'medium';
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Up to 3 images to guide the generation. Reference them from `promptText` to
|
|
694
|
+
* describe how each should be used. Each adds 1 credit to the generation.
|
|
695
|
+
*/
|
|
696
|
+
referenceImages?: Array<GrokImagineImage2.ReferenceImage>;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export namespace GrokImagineImage2 {
|
|
700
|
+
export interface ReferenceImage {
|
|
701
|
+
/**
|
|
702
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
703
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
704
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
705
|
+
*/
|
|
706
|
+
uri: string;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
628
710
|
export interface Gemini2_5Flash {
|
|
629
711
|
model: 'gemini_2.5_flash';
|
|
630
712
|
|