@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
|
@@ -57,7 +57,8 @@ export type TextToVideoCreateParams =
|
|
|
57
57
|
| TextToVideoCreateParams.Seedance2Fast
|
|
58
58
|
| TextToVideoCreateParams.Seedance2Mini
|
|
59
59
|
| TextToVideoCreateParams.GeminiOmniFlash
|
|
60
|
-
| TextToVideoCreateParams.Seedance2_5
|
|
60
|
+
| TextToVideoCreateParams.Seedance2_5
|
|
61
|
+
| TextToVideoCreateParams.GrokImagine1_5;
|
|
61
62
|
|
|
62
63
|
export declare namespace TextToVideoCreateParams {
|
|
63
64
|
export interface Gen4_5 {
|
|
@@ -88,14 +89,42 @@ export declare namespace TextToVideoCreateParams {
|
|
|
88
89
|
/**
|
|
89
90
|
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
90
91
|
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
91
|
-
* (plus a separate .wav artifact when the output has audio).
|
|
92
|
-
*
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
*
|
|
98
|
-
*
|
|
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`.
|
|
99
128
|
*/
|
|
100
129
|
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
101
130
|
|
|
@@ -219,7 +248,7 @@ export declare namespace TextToVideoCreateParams {
|
|
|
219
248
|
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
220
249
|
|
|
221
250
|
/**
|
|
222
|
-
* The output resolution.
|
|
251
|
+
* The output resolution. MiniMax H3 supports 768P and 2K.
|
|
223
252
|
*/
|
|
224
253
|
resolution?: '2K' | '768P';
|
|
225
254
|
}
|
|
@@ -640,7 +669,7 @@ export declare namespace TextToVideoCreateParams {
|
|
|
640
669
|
promptText?: string;
|
|
641
670
|
|
|
642
671
|
/**
|
|
643
|
-
* The resolution of the output video. Seedance 2.5 supports 480p and
|
|
672
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
644
673
|
*/
|
|
645
674
|
ratio?:
|
|
646
675
|
| '992:432'
|
|
@@ -654,7 +683,13 @@ export declare namespace TextToVideoCreateParams {
|
|
|
654
683
|
| '1112:834'
|
|
655
684
|
| '960:960'
|
|
656
685
|
| '834:1112'
|
|
657
|
-
| '720:1280'
|
|
686
|
+
| '720:1280'
|
|
687
|
+
| '2206:946'
|
|
688
|
+
| '1920:1080'
|
|
689
|
+
| '1664:1248'
|
|
690
|
+
| '1440:1440'
|
|
691
|
+
| '1248:1664'
|
|
692
|
+
| '1080:1920';
|
|
658
693
|
|
|
659
694
|
/**
|
|
660
695
|
* An optional array of audio references. The total combined duration must be less
|
|
@@ -716,6 +751,68 @@ export declare namespace TextToVideoCreateParams {
|
|
|
716
751
|
uri: string;
|
|
717
752
|
}
|
|
718
753
|
}
|
|
754
|
+
|
|
755
|
+
export interface GrokImagine1_5 {
|
|
756
|
+
model: 'grok_imagine_1_5';
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
760
|
+
*/
|
|
761
|
+
promptText: string;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The number of seconds of duration for the output video.
|
|
765
|
+
*/
|
|
766
|
+
duration?: number;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* The aspect ratio of the output video.
|
|
770
|
+
*/
|
|
771
|
+
ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '3:2' | '2:3';
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* An optional array of audio references. Audio references require at least one
|
|
775
|
+
* image reference, and each clip must be between 3 and 15 seconds.
|
|
776
|
+
*/
|
|
777
|
+
referenceAudio?: Array<GrokImagine1_5.ReferenceAudio>;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* An optional array of image references. Referenced images can be addressed in the
|
|
781
|
+
* prompt as [Image 1], [Image 2], and so on. See [our docs](/assets/inputs#images)
|
|
782
|
+
* on image inputs for more information.
|
|
783
|
+
*/
|
|
784
|
+
references?: Array<GrokImagine1_5.Reference>;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The output resolution. Requests with image references are capped at 720p.
|
|
788
|
+
*/
|
|
789
|
+
resolution?: '480p' | '720p' | '1080p';
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
export namespace GrokImagine1_5 {
|
|
793
|
+
/**
|
|
794
|
+
* An audio reference allows the model to drive the output with the supplied audio.
|
|
795
|
+
*/
|
|
796
|
+
export interface ReferenceAudio {
|
|
797
|
+
type: 'audio';
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
801
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
802
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
803
|
+
*/
|
|
804
|
+
uri: string;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export interface Reference {
|
|
808
|
+
/**
|
|
809
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
810
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
811
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
812
|
+
*/
|
|
813
|
+
uri: string;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
719
816
|
}
|
|
720
817
|
|
|
721
818
|
export declare namespace TextToVideo {
|
|
@@ -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.0'; // 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.0";
|
|
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.0";
|
|
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.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|