@runwayml/sdk 4.28.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +2 -2
  3. package/package.json +1 -1
  4. package/resources/avatar-conversations.d.mts +1 -1
  5. package/resources/avatar-conversations.d.mts.map +1 -1
  6. package/resources/avatar-conversations.d.ts +1 -1
  7. package/resources/avatar-conversations.d.ts.map +1 -1
  8. package/resources/avatar-conversations.js +1 -1
  9. package/resources/avatar-conversations.js.map +1 -1
  10. package/resources/avatar-conversations.mjs +1 -1
  11. package/resources/avatar-conversations.mjs.map +1 -1
  12. package/resources/avatars.d.mts +2 -4
  13. package/resources/avatars.d.mts.map +1 -1
  14. package/resources/avatars.d.ts +2 -4
  15. package/resources/avatars.d.ts.map +1 -1
  16. package/resources/avatars.js +2 -4
  17. package/resources/avatars.js.map +1 -1
  18. package/resources/avatars.mjs +2 -4
  19. package/resources/avatars.mjs.map +1 -1
  20. package/resources/documents.d.mts +4 -10
  21. package/resources/documents.d.mts.map +1 -1
  22. package/resources/documents.d.ts +4 -10
  23. package/resources/documents.d.ts.map +1 -1
  24. package/resources/documents.js +2 -8
  25. package/resources/documents.js.map +1 -1
  26. package/resources/documents.mjs +2 -8
  27. package/resources/documents.mjs.map +1 -1
  28. package/resources/image-to-video.d.mts +72 -1
  29. package/resources/image-to-video.d.mts.map +1 -1
  30. package/resources/image-to-video.d.ts +72 -1
  31. package/resources/image-to-video.d.ts.map +1 -1
  32. package/resources/organization/organization.d.mts +52 -3
  33. package/resources/organization/organization.d.mts.map +1 -1
  34. package/resources/organization/organization.d.ts +52 -3
  35. package/resources/organization/organization.d.ts.map +1 -1
  36. package/resources/organization/organization.js +1 -1
  37. package/resources/organization/organization.js.map +1 -1
  38. package/resources/organization/organization.mjs +1 -1
  39. package/resources/organization/organization.mjs.map +1 -1
  40. package/resources/organization/webapp/audit-logs.d.mts +48 -16
  41. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  42. package/resources/organization/webapp/audit-logs.d.ts +48 -16
  43. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  44. package/resources/organization/webapp/audit-logs.js +1 -1
  45. package/resources/organization/webapp/audit-logs.js.map +1 -1
  46. package/resources/organization/webapp/audit-logs.mjs +1 -1
  47. package/resources/organization/webapp/audit-logs.mjs.map +1 -1
  48. package/resources/organization/webapp/webapp.d.mts +16 -1
  49. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  50. package/resources/organization/webapp/webapp.d.ts +16 -1
  51. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  52. package/resources/organization/webapp/webapp.js.map +1 -1
  53. package/resources/organization/webapp/webapp.mjs.map +1 -1
  54. package/resources/routers.d.mts +32 -26
  55. package/resources/routers.d.mts.map +1 -1
  56. package/resources/routers.d.ts +32 -26
  57. package/resources/routers.d.ts.map +1 -1
  58. package/resources/routers.js +2 -2
  59. package/resources/routers.js.map +1 -1
  60. package/resources/routers.mjs +2 -2
  61. package/resources/routers.mjs.map +1 -1
  62. package/resources/text-to-image.d.mts +122 -1
  63. package/resources/text-to-image.d.mts.map +1 -1
  64. package/resources/text-to-image.d.ts +122 -1
  65. package/resources/text-to-image.d.ts.map +1 -1
  66. package/resources/text-to-video.d.mts +87 -1
  67. package/resources/text-to-video.d.mts.map +1 -1
  68. package/resources/text-to-video.d.ts +87 -1
  69. package/resources/text-to-video.d.ts.map +1 -1
  70. package/resources/video-to-video.d.mts +100 -1
  71. package/resources/video-to-video.d.mts.map +1 -1
  72. package/resources/video-to-video.d.ts +100 -1
  73. package/resources/video-to-video.d.ts.map +1 -1
  74. package/resources/voices.d.mts +1 -1
  75. package/resources/voices.d.mts.map +1 -1
  76. package/resources/voices.d.ts +1 -1
  77. package/resources/voices.d.ts.map +1 -1
  78. package/resources/voices.js +1 -1
  79. package/resources/voices.js.map +1 -1
  80. package/resources/voices.mjs +1 -1
  81. package/resources/voices.mjs.map +1 -1
  82. package/src/resources/avatar-conversations.ts +1 -1
  83. package/src/resources/avatars.ts +2 -4
  84. package/src/resources/documents.ts +4 -10
  85. package/src/resources/image-to-video.ts +98 -1
  86. package/src/resources/organization/organization.ts +66 -1
  87. package/src/resources/organization/webapp/audit-logs.ts +102 -14
  88. package/src/resources/organization/webapp/webapp.ts +18 -1
  89. package/src/resources/routers.ts +38 -26
  90. package/src/resources/text-to-image.ts +221 -0
  91. package/src/resources/text-to-video.ts +115 -1
  92. package/src/resources/video-to-video.ts +130 -1
  93. package/src/resources/voices.ts +1 -1
  94. package/src/version.ts +1 -1
  95. package/version.d.mts +1 -1
  96. package/version.d.ts +1 -1
  97. package/version.js +1 -1
  98. package/version.mjs +1 -1
