@runwayml/sdk 4.27.0 → 4.29.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 +18 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.mts.map +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.d.ts.map +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.js.map +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/avatar-conversations.mjs.map +1 -1
- package/resources/avatars.d.mts +2 -4
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts +2 -4
- package/resources/avatars.d.ts.map +1 -1
- package/resources/avatars.js +2 -4
- package/resources/avatars.js.map +1 -1
- package/resources/avatars.mjs +2 -4
- package/resources/avatars.mjs.map +1 -1
- package/resources/documents.d.mts +4 -10
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +4 -10
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +2 -8
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +2 -8
- package/resources/documents.mjs.map +1 -1
- package/resources/image-to-video.d.mts +72 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +72 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +52 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +52 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +110 -16
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +110 -16
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/audit-logs.js +1 -1
- package/resources/organization/webapp/audit-logs.js.map +1 -1
- package/resources/organization/webapp/audit-logs.mjs +1 -1
- package/resources/organization/webapp/audit-logs.mjs.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +36 -1
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +36 -1
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/routers.d.mts +32 -26
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +32 -26
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +2 -2
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +2 -2
- package/resources/routers.mjs.map +1 -1
- package/resources/tasks.d.mts +2 -2
- package/resources/tasks.d.ts +2 -2
- package/resources/text-to-image.d.mts +122 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +122 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +71 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +71 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +87 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +87 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +117 -3
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +117 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/voices.d.mts +1 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +1 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +1 -1
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +1 -1
- package/resources/voices.mjs.map +1 -1
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/avatars.ts +2 -4
- package/src/resources/documents.ts +4 -10
- package/src/resources/image-to-video.ts +98 -1
- package/src/resources/organization/organization.ts +70 -1
- package/src/resources/organization/webapp/audit-logs.ts +226 -14
- package/src/resources/organization/webapp/webapp.ts +53 -1
- package/src/resources/routers.ts +38 -26
- package/src/resources/tasks.ts +2 -2
- package/src/resources/text-to-image.ts +221 -0
- package/src/resources/text-to-speech.ts +86 -0
- package/src/resources/text-to-video.ts +115 -1
- package/src/resources/video-to-video.ts +160 -3
- package/src/resources/voices.ts +1 -1
- 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
|
@@ -85,7 +85,8 @@ export type ImageToVideoCreateParams =
|
|
|
85
85
|
| ImageToVideoCreateParams.GeminiOmniFlash1_2
|
|
86
86
|
| ImageToVideoCreateParams.Kling4Flash
|
|
87
87
|
| ImageToVideoCreateParams.Hailuo3Highspeed
|
|
88
|
-
| ImageToVideoCreateParams.Hailuo3Lite
|
|
88
|
+
| ImageToVideoCreateParams.Hailuo3Lite
|
|
89
|
+
| ImageToVideoCreateParams.Seedance2_5Flash;
|
|
89
90
|
|
|
90
91
|
export declare namespace ImageToVideoCreateParams {
|
|
91
92
|
export interface Gen4_5 {
|
|
@@ -2312,6 +2313,102 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
2312
2313
|
uri: string;
|
|
2313
2314
|
}
|
|
2314
2315
|
}
|
|
2316
|
+
|
|
2317
|
+
export interface Seedance2_5Flash {
|
|
2318
|
+
model: 'seedance2_5_flash';
|
|
2319
|
+
|
|
2320
|
+
/**
|
|
2321
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
2322
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
2323
|
+
*/
|
|
2324
|
+
promptImage: string | Array<Seedance2_5Flash.PromptImage>;
|
|
2325
|
+
|
|
2326
|
+
/**
|
|
2327
|
+
* Whether to generate audio for the video.
|
|
2328
|
+
*/
|
|
2329
|
+
audio?: boolean;
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
2333
|
+
* billed at the variant maximum up front; unused credits are refunded after the
|
|
2334
|
+
* generation finishes.
|
|
2335
|
+
*/
|
|
2336
|
+
duration?: number | 'auto';
|
|
2337
|
+
|
|
2338
|
+
/**
|
|
2339
|
+
* Container for the output video. `mov` keeps high colour precision for grading
|
|
2340
|
+
* and compositing. Defaults to `mp4`.
|
|
2341
|
+
*/
|
|
2342
|
+
outputFormat?: 'mp4' | 'mov';
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* An optional text prompt up to 15000 characters describing what should appear in
|
|
2346
|
+
* the output.
|
|
2347
|
+
*/
|
|
2348
|
+
promptText?: string;
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
* The resolution of the output video. Seedance 2.5 Flash supports 480p and 720p.
|
|
2352
|
+
*/
|
|
2353
|
+
ratio?:
|
|
2354
|
+
| '992:432'
|
|
2355
|
+
| '854:480'
|
|
2356
|
+
| '752:560'
|
|
2357
|
+
| '640:640'
|
|
2358
|
+
| '560:752'
|
|
2359
|
+
| '480:854'
|
|
2360
|
+
| '1470:630'
|
|
2361
|
+
| '1280:720'
|
|
2362
|
+
| '1112:834'
|
|
2363
|
+
| '960:960'
|
|
2364
|
+
| '834:1112'
|
|
2365
|
+
| '720:1280';
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* An optional array of audio references. The total combined duration must be less
|
|
2369
|
+
* than 30 seconds.
|
|
2370
|
+
*/
|
|
2371
|
+
referenceAudio?: Array<Seedance2_5Flash.ReferenceAudio>;
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
2375
|
+
* get different results for the same other request parameters. Using the same seed
|
|
2376
|
+
* integer for an identical request will produce similar results.
|
|
2377
|
+
*/
|
|
2378
|
+
seed?: number;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
export namespace Seedance2_5Flash {
|
|
2382
|
+
export interface PromptImage {
|
|
2383
|
+
/**
|
|
2384
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2385
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2386
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2387
|
+
*/
|
|
2388
|
+
uri: string;
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
2392
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
2393
|
+
*/
|
|
2394
|
+
position?: 'first' | 'last';
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
2399
|
+
* the output.
|
|
2400
|
+
*/
|
|
2401
|
+
export interface ReferenceAudio {
|
|
2402
|
+
type: 'audio';
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2406
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
2407
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
2408
|
+
*/
|
|
2409
|
+
uri: string;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2315
2412
|
}
|
|
2316
2413
|
|
|
2317
2414
|
export declare namespace ImageToVideo {
|
|
@@ -25,7 +25,7 @@ export class Organization extends APIResource {
|
|
|
25
25
|
/**
|
|
26
26
|
* Fetch credit usage data broken down by model and day for the organization
|
|
27
27
|
* associated with the API key used to make the request. Up to 90 days of data can
|
|
28
|
-
* be queried at a time.
|
|
28
|
+
* be queried at a time. Usage updates hourly; recent activity may not appear yet.
|
|
29
29
|
*/
|
|
30
30
|
retrieveUsage(
|
|
31
31
|
body: OrganizationRetrieveUsageParams | null | undefined = {},
|
|
@@ -138,6 +138,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
138
138
|
| 'seedream5_pro_layers'
|
|
139
139
|
| 'seedream5_pro'
|
|
140
140
|
| 'seedream5_flash'
|
|
141
|
+
| 'seedream5.5'
|
|
142
|
+
| 'seedream5.5_layers'
|
|
141
143
|
| 'seedream5_lite'
|
|
142
144
|
| 'gemini_omni_flash'
|
|
143
145
|
| 'gemini_omni_flash_1.2'
|
|
@@ -146,6 +148,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
146
148
|
| 'seed_audio'
|
|
147
149
|
| 'eleven_v3'
|
|
148
150
|
| 'eleven_v4'
|
|
151
|
+
| 'gemini_3.8_flash_tts'
|
|
152
|
+
| 'gemini_3.8_flash_lite_tts'
|
|
149
153
|
| 'eleven_text_to_sound_v2'
|
|
150
154
|
| 'mirelo_sfx_2_0'
|
|
151
155
|
| 'eleven_music_v2_5'
|
|
@@ -159,6 +163,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
159
163
|
| 'voice_processing'
|
|
160
164
|
| 'seedance2'
|
|
161
165
|
| 'seedance2_5'
|
|
166
|
+
| 'seedance2_5_flash'
|
|
162
167
|
| 'seedance2_fast'
|
|
163
168
|
| 'seedance2_mini'
|
|
164
169
|
| 'hailuo3'
|
|
@@ -171,6 +176,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
171
176
|
| 'grok_imagine_1_5_lite'
|
|
172
177
|
| 'grok_imagine_image_2'
|
|
173
178
|
| 'muse_image'
|
|
179
|
+
| 'minimax_h3_image'
|
|
174
180
|
| 'bria_fibo_1_5'
|
|
175
181
|
| 'bria_fibo_edit_1_5'
|
|
176
182
|
| 'ideogram_4_0'
|
|
@@ -210,6 +216,20 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
210
216
|
* Reserved for future use.
|
|
211
217
|
*/
|
|
212
218
|
resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Credit usage broken down by tag, present when `groupBy` is set. With
|
|
222
|
+
* `groupBy: "tag"`, a generation with several tags counts toward each of them, so
|
|
223
|
+
* the buckets can add up to more than the total. With `groupBy: "tag:<key>"`, each
|
|
224
|
+
* generation counts once, under its `<key>:<value>` tag.
|
|
225
|
+
*/
|
|
226
|
+
resultsByTag?: Array<OrganizationRetrieveUsageResponse.ResultsByTag>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* The tags on usage in the queried time range, sorted alphabetically, present when
|
|
230
|
+
* `tags` or `groupBy` is set. Lists at most the 1,000 tags with the most credits.
|
|
231
|
+
*/
|
|
232
|
+
tags?: Array<string>;
|
|
213
233
|
}
|
|
214
234
|
|
|
215
235
|
export namespace OrganizationRetrieveUsageResponse {
|
|
@@ -264,6 +284,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
264
284
|
| 'seedream5_pro_layers'
|
|
265
285
|
| 'seedream5_pro'
|
|
266
286
|
| 'seedream5_flash'
|
|
287
|
+
| 'seedream5.5'
|
|
288
|
+
| 'seedream5.5_layers'
|
|
267
289
|
| 'seedream5_lite'
|
|
268
290
|
| 'gemini_omni_flash'
|
|
269
291
|
| 'gemini_omni_flash_1.2'
|
|
@@ -272,6 +294,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
272
294
|
| 'seed_audio'
|
|
273
295
|
| 'eleven_v3'
|
|
274
296
|
| 'eleven_v4'
|
|
297
|
+
| 'gemini_3.8_flash_tts'
|
|
298
|
+
| 'gemini_3.8_flash_lite_tts'
|
|
275
299
|
| 'eleven_text_to_sound_v2'
|
|
276
300
|
| 'mirelo_sfx_2_0'
|
|
277
301
|
| 'eleven_music_v2_5'
|
|
@@ -285,6 +309,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
285
309
|
| 'voice_processing'
|
|
286
310
|
| 'seedance2'
|
|
287
311
|
| 'seedance2_5'
|
|
312
|
+
| 'seedance2_5_flash'
|
|
288
313
|
| 'seedance2_fast'
|
|
289
314
|
| 'seedance2_mini'
|
|
290
315
|
| 'hailuo3'
|
|
@@ -297,6 +322,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
297
322
|
| 'grok_imagine_1_5_lite'
|
|
298
323
|
| 'grok_imagine_image_2'
|
|
299
324
|
| 'muse_image'
|
|
325
|
+
| 'minimax_h3_image'
|
|
300
326
|
| 'bria_fibo_1_5'
|
|
301
327
|
| 'bria_fibo_edit_1_5'
|
|
302
328
|
| 'ideogram_4_0'
|
|
@@ -339,6 +365,34 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
339
365
|
apiKeyId: string;
|
|
340
366
|
}
|
|
341
367
|
}
|
|
368
|
+
|
|
369
|
+
export interface ResultsByTag {
|
|
370
|
+
/**
|
|
371
|
+
* The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
|
|
372
|
+
* UTC.
|
|
373
|
+
*/
|
|
374
|
+
date: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* The credits used per tag for the date.
|
|
378
|
+
*/
|
|
379
|
+
usedCredits: Array<ResultsByTag.UsedCredit>;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export namespace ResultsByTag {
|
|
383
|
+
export interface UsedCredit {
|
|
384
|
+
/**
|
|
385
|
+
* The net number of credits spent under the tag. May be negative if refunds
|
|
386
|
+
* exceeded charges on this day.
|
|
387
|
+
*/
|
|
388
|
+
amount: number;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* The tag that credits were spent under, or null for usage without a matching tag.
|
|
392
|
+
*/
|
|
393
|
+
tag: string | null;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
342
396
|
}
|
|
343
397
|
|
|
344
398
|
export interface OrganizationRetrieveUsageParams {
|
|
@@ -349,12 +403,27 @@ export interface OrganizationRetrieveUsageParams {
|
|
|
349
403
|
*/
|
|
350
404
|
beforeDate?: string;
|
|
351
405
|
|
|
406
|
+
/**
|
|
407
|
+
* Also break usage down by tag in `resultsByTag`. `"tag"` gives one bucket per
|
|
408
|
+
* tag; a generation with several tags counts toward each of them. `"tag:<key>"`
|
|
409
|
+
* (for example `"tag:team"`) gives one bucket per value of that key, so each
|
|
410
|
+
* generation counts once. Generations without a matching tag fall under a `null`
|
|
411
|
+
* tag.
|
|
412
|
+
*/
|
|
413
|
+
groupBy?: string;
|
|
414
|
+
|
|
352
415
|
/**
|
|
353
416
|
* The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
|
|
354
417
|
* unspecified, it will default to 30 days before the current date. All dates are
|
|
355
418
|
* in UTC.
|
|
356
419
|
*/
|
|
357
420
|
startDate?: string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Only count generations that were created with every one of these tags in the
|
|
424
|
+
* `X-Runway-Tags` header. Tags are case-insensitive. Up to 10 tags.
|
|
425
|
+
*/
|
|
426
|
+
tags?: Array<string>;
|
|
358
427
|
}
|
|
359
428
|
|
|
360
429
|
Organization.Webapp = Webapp;
|