@runwayml/sdk 4.22.0 → 4.24.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 +15 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/generate/image.d.mts +6 -4
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +6 -4
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +683 -73
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +683 -73
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +105 -80
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +105 -80
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +6 -4
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +6 -4
- 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 +14 -10
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +14 -10
- package/resources/routers.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +28 -1
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +28 -1
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/tasks.d.mts +7 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +7 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +7 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +7 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +238 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +238 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +492 -81
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +492 -81
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-audio.d.mts +84 -0
- package/resources/video-to-audio.d.mts.map +1 -0
- package/resources/video-to-audio.d.ts +84 -0
- package/resources/video-to-audio.d.ts.map +1 -0
- package/resources/video-to-audio.js +29 -0
- package/resources/video-to-audio.js.map +1 -0
- package/resources/video-to-audio.mjs +25 -0
- package/resources/video-to-audio.mjs.map +1 -0
- package/resources/video-to-video.d.mts +277 -20
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +277 -20
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +16 -0
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/generate/image.ts +6 -4
- package/src/resources/image-to-video.ts +836 -111
- package/src/resources/index.ts +5 -0
- package/src/resources/organization/organization.ts +20 -0
- package/src/resources/organization/webapp/audit-logs.ts +142 -78
- package/src/resources/organization/webapp/webapp.ts +6 -4
- package/src/resources/routers.ts +14 -10
- package/src/resources/sound-effect.ts +35 -0
- package/src/resources/tasks.ts +7 -0
- package/src/resources/text-to-image.ts +406 -0
- package/src/resources/text-to-video.ts +621 -114
- package/src/resources/video-to-audio.ts +109 -0
- package/src/resources/video-to-video.ts +335 -30
- 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
|
@@ -41,7 +41,7 @@ export declare namespace VideoToVideoCreateResponse {
|
|
|
41
41
|
credits: number;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.Seedance2_5 | VideoToVideoCreateParams.
|
|
44
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Variant0 | VideoToVideoCreateParams.KlingO3_4k | VideoToVideoCreateParams.Hailuo3 | VideoToVideoCreateParams.KlingO3Pro | VideoToVideoCreateParams.KlingO3Standard | VideoToVideoCreateParams.Seedance2 | VideoToVideoCreateParams.Seedance2Fast | VideoToVideoCreateParams.Seedance2Mini | VideoToVideoCreateParams.GeminiOmniFlash | VideoToVideoCreateParams.GeminiOmniFlash1_1 | VideoToVideoCreateParams.Seedance2_5 | VideoToVideoCreateParams.Kling4;
|
|
45
45
|
export declare namespace VideoToVideoCreateParams {
|
|
46
46
|
interface Variant0 {
|
|
47
47
|
model: 'aleph2';
|
|
@@ -183,6 +183,77 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
+
interface KlingO3_4k {
|
|
187
|
+
model: 'klingO3_4k';
|
|
188
|
+
/**
|
|
189
|
+
* A text prompt describing what should appear in the output video.
|
|
190
|
+
*/
|
|
191
|
+
promptText: string;
|
|
192
|
+
/**
|
|
193
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
194
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
195
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
196
|
+
*/
|
|
197
|
+
promptVideo: string;
|
|
198
|
+
/**
|
|
199
|
+
* Provider-specific settings for multishot video generation and video editing.
|
|
200
|
+
*/
|
|
201
|
+
providerSettings?: KlingO3_4k.ProviderSettings;
|
|
202
|
+
/**
|
|
203
|
+
* An optional array of reference images (up to 4). See
|
|
204
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
205
|
+
*/
|
|
206
|
+
references?: string | Array<KlingO3_4k.PromptImage>;
|
|
207
|
+
}
|
|
208
|
+
namespace KlingO3_4k {
|
|
209
|
+
/**
|
|
210
|
+
* Provider-specific settings for multishot video generation and video editing.
|
|
211
|
+
*/
|
|
212
|
+
interface ProviderSettings {
|
|
213
|
+
/**
|
|
214
|
+
* Whether to preserve the original audio when editing a video. Only applicable for
|
|
215
|
+
* video-to-video. Defaults to true.
|
|
216
|
+
*/
|
|
217
|
+
keepOriginalSound?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
220
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
221
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
222
|
+
* `"intelligence"`.
|
|
223
|
+
*/
|
|
224
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
225
|
+
/**
|
|
226
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
227
|
+
* multiPrompt is provided.
|
|
228
|
+
*/
|
|
229
|
+
shotType?: 'intelligence' | 'customize';
|
|
230
|
+
}
|
|
231
|
+
namespace ProviderSettings {
|
|
232
|
+
interface MultiPrompt {
|
|
233
|
+
/**
|
|
234
|
+
* Duration in seconds for this segment.
|
|
235
|
+
*/
|
|
236
|
+
duration: number;
|
|
237
|
+
/**
|
|
238
|
+
* The text prompt for this segment.
|
|
239
|
+
*/
|
|
240
|
+
prompt: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
interface PromptImage {
|
|
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
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
252
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
253
|
+
*/
|
|
254
|
+
position?: 'first' | 'last';
|
|
255
|
+
}
|
|
256
|
+
}
|
|
186
257
|
interface Hailuo3 {
|
|
187
258
|
model: 'hailuo3';
|
|
188
259
|
/**
|
|
@@ -264,6 +335,148 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
264
335
|
uri: string;
|
|
265
336
|
}
|
|
266
337
|
}
|
|
338
|
+
interface KlingO3Pro {
|
|
339
|
+
model: 'klingO3_pro';
|
|
340
|
+
/**
|
|
341
|
+
* A text prompt describing what should appear in the output video.
|
|
342
|
+
*/
|
|
343
|
+
promptText: string;
|
|
344
|
+
/**
|
|
345
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
346
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
347
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
348
|
+
*/
|
|
349
|
+
promptVideo: string;
|
|
350
|
+
/**
|
|
351
|
+
* Provider-specific settings for multishot video generation and video editing.
|
|
352
|
+
*/
|
|
353
|
+
providerSettings?: KlingO3Pro.ProviderSettings;
|
|
354
|
+
/**
|
|
355
|
+
* An optional array of reference images (up to 4). See
|
|
356
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
357
|
+
*/
|
|
358
|
+
references?: string | Array<KlingO3Pro.PromptImage>;
|
|
359
|
+
}
|
|
360
|
+
namespace KlingO3Pro {
|
|
361
|
+
/**
|
|
362
|
+
* Provider-specific settings for multishot video generation and video editing.
|
|
363
|
+
*/
|
|
364
|
+
interface ProviderSettings {
|
|
365
|
+
/**
|
|
366
|
+
* Whether to preserve the original audio when editing a video. Only applicable for
|
|
367
|
+
* video-to-video. Defaults to true.
|
|
368
|
+
*/
|
|
369
|
+
keepOriginalSound?: boolean;
|
|
370
|
+
/**
|
|
371
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
372
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
373
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
374
|
+
* `"intelligence"`.
|
|
375
|
+
*/
|
|
376
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
377
|
+
/**
|
|
378
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
379
|
+
* multiPrompt is provided.
|
|
380
|
+
*/
|
|
381
|
+
shotType?: 'intelligence' | 'customize';
|
|
382
|
+
}
|
|
383
|
+
namespace ProviderSettings {
|
|
384
|
+
interface MultiPrompt {
|
|
385
|
+
/**
|
|
386
|
+
* Duration in seconds for this segment.
|
|
387
|
+
*/
|
|
388
|
+
duration: number;
|
|
389
|
+
/**
|
|
390
|
+
* The text prompt for this segment.
|
|
391
|
+
*/
|
|
392
|
+
prompt: string;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
interface PromptImage {
|
|
396
|
+
/**
|
|
397
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
398
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
399
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
400
|
+
*/
|
|
401
|
+
uri: string;
|
|
402
|
+
/**
|
|
403
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
404
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
405
|
+
*/
|
|
406
|
+
position?: 'first' | 'last';
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
interface KlingO3Standard {
|
|
410
|
+
model: 'klingO3_standard';
|
|
411
|
+
/**
|
|
412
|
+
* A text prompt describing what should appear in the output video.
|
|
413
|
+
*/
|
|
414
|
+
promptText: string;
|
|
415
|
+
/**
|
|
416
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
417
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
418
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
419
|
+
*/
|
|
420
|
+
promptVideo: string;
|
|
421
|
+
/**
|
|
422
|
+
* Provider-specific settings for multishot video generation and video editing.
|
|
423
|
+
*/
|
|
424
|
+
providerSettings?: KlingO3Standard.ProviderSettings;
|
|
425
|
+
/**
|
|
426
|
+
* An optional array of reference images (up to 4). See
|
|
427
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
428
|
+
*/
|
|
429
|
+
references?: string | Array<KlingO3Standard.PromptImage>;
|
|
430
|
+
}
|
|
431
|
+
namespace KlingO3Standard {
|
|
432
|
+
/**
|
|
433
|
+
* Provider-specific settings for multishot video generation and video editing.
|
|
434
|
+
*/
|
|
435
|
+
interface ProviderSettings {
|
|
436
|
+
/**
|
|
437
|
+
* Whether to preserve the original audio when editing a video. Only applicable for
|
|
438
|
+
* video-to-video. Defaults to true.
|
|
439
|
+
*/
|
|
440
|
+
keepOriginalSound?: boolean;
|
|
441
|
+
/**
|
|
442
|
+
* An array of prompt segments for multishot video generation. Each segment has its
|
|
443
|
+
* own prompt and duration. Total duration across all segments must be between 3
|
|
444
|
+
* and 15 seconds. `promptText` is still required when `shotType` is
|
|
445
|
+
* `"intelligence"`.
|
|
446
|
+
*/
|
|
447
|
+
multiPrompt?: Array<ProviderSettings.MultiPrompt>;
|
|
448
|
+
/**
|
|
449
|
+
* Shot transition type for multishot videos. Defaults to "customize" when
|
|
450
|
+
* multiPrompt is provided.
|
|
451
|
+
*/
|
|
452
|
+
shotType?: 'intelligence' | 'customize';
|
|
453
|
+
}
|
|
454
|
+
namespace ProviderSettings {
|
|
455
|
+
interface MultiPrompt {
|
|
456
|
+
/**
|
|
457
|
+
* Duration in seconds for this segment.
|
|
458
|
+
*/
|
|
459
|
+
duration: number;
|
|
460
|
+
/**
|
|
461
|
+
* The text prompt for this segment.
|
|
462
|
+
*/
|
|
463
|
+
prompt: string;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
interface PromptImage {
|
|
467
|
+
/**
|
|
468
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
469
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
470
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
471
|
+
*/
|
|
472
|
+
uri: string;
|
|
473
|
+
/**
|
|
474
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
475
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
476
|
+
*/
|
|
477
|
+
position?: 'first' | 'last';
|
|
478
|
+
}
|
|
479
|
+
}
|
|
267
480
|
interface Seedance2 {
|
|
268
481
|
model: 'seedance2';
|
|
269
482
|
/**
|
|
@@ -551,6 +764,48 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
551
764
|
uri: string;
|
|
552
765
|
}
|
|
553
766
|
}
|
|
767
|
+
interface GeminiOmniFlash1_1 {
|
|
768
|
+
model: 'gemini_omni_flash_1.1';
|
|
769
|
+
/**
|
|
770
|
+
* A non-empty prompt describing the output or extension.
|
|
771
|
+
*/
|
|
772
|
+
promptText: string;
|
|
773
|
+
/**
|
|
774
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
775
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
776
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
777
|
+
*/
|
|
778
|
+
videoUri: string;
|
|
779
|
+
/**
|
|
780
|
+
* The duration in seconds. In reference mode, this is the output video length. In
|
|
781
|
+
* extend mode, this is the amount of footage added to the input video. Use "auto"
|
|
782
|
+
* to let the model choose a duration.
|
|
783
|
+
*/
|
|
784
|
+
duration?: 'auto' | number;
|
|
785
|
+
/**
|
|
786
|
+
* How the input video is used. `reference` generates a new video guided by the
|
|
787
|
+
* input, `extend` continues it, and `edit` transforms it according to the prompt.
|
|
788
|
+
*/
|
|
789
|
+
mode?: 'reference' | 'extend' | 'edit';
|
|
790
|
+
/**
|
|
791
|
+
* The resolution and aspect ratio of the output video.
|
|
792
|
+
*/
|
|
793
|
+
ratio?: '640:360' | '360:640' | '1280:720' | '720:1280' | '1920:1080' | '1080:1920' | '3840:2160' | '2160:3840';
|
|
794
|
+
/**
|
|
795
|
+
* An optional array of image references to guide the output.
|
|
796
|
+
*/
|
|
797
|
+
references?: Array<GeminiOmniFlash1_1.Reference>;
|
|
798
|
+
}
|
|
799
|
+
namespace GeminiOmniFlash1_1 {
|
|
800
|
+
interface Reference {
|
|
801
|
+
/**
|
|
802
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
803
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
804
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
805
|
+
*/
|
|
806
|
+
uri: string;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
554
809
|
interface Seedance2_5 {
|
|
555
810
|
model: 'seedance2_5';
|
|
556
811
|
/**
|
|
@@ -563,6 +818,13 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
563
818
|
* Whether to generate audio for the video.
|
|
564
819
|
*/
|
|
565
820
|
audio?: boolean;
|
|
821
|
+
/**
|
|
822
|
+
* Generate a cheap 480p preview instead of a full-quality video. The returned task
|
|
823
|
+
* ID can later be enhanced to a 1080p video with the same content by passing it as
|
|
824
|
+
* `draftTaskId` to `text_to_video`. Drafts can be enhanced within 7 days of
|
|
825
|
+
* creation. Defaults to false.
|
|
826
|
+
*/
|
|
827
|
+
draft?: boolean;
|
|
566
828
|
/**
|
|
567
829
|
* Seconds of video to generate, or `auto` to let the model choose. `auto` is
|
|
568
830
|
* billed at the variant maximum up front; unused credits are refunded after the
|
|
@@ -577,6 +839,11 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
577
839
|
* requires `promptText`, requires `duration: "auto"`, and does not accept `ratio`.
|
|
578
840
|
*/
|
|
579
841
|
mode?: 'reference' | 'extend' | 'edit';
|
|
842
|
+
/**
|
|
843
|
+
* Container for the output video. `mov` keeps high colour precision for grading
|
|
844
|
+
* and compositing. Defaults to `mp4`. Draft mode only supports `mp4`.
|
|
845
|
+
*/
|
|
846
|
+
outputFormat?: 'mp4' | 'mov';
|
|
580
847
|
/**
|
|
581
848
|
* An optional text prompt up to 15000 characters describing what should appear in
|
|
582
849
|
* the output.
|
|
@@ -645,10 +912,10 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
645
912
|
uri: string;
|
|
646
913
|
}
|
|
647
914
|
}
|
|
648
|
-
interface
|
|
649
|
-
model: '
|
|
915
|
+
interface Kling4 {
|
|
916
|
+
model: 'kling_4';
|
|
650
917
|
/**
|
|
651
|
-
* A
|
|
918
|
+
* A text prompt describing how to edit the video.
|
|
652
919
|
*/
|
|
653
920
|
promptText: string;
|
|
654
921
|
/**
|
|
@@ -658,26 +925,16 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
658
925
|
*/
|
|
659
926
|
videoUri: string;
|
|
660
927
|
/**
|
|
661
|
-
*
|
|
662
|
-
* extend mode, this is the amount of footage added to the input video. Use "auto"
|
|
663
|
-
* to let the model choose a duration.
|
|
928
|
+
* Output quality tier. The video keeps the input media framing.
|
|
664
929
|
*/
|
|
665
|
-
|
|
930
|
+
ratio?: 'auto_720p' | 'auto_1080p';
|
|
666
931
|
/**
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
*/
|
|
670
|
-
mode?: 'reference' | 'extend' | 'edit';
|
|
671
|
-
/**
|
|
672
|
-
* The resolution and aspect ratio of the output video.
|
|
932
|
+
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
|
933
|
+
* total, frames included.
|
|
673
934
|
*/
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* An optional array of image references to guide the output.
|
|
677
|
-
*/
|
|
678
|
-
references?: Array<GeminiOmniFlash1_1.Reference>;
|
|
935
|
+
references?: Array<Kling4.Reference>;
|
|
679
936
|
}
|
|
680
|
-
namespace
|
|
937
|
+
namespace Kling4 {
|
|
681
938
|
interface Reference {
|
|
682
939
|
/**
|
|
683
940
|
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,aAAa,EAAE,0BAA0B,CAAC,aAAa,CAAC;CACzD;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,QAAQ,GACjC,wBAAwB,CAAC,OAAO,GAChC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,aAAa,GACtC,wBAAwB,CAAC,a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AAE,MAAM,CAAC;SACb;QAED,UAAiB,SAAS;YACxB;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,MAAM;QACrB,KAAK,EAAE,SAAS,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;;WAIG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,KAAK,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;QAEnC;;;WAGG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;KACtC;IAED,UAAiB,MAAM,CAAC;QACtB,UAAiB,SAAS;YACxB;;;;eAIG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -117,6 +117,11 @@ import {
|
|
|
117
117
|
TextToSpeechCreateResponse,
|
|
118
118
|
} from './resources/text-to-speech';
|
|
119
119
|
import { TextToVideo, TextToVideoCreateParams, TextToVideoCreateResponse } from './resources/text-to-video';
|
|
120
|
+
import {
|
|
121
|
+
VideoToAudio,
|
|
122
|
+
VideoToAudioCreateParams,
|
|
123
|
+
VideoToAudioCreateResponse,
|
|
124
|
+
} from './resources/video-to-audio';
|
|
120
125
|
import { VideoToHdr, VideoToHdrCreateParams, VideoToHdrCreateResponse } from './resources/video-to-hdr';
|
|
121
126
|
import {
|
|
122
127
|
VideoToVideo,
|
|
@@ -939,6 +944,10 @@ export class RunwayML {
|
|
|
939
944
|
* These endpoints all kick off tasks to create generations.
|
|
940
945
|
*/
|
|
941
946
|
videoToVideo: API.VideoToVideo = new API.VideoToVideo(this);
|
|
947
|
+
/**
|
|
948
|
+
* These endpoints all kick off tasks to create generations.
|
|
949
|
+
*/
|
|
950
|
+
videoToAudio: API.VideoToAudio = new API.VideoToAudio(this);
|
|
942
951
|
/**
|
|
943
952
|
* These endpoints all kick off tasks to create generations.
|
|
944
953
|
*/
|
|
@@ -1001,6 +1010,7 @@ export class RunwayML {
|
|
|
1001
1010
|
RunwayML.Tasks = Tasks;
|
|
1002
1011
|
RunwayML.ImageToVideo = ImageToVideo;
|
|
1003
1012
|
RunwayML.VideoToVideo = VideoToVideo;
|
|
1013
|
+
RunwayML.VideoToAudio = VideoToAudio;
|
|
1004
1014
|
RunwayML.VideoToHdr = VideoToHdr;
|
|
1005
1015
|
RunwayML.TextToVideo = TextToVideo;
|
|
1006
1016
|
RunwayML.TextToImage = TextToImage;
|
|
@@ -1046,6 +1056,12 @@ export declare namespace RunwayML {
|
|
|
1046
1056
|
type VideoToVideoCreateParams as VideoToVideoCreateParams,
|
|
1047
1057
|
};
|
|
1048
1058
|
|
|
1059
|
+
export {
|
|
1060
|
+
VideoToAudio as VideoToAudio,
|
|
1061
|
+
type VideoToAudioCreateResponse as VideoToAudioCreateResponse,
|
|
1062
|
+
type VideoToAudioCreateParams as VideoToAudioCreateParams,
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1049
1065
|
export {
|
|
1050
1066
|
VideoToHdr as VideoToHdr,
|
|
1051
1067
|
type VideoToHdrCreateResponse as VideoToHdrCreateResponse,
|
|
@@ -34,7 +34,7 @@ export class AvatarConversations extends APIResource {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Permanently delete a conversation, including its transcript and recording.
|
|
38
38
|
*/
|
|
39
39
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
40
40
|
return this._client.delete(path`/v1/avatar_conversations/${id}`, {
|
|
@@ -91,18 +91,20 @@ export namespace ImageCreateResponse {
|
|
|
91
91
|
*/
|
|
92
92
|
export interface ResolvedInput {
|
|
93
93
|
/**
|
|
94
|
-
* Aspect ratio
|
|
94
|
+
* Aspect ratio resolved for routing display from the request or router default.
|
|
95
|
+
* When `ratio` is `auto`, the source image determines output framing.
|
|
95
96
|
*/
|
|
96
97
|
aspectRatio: string;
|
|
97
98
|
|
|
98
99
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
100
|
+
* Output ratio for the selected model, as `<width>:<height>`. `auto` means the
|
|
101
|
+
* output keeps the source image's framing, so no pixel size was chosen.
|
|
101
102
|
*/
|
|
102
103
|
ratio: string;
|
|
103
104
|
|
|
104
105
|
/**
|
|
105
|
-
* Megapixel tier
|
|
106
|
+
* Megapixel tier resolved for routing display from the request or model default.
|
|
107
|
+
* When `ratio` is `auto`, this does not specify output pixel dimensions.
|
|
106
108
|
*/
|
|
107
109
|
resolution: string;
|
|
108
110
|
}
|