@@ -40,7 +40,7 @@ export class Routers extends APIResource {
40
40
  * cursor-based pagination.
41
41
  */
42
42
  list(
43
- query: RouterListParams,
43
+ query: RouterListParams | null | undefined = {},
44
44
  options?: RequestOptions,
45
45
  ): PagePromise<RouterListResponsesCursorPage, RouterListResponse> {
46
46
  return this._client.getAPIList('/v1/routers', CursorPage<RouterListResponse>, { query, ...options });
@@ -63,7 +63,7 @@ export class Routers extends APIResource {
63
63
  */
64
64
  listRequests(
65
65
  id: string,
66
- query: RouterListRequestsParams,
66
+ query: RouterListRequestsParams | null | undefined = {},
67
67
  options?: RequestOptions,
68
68
  ): PagePromise<RouterListRequestsResponsesCursorPage, RouterListRequestsResponse> {
69
69
  return this._client.getAPIList(path`/v1/routers/${id}/requests`, CursorPage<RouterListRequestsResponse>, {
@@ -142,8 +142,8 @@ export namespace RouterCreateResponse {
142
142
 
143
143
  /**
144
144
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
145
- * the only allowed values. Each id must be a known public video or image model
146
- * name (unknown ids are rejected on create/update).
145
+ * the only allowed values. Each id must be a known public video, image, audio, or
146
+ * mesh model name (unknown ids are rejected on create/update).
147
147
  */
148
148
  models?: Settings.Models;
149
149
 
@@ -177,13 +177,15 @@ export namespace RouterCreateResponse {
177
177
 
178
178
  image?: number;
179
179
 
180
+ mesh?: number;
181
+
180
182
  video?: number;
181
183
  }
182
184
 
183
185
  /**
184
186
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
185
- * the only allowed values. Each id must be a known public video or image model
186
- * name (unknown ids are rejected on create/update).
187
+ * the only allowed values. Each id must be a known public video, image, audio, or
188
+ * mesh model name (unknown ids are rejected on create/update).
187
189
  */
188
190
  export interface Models {
189
191
  ids: Array<string>;
@@ -258,8 +260,8 @@ export namespace RouterRetrieveResponse {
258
260
 
259
261
  /**
260
262
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
261
- * the only allowed values. Each id must be a known public video or image model
262
- * name (unknown ids are rejected on create/update).
263
+ * the only allowed values. Each id must be a known public video, image, audio, or
264
+ * mesh model name (unknown ids are rejected on create/update).
263
265
  */
264
266
  models?: Settings.Models;
265
267
 
@@ -293,13 +295,15 @@ export namespace RouterRetrieveResponse {
293
295
 
294
296
  image?: number;
295
297
 
298
+ mesh?: number;
299
+
296
300
  video?: number;
297
301
  }
298
302
 
299
303
  /**
300
304
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
301
- * the only allowed values. Each id must be a known public video or image model
302
- * name (unknown ids are rejected on create/update).
305
+ * the only allowed values. Each id must be a known public video, image, audio, or
306
+ * mesh model name (unknown ids are rejected on create/update).
303
307
  */
304
308
  export interface Models {
305
309
  ids: Array<string>;
@@ -374,8 +378,8 @@ export namespace RouterUpdateResponse {
374
378
 
375
379
  /**
376
380
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
377
- * the only allowed values. Each id must be a known public video or image model
378
- * name (unknown ids are rejected on create/update).
381
+ * the only allowed values. Each id must be a known public video, image, audio, or
382
+ * mesh model name (unknown ids are rejected on create/update).
379
383
  */
380
384
  models?: Settings.Models;
381
385
 
@@ -409,13 +413,15 @@ export namespace RouterUpdateResponse {
409
413
 
410
414
  image?: number;
411
415
 
416
+ mesh?: number;
417
+
412
418
  video?: number;
413
419
  }
414
420
 
415
421
  /**
416
422
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
417
- * the only allowed values. Each id must be a known public video or image model
418
- * name (unknown ids are rejected on create/update).
423
+ * the only allowed values. Each id must be a known public video, image, audio, or
424
+ * mesh model name (unknown ids are rejected on create/update).
419
425
  */
420
426
  export interface Models {
421
427
  ids: Array<string>;
@@ -493,8 +499,8 @@ export namespace RouterListResponse {
493
499
 
494
500
  /**
495
501
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
496
- * the only allowed values. Each id must be a known public video or image model
497
- * name (unknown ids are rejected on create/update).
502
+ * the only allowed values. Each id must be a known public video, image, audio, or
503
+ * mesh model name (unknown ids are rejected on create/update).
498
504
  */
499
505
  models?: Settings.Models;
500
506
 
@@ -528,13 +534,15 @@ export namespace RouterListResponse {
528
534
 
529
535
  image?: number;
530
536
 
537
+ mesh?: number;
538
+
531
539
  video?: number;
532
540
  }
533
541
 
534
542
  /**
535
543
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
536
- * the only allowed values. Each id must be a known public video or image model
537
- * name (unknown ids are rejected on create/update).
544
+ * the only allowed values. Each id must be a known public video, image, audio, or
545
+ * mesh model name (unknown ids are rejected on create/update).
538
546
  */
539
547
  export interface Models {
540
548
  ids: Array<string>;
@@ -697,8 +705,8 @@ export namespace RouterCreateParams {
697
705
 
698
706
  /**
699
707
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
700
- * the only allowed values. Each id must be a known public video or image model
701
- * name (unknown ids are rejected on create/update).
708
+ * the only allowed values. Each id must be a known public video, image, audio, or
709
+ * mesh model name (unknown ids are rejected on create/update).
702
710
  */
703
711
  models?: Settings.Models;
704
712
 
@@ -738,13 +746,15 @@ export namespace RouterCreateParams {
738
746
 
739
747
  image?: number;
740
748
 
749
+ mesh?: number;
750
+
741
751
  video?: number;
742
752
  }
743
753
 
744
754
  /**
745
755
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
746
- * the only allowed values. Each id must be a known public video or image model
747
- * name (unknown ids are rejected on create/update).
756
+ * the only allowed values. Each id must be a known public video, image, audio, or
757
+ * mesh model name (unknown ids are rejected on create/update).
748
758
  */
749
759
  export interface Models {
750
760
  ids: Array<string>;
@@ -795,8 +805,8 @@ export namespace RouterUpdateParams {
795
805
 
796
806
  /**
797
807
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
798
- * the only allowed values. Each id must be a known public video or image model
799
- * name (unknown ids are rejected on create/update).
808
+ * the only allowed values. Each id must be a known public video, image, audio, or
809
+ * mesh model name (unknown ids are rejected on create/update).
800
810
  */
801
811
  models?: Settings.Models;
802
812
 
@@ -836,13 +846,15 @@ export namespace RouterUpdateParams {
836
846
 
837
847
  image?: number | null;
838
848
 
849
+ mesh?: number | null;
850
+
839
851
  video?: number | null;
840
852
  }
841
853
 
842
854
  /**
843
855
  * When mode is allow_new_except, ids are excluded; when allowlist_only, ids are
844
- * the only allowed values. Each id must be a known public video or image model
845
- * name (unknown ids are rejected on create/update).
856
+ * the only allowed values. Each id must be a known public video, image, audio, or
857
+ * mesh model name (unknown ids are rejected on create/update).
846
858
  */
847
859
  export interface Models {
848
860
  ids: Array<string>;
@@ -80,6 +80,9 @@ export type TextToImageCreateParams =
80
80
  | TextToImageCreateParams.GptImage2_6Sunburst
81
81
  | TextToImageCreateParams.GptImage2_6Flare
82
82
  | TextToImageCreateParams.Seedream5ProLayers
83
+ | TextToImageCreateParams.Seedream5_5
84
+ | TextToImageCreateParams.Seedream5_5Layers
85
+ | TextToImageCreateParams.MinimaxH3Image
83
86
  | TextToImageCreateParams.Gemini2_5Flash;
84
87
 
85
88
  export declare namespace TextToImageCreateParams {
@@ -1827,6 +1830,224 @@ export declare namespace TextToImageCreateParams {
1827
1830
  }
1828
1831
  }
1829
1832
 
1833
+ export interface Seedream5_5 {
1834
+ model: 'seedream5.5';
1835
+
1836
+ /**
1837
+ * A description of the image you want to generate.
1838
+ */
1839
+ promptText: string;
1840
+
1841
+ /**
1842
+ * The resolution of the output image, expressed as `<width>:<height>`. Use
1843
+ * `auto_1k`, `auto_1.5k` or `auto_2k` to let the model pick the aspect ratio at a
1844
+ * fixed resolution tier.
1845
+ */
1846
+ ratio:
1847
+ | '1024:1024'
1848
+ | '1152:864'
1849
+ | '864:1152'
1850
+ | '1424:800'
1851
+ | '800:1424'
1852
+ | '1248:832'
1853
+ | '832:1248'
1854
+ | '1568:672'
1855
+ | '1536:1536'
1856
+ | '1792:1344'
1857
+ | '1344:1792'
1858
+ | '2048:1152'
1859
+ | '1152:2048'
1860
+ | '1872:1248'
1861
+ | '1248:1872'
1862
+ | '2352:1008'
1863
+ | '2048:2048'
1864
+ | '2368:1776'
1865
+ | '1776:2368'
1866
+ | '2816:1584'
1867
+ | '1584:2816'
1868
+ | '2496:1664'
1869
+ | '1664:2496'
1870
+ | '3136:1344'
1871
+ | 'auto_1k'
1872
+ | 'auto_1.5k'
1873
+ | 'auto_2k';
1874
+
1875
+ /**
1876
+ * Whether the image has a transparent or an opaque background. A transparent
1877
+ * background needs the png output format. Omit to let the model decide from the
1878
+ * prompt.
1879
+ */
1880
+ background?: 'transparent' | 'opaque';
1881
+
1882
+ /**
1883
+ * The number of images to generate. Increasing this number will affect the number
1884
+ * of credits consumed by the generation.
1885
+ */
1886
+ outputCount?: number;
1887
+
1888
+ /**
1889
+ * The file format of the output image. Defaults to png.
1890
+ */
1891
+ outputFormat?: 'png' | 'jpeg';
1892
+
1893
+ /**
1894
+ * Images to edit or combine. Refer to them in the prompt by upload order (Figure
1895
+ * 1, Figure 2, and so on).
1896
+ */
1897
+ referenceImages?: Array<Seedream5_5.ReferenceImage>;
1898
+ }
1899
+
1900
+ export namespace Seedream5_5 {
1901
+ export interface ReferenceImage {
1902
+ /**
1903
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1904
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1905
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1906
+ */
1907
+ uri: string;
1908
+ }
1909
+ }
1910
+
1911
+ export interface Seedream5_5Layers {
1912
+ model: 'seedream5.5_layers';
1913
+
1914
+ /**
1915
+ * The image to split into editable layers. Layer ordering and positioning are
1916
+ * returned in the completed task’s layers field.
1917
+ */
1918
+ referenceImages: Array<Seedream5_5Layers.ReferenceImage>;
1919
+
1920
+ /**
1921
+ * The most images the task may return, counting the base image. Each returned
1922
+ * image is billed separately. Defaults to 30.
1923
+ */
1924
+ maxImages?: number;
1925
+
1926
+ /**
1927
+ * Base image format; defaults to png. Separated layers always use PNG with
1928
+ * transparency.
1929
+ */
1930
+ outputFormat?: 'png' | 'jpeg';
1931
+
1932
+ /**
1933
+ * Optional instructions describing which elements to separate. Omit to split the
1934
+ * image automatically.
1935
+ */
1936
+ promptText?: string;
1937
+
1938
+ /**
1939
+ * Output resolution tier. Defaults to auto, which adapts to the input image. The
1940
+ * base image and layers preserve their respective aspect ratios.
1941
+ */
1942
+ resolution?: 'auto' | '1k' | '1.5k' | '2k';
1943
+ }
1944
+
1945
+ export namespace Seedream5_5Layers {
1946
+ export interface ReferenceImage {
1947
+ /**
1948
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1949
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1950
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1951
+ */
1952
+ uri: string;
1953
+ }
1954
+ }
1955
+
1956
+ export interface MinimaxH3Image {
1957
+ model: 'minimax_h3_image';
1958
+
1959
+ /**
1960
+ * A non-empty text prompt describing what should appear in the output image.
1961
+ */
1962
+ promptText: string;
1963
+
1964
+ /**
1965
+ * The resolution of the output image, expressed as `<width>:<height>`. 4K ratios
1966
+ * cost more credits per image than 1K and 2K. Use `auto_1k`, `auto_2k` or
1967
+ * `auto_4k` to pick a resolution tier and let the model choose the framing from
1968
+ * the prompt.
1969
+ */
1970
+ ratio:
1971
+ | '1024:1024'
1972
+ | '1152:928'
1973
+ | '928:1152'
1974
+ | '1184:896'
1975
+ | '896:1184'
1976
+ | '1248:832'
1977
+ | '832:1248'
1978
+ | '1376:768'
1979
+ | '768:1376'
1980
+ | '1440:736'
1981
+ | '736:1440'
1982
+ | '1568:672'
1983
+ | '672:1568'
1984
+ | '1760:576'
1985
+ | '576:1760'
1986
+ | '2048:2048'
1987
+ | '2304:1824'
1988
+ | '1824:2304'
1989
+ | '2368:1760'
1990
+ | '1760:2368'
1991
+ | '2496:1664'
1992
+ | '1664:2496'
1993
+ | '2720:1536'
1994
+ | '1536:2720'
1995
+ | '2912:1440'
1996
+ | '1440:2912'
1997
+ | '3136:1344'
1998
+ | '1344:3136'
1999
+ | '3552:1184'
2000
+ | '1184:3552'
2001
+ | '4096:4096'
2002
+ | '4576:3648'
2003
+ | '3648:4576'
2004
+ | '4736:3552'
2005
+ | '3552:4736'
2006
+ | '5024:3360'
2007
+ | '3360:5024'
2008
+ | '5472:3072'
2009
+ | '3072:5472'
2010
+ | '5792:2912'
2011
+ | '2912:5792'
2012
+ | '6272:2688'
2013
+ | '2688:6272'
2014
+ | '7104:2368'
2015
+ | '2368:7104'
2016
+ | 'auto_1k'
2017
+ | 'auto_2k'
2018
+ | 'auto_4k';
2019
+
2020
+ /**
2021
+ * When true, generate with the faster MiniMax H3 Image Highspeed model, which
2022
+ * costs more credits per image. Defaults to false.
2023
+ */
2024
+ highspeed?: boolean;
2025
+
2026
+ /**
2027
+ * The number of images to generate. Increasing this number will affect the number
2028
+ * of credits consumed by the generation.
2029
+ */
2030
+ outputCount?: number;
2031
+
2032
+ /**
2033
+ * Up to 16 images to edit or combine. Refer to them in the prompt by upload order
2034
+ * (image 1, image 2, and so on). Each reference image adds to the credits per
2035
+ * image.
2036
+ */
2037
+ referenceImages?: Array<MinimaxH3Image.ReferenceImage>;
2038
+ }
2039
+
2040
+ export namespace MinimaxH3Image {
2041
+ export interface ReferenceImage {
2042
+ /**
2043
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2044
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2045
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2046
+ */
2047
+ uri: string;
2048
+ }
2049
+ }
2050
+
1830
2051
  export interface Gemini2_5Flash {
1831
2052
  model: 'gemini_2.5_flash';
1832
2053
 
@@ -83,7 +83,8 @@ export type TextToVideoCreateParams =
83
83
  | TextToVideoCreateParams.GeminiOmniFlash1_2
84
84
  | TextToVideoCreateParams.Kling4Flash
85
85
  | TextToVideoCreateParams.Hailuo3Highspeed
86
- | TextToVideoCreateParams.Hailuo3Lite;
86
+ | TextToVideoCreateParams.Hailuo3Lite
87
+ | TextToVideoCreateParams.Seedance2_5Flash;
87
88
 
88
89
  export declare namespace TextToVideoCreateParams {
89
90
  export interface Gen4_5 {
@@ -1965,6 +1966,119 @@ export declare namespace TextToVideoCreateParams {
1965
1966
  uri: string;
1966
1967
  }
1967
1968
  }
1969
+
1970
+ export interface Seedance2_5Flash {
1971
+ model: 'seedance2_5_flash';
1972
+
1973
+ /**
1974
+ * Whether to generate audio for the video. Defaults to `true`.
1975
+ */
1976
+ audio?: boolean;
1977
+
1978
+ /**
1979
+ * Seconds of video to generate, or `auto` to let the model choose. `auto` is
1980
+ * billed at the variant maximum up front; unused credits are refunded after the
1981
+ * generation finishes. Defaults to 5.
1982
+ */
1983
+ duration?: number | 'auto';
1984
+
1985
+ /**
1986
+ * Container for the output video. `mov` keeps high colour precision for grading
1987
+ * and compositing. Defaults to `mp4`.
1988
+ */
1989
+ outputFormat?: 'mp4' | 'mov';
1990
+
1991
+ /**
1992
+ * An optional text prompt up to 15000 characters describing what should appear in
1993
+ * the output.
1994
+ */
1995
+ promptText?: string;
1996
+
1997
+ /**
1998
+ * The resolution of the output video. Seedance 2.5 Flash supports 480p and 720p.
1999
+ * Defaults to `1280:720`.
2000
+ */
2001
+ ratio?:
2002
+ | '992:432'
2003
+ | '854:480'
2004
+ | '752:560'
2005
+ | '640:640'
2006
+ | '560:752'
2007
+ | '480:854'
2008
+ | '1470:630'
2009
+ | '1280:720'
2010
+ | '1112:834'
2011
+ | '960:960'
2012
+ | '834:1112'
2013
+ | '720:1280';
2014
+
2015
+ /**
2016
+ * An optional array of audio references. The total combined duration must be less
2017
+ * than 30 seconds.
2018
+ */
2019
+ referenceAudio?: Array<Seedance2_5Flash.ReferenceAudio>;
2020
+
2021
+ /**
2022
+ * An optional array of image references (up to 10). See
2023
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2024
+ */
2025
+ references?: Array<Seedance2_5Flash.Reference>;
2026
+
2027
+ /**
2028
+ * An optional array of video references. The combined duration across all video
2029
+ * references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
2030
+ * video inputs for more information.
2031
+ */
2032
+ referenceVideos?: Array<Seedance2_5Flash.ReferenceVideo>;
2033
+
2034
+ /**
2035
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
2036
+ * get different results for the same other request parameters. Using the same seed
2037
+ * integer for an identical request will produce similar results.
2038
+ */
2039
+ seed?: number;
2040
+ }
2041
+
2042
+ export namespace Seedance2_5Flash {
2043
+ /**
2044
+ * An audio reference allows the model to use the audio as additional context for
2045
+ * the output.
2046
+ */
2047
+ export interface ReferenceAudio {
2048
+ type: 'audio';
2049
+
2050
+ /**
2051
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2052
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
2053
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
2054
+ */
2055
+ uri: string;
2056
+ }
2057
+
2058
+ export interface Reference {
2059
+ /**
2060
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2061
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2062
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2063
+ */
2064
+ uri: string;
2065
+ }
2066
+
2067
+ /**
2068
+ * A video reference allows the model to use the video as additional context for
2069
+ * the output.
2070
+ */
2071
+ export interface ReferenceVideo {
2072
+ type: 'video';
2073
+
2074
+ /**
2075
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2076
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
2077
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
2078
+ */
2079
+ uri: string;
2080
+ }
2081
+ }
1968
2082
  }
1969
2083
 
1970
2084
  export declare namespace TextToVideo {
@@ -71,7 +71,8 @@ export type VideoToVideoCreateParams =
71
71
  | VideoToVideoCreateParams.GeminiOmniFlash1_2
72
72
  | VideoToVideoCreateParams.Kling4Flash
73
73
  | VideoToVideoCreateParams.Hailuo3Highspeed
74
- | VideoToVideoCreateParams.Hailuo3Lite;
74
+ | VideoToVideoCreateParams.Hailuo3Lite
75
+ | VideoToVideoCreateParams.Seedance2_5Flash;
75
76
 
76
77
  export declare namespace VideoToVideoCreateParams {
77
78
  export interface Variant0 {
@@ -1497,6 +1498,134 @@ export declare namespace VideoToVideoCreateParams {
1497
1498
  uri: string;
1498
1499
  }
1499
1500
  }
1501
+
1502
+ export interface Seedance2_5Flash {
1503
+ model: 'seedance2_5_flash';
1504
+
1505
+ /**
1506
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1507
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1508
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1509
+ */
1510
+ promptVideo: string;
1511
+
1512
+ /**
1513
+ * Whether to generate audio for the video.
1514
+ */
1515
+ audio?: boolean;
1516
+
1517
+ /**
1518
+ * Seconds of video to generate, or `auto` to let the model choose. `auto` is
1519
+ * billed at the variant maximum up front; unused credits are refunded after the
1520
+ * generation finishes. Defaults to 5.
1521
+ */
1522
+ duration?: number | 'auto';
1523
+
1524
+ /**
1525
+ * How the input video is used. `reference` (the default) generates a new video
1526
+ * conditioned on the input video and accepts `duration` and `ratio`. `extend`
1527
+ * continues the input video, requires `promptText`, and matches the input aspect
1528
+ * ratio, so `ratio` may not be provided. `edit` modifies the input video in place,
1529
+ * requires `promptText`, requires `duration: "auto"`, and does not accept `ratio`.
1530
+ */
1531
+ mode?: 'reference' | 'extend' | 'edit';
1532
+
1533
+ /**
1534
+ * Container for the output video. `mov` keeps high colour precision for grading
1535
+ * and compositing. Defaults to `mp4`.
1536
+ */
1537
+ outputFormat?: 'mp4' | 'mov';
1538
+
1539
+ /**
1540
+ * An optional text prompt up to 15000 characters describing what should appear in
1541
+ * the output.
1542
+ */
1543
+ promptText?: string;
1544
+
1545
+ /**
1546
+ * The resolution of the output video. Seedance 2.5 Flash supports 480p and 720p.
1547
+ */
1548
+ ratio?:
1549
+ | '992:432'
1550
+ | '854:480'
1551
+ | '752:560'
1552
+ | '640:640'
1553
+ | '560:752'
1554
+ | '480:854'
1555
+ | '1470:630'
1556
+ | '1280:720'
1557
+ | '1112:834'
1558
+ | '960:960'
1559
+ | '834:1112'
1560
+ | '720:1280';
1561
+
1562
+ /**
1563
+ * An optional array of audio references. The total combined duration must be less
1564
+ * than 30 seconds.
1565
+ */
1566
+ referenceAudio?: Array<Seedance2_5Flash.ReferenceAudio>;
1567
+
1568
+ /**
1569
+ * An optional array of image references (up to 10). See
1570
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1571
+ */
1572
+ references?: Array<Seedance2_5Flash.Reference>;
1573
+
1574
+ /**
1575
+ * An optional array of video references. The combined duration across all video
1576
+ * references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
1577
+ * video inputs for more information.
1578
+ */
1579
+ referenceVideos?: Array<Seedance2_5Flash.ReferenceVideo>;
1580
+
1581
+ /**
1582
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
1583
+ * get different results for the same other request parameters. Using the same seed
1584
+ * integer for an identical request will produce similar results.
1585
+ */
1586
+ seed?: number;
1587
+ }
1588
+
1589
+ export namespace Seedance2_5Flash {
1590
+ /**
1591
+ * An audio reference allows the model to use the audio as additional context for
1592
+ * the output.
1593
+ */
1594
+ export interface ReferenceAudio {
1595
+ type: 'audio';
1596
+
1597
+ /**
1598
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1599
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
1600
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
1601
+ */
1602
+ uri: string;
1603
+ }
1604
+
1605
+ export interface Reference {
1606
+ /**
1607
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1608
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1609
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1610
+ */
1611
+ uri: string;
1612
+ }
1613
+
1614
+ /**
1615
+ * A video reference allows the model to use the video as additional context for
1616
+ * the output.
1617
+ */
1618
+ export interface ReferenceVideo {
1619
+ type: 'video';
1620
+
1621
+ /**
1622
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1623
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
1624
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
1625
+ */
1626
+ uri: string;
1627
+ }
1628
+ }
1500
1629
  }
1501
1630
 
1502
1631
  export declare namespace VideoToVideo {