@runwayml/sdk 4.13.2 → 4.15.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 +21 -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 +146 -19
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +146 -19
- 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 +68 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +68 -1
- 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 +221 -16
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +221 -16
- 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 +189 -19
- 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 +107 -0
- package/src/resources/text-to-speech.ts +142 -1
- package/src/resources/text-to-video.ts +276 -16
- package/src/resources/video-to-video.ts +252 -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,14 @@ 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
|
|
62
|
+
| ImageToVideoCreateParams.GrokImagine1_5;
|
|
42
63
|
|
|
43
64
|
export declare namespace ImageToVideoCreateParams {
|
|
44
65
|
export interface Gen4_5 {
|
|
@@ -73,6 +94,20 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
73
94
|
*/
|
|
74
95
|
contentModeration?: Gen4_5.ContentModeration;
|
|
75
96
|
|
|
97
|
+
/**
|
|
98
|
+
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
99
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
100
|
+
* (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
|
|
101
|
+
* an additional surcharge of 5 credits per second of output.
|
|
102
|
+
*/
|
|
103
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
107
|
+
* to `4444`.
|
|
108
|
+
*/
|
|
109
|
+
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
110
|
+
|
|
76
111
|
/**
|
|
77
112
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
78
113
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -286,6 +321,60 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
286
321
|
}
|
|
287
322
|
}
|
|
288
323
|
|
|
324
|
+
export interface Hailuo3 {
|
|
325
|
+
model: 'hailuo3';
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
329
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
330
|
+
*/
|
|
331
|
+
promptImage: string | Array<unknown>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
335
|
+
*/
|
|
336
|
+
promptText: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The number of seconds of duration for the output video.
|
|
340
|
+
*/
|
|
341
|
+
duration?: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The aspect ratio of the output video. Use adaptive only when image or video
|
|
345
|
+
* references are provided; text-only requests require a concrete ratio.
|
|
346
|
+
*/
|
|
347
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
351
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
352
|
+
*/
|
|
353
|
+
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The output resolution. Hailuo 3.0 supports 768P and 2K.
|
|
357
|
+
*/
|
|
358
|
+
resolution?: '2K' | '768P';
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export namespace Hailuo3 {
|
|
362
|
+
/**
|
|
363
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
364
|
+
* the output.
|
|
365
|
+
*/
|
|
366
|
+
export interface ReferenceAudio {
|
|
367
|
+
type: 'audio';
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
371
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
372
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
373
|
+
*/
|
|
374
|
+
uri: string;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
289
378
|
export interface Happyhorse1_0 {
|
|
290
379
|
model: 'happyhorse_1_0';
|
|
291
380
|
|
|
@@ -385,8 +474,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
385
474
|
| '2160:3840';
|
|
386
475
|
|
|
387
476
|
/**
|
|
388
|
-
* An optional array of audio references.
|
|
389
|
-
*
|
|
477
|
+
* An optional array of audio references. The total combined duration must not
|
|
478
|
+
* exceed 15 seconds.
|
|
390
479
|
*/
|
|
391
480
|
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
392
481
|
}
|
|
@@ -467,8 +556,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
467
556
|
| '720:1280';
|
|
468
557
|
|
|
469
558
|
/**
|
|
470
|
-
* An optional array of audio references.
|
|
471
|
-
*
|
|
559
|
+
* An optional array of audio references. The total combined duration must not
|
|
560
|
+
* exceed 15 seconds.
|
|
472
561
|
*/
|
|
473
562
|
referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
|
|
474
563
|
}
|
|
@@ -549,8 +638,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
549
638
|
| '720:1280';
|
|
550
639
|
|
|
551
640
|
/**
|
|
552
|
-
* An optional array of audio references.
|
|
553
|
-
*
|
|
641
|
+
* An optional array of audio references. The total combined duration must not
|
|
642
|
+
* exceed 15 seconds.
|
|
554
643
|
*/
|
|
555
644
|
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
556
645
|
}
|
|
@@ -631,39 +720,120 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
631
720
|
}
|
|
632
721
|
}
|
|
633
722
|
|
|
634
|
-
export interface
|
|
723
|
+
export interface Seedance2_5 {
|
|
724
|
+
model: 'seedance2_5';
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
728
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
729
|
+
*/
|
|
730
|
+
promptImage: string | Array<Seedance2_5.PromptImage>;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Whether to generate audio for the video.
|
|
734
|
+
*/
|
|
735
|
+
audio?: boolean;
|
|
736
|
+
|
|
635
737
|
/**
|
|
636
738
|
* The number of seconds of duration for the output video.
|
|
637
739
|
*/
|
|
638
|
-
duration
|
|
740
|
+
duration?: number;
|
|
639
741
|
|
|
640
|
-
|
|
742
|
+
/**
|
|
743
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
744
|
+
* the output.
|
|
745
|
+
*/
|
|
746
|
+
promptText?: string;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and 1080p.
|
|
750
|
+
*/
|
|
751
|
+
ratio?:
|
|
752
|
+
| '992:432'
|
|
753
|
+
| '854:480'
|
|
754
|
+
| '752:560'
|
|
755
|
+
| '640:640'
|
|
756
|
+
| '560:752'
|
|
757
|
+
| '480:854'
|
|
758
|
+
| '1470:630'
|
|
759
|
+
| '1280:720'
|
|
760
|
+
| '1112:834'
|
|
761
|
+
| '960:960'
|
|
762
|
+
| '834:1112'
|
|
763
|
+
| '720:1280'
|
|
764
|
+
| '2206:946'
|
|
765
|
+
| '1920:1080'
|
|
766
|
+
| '1664:1248'
|
|
767
|
+
| '1440:1440'
|
|
768
|
+
| '1248:1664'
|
|
769
|
+
| '1080:1920';
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* An optional array of audio references. The total combined duration must not
|
|
773
|
+
* exceed 30 seconds.
|
|
774
|
+
*/
|
|
775
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export namespace Seedance2_5 {
|
|
779
|
+
export interface PromptImage {
|
|
780
|
+
/**
|
|
781
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
782
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
783
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
784
|
+
*/
|
|
785
|
+
uri: string;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
789
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
790
|
+
*/
|
|
791
|
+
position?: 'first' | 'last';
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
796
|
+
* the output.
|
|
797
|
+
*/
|
|
798
|
+
export interface ReferenceAudio {
|
|
799
|
+
type: 'audio';
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
803
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
804
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
805
|
+
*/
|
|
806
|
+
uri: string;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export interface GrokImagine1_5 {
|
|
811
|
+
model: 'grok_imagine_1_5';
|
|
641
812
|
|
|
642
813
|
/**
|
|
643
814
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
644
815
|
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
645
816
|
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
646
817
|
*/
|
|
647
|
-
promptImage: string | Array<
|
|
818
|
+
promptImage: string | Array<GrokImagine1_5.PromptImage>;
|
|
648
819
|
|
|
649
820
|
/**
|
|
650
|
-
* The
|
|
821
|
+
* The number of seconds of duration for the output video.
|
|
651
822
|
*/
|
|
652
|
-
|
|
823
|
+
duration?: number;
|
|
653
824
|
|
|
654
825
|
/**
|
|
655
|
-
*
|
|
826
|
+
* An optional text prompt describing motion or changes in the output video.
|
|
656
827
|
*/
|
|
657
|
-
|
|
828
|
+
promptText?: string;
|
|
658
829
|
|
|
659
830
|
/**
|
|
660
|
-
*
|
|
661
|
-
* should describe in detail what should appear in the output.
|
|
831
|
+
* The output resolution. Output aspect ratio follows the input image.
|
|
662
832
|
*/
|
|
663
|
-
|
|
833
|
+
resolution?: '480p' | '720p' | '1080p';
|
|
664
834
|
}
|
|
665
835
|
|
|
666
|
-
export namespace
|
|
836
|
+
export namespace GrokImagine1_5 {
|
|
667
837
|
export interface PromptImage {
|
|
668
838
|
/**
|
|
669
839
|
* The position of the image in the output video. "first" will use the image as the
|
|
@@ -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';
|