@runwayml/sdk 4.9.1 → 4.11.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 +22 -0
- package/README.md +8 -8
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/generate/generate.d.mts +10 -0
- package/resources/generate/generate.d.mts.map +1 -0
- package/resources/generate/generate.d.ts +10 -0
- package/resources/generate/generate.d.ts.map +1 -0
- package/resources/generate/generate.js +17 -0
- package/resources/generate/generate.js.map +1 -0
- package/resources/generate/generate.mjs +12 -0
- package/resources/generate/generate.mjs.map +1 -0
- package/resources/generate/index.d.mts +3 -0
- package/resources/generate/index.d.mts.map +1 -0
- package/resources/generate/index.d.ts +3 -0
- package/resources/generate/index.d.ts.map +1 -0
- package/resources/generate/index.js +9 -0
- package/resources/generate/index.js.map +1 -0
- package/resources/generate/index.mjs +4 -0
- package/resources/generate/index.mjs.map +1 -0
- package/resources/generate/video.d.mts +246 -0
- package/resources/generate/video.d.mts.map +1 -0
- package/resources/generate/video.d.ts +246 -0
- package/resources/generate/video.d.ts.map +1 -0
- package/resources/generate/video.js +17 -0
- package/resources/generate/video.js.map +1 -0
- package/resources/generate/video.mjs +13 -0
- package/resources/generate/video.mjs.map +1 -0
- package/resources/generate.d.mts +2 -0
- package/resources/generate.d.mts.map +1 -0
- package/resources/generate.d.ts +2 -0
- package/resources/generate.d.ts.map +1 -0
- package/resources/generate.js +6 -0
- package/resources/generate.js.map +1 -0
- package/resources/generate.mjs +3 -0
- package/resources/generate.mjs.map +1 -0
- package/resources/image-to-video.d.mts +12 -0
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +12 -0
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +20 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +20 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/routers.d.mts +490 -0
- package/resources/routers.d.mts.map +1 -0
- package/resources/routers.d.ts +490 -0
- package/resources/routers.d.ts.map +1 -0
- package/resources/routers.js +49 -0
- package/resources/routers.js.map +1 -0
- package/resources/routers.mjs +45 -0
- package/resources/routers.mjs.map +1 -0
- package/resources/text-to-image.d.mts +74 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +74 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +12 -0
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +12 -0
- package/resources/text-to-video.d.ts.map +1 -1
- package/src/client.ts +30 -0
- package/src/resources/generate/generate.ts +19 -0
- package/src/resources/generate/index.ts +4 -0
- package/src/resources/generate/video.ts +300 -0
- package/src/resources/generate.ts +3 -0
- package/src/resources/image-to-video.ts +15 -0
- package/src/resources/index.ts +12 -0
- package/src/resources/organization.ts +34 -0
- package/src/resources/routers.ts +622 -0
- package/src/resources/text-to-image.ts +122 -0
- package/src/resources/text-to-video.ts +15 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/generate/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,oBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/generate/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,sBAAmB;AACtC,OAAO,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,mBAAgB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Video = exports.Generate = void 0;
|
|
5
|
+
var generate_1 = require("./generate.js");
|
|
6
|
+
Object.defineProperty(exports, "Generate", { enumerable: true, get: function () { return generate_1.Generate; } });
|
|
7
|
+
var video_1 = require("./video.js");
|
|
8
|
+
Object.defineProperty(exports, "Video", { enumerable: true, get: function () { return video_1.Video; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/generate/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,oCAAkF;AAAzE,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/generate/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EAAE,KAAK,EAAoD,oBAAgB"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../../lib/polling.mjs";
|
|
4
|
+
export declare class Video extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Start a video generation task using a saved Model Router config instead of
|
|
7
|
+
* naming a model.
|
|
8
|
+
*/
|
|
9
|
+
create(body: VideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoCreateResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface VideoCreateResponse {
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the created task. Poll GET /v1/tasks/:id for the result.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Metadata describing which model the router selected and why.
|
|
18
|
+
*/
|
|
19
|
+
routing: VideoCreateResponse.Routing;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace VideoCreateResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Metadata describing which model the router selected and why.
|
|
24
|
+
*/
|
|
25
|
+
interface Routing {
|
|
26
|
+
/**
|
|
27
|
+
* The slug of the router config that was applied to this request.
|
|
28
|
+
*/
|
|
29
|
+
configId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost, computed against current pricing.
|
|
32
|
+
*/
|
|
33
|
+
estimatedCost: Routing.EstimatedCost;
|
|
34
|
+
/**
|
|
35
|
+
* The public name of the model the router selected.
|
|
36
|
+
*/
|
|
37
|
+
model: string;
|
|
38
|
+
/**
|
|
39
|
+
* The provider of the selected model.
|
|
40
|
+
*/
|
|
41
|
+
provider: string;
|
|
42
|
+
/**
|
|
43
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
44
|
+
* identical to prepared model options.
|
|
45
|
+
*/
|
|
46
|
+
resolvedInput: Routing.ResolvedInput;
|
|
47
|
+
/**
|
|
48
|
+
* The resolved config settings the router used for this request.
|
|
49
|
+
*/
|
|
50
|
+
resolvedSettings: Routing.ResolvedSettings;
|
|
51
|
+
}
|
|
52
|
+
namespace Routing {
|
|
53
|
+
/**
|
|
54
|
+
* Estimated cost, computed against current pricing.
|
|
55
|
+
*/
|
|
56
|
+
interface EstimatedCost {
|
|
57
|
+
/**
|
|
58
|
+
* Estimated cost of the generation in credits.
|
|
59
|
+
*/
|
|
60
|
+
credits: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
64
|
+
* identical to prepared model options.
|
|
65
|
+
*/
|
|
66
|
+
interface ResolvedInput {
|
|
67
|
+
/**
|
|
68
|
+
* Duration in seconds used for routing display (request value or router default).
|
|
69
|
+
*/
|
|
70
|
+
duration: number;
|
|
71
|
+
/**
|
|
72
|
+
* Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router
|
|
73
|
+
* default.
|
|
74
|
+
*/
|
|
75
|
+
ratio: string;
|
|
76
|
+
/**
|
|
77
|
+
* Resolution tier from the request, or the router default when omitted.
|
|
78
|
+
*/
|
|
79
|
+
resolution: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The resolved config settings the router used for this request.
|
|
83
|
+
*/
|
|
84
|
+
interface ResolvedSettings {
|
|
85
|
+
/**
|
|
86
|
+
* The single optimization preference the config selected, used as the soft
|
|
87
|
+
* weighting when scoring eligible models.
|
|
88
|
+
*/
|
|
89
|
+
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
90
|
+
/**
|
|
91
|
+
* The applied maximum credits per generation for this request’s modality, or null
|
|
92
|
+
* if the config sets no ceiling.
|
|
93
|
+
*/
|
|
94
|
+
priceCeiling: number | null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface VideoCreateParams {
|
|
99
|
+
/**
|
|
100
|
+
* The slug of a saved Model Router config to route this request with.
|
|
101
|
+
*/
|
|
102
|
+
configId: string;
|
|
103
|
+
/**
|
|
104
|
+
* Model-agnostic video generation input. Fields are optional; the router selects a
|
|
105
|
+
* model and maps these options to it.
|
|
106
|
+
*/
|
|
107
|
+
input: VideoCreateParams.Input;
|
|
108
|
+
}
|
|
109
|
+
export declare namespace VideoCreateParams {
|
|
110
|
+
/**
|
|
111
|
+
* Model-agnostic video generation input. Fields are optional; the router selects a
|
|
112
|
+
* model and maps these options to it.
|
|
113
|
+
*/
|
|
114
|
+
interface Input {
|
|
115
|
+
/**
|
|
116
|
+
* Desired aspect ratio. Models that do not support the requested aspect are
|
|
117
|
+
* excluded.
|
|
118
|
+
*/
|
|
119
|
+
aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9';
|
|
120
|
+
/**
|
|
121
|
+
* Whether to generate native audio with the video. When true, only models that
|
|
122
|
+
* output audio remain eligible; when false, silent models and models with an audio
|
|
123
|
+
* toggle remain eligible (always-on native-audio models are excluded). When
|
|
124
|
+
* omitted, the selected model’s default applies.
|
|
125
|
+
*/
|
|
126
|
+
audio?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Settings that affect the behavior of the content moderation system.
|
|
129
|
+
*/
|
|
130
|
+
contentModeration?: Input.ContentModeration;
|
|
131
|
+
/**
|
|
132
|
+
* Desired duration of the output video, in seconds. Unsupported values exclude
|
|
133
|
+
* models; with a source video, V2V duration support applies.
|
|
134
|
+
*/
|
|
135
|
+
duration?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Timed guidance images for video restyle. Requires a source video; unsupported
|
|
138
|
+
* models are excluded.
|
|
139
|
+
*/
|
|
140
|
+
keyframes?: Array<Input.UnionMember0 | Input.UnionMember1>;
|
|
141
|
+
/**
|
|
142
|
+
* A text description of what to avoid in the output.
|
|
143
|
+
*/
|
|
144
|
+
negativePrompt?: string;
|
|
145
|
+
/**
|
|
146
|
+
* A text prompt describing the desired video.
|
|
147
|
+
*/
|
|
148
|
+
promptText?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Optional audio inputs for the generation.
|
|
151
|
+
*/
|
|
152
|
+
referenceAudio?: Array<Input.ReferenceAudio>;
|
|
153
|
+
/**
|
|
154
|
+
* Optional image inputs. Each entry requires a `role`. At most one `first` and one
|
|
155
|
+
* `last` are allowed; multiple `reference` images are allowed.
|
|
156
|
+
*/
|
|
157
|
+
referenceImages?: Array<Input.ReferenceImage>;
|
|
158
|
+
/**
|
|
159
|
+
* Optional video inputs. Each entry requires a `role`. Use `source` for
|
|
160
|
+
* video-to-video; use `reference` for additional context videos (only models that
|
|
161
|
+
* support them remain eligible). At most one `source` is allowed.
|
|
162
|
+
*/
|
|
163
|
+
referenceVideos?: Array<Input.ReferenceVideo>;
|
|
164
|
+
/**
|
|
165
|
+
* Desired output resolution tier. Models that do not support the requested tier
|
|
166
|
+
* are excluded.
|
|
167
|
+
*/
|
|
168
|
+
resolution?: '480p' | '720p' | '1080p' | '4k';
|
|
169
|
+
/**
|
|
170
|
+
* A seed for reproducible generation. Random if omitted.
|
|
171
|
+
*/
|
|
172
|
+
seed?: number;
|
|
173
|
+
}
|
|
174
|
+
namespace Input {
|
|
175
|
+
/**
|
|
176
|
+
* Settings that affect the behavior of the content moderation system.
|
|
177
|
+
*/
|
|
178
|
+
interface ContentModeration {
|
|
179
|
+
/**
|
|
180
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
181
|
+
* preventing generations that include recognizable public figures.
|
|
182
|
+
*/
|
|
183
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
184
|
+
}
|
|
185
|
+
interface UnionMember0 {
|
|
186
|
+
seconds: number;
|
|
187
|
+
/**
|
|
188
|
+
* A HTTPS URL.
|
|
189
|
+
*/
|
|
190
|
+
uri: string;
|
|
191
|
+
range?: UnionMember0.Range;
|
|
192
|
+
}
|
|
193
|
+
namespace UnionMember0 {
|
|
194
|
+
interface Range {
|
|
195
|
+
end_seconds: number;
|
|
196
|
+
start_seconds: number;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
interface UnionMember1 {
|
|
200
|
+
at: number;
|
|
201
|
+
/**
|
|
202
|
+
* A HTTPS URL.
|
|
203
|
+
*/
|
|
204
|
+
uri: string;
|
|
205
|
+
range?: UnionMember1.Range;
|
|
206
|
+
}
|
|
207
|
+
namespace UnionMember1 {
|
|
208
|
+
interface Range {
|
|
209
|
+
end_seconds: number;
|
|
210
|
+
start_seconds: number;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
interface ReferenceAudio {
|
|
214
|
+
/**
|
|
215
|
+
* A HTTPS URL.
|
|
216
|
+
*/
|
|
217
|
+
uri: string;
|
|
218
|
+
}
|
|
219
|
+
interface ReferenceImage {
|
|
220
|
+
/**
|
|
221
|
+
* How the image is used. `first` is the starting frame; `last` is an end frame;
|
|
222
|
+
* `reference` is additional image context.
|
|
223
|
+
*/
|
|
224
|
+
role: 'first' | 'last' | 'reference';
|
|
225
|
+
/**
|
|
226
|
+
* A HTTPS URL.
|
|
227
|
+
*/
|
|
228
|
+
uri: string;
|
|
229
|
+
}
|
|
230
|
+
interface ReferenceVideo {
|
|
231
|
+
/**
|
|
232
|
+
* How the video is used. `source` is the primary video-to-video input; `reference`
|
|
233
|
+
* is additional video context.
|
|
234
|
+
*/
|
|
235
|
+
role: 'source' | 'reference';
|
|
236
|
+
/**
|
|
237
|
+
* A HTTPS URL.
|
|
238
|
+
*/
|
|
239
|
+
uri: string;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export declare namespace Video {
|
|
244
|
+
export { type VideoCreateResponse as VideoCreateResponse, type VideoCreateParams as VideoCreateParams };
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=video.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.d.mts","sourceRoot":"","sources":["../../src/resources/generate/video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAChE,OAAO,EAAE,2BAA2B,EAA0B,8BAA0B;AAExF,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,c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C3B,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ,KAAK,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC;SAC5B;QAED,UAAiB,YAAY,CAAC;YAC5B,UAAiB,KAAK;gBACpB,WAAW,EAAE,MAAM,CAAC;gBAEpB,aAAa,EAAE,MAAM,CAAC;aACvB;SACF;QAED,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,cAAc;YAC7B;;;eAGG;YACH,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC;YAErC;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,cAAc;YAC7B;;;eAGG;YACH,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;YAE7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../../lib/polling.js";
|
|
4
|
+
export declare class Video extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Start a video generation task using a saved Model Router config instead of
|
|
7
|
+
* naming a model.
|
|
8
|
+
*/
|
|
9
|
+
create(body: VideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<VideoCreateResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface VideoCreateResponse {
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the created task. Poll GET /v1/tasks/:id for the result.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Metadata describing which model the router selected and why.
|
|
18
|
+
*/
|
|
19
|
+
routing: VideoCreateResponse.Routing;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace VideoCreateResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Metadata describing which model the router selected and why.
|
|
24
|
+
*/
|
|
25
|
+
interface Routing {
|
|
26
|
+
/**
|
|
27
|
+
* The slug of the router config that was applied to this request.
|
|
28
|
+
*/
|
|
29
|
+
configId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Estimated cost, computed against current pricing.
|
|
32
|
+
*/
|
|
33
|
+
estimatedCost: Routing.EstimatedCost;
|
|
34
|
+
/**
|
|
35
|
+
* The public name of the model the router selected.
|
|
36
|
+
*/
|
|
37
|
+
model: string;
|
|
38
|
+
/**
|
|
39
|
+
* The provider of the selected model.
|
|
40
|
+
*/
|
|
41
|
+
provider: string;
|
|
42
|
+
/**
|
|
43
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
44
|
+
* identical to prepared model options.
|
|
45
|
+
*/
|
|
46
|
+
resolvedInput: Routing.ResolvedInput;
|
|
47
|
+
/**
|
|
48
|
+
* The resolved config settings the router used for this request.
|
|
49
|
+
*/
|
|
50
|
+
resolvedSettings: Routing.ResolvedSettings;
|
|
51
|
+
}
|
|
52
|
+
namespace Routing {
|
|
53
|
+
/**
|
|
54
|
+
* Estimated cost, computed against current pricing.
|
|
55
|
+
*/
|
|
56
|
+
interface EstimatedCost {
|
|
57
|
+
/**
|
|
58
|
+
* Estimated cost of the generation in credits.
|
|
59
|
+
*/
|
|
60
|
+
credits: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
64
|
+
* identical to prepared model options.
|
|
65
|
+
*/
|
|
66
|
+
interface ResolvedInput {
|
|
67
|
+
/**
|
|
68
|
+
* Duration in seconds used for routing display (request value or router default).
|
|
69
|
+
*/
|
|
70
|
+
duration: number;
|
|
71
|
+
/**
|
|
72
|
+
* Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router
|
|
73
|
+
* default.
|
|
74
|
+
*/
|
|
75
|
+
ratio: string;
|
|
76
|
+
/**
|
|
77
|
+
* Resolution tier from the request, or the router default when omitted.
|
|
78
|
+
*/
|
|
79
|
+
resolution: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The resolved config settings the router used for this request.
|
|
83
|
+
*/
|
|
84
|
+
interface ResolvedSettings {
|
|
85
|
+
/**
|
|
86
|
+
* The single optimization preference the config selected, used as the soft
|
|
87
|
+
* weighting when scoring eligible models.
|
|
88
|
+
*/
|
|
89
|
+
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
90
|
+
/**
|
|
91
|
+
* The applied maximum credits per generation for this request’s modality, or null
|
|
92
|
+
* if the config sets no ceiling.
|
|
93
|
+
*/
|
|
94
|
+
priceCeiling: number | null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface VideoCreateParams {
|
|
99
|
+
/**
|
|
100
|
+
* The slug of a saved Model Router config to route this request with.
|
|
101
|
+
*/
|
|
102
|
+
configId: string;
|
|
103
|
+
/**
|
|
104
|
+
* Model-agnostic video generation input. Fields are optional; the router selects a
|
|
105
|
+
* model and maps these options to it.
|
|
106
|
+
*/
|
|
107
|
+
input: VideoCreateParams.Input;
|
|
108
|
+
}
|
|
109
|
+
export declare namespace VideoCreateParams {
|
|
110
|
+
/**
|
|
111
|
+
* Model-agnostic video generation input. Fields are optional; the router selects a
|
|
112
|
+
* model and maps these options to it.
|
|
113
|
+
*/
|
|
114
|
+
interface Input {
|
|
115
|
+
/**
|
|
116
|
+
* Desired aspect ratio. Models that do not support the requested aspect are
|
|
117
|
+
* excluded.
|
|
118
|
+
*/
|
|
119
|
+
aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9';
|
|
120
|
+
/**
|
|
121
|
+
* Whether to generate native audio with the video. When true, only models that
|
|
122
|
+
* output audio remain eligible; when false, silent models and models with an audio
|
|
123
|
+
* toggle remain eligible (always-on native-audio models are excluded). When
|
|
124
|
+
* omitted, the selected model’s default applies.
|
|
125
|
+
*/
|
|
126
|
+
audio?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Settings that affect the behavior of the content moderation system.
|
|
129
|
+
*/
|
|
130
|
+
contentModeration?: Input.ContentModeration;
|
|
131
|
+
/**
|
|
132
|
+
* Desired duration of the output video, in seconds. Unsupported values exclude
|
|
133
|
+
* models; with a source video, V2V duration support applies.
|
|
134
|
+
*/
|
|
135
|
+
duration?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Timed guidance images for video restyle. Requires a source video; unsupported
|
|
138
|
+
* models are excluded.
|
|
139
|
+
*/
|
|
140
|
+
keyframes?: Array<Input.UnionMember0 | Input.UnionMember1>;
|
|
141
|
+
/**
|
|
142
|
+
* A text description of what to avoid in the output.
|
|
143
|
+
*/
|
|
144
|
+
negativePrompt?: string;
|
|
145
|
+
/**
|
|
146
|
+
* A text prompt describing the desired video.
|
|
147
|
+
*/
|
|
148
|
+
promptText?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Optional audio inputs for the generation.
|
|
151
|
+
*/
|
|
152
|
+
referenceAudio?: Array<Input.ReferenceAudio>;
|
|
153
|
+
/**
|
|
154
|
+
* Optional image inputs. Each entry requires a `role`. At most one `first` and one
|
|
155
|
+
* `last` are allowed; multiple `reference` images are allowed.
|
|
156
|
+
*/
|
|
157
|
+
referenceImages?: Array<Input.ReferenceImage>;
|
|
158
|
+
/**
|
|
159
|
+
* Optional video inputs. Each entry requires a `role`. Use `source` for
|
|
160
|
+
* video-to-video; use `reference` for additional context videos (only models that
|
|
161
|
+
* support them remain eligible). At most one `source` is allowed.
|
|
162
|
+
*/
|
|
163
|
+
referenceVideos?: Array<Input.ReferenceVideo>;
|
|
164
|
+
/**
|
|
165
|
+
* Desired output resolution tier. Models that do not support the requested tier
|
|
166
|
+
* are excluded.
|
|
167
|
+
*/
|
|
168
|
+
resolution?: '480p' | '720p' | '1080p' | '4k';
|
|
169
|
+
/**
|
|
170
|
+
* A seed for reproducible generation. Random if omitted.
|
|
171
|
+
*/
|
|
172
|
+
seed?: number;
|
|
173
|
+
}
|
|
174
|
+
namespace Input {
|
|
175
|
+
/**
|
|
176
|
+
* Settings that affect the behavior of the content moderation system.
|
|
177
|
+
*/
|
|
178
|
+
interface ContentModeration {
|
|
179
|
+
/**
|
|
180
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
181
|
+
* preventing generations that include recognizable public figures.
|
|
182
|
+
*/
|
|
183
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
184
|
+
}
|
|
185
|
+
interface UnionMember0 {
|
|
186
|
+
seconds: number;
|
|
187
|
+
/**
|
|
188
|
+
* A HTTPS URL.
|
|
189
|
+
*/
|
|
190
|
+
uri: string;
|
|
191
|
+
range?: UnionMember0.Range;
|
|
192
|
+
}
|
|
193
|
+
namespace UnionMember0 {
|
|
194
|
+
interface Range {
|
|
195
|
+
end_seconds: number;
|
|
196
|
+
start_seconds: number;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
interface UnionMember1 {
|
|
200
|
+
at: number;
|
|
201
|
+
/**
|
|
202
|
+
* A HTTPS URL.
|
|
203
|
+
*/
|
|
204
|
+
uri: string;
|
|
205
|
+
range?: UnionMember1.Range;
|
|
206
|
+
}
|
|
207
|
+
namespace UnionMember1 {
|
|
208
|
+
interface Range {
|
|
209
|
+
end_seconds: number;
|
|
210
|
+
start_seconds: number;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
interface ReferenceAudio {
|
|
214
|
+
/**
|
|
215
|
+
* A HTTPS URL.
|
|
216
|
+
*/
|
|
217
|
+
uri: string;
|
|
218
|
+
}
|
|
219
|
+
interface ReferenceImage {
|
|
220
|
+
/**
|
|
221
|
+
* How the image is used. `first` is the starting frame; `last` is an end frame;
|
|
222
|
+
* `reference` is additional image context.
|
|
223
|
+
*/
|
|
224
|
+
role: 'first' | 'last' | 'reference';
|
|
225
|
+
/**
|
|
226
|
+
* A HTTPS URL.
|
|
227
|
+
*/
|
|
228
|
+
uri: string;
|
|
229
|
+
}
|
|
230
|
+
interface ReferenceVideo {
|
|
231
|
+
/**
|
|
232
|
+
* How the video is used. `source` is the primary video-to-video input; `reference`
|
|
233
|
+
* is additional video context.
|
|
234
|
+
*/
|
|
235
|
+
role: 'source' | 'reference';
|
|
236
|
+
/**
|
|
237
|
+
* A HTTPS URL.
|
|
238
|
+
*/
|
|
239
|
+
uri: string;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export declare namespace Video {
|
|
244
|
+
export { type VideoCreateResponse as VideoCreateResponse, type VideoCreateParams as VideoCreateParams };
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=video.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../src/resources/generate/video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAChE,OAAO,EAAE,2BAA2B,EAA0B,6BAA0B;AAExF,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,mBAAmB,CAAC;CAKpD;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC;CACtC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC;QAErC;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;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AG,WAAW,CAAC;YAErC;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,cAAc;YAC7B;;;eAGG;YACH,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;YAE7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Video = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const polling_1 = require("../../lib/polling.js");
|
|
7
|
+
class Video extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Start a video generation task using a saved Model Router config instead of
|
|
10
|
+
* naming a model.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/generate/video', { body, ...options }));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Video = Video;
|
|
17
|
+
//# sourceMappingURL=video.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.js","sourceRoot":"","sources":["../../src/resources/generate/video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,kDAAwF;AAExF,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAAsB,IAAI,CAAC,OAAO,CAAC,CAC9D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAbD,sBAaC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export class Video extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Start a video generation task using a saved Model Router config instead of
|
|
7
|
+
* naming a model.
|
|
8
|
+
*/
|
|
9
|
+
create(body, options) {
|
|
10
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/generate/video', { body, ...options }));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=video.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video.mjs","sourceRoot":"","sources":["../../src/resources/generate/video.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAA+B,sBAAsB,EAAE,8BAA0B;AAExF,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,MAAM,CACJ,IAAuB,EACvB,OAAwB;QAExB,OAAO,sBAAsB,CAAsB,IAAI,CAAC,OAAO,CAAC,CAC9D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.mts","sourceRoot":"","sources":["../src/resources/generate.ts"],"names":[],"mappings":"AAEA,qCAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../src/resources/generate.ts"],"names":[],"mappings":"AAEA,oCAAiC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./generate/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=generate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../src/resources/generate.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.mjs","sourceRoot":"","sources":["../src/resources/generate.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,qCAAiC"}
|
|
@@ -145,6 +145,10 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
145
145
|
* The number of seconds of duration for the output video.
|
|
146
146
|
*/
|
|
147
147
|
duration?: 4 | 6 | 8;
|
|
148
|
+
/**
|
|
149
|
+
* Text describing what should not appear in the output video.
|
|
150
|
+
*/
|
|
151
|
+
negativePrompt?: string;
|
|
148
152
|
/**
|
|
149
153
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
150
154
|
* should describe in detail what should appear in the output.
|
|
@@ -185,6 +189,10 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
185
189
|
* The number of seconds of duration for the output video.
|
|
186
190
|
*/
|
|
187
191
|
duration?: 4 | 6 | 8;
|
|
192
|
+
/**
|
|
193
|
+
* Text describing what should not appear in the output video.
|
|
194
|
+
*/
|
|
195
|
+
negativePrompt?: string;
|
|
188
196
|
/**
|
|
189
197
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
190
198
|
* should describe in detail what should appear in the output.
|
|
@@ -451,6 +459,10 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
451
459
|
* The resolution of the output video.
|
|
452
460
|
*/
|
|
453
461
|
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
462
|
+
/**
|
|
463
|
+
* Text describing what should not appear in the output video.
|
|
464
|
+
*/
|
|
465
|
+
negativePrompt?: string;
|
|
454
466
|
/**
|
|
455
467
|
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
456
468
|
* should describe in detail what should appear in the output.
|