@runwayml/sdk 4.13.1 → 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 +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 +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
|
@@ -26,11 +26,31 @@ export interface TextToSpeechCreateResponse {
|
|
|
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: TextToSpeechCreateResponse.EstimatedCost;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace TextToSpeechCreateResponse {
|
|
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 TextToSpeechCreateParams =
|
|
32
51
|
| TextToSpeechCreateParams.SeedAudio
|
|
33
|
-
| TextToSpeechCreateParams.ElevenMultilingualV2
|
|
52
|
+
| TextToSpeechCreateParams.ElevenMultilingualV2
|
|
53
|
+
| TextToSpeechCreateParams.ElevenV3;
|
|
34
54
|
|
|
35
55
|
export declare namespace TextToSpeechCreateParams {
|
|
36
56
|
export interface SeedAudio {
|
|
@@ -167,6 +187,127 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
167
187
|
type: 'runway-preset';
|
|
168
188
|
}
|
|
169
189
|
}
|
|
190
|
+
|
|
191
|
+
export interface ElevenV3 {
|
|
192
|
+
model: 'eleven_v3';
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The text to convert to speech. You can include expressive audio tags like
|
|
196
|
+
* [laughs] or [whispers] in the script.
|
|
197
|
+
*/
|
|
198
|
+
promptText: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* A voice preset from the RunwayML API.
|
|
202
|
+
*/
|
|
203
|
+
voice: ElevenV3.Voice;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
|
|
207
|
+
*/
|
|
208
|
+
applyTextNormalization?: 'auto' | 'on' | 'off';
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* ISO 639-1 language code to enforce pronunciation and normalization.
|
|
212
|
+
*/
|
|
213
|
+
languageCode?: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Optional seed for more deterministic output (0–4294967295). Not guaranteed.
|
|
217
|
+
*/
|
|
218
|
+
seed?: number;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* How closely the output tracks the original speaker (0–1). Maps to ElevenLabs
|
|
222
|
+
* similarity_boost.
|
|
223
|
+
*/
|
|
224
|
+
similarityBoost?: number;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Speech speed multiplier (0.7–1.2). 1.0 is default; values below slow down and
|
|
228
|
+
* above speed up.
|
|
229
|
+
*/
|
|
230
|
+
speed?: number;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Voice stability (0–1). Lower values allow broader emotional range; higher values
|
|
234
|
+
* are steadier.
|
|
235
|
+
*/
|
|
236
|
+
stability?: number;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Style exaggeration (0–1). Higher values amplify the speaker style.
|
|
240
|
+
*/
|
|
241
|
+
style?: number;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Boost similarity to the original speaker at a small latency cost.
|
|
245
|
+
*/
|
|
246
|
+
useSpeakerBoost?: boolean;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export namespace ElevenV3 {
|
|
250
|
+
/**
|
|
251
|
+
* A voice preset from the RunwayML API.
|
|
252
|
+
*/
|
|
253
|
+
export interface Voice {
|
|
254
|
+
/**
|
|
255
|
+
* The preset voice ID to use for the generated speech.
|
|
256
|
+
*/
|
|
257
|
+
presetId:
|
|
258
|
+
| 'Maya'
|
|
259
|
+
| 'Arjun'
|
|
260
|
+
| 'Serene'
|
|
261
|
+
| 'Bernard'
|
|
262
|
+
| 'Billy'
|
|
263
|
+
| 'Mark'
|
|
264
|
+
| 'Clint'
|
|
265
|
+
| 'Mabel'
|
|
266
|
+
| 'Chad'
|
|
267
|
+
| 'Leslie'
|
|
268
|
+
| 'Eleanor'
|
|
269
|
+
| 'Elias'
|
|
270
|
+
| 'Elliot'
|
|
271
|
+
| 'Grungle'
|
|
272
|
+
| 'Brodie'
|
|
273
|
+
| 'Sandra'
|
|
274
|
+
| 'Kirk'
|
|
275
|
+
| 'Kylie'
|
|
276
|
+
| 'Lara'
|
|
277
|
+
| 'Lisa'
|
|
278
|
+
| 'Malachi'
|
|
279
|
+
| 'Marlene'
|
|
280
|
+
| 'Martin'
|
|
281
|
+
| 'Miriam'
|
|
282
|
+
| 'Monster'
|
|
283
|
+
| 'Paula'
|
|
284
|
+
| 'Pip'
|
|
285
|
+
| 'Rusty'
|
|
286
|
+
| 'Ragnar'
|
|
287
|
+
| 'Xylar'
|
|
288
|
+
| 'Maggie'
|
|
289
|
+
| 'Jack'
|
|
290
|
+
| 'Katie'
|
|
291
|
+
| 'Noah'
|
|
292
|
+
| 'James'
|
|
293
|
+
| 'Rina'
|
|
294
|
+
| 'Ella'
|
|
295
|
+
| 'Mariah'
|
|
296
|
+
| 'Frank'
|
|
297
|
+
| 'Claudia'
|
|
298
|
+
| 'Niki'
|
|
299
|
+
| 'Vincent'
|
|
300
|
+
| 'Kendrick'
|
|
301
|
+
| 'Myrna'
|
|
302
|
+
| 'Tom'
|
|
303
|
+
| 'Wanda'
|
|
304
|
+
| 'Benjamin'
|
|
305
|
+
| 'Kiana'
|
|
306
|
+
| 'Rachel';
|
|
307
|
+
|
|
308
|
+
type: 'runway-preset';
|
|
309
|
+
}
|
|
310
|
+
}
|
|
170
311
|
}
|
|
171
312
|
|
|
172
313
|
export declare namespace TextToSpeech {
|
|
@@ -26,18 +26,38 @@ export interface TextToVideoCreateResponse {
|
|
|
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: TextToVideoCreateResponse.EstimatedCost;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace TextToVideoCreateResponse {
|
|
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 TextToVideoCreateParams =
|
|
32
51
|
| TextToVideoCreateParams.Gen4_5
|
|
33
52
|
| TextToVideoCreateParams.Veo3_1
|
|
34
53
|
| TextToVideoCreateParams.Veo3_1Fast
|
|
54
|
+
| TextToVideoCreateParams.Hailuo3
|
|
35
55
|
| TextToVideoCreateParams.Happyhorse1_0
|
|
36
56
|
| TextToVideoCreateParams.Seedance2
|
|
37
57
|
| TextToVideoCreateParams.Seedance2Fast
|
|
38
58
|
| TextToVideoCreateParams.Seedance2Mini
|
|
39
59
|
| TextToVideoCreateParams.GeminiOmniFlash
|
|
40
|
-
| TextToVideoCreateParams.
|
|
60
|
+
| TextToVideoCreateParams.Seedance2_5;
|
|
41
61
|
|
|
42
62
|
export declare namespace TextToVideoCreateParams {
|
|
43
63
|
export interface Gen4_5 {
|
|
@@ -65,6 +85,20 @@ export declare namespace TextToVideoCreateParams {
|
|
|
65
85
|
*/
|
|
66
86
|
contentModeration?: Gen4_5.ContentModeration;
|
|
67
87
|
|
|
88
|
+
/**
|
|
89
|
+
* The container/encoding of the output. `mp4` (default) returns an H.264 .mp4.
|
|
90
|
+
* `prores` returns a ProRes .mov. `png_sequence` returns a .zip of PNG frames
|
|
91
|
+
* (plus a separate .wav artifact when the output has audio). Non-mp4 formats incur
|
|
92
|
+
* an additional surcharge of 5 credits per second of output.
|
|
93
|
+
*/
|
|
94
|
+
outputFormat?: 'mp4' | 'prores' | 'png_sequence';
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The ProRes profile to use. Only valid when `outputFormat` is `prores`. Defaults
|
|
98
|
+
* to `4444`.
|
|
99
|
+
*/
|
|
100
|
+
proresProfile?: '422' | '4444' | '422 Proxy' | '422 LT' | '422 HQ' | '4444 XQ';
|
|
101
|
+
|
|
68
102
|
/**
|
|
69
103
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
70
104
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -146,6 +180,91 @@ export declare namespace TextToVideoCreateParams {
|
|
|
146
180
|
negativePrompt?: string;
|
|
147
181
|
}
|
|
148
182
|
|
|
183
|
+
export interface Hailuo3 {
|
|
184
|
+
model: 'hailuo3';
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* A non-empty text prompt describing what should appear in the output.
|
|
188
|
+
*/
|
|
189
|
+
promptText: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The number of seconds of duration for the output video.
|
|
193
|
+
*/
|
|
194
|
+
duration?: number;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The aspect ratio of the output video. Use adaptive only when image or video
|
|
198
|
+
* references are provided; text-only requests require a concrete ratio.
|
|
199
|
+
*/
|
|
200
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
204
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
205
|
+
*/
|
|
206
|
+
referenceAudio?: Array<Hailuo3.ReferenceAudio>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* An optional array of image references (up to 9). See
|
|
210
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
211
|
+
*/
|
|
212
|
+
references?: Array<Hailuo3.Reference>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* An optional array of video references. The combined duration across all video
|
|
216
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
217
|
+
* video inputs for more information.
|
|
218
|
+
*/
|
|
219
|
+
referenceVideos?: Array<Hailuo3.ReferenceVideo>;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The output resolution. Hailuo 3.0 supports 768P and 2K.
|
|
223
|
+
*/
|
|
224
|
+
resolution?: '2K' | '768P';
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace Hailuo3 {
|
|
228
|
+
/**
|
|
229
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
230
|
+
* the output.
|
|
231
|
+
*/
|
|
232
|
+
export interface ReferenceAudio {
|
|
233
|
+
type: 'audio';
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
237
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
238
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
239
|
+
*/
|
|
240
|
+
uri: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface Reference {
|
|
244
|
+
/**
|
|
245
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
246
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
247
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
248
|
+
*/
|
|
249
|
+
uri: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* A video reference allows the model to use the video as additional context for
|
|
254
|
+
* the output.
|
|
255
|
+
*/
|
|
256
|
+
export interface ReferenceVideo {
|
|
257
|
+
type: 'video';
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
261
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
262
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
263
|
+
*/
|
|
264
|
+
uri: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
149
268
|
export interface Happyhorse1_0 {
|
|
150
269
|
model: 'happyhorse_1_0';
|
|
151
270
|
|
|
@@ -225,8 +344,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
225
344
|
| '2160:3840';
|
|
226
345
|
|
|
227
346
|
/**
|
|
228
|
-
* An optional array of audio references.
|
|
229
|
-
*
|
|
347
|
+
* An optional array of audio references. The total combined duration must not
|
|
348
|
+
* exceed 15 seconds.
|
|
230
349
|
*/
|
|
231
350
|
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
232
351
|
|
|
@@ -323,8 +442,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
323
442
|
| '720:1280';
|
|
324
443
|
|
|
325
444
|
/**
|
|
326
|
-
* An optional array of audio references.
|
|
327
|
-
*
|
|
445
|
+
* An optional array of audio references. The total combined duration must not
|
|
446
|
+
* exceed 15 seconds.
|
|
328
447
|
*/
|
|
329
448
|
referenceAudio?: Array<Seedance2Fast.ReferenceAudio>;
|
|
330
449
|
|
|
@@ -421,8 +540,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
421
540
|
| '720:1280';
|
|
422
541
|
|
|
423
542
|
/**
|
|
424
|
-
* An optional array of audio references.
|
|
425
|
-
*
|
|
543
|
+
* An optional array of audio references. The total combined duration must not
|
|
544
|
+
* exceed 15 seconds.
|
|
426
545
|
*/
|
|
427
546
|
referenceAudio?: Array<Seedance2Mini.ReferenceAudio>;
|
|
428
547
|
|
|
@@ -501,29 +620,101 @@ export declare namespace TextToVideoCreateParams {
|
|
|
501
620
|
ratio?: '1280:720' | '720:1280';
|
|
502
621
|
}
|
|
503
622
|
|
|
504
|
-
export interface
|
|
623
|
+
export interface Seedance2_5 {
|
|
624
|
+
model: 'seedance2_5';
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Whether to generate audio for the video.
|
|
628
|
+
*/
|
|
629
|
+
audio?: boolean;
|
|
630
|
+
|
|
505
631
|
/**
|
|
506
632
|
* The number of seconds of duration for the output video.
|
|
507
633
|
*/
|
|
508
|
-
duration
|
|
634
|
+
duration?: number;
|
|
509
635
|
|
|
510
|
-
|
|
636
|
+
/**
|
|
637
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
638
|
+
* the output.
|
|
639
|
+
*/
|
|
640
|
+
promptText?: string;
|
|
511
641
|
|
|
512
642
|
/**
|
|
513
|
-
*
|
|
514
|
-
* should describe in detail what should appear in the output.
|
|
643
|
+
* The resolution of the output video. Seedance 2.5 supports 480p and 720p only.
|
|
515
644
|
*/
|
|
516
|
-
|
|
645
|
+
ratio?:
|
|
646
|
+
| '992:432'
|
|
647
|
+
| '854:480'
|
|
648
|
+
| '752:560'
|
|
649
|
+
| '640:640'
|
|
650
|
+
| '560:752'
|
|
651
|
+
| '480:854'
|
|
652
|
+
| '1470:630'
|
|
653
|
+
| '1280:720'
|
|
654
|
+
| '1112:834'
|
|
655
|
+
| '960:960'
|
|
656
|
+
| '834:1112'
|
|
657
|
+
| '720:1280';
|
|
517
658
|
|
|
518
659
|
/**
|
|
519
|
-
*
|
|
660
|
+
* An optional array of audio references. The total combined duration must be less
|
|
661
|
+
* than 30 seconds.
|
|
520
662
|
*/
|
|
521
|
-
|
|
663
|
+
referenceAudio?: Array<Seedance2_5.ReferenceAudio>;
|
|
522
664
|
|
|
523
665
|
/**
|
|
524
|
-
*
|
|
666
|
+
* An optional array of image references (up to 30). See
|
|
667
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
525
668
|
*/
|
|
526
|
-
|
|
669
|
+
references?: Array<Seedance2_5.Reference>;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* An optional array of video references. The combined duration across all video
|
|
673
|
+
* references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
|
|
674
|
+
* video inputs for more information.
|
|
675
|
+
*/
|
|
676
|
+
referenceVideos?: Array<Seedance2_5.ReferenceVideo>;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export namespace Seedance2_5 {
|
|
680
|
+
/**
|
|
681
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
682
|
+
* the output.
|
|
683
|
+
*/
|
|
684
|
+
export interface ReferenceAudio {
|
|
685
|
+
type: 'audio';
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
689
|
+
* `data:audio/mp3;base64,...`, up to 16MB) containing an encoded audio. See
|
|
690
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
691
|
+
*/
|
|
692
|
+
uri: string;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export interface Reference {
|
|
696
|
+
/**
|
|
697
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
698
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
699
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
700
|
+
*/
|
|
701
|
+
uri: string;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* A video reference allows the model to use the video as additional context for
|
|
706
|
+
* the output.
|
|
707
|
+
*/
|
|
708
|
+
export interface ReferenceVideo {
|
|
709
|
+
type: 'video';
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
713
|
+
* `data:video/mp4;base64,...`, up to 16MB) containing an encoded video. See
|
|
714
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
715
|
+
*/
|
|
716
|
+
uri: string;
|
|
717
|
+
}
|
|
527
718
|
}
|
|
528
719
|
}
|
|
529
720
|
|