@runwayml/sdk 4.13.2 → 4.14.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 +13 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +17 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +17 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/generate/audio.d.mts +46 -24
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +46 -24
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/generate/generate.d.mts +2 -2
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +2 -2
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +21 -0
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +21 -0
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/generate/index.d.mts +1 -1
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -1
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -1
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/video.d.mts +21 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +21 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +118 -27
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +118 -27
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +17 -0
- package/resources/image-upscale.d.mts.map +1 -1
- package/resources/image-upscale.d.ts +17 -0
- package/resources/image-upscale.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +3 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +9 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +4 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +154 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +154 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +32 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +27 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/organization/webapp/audit-logs.d.mts +216 -0
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
- package/resources/organization/webapp/audit-logs.d.ts +216 -0
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
- package/resources/organization/webapp/audit-logs.js +30 -0
- package/resources/organization/webapp/audit-logs.js.map +1 -0
- package/resources/organization/webapp/audit-logs.mjs +26 -0
- package/resources/organization/webapp/audit-logs.mjs.map +1 -0
- package/resources/organization/webapp/index.d.mts +3 -0
- package/resources/organization/webapp/index.d.mts.map +1 -0
- package/resources/organization/webapp/index.d.ts +3 -0
- package/resources/organization/webapp/index.d.ts.map +1 -0
- package/resources/organization/webapp/index.js +9 -0
- package/resources/organization/webapp/index.js.map +1 -0
- package/resources/organization/webapp/index.mjs +4 -0
- package/resources/organization/webapp/index.mjs.map +1 -0
- package/resources/organization/webapp/webapp.d.mts +73 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -0
- package/resources/organization/webapp/webapp.d.ts +73 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -0
- package/resources/organization/webapp/webapp.js +30 -0
- package/resources/organization/webapp/webapp.js.map +1 -0
- package/resources/organization/webapp/webapp.mjs +25 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -0
- package/resources/organization/webapp.d.mts +2 -0
- package/resources/organization/webapp.d.mts.map +1 -0
- package/resources/organization/webapp.d.ts +2 -0
- package/resources/organization/webapp.d.ts.map +1 -0
- package/resources/organization/webapp.js +6 -0
- package/resources/organization/webapp.js.map +1 -0
- package/resources/organization/webapp.mjs +3 -0
- package/resources/organization/webapp.mjs.map +1 -0
- package/resources/organization.d.mts +1 -149
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +1 -149
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.js +2 -20
- package/resources/organization.js.map +1 -1
- package/resources/organization.mjs +1 -18
- package/resources/organization.mjs.map +1 -1
- package/resources/recipes.d.mts +119 -0
- package/resources/recipes.d.mts.map +1 -1
- package/resources/recipes.d.ts +119 -0
- package/resources/recipes.d.ts.map +1 -1
- package/resources/routers.d.mts +194 -1
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +194 -1
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +10 -0
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +10 -0
- package/resources/routers.mjs.map +1 -1
- package/resources/sound-effect.d.mts +17 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +17 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +17 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +17 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +90 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +90 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +22 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +22 -0
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +77 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +77 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +170 -17
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +170 -17
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +199 -7
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +199 -7
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +17 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +17 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +17 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +17 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +17 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +17 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/character-performance.ts +19 -0
- package/src/resources/generate/audio.ts +57 -27
- package/src/resources/generate/generate.ts +3 -1
- package/src/resources/generate/image.ts +24 -0
- package/src/resources/generate/index.ts +7 -1
- package/src/resources/generate/video.ts +24 -0
- package/src/resources/image-to-video.ts +147 -27
- package/src/resources/image-upscale.ts +19 -0
- package/src/resources/index.ts +4 -1
- package/src/resources/organization/index.ts +14 -0
- package/src/resources/organization/organization.ts +307 -0
- package/src/resources/organization/webapp/audit-logs.ts +440 -0
- package/src/resources/organization/webapp/index.ts +16 -0
- package/src/resources/organization/webapp/webapp.ts +118 -0
- package/src/resources/organization/webapp.ts +3 -0
- package/src/resources/organization.ts +1 -283
- package/src/resources/recipes.ts +133 -0
- package/src/resources/routers.ts +247 -0
- package/src/resources/sound-effect.ts +19 -0
- package/src/resources/speech-to-speech.ts +19 -0
- package/src/resources/tasks.ts +102 -0
- package/src/resources/text-to-image.ts +25 -0
- package/src/resources/text-to-speech.ts +142 -1
- package/src/resources/text-to-video.ts +208 -17
- package/src/resources/video-to-video.ts +246 -7
- package/src/resources/video-upscale.ts +19 -0
- package/src/resources/voice-dubbing.ts +19 -0
- package/src/resources/voice-isolation.ts +19 -0
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AudioAPI from './audio';
|
|
4
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
5
6
|
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../../lib/polling';
|
|
6
7
|
|
|
@@ -20,6 +21,30 @@ export class Audio extends APIResource {
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Clone a voice from a reference audio clip, then speak promptText in that voice.
|
|
26
|
+
* Routes only to models that support voice cloning.
|
|
27
|
+
*/
|
|
28
|
+
export interface ReferenceVoice {
|
|
29
|
+
/**
|
|
30
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
31
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
32
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
33
|
+
*/
|
|
34
|
+
audioUri: string;
|
|
35
|
+
|
|
36
|
+
type: 'reference-audio';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ReferenceAudio {
|
|
40
|
+
/**
|
|
41
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
42
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
43
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
44
|
+
*/
|
|
45
|
+
uri: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
export interface AudioCreateResponse {
|
|
24
49
|
/**
|
|
25
50
|
* The ID of the created task. Poll GET /v1/tasks/:id for the result.
|
|
@@ -67,6 +92,12 @@ export namespace AudioCreateResponse {
|
|
|
67
92
|
* The resolved config settings the router used for this request.
|
|
68
93
|
*/
|
|
69
94
|
resolvedSettings: Routing.ResolvedSettings;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Present only when the config enables fallback.onCapacity and capacity affected
|
|
98
|
+
* this request.
|
|
99
|
+
*/
|
|
100
|
+
capacityFallback?: Routing.CapacityFallback;
|
|
70
101
|
}
|
|
71
102
|
|
|
72
103
|
export namespace Routing {
|
|
@@ -114,6 +145,24 @@ export namespace AudioCreateResponse {
|
|
|
114
145
|
*/
|
|
115
146
|
priceCeiling: number | null;
|
|
116
147
|
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Present only when the config enables fallback.onCapacity and capacity affected
|
|
151
|
+
* this request.
|
|
152
|
+
*/
|
|
153
|
+
export interface CapacityFallback {
|
|
154
|
+
/**
|
|
155
|
+
* True when every eligible model was at its concurrency limit, so the best-ranked
|
|
156
|
+
* model was used and the task will queue.
|
|
157
|
+
*/
|
|
158
|
+
allExhausted: boolean;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Eligible models that were considered for this request but not selected because
|
|
162
|
+
* this account is at its concurrency limit for them.
|
|
163
|
+
*/
|
|
164
|
+
skipped: Array<string>;
|
|
165
|
+
}
|
|
117
166
|
}
|
|
118
167
|
}
|
|
119
168
|
|
|
@@ -166,25 +215,16 @@ export namespace AudioCreateParams {
|
|
|
166
215
|
* support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3
|
|
167
216
|
* in order.
|
|
168
217
|
*/
|
|
169
|
-
referenceAudios?: Array<
|
|
218
|
+
referenceAudios?: Array<AudioAPI.ReferenceAudio>;
|
|
170
219
|
|
|
171
220
|
/**
|
|
172
221
|
* The voice to speak with. When omitted, models that support a default voice
|
|
173
222
|
* remain eligible.
|
|
174
223
|
*/
|
|
175
|
-
voice?: Input.Preset |
|
|
224
|
+
voice?: Input.Preset | AudioAPI.ReferenceVoice;
|
|
176
225
|
}
|
|
177
226
|
|
|
178
227
|
export namespace Input {
|
|
179
|
-
export interface ReferenceAudio {
|
|
180
|
-
/**
|
|
181
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
182
|
-
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
183
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
184
|
-
*/
|
|
185
|
-
uri: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
228
|
/**
|
|
189
229
|
* A preset voice.
|
|
190
230
|
*/
|
|
@@ -246,24 +286,14 @@ export namespace AudioCreateParams {
|
|
|
246
286
|
|
|
247
287
|
type: 'preset';
|
|
248
288
|
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Clone a voice from a reference audio clip, then speak promptText in that voice.
|
|
252
|
-
* Routes only to models that support voice cloning.
|
|
253
|
-
*/
|
|
254
|
-
export interface ReferenceAudio {
|
|
255
|
-
/**
|
|
256
|
-
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
257
|
-
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
258
|
-
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
259
|
-
*/
|
|
260
|
-
audioUri: string;
|
|
261
|
-
|
|
262
|
-
type: 'reference-audio';
|
|
263
|
-
}
|
|
264
289
|
}
|
|
265
290
|
}
|
|
266
291
|
|
|
267
292
|
export declare namespace Audio {
|
|
268
|
-
export {
|
|
293
|
+
export {
|
|
294
|
+
type ReferenceVoice as ReferenceVoice,
|
|
295
|
+
type ReferenceAudio as ReferenceAudio,
|
|
296
|
+
type AudioCreateResponse as AudioCreateResponse,
|
|
297
|
+
type AudioCreateParams as AudioCreateParams,
|
|
298
|
+
};
|
|
269
299
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AudioAPI from './audio';
|
|
5
|
-
import { Audio, AudioCreateParams, AudioCreateResponse } from './audio';
|
|
5
|
+
import { Audio, AudioCreateParams, AudioCreateResponse, ReferenceAudio, ReferenceVoice } from './audio';
|
|
6
6
|
import * as ImageAPI from './image';
|
|
7
7
|
import { Image, ImageCreateParams, ImageCreateResponse } from './image';
|
|
8
8
|
import * as VideoAPI from './video';
|
|
@@ -33,6 +33,8 @@ export declare namespace Generate {
|
|
|
33
33
|
|
|
34
34
|
export {
|
|
35
35
|
Audio as Audio,
|
|
36
|
+
type ReferenceVoice as ReferenceVoice,
|
|
37
|
+
type ReferenceAudio as ReferenceAudio,
|
|
36
38
|
type AudioCreateResponse as AudioCreateResponse,
|
|
37
39
|
type AudioCreateParams as AudioCreateParams,
|
|
38
40
|
};
|
|
@@ -66,6 +66,12 @@ export namespace ImageCreateResponse {
|
|
|
66
66
|
* The resolved config settings the router used for this request.
|
|
67
67
|
*/
|
|
68
68
|
resolvedSettings: Routing.ResolvedSettings;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Present only when the config enables fallback.onCapacity and capacity affected
|
|
72
|
+
* this request.
|
|
73
|
+
*/
|
|
74
|
+
capacityFallback?: Routing.CapacityFallback;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
export namespace Routing {
|
|
@@ -117,6 +123,24 @@ export namespace ImageCreateResponse {
|
|
|
117
123
|
*/
|
|
118
124
|
priceCeiling: number | null;
|
|
119
125
|
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Present only when the config enables fallback.onCapacity and capacity affected
|
|
129
|
+
* this request.
|
|
130
|
+
*/
|
|
131
|
+
export interface CapacityFallback {
|
|
132
|
+
/**
|
|
133
|
+
* True when every eligible model was at its concurrency limit, so the best-ranked
|
|
134
|
+
* model was used and the task will queue.
|
|
135
|
+
*/
|
|
136
|
+
allExhausted: boolean;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Eligible models that were considered for this request but not selected because
|
|
140
|
+
* this account is at its concurrency limit for them.
|
|
141
|
+
*/
|
|
142
|
+
skipped: Array<string>;
|
|
143
|
+
}
|
|
120
144
|
}
|
|
121
145
|
}
|
|
122
146
|
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Audio,
|
|
5
|
+
type ReferenceVoice,
|
|
6
|
+
type ReferenceAudio,
|
|
7
|
+
type AudioCreateResponse,
|
|
8
|
+
type AudioCreateParams,
|
|
9
|
+
} from './audio';
|
|
4
10
|
export { Generate } from './generate';
|
|
5
11
|
export { Image, type ImageCreateResponse, type ImageCreateParams } from './image';
|
|
6
12
|
export { Video, type VideoCreateResponse, type VideoCreateParams } from './video';
|
|
@@ -66,6 +66,12 @@ export namespace VideoCreateResponse {
|
|
|
66
66
|
* The resolved config settings the router used for this request.
|
|
67
67
|
*/
|
|
68
68
|
resolvedSettings: Routing.ResolvedSettings;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Present only when the config enables fallback.onCapacity and capacity affected
|
|
72
|
+
* this request.
|
|
73
|
+
*/
|
|
74
|
+
capacityFallback?: Routing.CapacityFallback;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
77
|
export namespace Routing {
|
|
@@ -117,6 +123,24 @@ export namespace VideoCreateResponse {
|
|
|
117
123
|
*/
|
|
118
124
|
priceCeiling: number | null;
|
|
119
125
|
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Present only when the config enables fallback.onCapacity and capacity affected
|
|
129
|
+
* this request.
|
|
130
|
+
*/
|
|
131
|
+
export interface CapacityFallback {
|
|
132
|
+
/**
|
|
133
|
+
* True when every eligible model was at its concurrency limit, so the best-ranked
|
|
134
|
+
* model was used and the task will queue.
|
|
135
|
+
*/
|
|
136
|
+
allExhausted: boolean;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Eligible models that were considered for this request but not selected because
|
|
140
|
+
* this account is at its concurrency limit for them.
|
|
141
|
+
*/
|
|
142
|
+
skipped: Array<string>;
|
|
143
|
+
}
|
|
120
144
|
}
|
|
121
145
|
}
|
|
122
146
|
|
|
@@ -26,6 +26,25 @@ export interface ImageToVideoCreateResponse {
|
|
|
26
26
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
27
27
|
*/
|
|
28
28
|
id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
32
|
+
* the task completes.
|
|
33
|
+
*/
|
|
34
|
+
estimatedCost: ImageToVideoCreateResponse.EstimatedCost;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace ImageToVideoCreateResponse {
|
|
38
|
+
/**
|
|
39
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
40
|
+
* the task completes.
|
|
41
|
+
*/
|
|
42
|
+
export interface EstimatedCost {
|
|
43
|
+
/**
|
|
44
|
+
* Estimated cost of the generation in credits.
|
|
45
|
+
*/
|
|
46
|
+
credits: number;
|
|
47
|
+
}
|
|
29
48
|
}
|
|
30
49
|
|
|
31
50
|
export type ImageToVideoCreateParams =
|
|
@@ -33,12 +52,13 @@ export type ImageToVideoCreateParams =
|
|
|
33
52
|
| ImageToVideoCreateParams.Gen4Turbo
|
|
34
53
|
| ImageToVideoCreateParams.Veo3_1
|
|
35
54
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
55
|
+
| ImageToVideoCreateParams.Hailuo3
|
|
36
56
|
| ImageToVideoCreateParams.Happyhorse1_0
|
|
37
57
|
| ImageToVideoCreateParams.Seedance2
|
|
38
58
|
| ImageToVideoCreateParams.Seedance2Fast
|
|
39
59
|
| ImageToVideoCreateParams.Seedance2Mini
|
|
40
60
|
| ImageToVideoCreateParams.GeminiOmniFlash
|
|
41
|
-
| ImageToVideoCreateParams.
|
|
61
|
+
| ImageToVideoCreateParams.Seedance2_5;
|
|
42
62
|
|
|
43
63
|
export declare namespace ImageToVideoCreateParams {
|
|
44
64
|
export interface Gen4_5 {
|
|
@@ -73,6 +93,20 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
73
93
|
*/
|
|
74
94
|
contentModeration?: Gen4_5.ContentModeration;
|
|
75
95
|
|
|
96
|
+
/**
|
|
97
|
+
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
98
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
99
|
+
* (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
|
|
100
|
+
* an additional surcharge of 5 credits per second of output.
|
|
101
|
+
*/
|
|
102
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
106
|
+
* to `4444`.
|
|
107
|
+
*/
|
|
108
|
+
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
109
|
+
|
|
76
110
|
/**
|
|
77
111
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
78
112
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -286,6 +320,60 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
286
320
|
}
|
|
287
321
|
}
|
|
288
322
|
|
|
323
|
+
export interface Hailuo3 {
|
|
324
|
+
model: 'hailuo3';
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
328
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
329
|
+
*/
|
|
330
|
+
promptImage: string | Array<unknown>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
334
|
+
*/
|
|
335
|
+
promptText: string;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* The number of seconds of duration for the output video.
|
|
339
|
+
*/
|
|
340
|
+
duration?: number;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The aspect ratio of the output video. Use adaptive only when image or video
|
|
344
|
+
* references are provided; text-only requests require a concrete ratio.
|
|
345
|
+
*/
|
|
346
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
350
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
351
|
+
*/
|
|
352
|
+
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* The output resolution. Hailuo 3.0 supports 768P and 2K.
|
|
356
|
+
*/
|
|
357
|
+
resolution?: '2K' | '768P';
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export namespace Hailuo3 {
|
|
361
|
+
/**
|
|
362
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
363
|
+
* the output.
|
|
364
|
+
*/
|
|
365
|
+
export interface ReferenceAudio {
|
|
366
|
+
type: 'audio';
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
370
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
371
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
372
|
+
*/
|
|
373
|
+
uri: string;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
289
377
|
export interface Happyhorse1_0 {
|
|
290
378
|
model: 'happyhorse_1_0';
|
|
291
379
|
|
|
@@ -385,8 +473,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
385
473
|
| '2160:3840';
|
|
386
474
|
|
|
387
475
|
/**
|
|
388
|
-
* An optional array of audio references.
|
|
389
|
-
*
|
|
476
|
+
* An optional array of audio references. The total combined duration must not
|
|
477
|
+
* exceed 15 seconds.
|
|
390
478
|
*/
|
|
391
479
|
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
392
480
|
}
|
|
@@ -467,8 +555,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
467
555
|
| '720:1280';
|
|
468
556
|
|
|
469
557
|
/**
|
|
470
|
-
* An optional array of audio references.
|
|
471
|
-
*
|
|
558
|
+
* An optional array of audio references. The total combined duration must not
|
|
559
|
+
* exceed 15 seconds.
|
|
472
560
|
*/
|
|
473
561
|
referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
|
|
474
562
|
}
|
|
@@ -549,8 +637,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
549
637
|
| '720:1280';
|
|
550
638
|
|
|
551
639
|
/**
|
|
552
|
-
* An optional array of audio references.
|
|
553
|
-
*
|
|
640
|
+
* An optional array of audio references. The total combined duration must not
|
|
641
|
+
* exceed 15 seconds.
|
|
554
642
|
*/
|
|
555
643
|
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
556
644
|
}
|
|
@@ -631,50 +719,82 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
631
719
|
}
|
|
632
720
|
}
|
|
633
721
|
|
|
634
|
-
export interface
|
|
722
|
+
export interface Seedance2_5 {
|
|
723
|
+
model: 'seedance2_5';
|
|
724
|
+
|
|
635
725
|
/**
|
|
636
|
-
*
|
|
726
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
727
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
637
728
|
*/
|
|
638
|
-
|
|
729
|
+
promptImage: string | Array<Seedance2_5.PromptImage>;
|
|
639
730
|
|
|
640
|
-
|
|
731
|
+
/**
|
|
732
|
+
* Whether to generate audio for the video.
|
|
733
|
+
*/
|
|
734
|
+
audio?: boolean;
|
|
641
735
|
|
|
642
736
|
/**
|
|
643
|
-
*
|
|
644
|
-
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
645
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
737
|
+
* The number of seconds of duration for the output video.
|
|
646
738
|
*/
|
|
647
|
-
|
|
739
|
+
duration?: number;
|
|
648
740
|
|
|
649
741
|
/**
|
|
650
|
-
*
|
|
742
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
743
|
+
* the output.
|
|
651
744
|
*/
|
|
652
|
-
|
|
745
|
+
promptText?: string;
|
|
653
746
|
|
|
654
747
|
/**
|
|
655
|
-
*
|
|
748
|
+
* The resolution of the output video. Seedance 2.5 supports 480p and 720p only.
|
|
656
749
|
*/
|
|
657
|
-
|
|
750
|
+
ratio?:
|
|
751
|
+
| '992:432'
|
|
752
|
+
| '854:480'
|
|
753
|
+
| '752:560'
|
|
754
|
+
| '640:640'
|
|
755
|
+
| '560:752'
|
|
756
|
+
| '480:854'
|
|
757
|
+
| '1470:630'
|
|
758
|
+
| '1280:720'
|
|
759
|
+
| '1112:834'
|
|
760
|
+
| '960:960'
|
|
761
|
+
| '834:1112'
|
|
762
|
+
| '720:1280';
|
|
658
763
|
|
|
659
764
|
/**
|
|
660
|
-
*
|
|
661
|
-
*
|
|
765
|
+
* An optional array of audio references. The total combined duration must not
|
|
766
|
+
* exceed 30 seconds.
|
|
662
767
|
*/
|
|
663
|
-
|
|
768
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
664
769
|
}
|
|
665
770
|
|
|
666
|
-
export namespace
|
|
771
|
+
export namespace Seedance2_5 {
|
|
667
772
|
export interface PromptImage {
|
|
773
|
+
/**
|
|
774
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
775
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
776
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
777
|
+
*/
|
|
778
|
+
uri: string;
|
|
779
|
+
|
|
668
780
|
/**
|
|
669
781
|
* The position of the image in the output video. "first" will use the image as the
|
|
670
|
-
* first frame
|
|
782
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
671
783
|
*/
|
|
672
|
-
position
|
|
784
|
+
position?: 'first' | 'last';
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
789
|
+
* the output.
|
|
790
|
+
*/
|
|
791
|
+
export interface ReferenceAudio {
|
|
792
|
+
type: 'audio';
|
|
673
793
|
|
|
674
794
|
/**
|
|
675
795
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
676
|
-
* `data:
|
|
677
|
-
* [our docs](/assets/inputs#
|
|
796
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
797
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
678
798
|
*/
|
|
679
799
|
uri: string;
|
|
680
800
|
}
|
|
@@ -37,6 +37,25 @@ export interface ImageUpscaleCreateResponse {
|
|
|
37
37
|
* The ID of the task that was created. Use this to retrieve the task later.
|
|
38
38
|
*/
|
|
39
39
|
id: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
43
|
+
* the task completes.
|
|
44
|
+
*/
|
|
45
|
+
estimatedCost: ImageUpscaleCreateResponse.EstimatedCost;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace ImageUpscaleCreateResponse {
|
|
49
|
+
/**
|
|
50
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
51
|
+
* the task completes.
|
|
52
|
+
*/
|
|
53
|
+
export interface EstimatedCost {
|
|
54
|
+
/**
|
|
55
|
+
* Estimated cost of the generation in credits.
|
|
56
|
+
*/
|
|
57
|
+
credits: number;
|
|
58
|
+
}
|
|
40
59
|
}
|
|
41
60
|
|
|
42
61
|
export interface ImageUpscaleCreateParams {
|
package/src/resources/index.ts
CHANGED
|
@@ -52,7 +52,7 @@ export {
|
|
|
52
52
|
type OrganizationRetrieveResponse,
|
|
53
53
|
type OrganizationRetrieveUsageResponse,
|
|
54
54
|
type OrganizationRetrieveUsageParams,
|
|
55
|
-
} from './organization';
|
|
55
|
+
} from './organization/organization';
|
|
56
56
|
export {
|
|
57
57
|
RealtimeSessions,
|
|
58
58
|
type DeprecatedLivekit,
|
|
@@ -83,10 +83,13 @@ export {
|
|
|
83
83
|
type RouterRetrieveResponse,
|
|
84
84
|
type RouterUpdateResponse,
|
|
85
85
|
type RouterListResponse,
|
|
86
|
+
type RouterListRequestsResponse,
|
|
86
87
|
type RouterCreateParams,
|
|
87
88
|
type RouterUpdateParams,
|
|
88
89
|
type RouterListParams,
|
|
90
|
+
type RouterListRequestsParams,
|
|
89
91
|
type RouterListResponsesCursorPage,
|
|
92
|
+
type RouterListRequestsResponsesCursorPage,
|
|
90
93
|
} from './routers';
|
|
91
94
|
export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
|
|
92
95
|
export {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Organization,
|
|
5
|
+
type OrganizationRetrieveResponse,
|
|
6
|
+
type OrganizationRetrieveUsageResponse,
|
|
7
|
+
type OrganizationRetrieveUsageParams,
|
|
8
|
+
} from './organization';
|
|
9
|
+
export {
|
|
10
|
+
Webapp,
|
|
11
|
+
type WebappListUsageResponse,
|
|
12
|
+
type WebappListUsageParams,
|
|
13
|
+
type WebappListUsageResponsesCursorPage,
|
|
14
|
+
} from './webapp/index';
|