@runwayml/sdk 4.28.0 → 4.30.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 (132) hide show
  1. package/CHANGELOG.md +26 -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/generate/image.d.mts +2 -2
  29. package/resources/generate/image.d.ts +2 -2
  30. package/resources/generate/video.d.mts +5 -0
  31. package/resources/generate/video.d.mts.map +1 -1
  32. package/resources/generate/video.d.ts +5 -0
  33. package/resources/generate/video.d.ts.map +1 -1
  34. package/resources/image-to-video.d.mts +78 -2
  35. package/resources/image-to-video.d.mts.map +1 -1
  36. package/resources/image-to-video.d.ts +78 -2
  37. package/resources/image-to-video.d.ts.map +1 -1
  38. package/resources/organization/index.d.mts +1 -1
  39. package/resources/organization/index.d.mts.map +1 -1
  40. package/resources/organization/index.d.ts +1 -1
  41. package/resources/organization/index.d.ts.map +1 -1
  42. package/resources/organization/index.js.map +1 -1
  43. package/resources/organization/index.mjs.map +1 -1
  44. package/resources/organization/organization.d.mts +54 -5
  45. package/resources/organization/organization.d.mts.map +1 -1
  46. package/resources/organization/organization.d.ts +54 -5
  47. package/resources/organization/organization.d.ts.map +1 -1
  48. package/resources/organization/organization.js +1 -1
  49. package/resources/organization/organization.js.map +1 -1
  50. package/resources/organization/organization.mjs +1 -1
  51. package/resources/organization/organization.mjs.map +1 -1
  52. package/resources/organization/webapp/audit-logs.d.mts +64 -12
  53. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  54. package/resources/organization/webapp/audit-logs.d.ts +64 -12
  55. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  56. package/resources/organization/webapp/audit-logs.js +1 -1
  57. package/resources/organization/webapp/audit-logs.js.map +1 -1
  58. package/resources/organization/webapp/audit-logs.mjs +1 -1
  59. package/resources/organization/webapp/audit-logs.mjs.map +1 -1
  60. package/resources/organization/webapp/index.d.mts +1 -1
  61. package/resources/organization/webapp/index.d.mts.map +1 -1
  62. package/resources/organization/webapp/index.d.ts +1 -1
  63. package/resources/organization/webapp/index.d.ts.map +1 -1
  64. package/resources/organization/webapp/index.js.map +1 -1
  65. package/resources/organization/webapp/index.mjs.map +1 -1
  66. package/resources/organization/webapp/webapp.d.mts +95 -2
  67. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  68. package/resources/organization/webapp/webapp.d.ts +95 -2
  69. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  70. package/resources/organization/webapp/webapp.js +12 -0
  71. package/resources/organization/webapp/webapp.js.map +1 -1
  72. package/resources/organization/webapp/webapp.mjs +12 -0
  73. package/resources/organization/webapp/webapp.mjs.map +1 -1
  74. package/resources/routers.d.mts +32 -26
  75. package/resources/routers.d.mts.map +1 -1
  76. package/resources/routers.d.ts +32 -26
  77. package/resources/routers.d.ts.map +1 -1
  78. package/resources/routers.js +2 -2
  79. package/resources/routers.js.map +1 -1
  80. package/resources/routers.mjs +2 -2
  81. package/resources/routers.mjs.map +1 -1
  82. package/resources/tasks.d.mts +25 -2
  83. package/resources/tasks.d.mts.map +1 -1
  84. package/resources/tasks.d.ts +25 -2
  85. package/resources/tasks.d.ts.map +1 -1
  86. package/resources/text-to-image.d.mts +204 -1
  87. package/resources/text-to-image.d.mts.map +1 -1
  88. package/resources/text-to-image.d.ts +204 -1
  89. package/resources/text-to-image.d.ts.map +1 -1
  90. package/resources/text-to-speech.d.mts +77 -1
  91. package/resources/text-to-speech.d.mts.map +1 -1
  92. package/resources/text-to-speech.d.ts +77 -1
  93. package/resources/text-to-speech.d.ts.map +1 -1
  94. package/resources/text-to-video.d.mts +94 -3
  95. package/resources/text-to-video.d.mts.map +1 -1
  96. package/resources/text-to-video.d.ts +94 -3
  97. package/resources/text-to-video.d.ts.map +1 -1
  98. package/resources/video-to-video.d.mts +107 -3
  99. package/resources/video-to-video.d.mts.map +1 -1
  100. package/resources/video-to-video.d.ts +107 -3
  101. package/resources/video-to-video.d.ts.map +1 -1
  102. package/resources/voices.d.mts +1 -1
  103. package/resources/voices.d.mts.map +1 -1
  104. package/resources/voices.d.ts +1 -1
  105. package/resources/voices.d.ts.map +1 -1
  106. package/resources/voices.js +1 -1
  107. package/resources/voices.js.map +1 -1
  108. package/resources/voices.mjs +1 -1
  109. package/resources/voices.mjs.map +1 -1
  110. package/src/resources/avatar-conversations.ts +1 -1
  111. package/src/resources/avatars.ts +2 -4
  112. package/src/resources/documents.ts +4 -10
  113. package/src/resources/generate/image.ts +2 -2
  114. package/src/resources/generate/video.ts +6 -0
  115. package/src/resources/image-to-video.ts +105 -2
  116. package/src/resources/organization/index.ts +3 -0
  117. package/src/resources/organization/organization.ts +82 -3
  118. package/src/resources/organization/webapp/audit-logs.ts +144 -10
  119. package/src/resources/organization/webapp/index.ts +3 -0
  120. package/src/resources/organization/webapp/webapp.ts +122 -1
  121. package/src/resources/routers.ts +38 -26
  122. package/src/resources/tasks.ts +33 -2
  123. package/src/resources/text-to-image.ts +350 -1
  124. package/src/resources/text-to-speech.ts +143 -1
  125. package/src/resources/text-to-video.ts +128 -3
  126. package/src/resources/video-to-video.ts +143 -3
  127. package/src/resources/voices.ts +1 -1
  128. package/src/version.ts +1 -1
  129. package/version.d.mts +1 -1
  130. package/version.d.ts +1 -1
  131. package/version.js +1 -1
  132. package/version.mjs +1 -1
@@ -80,7 +80,11 @@ export type TextToImageCreateParams =
80
80
  | TextToImageCreateParams.GptImage2_6Sunburst
81
81
  | TextToImageCreateParams.GptImage2_6Flare
82
82
  | TextToImageCreateParams.Seedream5ProLayers
83
- | TextToImageCreateParams.Gemini2_5Flash;
83
+ | TextToImageCreateParams.Seedream5_5
84
+ | TextToImageCreateParams.Seedream5_5Layers
85
+ | TextToImageCreateParams.MinimaxH3Image
86
+ | TextToImageCreateParams.Gemini2_5Flash
87
+ | TextToImageCreateParams.Ideogram4_6;
84
88
 
85
89
  export declare namespace TextToImageCreateParams {
86
90
  export interface Gen4ImageTurbo {
@@ -1827,6 +1831,234 @@ export declare namespace TextToImageCreateParams {
1827
1831
  }
1828
1832
  }
1829
1833
 
1834
+ export interface Seedream5_5 {
1835
+ model: 'seedream5.5';
1836
+
1837
+ /**
1838
+ * A description of the image you want to generate.
1839
+ */
1840
+ promptText: string;
1841
+
1842
+ /**
1843
+ * The resolution of the output image, expressed as `<width>:<height>`. Use
1844
+ * `auto_1k`, `auto_1.5k`, `auto_2k` or `auto_4k` to let the model pick the aspect
1845
+ * ratio at a fixed resolution tier. With `auto_4k`, the output takes the 4K aspect
1846
+ * ratio nearest to the first reference image, or 1:1 without reference images.
1847
+ */
1848
+ ratio:
1849
+ | '1024:1024'
1850
+ | '1152:864'
1851
+ | '864:1152'
1852
+ | '1424:800'
1853
+ | '800:1424'
1854
+ | '1248:832'
1855
+ | '832:1248'
1856
+ | '1568:672'
1857
+ | '1536:1536'
1858
+ | '1792:1344'
1859
+ | '1344:1792'
1860
+ | '2048:1152'
1861
+ | '1152:2048'
1862
+ | '1872:1248'
1863
+ | '1248:1872'
1864
+ | '2352:1008'
1865
+ | '2048:2048'
1866
+ | '2368:1776'
1867
+ | '1776:2368'
1868
+ | '2816:1584'
1869
+ | '1584:2816'
1870
+ | '2496:1664'
1871
+ | '1664:2496'
1872
+ | '3136:1344'
1873
+ | '2880:2880'
1874
+ | '3264:2448'
1875
+ | '2448:3264'
1876
+ | '3840:2160'
1877
+ | '2160:3840'
1878
+ | '3504:2336'
1879
+ | '2336:3504'
1880
+ | '4368:1872'
1881
+ | 'auto_1k'
1882
+ | 'auto_1.5k'
1883
+ | 'auto_2k'
1884
+ | 'auto_4k';
1885
+
1886
+ /**
1887
+ * Whether the image has a transparent or an opaque background. A transparent
1888
+ * background needs the png output format. Omit to let the model decide from the
1889
+ * prompt.
1890
+ */
1891
+ background?: 'transparent' | 'opaque';
1892
+
1893
+ /**
1894
+ * The number of images to generate. Increasing this number will affect the number
1895
+ * of credits consumed by the generation.
1896
+ */
1897
+ outputCount?: number;
1898
+
1899
+ /**
1900
+ * The file format of the output image. Defaults to png.
1901
+ */
1902
+ outputFormat?: 'png' | 'jpeg';
1903
+
1904
+ /**
1905
+ * Images to edit or combine. Refer to them in the prompt by upload order (Figure
1906
+ * 1, Figure 2, and so on).
1907
+ */
1908
+ referenceImages?: Array<Seedream5_5.ReferenceImage>;
1909
+ }
1910
+
1911
+ export namespace Seedream5_5 {
1912
+ export interface ReferenceImage {
1913
+ /**
1914
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1915
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1916
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1917
+ */
1918
+ uri: string;
1919
+ }
1920
+ }
1921
+
1922
+ export interface Seedream5_5Layers {
1923
+ model: 'seedream5.5_layers';
1924
+
1925
+ /**
1926
+ * The image to split into editable layers. Layer ordering and positioning are
1927
+ * returned in the completed task’s layers field.
1928
+ */
1929
+ referenceImages: Array<Seedream5_5Layers.ReferenceImage>;
1930
+
1931
+ /**
1932
+ * The most images the task may return, counting the base image. Each returned
1933
+ * image is billed separately. Defaults to 30.
1934
+ */
1935
+ maxImages?: number;
1936
+
1937
+ /**
1938
+ * Base image format; defaults to png. Separated layers always use PNG with
1939
+ * transparency.
1940
+ */
1941
+ outputFormat?: 'png' | 'jpeg';
1942
+
1943
+ /**
1944
+ * Optional instructions describing which elements to separate. Omit to split the
1945
+ * image automatically.
1946
+ */
1947
+ promptText?: string;
1948
+
1949
+ /**
1950
+ * Output resolution tier. Defaults to auto, which adapts to the input image. The
1951
+ * base image and layers preserve their respective aspect ratios.
1952
+ */
1953
+ resolution?: 'auto' | '1k' | '1.5k' | '2k';
1954
+ }
1955
+
1956
+ export namespace Seedream5_5Layers {
1957
+ export interface ReferenceImage {
1958
+ /**
1959
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1960
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1961
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1962
+ */
1963
+ uri: string;
1964
+ }
1965
+ }
1966
+
1967
+ export interface MinimaxH3Image {
1968
+ model: 'minimax_h3_image';
1969
+
1970
+ /**
1971
+ * A non-empty text prompt describing what should appear in the output image.
1972
+ */
1973
+ promptText: string;
1974
+
1975
+ /**
1976
+ * The resolution of the output image, expressed as `<width>:<height>`. 4K ratios
1977
+ * cost more credits per image than 1K and 2K. Use `auto_1k`, `auto_2k` or
1978
+ * `auto_4k` to pick a resolution tier and let the model choose the framing from
1979
+ * the prompt.
1980
+ */
1981
+ ratio:
1982
+ | '1024:1024'
1983
+ | '1152:928'
1984
+ | '928:1152'
1985
+ | '1184:896'
1986
+ | '896:1184'
1987
+ | '1248:832'
1988
+ | '832:1248'
1989
+ | '1376:768'
1990
+ | '768:1376'
1991
+ | '1440:736'
1992
+ | '736:1440'
1993
+ | '1568:672'
1994
+ | '672:1568'
1995
+ | '1760:576'
1996
+ | '576:1760'
1997
+ | '2048:2048'
1998
+ | '2304:1824'
1999
+ | '1824:2304'
2000
+ | '2368:1760'
2001
+ | '1760:2368'
2002
+ | '2496:1664'
2003
+ | '1664:2496'
2004
+ | '2720:1536'
2005
+ | '1536:2720'
2006
+ | '2912:1440'
2007
+ | '1440:2912'
2008
+ | '3136:1344'
2009
+ | '1344:3136'
2010
+ | '3552:1184'
2011
+ | '1184:3552'
2012
+ | '4096:4096'
2013
+ | '4576:3648'
2014
+ | '3648:4576'
2015
+ | '4736:3552'
2016
+ | '3552:4736'
2017
+ | '5024:3360'
2018
+ | '3360:5024'
2019
+ | '5472:3072'
2020
+ | '3072:5472'
2021
+ | '5792:2912'
2022
+ | '2912:5792'
2023
+ | '6272:2688'
2024
+ | '2688:6272'
2025
+ | '7104:2368'
2026
+ | '2368:7104'
2027
+ | 'auto_1k'
2028
+ | 'auto_2k'
2029
+ | 'auto_4k';
2030
+
2031
+ /**
2032
+ * When true, generate with the faster MiniMax H3 Image Highspeed model, which
2033
+ * costs more credits per image. Defaults to false.
2034
+ */
2035
+ highspeed?: boolean;
2036
+
2037
+ /**
2038
+ * The number of images to generate. Increasing this number will affect the number
2039
+ * of credits consumed by the generation.
2040
+ */
2041
+ outputCount?: number;
2042
+
2043
+ /**
2044
+ * Up to 16 images to edit or combine. Refer to them in the prompt by upload order
2045
+ * (image 1, image 2, and so on). Each reference image adds to the credits per
2046
+ * image.
2047
+ */
2048
+ referenceImages?: Array<MinimaxH3Image.ReferenceImage>;
2049
+ }
2050
+
2051
+ export namespace MinimaxH3Image {
2052
+ export interface ReferenceImage {
2053
+ /**
2054
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2055
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2056
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2057
+ */
2058
+ uri: string;
2059
+ }
2060
+ }
2061
+
1830
2062
  export interface Gemini2_5Flash {
1831
2063
  model: 'gemini_2.5_flash';
1832
2064
 
@@ -1874,6 +2106,123 @@ export declare namespace TextToImageCreateParams {
1874
2106
  tag?: string;
1875
2107
  }
1876
2108
  }
2109
+
2110
+ export interface Ideogram4_6 {
2111
+ model: 'ideogram_4_6';
2112
+
2113
+ /**
2114
+ * Describe the image to generate, or the changes to make to the first reference
2115
+ * image.
2116
+ */
2117
+ promptText: string;
2118
+
2119
+ /**
2120
+ * Use `transparent` to return a PNG with an alpha channel, or `opaque` for a solid
2121
+ * background. Omit it to let the model decide. Not available with `maskUri` or
2122
+ * `preciseEdit`.
2123
+ */
2124
+ background?: 'transparent' | 'opaque';
2125
+
2126
+ /**
2127
+ * Precise-edit region: `none`, `auto` (requires `maskUri`), or
2128
+ * `top,left,bottom,right` in original-image pixels, with exclusive maximum edges.
2129
+ * A manual region preserves full resolution and all pixels outside it. All masked
2130
+ * edit pixels must lie inside a manual region. Requires edit-window access.
2131
+ */
2132
+ contextWindow?: string;
2133
+
2134
+ /**
2135
+ * Whether Ideogram rewrites the prompt to add detail before generating. Defaults
2136
+ * to `auto`. Only `auto` is available with reference images.
2137
+ */
2138
+ magicPrompt?: 'auto' | 'on' | 'off';
2139
+
2140
+ /**
2141
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2142
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2143
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2144
+ */
2145
+ maskUri?: string;
2146
+
2147
+ /**
2148
+ * The number of images to generate. Increasing this number will affect the number
2149
+ * of credits consumed by the generation.
2150
+ */
2151
+ outputCount?: number;
2152
+
2153
+ /**
2154
+ * When true, change part of the first reference image and keep its size. Requires
2155
+ * at least one reference image, which may be up to 64 megapixels. Whole-image
2156
+ * edits above 4,194,304 pixels are scaled down. Set `contextWindow` to edit a
2157
+ * region at full source resolution.
2158
+ */
2159
+ preciseEdit?: boolean;
2160
+
2161
+ /**
2162
+ * How much rendering effort the model spends on each image. Defaults to `medium`.
2163
+ * Credits per image at 2K / 4K: `very_low` 1 (2K only), `low` 3 / 6, `medium` 6 /
2164
+ * 12, `high` 10 / 20. With reference images or `preciseEdit`: `medium` 6 / 20,
2165
+ * `high` 22 / 60. Edits that keep the source size are billed at 4K when the source
2166
+ * is larger than 2048×2048 pixels.
2167
+ */
2168
+ quality?: 'very_low' | 'low' | 'medium' | 'high';
2169
+
2170
+ /**
2171
+ * The resolution of the output image, expressed as `<width>:<height>`. Omit it or
2172
+ * use `auto` to let the model choose a size around 2K. `4096:4096`, `4096:2304`,
2173
+ * `2304:4096`, `4096:3072`, `3072:4096`, `3840:2560`, `2560:3840`, `3840:3072`,
2174
+ * `3072:3840`, `4096:2048`, `2048:4096` are 4K and billed at the 4K price. Not
2175
+ * available with `maskUri` or `preciseEdit`, which keep the size of the first
2176
+ * reference image.
2177
+ */
2178
+ ratio?:
2179
+ | 'auto'
2180
+ | '2048:2048'
2181
+ | '2560:1440'
2182
+ | '1440:2560'
2183
+ | '2304:1728'
2184
+ | '1728:2304'
2185
+ | '2496:1664'
2186
+ | '1664:2496'
2187
+ | '2240:1792'
2188
+ | '1792:2240'
2189
+ | '2880:1440'
2190
+ | '1440:2880'
2191
+ | '4096:4096'
2192
+ | '4096:2304'
2193
+ | '2304:4096'
2194
+ | '4096:3072'
2195
+ | '3072:4096'
2196
+ | '3840:2560'
2197
+ | '2560:3840'
2198
+ | '3840:3072'
2199
+ | '3072:3840'
2200
+ | '4096:2048'
2201
+ | '2048:4096';
2202
+
2203
+ /**
2204
+ * Up to 5 images. The first image is the one being edited and the rest are
2205
+ * references.
2206
+ */
2207
+ referenceImages?: Array<Ideogram4_6.ReferenceImage>;
2208
+
2209
+ /**
2210
+ * A fixed seed reproduces the same result for the same request. Omit it for a
2211
+ * random seed.
2212
+ */
2213
+ seed?: number;
2214
+ }
2215
+
2216
+ export namespace Ideogram4_6 {
2217
+ export interface ReferenceImage {
2218
+ /**
2219
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2220
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2221
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2222
+ */
2223
+ uri: string;
2224
+ }
2225
+ }
1877
2226
  }
1878
2227
 
1879
2228
  export declare namespace TextToImage {
@@ -55,7 +55,8 @@ export type TextToSpeechCreateParams =
55
55
  | TextToSpeechCreateParams.Gemini3_8FlashTts
56
56
  | TextToSpeechCreateParams.Gemini3_8FlashLiteTts
57
57
  | TextToSpeechCreateParams.ElevenMultilingualV2
58
- | TextToSpeechCreateParams.ElevenV3;
58
+ | TextToSpeechCreateParams.ElevenV3
59
+ | TextToSpeechCreateParams.ElevenV4Turbo;
59
60
 
60
61
  export declare namespace TextToSpeechCreateParams {
61
62
  export interface SeedAudio {
@@ -564,6 +565,147 @@ export declare namespace TextToSpeechCreateParams {
564
565
  type: 'custom';
565
566
  }
566
567
  }
568
+
569
+ export interface ElevenV4Turbo {
570
+ model: 'eleven_v4_turbo';
571
+
572
+ /**
573
+ * The text to convert to speech. You can include expressive audio tags like
574
+ * [laughs], [whispers], or [pause] in the script.
575
+ */
576
+ promptText: string;
577
+
578
+ /**
579
+ * The voice to use for the generated speech.
580
+ */
581
+ voice: ElevenV4Turbo.RunwayPreset | ElevenV4Turbo.Custom;
582
+
583
+ /**
584
+ * Language code to enforce pronunciation, such as "en" or "pt". A regional code
585
+ * such as "pt-BR" is read as its language.
586
+ */
587
+ languageCode?: string;
588
+
589
+ /**
590
+ * Text that comes after this request, so the speech can lead into a later
591
+ * generation.
592
+ */
593
+ nextText?: string;
594
+
595
+ /**
596
+ * Text that comes before this request, so the speech can continue from an earlier
597
+ * generation.
598
+ */
599
+ previousText?: string;
600
+
601
+ /**
602
+ * Optional seed for more consistent output. The same seed and settings tend to
603
+ * sound alike, but it is not guaranteed.
604
+ */
605
+ seed?: number;
606
+
607
+ /**
608
+ * How closely the output tracks the original speaker.
609
+ */
610
+ similarityBoost?: number;
611
+
612
+ /**
613
+ * Speech speed multiplier. Values below 1 slow the speech down, and values above 1
614
+ * speed it up.
615
+ */
616
+ speed?: number;
617
+
618
+ /**
619
+ * Voice stability. Lower values allow broader emotional range; higher values are
620
+ * steadier.
621
+ */
622
+ stability?: number;
623
+
624
+ /**
625
+ * Style exaggeration. Higher values amplify the speaker style.
626
+ */
627
+ style?: number;
628
+
629
+ /**
630
+ * Boost similarity to the original speaker at a small latency cost.
631
+ */
632
+ useSpeakerBoost?: boolean;
633
+ }
634
+
635
+ export namespace ElevenV4Turbo {
636
+ /**
637
+ * A voice preset from the RunwayML API.
638
+ */
639
+ export interface RunwayPreset {
640
+ /**
641
+ * The preset voice ID to use for the generated speech.
642
+ */
643
+ presetId:
644
+ | 'Maya'
645
+ | 'Arjun'
646
+ | 'Serene'
647
+ | 'Bernard'
648
+ | 'Billy'
649
+ | 'Mark'
650
+ | 'Clint'
651
+ | 'Mabel'
652
+ | 'Chad'
653
+ | 'Leslie'
654
+ | 'Eleanor'
655
+ | 'Elias'
656
+ | 'Elliot'
657
+ | 'Grungle'
658
+ | 'Brodie'
659
+ | 'Sandra'
660
+ | 'Kirk'
661
+ | 'Kylie'
662
+ | 'Lara'
663
+ | 'Lisa'
664
+ | 'Malachi'
665
+ | 'Marlene'
666
+ | 'Martin'
667
+ | 'Miriam'
668
+ | 'Monster'
669
+ | 'Paula'
670
+ | 'Pip'
671
+ | 'Rusty'
672
+ | 'Ragnar'
673
+ | 'Xylar'
674
+ | 'Maggie'
675
+ | 'Jack'
676
+ | 'Katie'
677
+ | 'Noah'
678
+ | 'James'
679
+ | 'Rina'
680
+ | 'Ella'
681
+ | 'Mariah'
682
+ | 'Frank'
683
+ | 'Claudia'
684
+ | 'Niki'
685
+ | 'Vincent'
686
+ | 'Kendrick'
687
+ | 'Myrna'
688
+ | 'Tom'
689
+ | 'Wanda'
690
+ | 'Benjamin'
691
+ | 'Kiana'
692
+ | 'Rachel';
693
+
694
+ type: 'runway-preset';
695
+ }
696
+
697
+ /**
698
+ * A custom voice belonging to the authenticated organization.
699
+ */
700
+ export interface Custom {
701
+ /**
702
+ * The ID of a custom voice created via the Voices API.
703
+ */
704
+ id: string;
705
+
706
+ type: 'custom';
707
+ }
708
+ }
567
709
  }
568
710
 
569
711
  export declare namespace TextToSpeech {
@@ -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 {
@@ -1716,9 +1717,15 @@ export declare namespace TextToVideoCreateParams {
1716
1717
  */
1717
1718
  duration?: number;
1718
1719
 
1720
+ /**
1721
+ * Generate 10-bit HDR output. Requires a 1080p or 4K ratio. Additional charges
1722
+ * apply per output second. Defaults to false.
1723
+ */
1724
+ hdr?: boolean;
1725
+
1719
1726
  /**
1720
1727
  * The target output size. Use a pixel ratio such as `1280:720` or `auto_720p` /
1721
- * `auto_1080p` for adaptive framing.
1728
+ * `auto_1080p` / `auto_4k` for adaptive framing.
1722
1729
  */
1723
1730
  ratio?:
1724
1731
  | '1280:720'
@@ -1729,8 +1736,13 @@ export declare namespace TextToVideoCreateParams {
1729
1736
  | '1080:1920'
1730
1737
  | '1440:1440'
1731
1738
  | '2200:940'
1739
+ | '3840:2160'
1740
+ | '2160:3840'
1741
+ | '2880:2880'
1742
+ | '4396:1884'
1732
1743
  | 'auto_720p'
1733
- | 'auto_1080p';
1744
+ | 'auto_1080p'
1745
+ | 'auto_4k';
1734
1746
 
1735
1747
  /**
1736
1748
  * Images of characters, objects or styles to use in the video. Up to 10 images in
@@ -1965,6 +1977,119 @@ export declare namespace TextToVideoCreateParams {
1965
1977
  uri: string;
1966
1978
  }
1967
1979
  }
1980
+
1981
+ export interface Seedance2_5Flash {
1982
+ model: 'seedance2_5_flash';
1983
+
1984
+ /**
1985
+ * Whether to generate audio for the video. Defaults to `true`.
1986
+ */
1987
+ audio?: boolean;
1988
+
1989
+ /**
1990
+ * Seconds of video to generate, or `auto` to let the model choose. `auto` is
1991
+ * billed at the variant maximum up front; unused credits are refunded after the
1992
+ * generation finishes. Defaults to 5.
1993
+ */
1994
+ duration?: number | 'auto';
1995
+
1996
+ /**
1997
+ * Container for the output video. `mov` keeps high colour precision for grading
1998
+ * and compositing. Defaults to `mp4`.
1999
+ */
2000
+ outputFormat?: 'mp4' | 'mov';
2001
+
2002
+ /**
2003
+ * An optional text prompt up to 15000 characters describing what should appear in
2004
+ * the output.
2005
+ */
2006
+ promptText?: string;
2007
+
2008
+ /**
2009
+ * The resolution of the output video. Seedance 2.5 Flash supports 480p and 720p.
2010
+ * Defaults to `1280:720`.
2011
+ */
2012
+ ratio?:
2013
+ | '992:432'
2014
+ | '854:480'
2015
+ | '752:560'
2016
+ | '640:640'
2017
+ | '560:752'
2018
+ | '480:854'
2019
+ | '1470:630'
2020
+ | '1280:720'
2021
+ | '1112:834'
2022
+ | '960:960'
2023
+ | '834:1112'
2024
+ | '720:1280';
2025
+
2026
+ /**
2027
+ * An optional array of audio references. The total combined duration must be less
2028
+ * than 30 seconds.
2029
+ */
2030
+ referenceAudio?: Array<Seedance2_5Flash.ReferenceAudio>;
2031
+
2032
+ /**
2033
+ * An optional array of image references (up to 10). See
2034
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2035
+ */
2036
+ references?: Array<Seedance2_5Flash.Reference>;
2037
+
2038
+ /**
2039
+ * An optional array of video references. The combined duration across all video
2040
+ * references must not exceed 30 seconds. See [our docs](/assets/inputs#videos) on
2041
+ * video inputs for more information.
2042
+ */
2043
+ referenceVideos?: Array<Seedance2_5Flash.ReferenceVideo>;
2044
+
2045
+ /**
2046
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
2047
+ * get different results for the same other request parameters. Using the same seed
2048
+ * integer for an identical request will produce similar results.
2049
+ */
2050
+ seed?: number;
2051
+ }
2052
+
2053
+ export namespace Seedance2_5Flash {
2054
+ /**
2055
+ * An audio reference allows the model to use the audio as additional context for
2056
+ * the output.
2057
+ */
2058
+ export interface ReferenceAudio {
2059
+ type: 'audio';
2060
+
2061
+ /**
2062
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2063
+ * `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
2064
+ * [our docs](/assets/inputs#audio) on audio inputs for more information.
2065
+ */
2066
+ uri: string;
2067
+ }
2068
+
2069
+ export interface Reference {
2070
+ /**
2071
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2072
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
2073
+ * [our docs](/assets/inputs#images) on image inputs for more information.
2074
+ */
2075
+ uri: string;
2076
+ }
2077
+
2078
+ /**
2079
+ * A video reference allows the model to use the video as additional context for
2080
+ * the output.
2081
+ */
2082
+ export interface ReferenceVideo {
2083
+ type: 'video';
2084
+
2085
+ /**
2086
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
2087
+ * `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
2088
+ * [our docs](/assets/inputs#videos) on video inputs for more information.
2089
+ */
2090
+ uri: string;
2091
+ }
2092
+ }
1968
2093
  }
1969
2094
 
1970
2095
  export declare namespace TextToVideo {