@runwayml/sdk 4.29.0 → 4.31.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 +27 -0
- package/client.d.mts +15 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -0
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/generate/generate.d.mts +4 -0
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +4 -0
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js +4 -0
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs +4 -0
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +2 -2
- package/resources/generate/image.d.ts +2 -2
- package/resources/generate/index.d.mts +1 -0
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -0
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js +3 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -0
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/mesh.d.mts +162 -0
- package/resources/generate/mesh.d.mts.map +1 -0
- package/resources/generate/mesh.d.ts +162 -0
- package/resources/generate/mesh.d.ts.map +1 -0
- package/resources/generate/mesh.js +16 -0
- package/resources/generate/mesh.js.map +1 -0
- package/resources/generate/mesh.mjs +12 -0
- package/resources/generate/mesh.mjs.map +1 -0
- package/resources/generate/video.d.mts +5 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +5 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-mesh.d.mts +128 -0
- package/resources/image-to-mesh.d.mts.map +1 -0
- package/resources/image-to-mesh.d.ts +128 -0
- package/resources/image-to-mesh.d.ts.map +1 -0
- package/resources/image-to-mesh.js +27 -0
- package/resources/image-to-mesh.js.map +1 -0
- package/resources/image-to-mesh.mjs +23 -0
- package/resources/image-to-mesh.mjs.map +1 -0
- package/resources/image-to-video.d.mts +6 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +6 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/model-catalog.d.mts +139 -0
- package/resources/model-catalog.d.mts.map +1 -0
- package/resources/model-catalog.d.ts +139 -0
- package/resources/model-catalog.d.ts.map +1 -0
- package/resources/model-catalog.js +28 -0
- package/resources/model-catalog.js.map +1 -0
- package/resources/model-catalog.mjs +24 -0
- package/resources/model-catalog.mjs.map +1 -0
- package/resources/organization/index.d.mts +1 -1
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -1
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.js.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +4 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +4 -4
- 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 +34 -14
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +34 -14
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/index.d.mts +1 -1
- package/resources/organization/webapp/index.d.mts.map +1 -1
- package/resources/organization/webapp/index.d.ts +1 -1
- package/resources/organization/webapp/index.d.ts.map +1 -1
- package/resources/organization/webapp/index.js.map +1 -1
- package/resources/organization/webapp/index.mjs.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +79 -1
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +79 -1
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js +12 -0
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs +12 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/tasks.d.mts +25 -2
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +25 -2
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +86 -4
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +86 -4
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-mesh.d.mts +83 -0
- package/resources/text-to-mesh.d.mts.map +1 -0
- package/resources/text-to-mesh.d.ts +83 -0
- package/resources/text-to-mesh.d.ts.map +1 -0
- package/resources/text-to-mesh.js +19 -0
- package/resources/text-to-mesh.js.map +1 -0
- package/resources/text-to-mesh.mjs +15 -0
- package/resources/text-to-mesh.mjs.map +1 -0
- package/resources/text-to-speech.d.mts +77 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +77 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +7 -2
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +7 -2
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +7 -2
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +7 -2
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/resources/generate/generate.ts +10 -0
- package/src/resources/generate/image.ts +2 -2
- package/src/resources/generate/index.ts +1 -0
- package/src/resources/generate/mesh.ts +214 -0
- package/src/resources/generate/video.ts +6 -0
- package/src/resources/image-to-mesh.ts +176 -0
- package/src/resources/image-to-video.ts +7 -1
- package/src/resources/index.ts +3 -0
- package/src/resources/model-catalog.ts +161 -0
- package/src/resources/organization/index.ts +3 -0
- package/src/resources/organization/organization.ts +16 -2
- package/src/resources/organization/webapp/audit-logs.ts +58 -12
- package/src/resources/organization/webapp/index.ts +3 -0
- package/src/resources/organization/webapp/webapp.ts +104 -0
- package/src/resources/tasks.ts +33 -2
- package/src/resources/text-to-image.ts +132 -4
- package/src/resources/text-to-mesh.ts +118 -0
- package/src/resources/text-to-speech.ts +143 -1
- package/src/resources/text-to-video.ts +13 -2
- package/src/resources/video-to-video.ts +13 -2
- 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
|
@@ -83,7 +83,8 @@ export type TextToImageCreateParams =
|
|
|
83
83
|
| TextToImageCreateParams.Seedream5_5
|
|
84
84
|
| TextToImageCreateParams.Seedream5_5Layers
|
|
85
85
|
| TextToImageCreateParams.MinimaxH3Image
|
|
86
|
-
| TextToImageCreateParams.Gemini2_5Flash
|
|
86
|
+
| TextToImageCreateParams.Gemini2_5Flash
|
|
87
|
+
| TextToImageCreateParams.Ideogram4_6;
|
|
87
88
|
|
|
88
89
|
export declare namespace TextToImageCreateParams {
|
|
89
90
|
export interface Gen4ImageTurbo {
|
|
@@ -1840,8 +1841,9 @@ export declare namespace TextToImageCreateParams {
|
|
|
1840
1841
|
|
|
1841
1842
|
/**
|
|
1842
1843
|
* The resolution of the output image, expressed as `<width>:<height>`. Use
|
|
1843
|
-
* `auto_1k`, `auto_1.5k` or `
|
|
1844
|
-
* fixed resolution tier.
|
|
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.
|
|
1845
1847
|
*/
|
|
1846
1848
|
ratio:
|
|
1847
1849
|
| '1024:1024'
|
|
@@ -1868,9 +1870,18 @@ export declare namespace TextToImageCreateParams {
|
|
|
1868
1870
|
| '2496:1664'
|
|
1869
1871
|
| '1664:2496'
|
|
1870
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'
|
|
1871
1881
|
| 'auto_1k'
|
|
1872
1882
|
| 'auto_1.5k'
|
|
1873
|
-
| 'auto_2k'
|
|
1883
|
+
| 'auto_2k'
|
|
1884
|
+
| 'auto_4k';
|
|
1874
1885
|
|
|
1875
1886
|
/**
|
|
1876
1887
|
* Whether the image has a transparent or an opaque background. A transparent
|
|
@@ -2095,6 +2106,123 @@ export declare namespace TextToImageCreateParams {
|
|
|
2095
2106
|
tag?: string;
|
|
2096
2107
|
}
|
|
2097
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
|
+
}
|
|
2098
2226
|
}
|
|
2099
2227
|
|
|
2100
2228
|
export declare namespace TextToImage {
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { RequestOptions } from '../internal/request-options';
|
|
5
|
+
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
10
|
+
export class TextToMesh extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Generate a GLB mesh from a text description.
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
body: TextToMeshCreateParams,
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromiseWithAwaitableTask<TextToMeshCreateResponse> {
|
|
18
|
+
return wrapAsWaitableResource<TextToMeshCreateResponse>(this._client)(
|
|
19
|
+
this._client.post('/v1/text_to_mesh', { body, ...options }),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface TextToMeshCreateResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
32
|
+
* the task completes.
|
|
33
|
+
*/
|
|
34
|
+
estimatedCost: TextToMeshCreateResponse.EstimatedCost;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export namespace TextToMeshCreateResponse {
|
|
38
|
+
/**
|
|
39
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
40
|
+
* the task completes.
|
|
41
|
+
*/
|
|
42
|
+
export interface EstimatedCost {
|
|
43
|
+
/**
|
|
44
|
+
* Estimated cost of the generation in credits.
|
|
45
|
+
*/
|
|
46
|
+
credits: number;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type TextToMeshCreateParams =
|
|
51
|
+
| TextToMeshCreateParams.Tripo3dH3_1
|
|
52
|
+
| TextToMeshCreateParams.Hunyuan3d3_1Pro;
|
|
53
|
+
|
|
54
|
+
export declare namespace TextToMeshCreateParams {
|
|
55
|
+
export interface Tripo3dH3_1 {
|
|
56
|
+
model: 'tripo3d_h3_1';
|
|
57
|
+
|
|
58
|
+
promptText: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Estimate the physical size of the object.
|
|
62
|
+
*/
|
|
63
|
+
autoSize?: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The maximum number of faces in the generated mesh.
|
|
67
|
+
*/
|
|
68
|
+
faceLimit?: number;
|
|
69
|
+
|
|
70
|
+
geometryQuality?: 'standard' | 'detailed';
|
|
71
|
+
|
|
72
|
+
imageSeed?: number;
|
|
73
|
+
|
|
74
|
+
modelSeed?: number;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Generate physically based materials for the mesh.
|
|
78
|
+
*/
|
|
79
|
+
pbr?: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Generate textures for the mesh. PBR also enables textures.
|
|
83
|
+
*/
|
|
84
|
+
texture?: boolean;
|
|
85
|
+
|
|
86
|
+
textureQuality?: 'standard' | 'detailed';
|
|
87
|
+
|
|
88
|
+
textureSeed?: number;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface Hunyuan3d3_1Pro {
|
|
92
|
+
model: 'hunyuan_3d_3_1_pro';
|
|
93
|
+
|
|
94
|
+
promptText: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Generate physically based materials for a textured model.
|
|
98
|
+
*/
|
|
99
|
+
enablePbr?: boolean;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The target number of faces in the generated mesh.
|
|
103
|
+
*/
|
|
104
|
+
faceCount?: number;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Generate a textured model or geometry without textures.
|
|
108
|
+
*/
|
|
109
|
+
generateType?: 'Normal' | 'Geometry';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export declare namespace TextToMesh {
|
|
114
|
+
export {
|
|
115
|
+
type TextToMeshCreateResponse as TextToMeshCreateResponse,
|
|
116
|
+
type TextToMeshCreateParams as TextToMeshCreateParams,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -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 {
|
|
@@ -1717,9 +1717,15 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1717
1717
|
*/
|
|
1718
1718
|
duration?: number;
|
|
1719
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
|
+
|
|
1720
1726
|
/**
|
|
1721
1727
|
* The target output size. Use a pixel ratio such as `1280:720` or `auto_720p` /
|
|
1722
|
-
* `auto_1080p` for adaptive framing.
|
|
1728
|
+
* `auto_1080p` / `auto_4k` for adaptive framing.
|
|
1723
1729
|
*/
|
|
1724
1730
|
ratio?:
|
|
1725
1731
|
| '1280:720'
|
|
@@ -1730,8 +1736,13 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1730
1736
|
| '1080:1920'
|
|
1731
1737
|
| '1440:1440'
|
|
1732
1738
|
| '2200:940'
|
|
1739
|
+
| '3840:2160'
|
|
1740
|
+
| '2160:3840'
|
|
1741
|
+
| '2880:2880'
|
|
1742
|
+
| '4396:1884'
|
|
1733
1743
|
| 'auto_720p'
|
|
1734
|
-
| 'auto_1080p'
|
|
1744
|
+
| 'auto_1080p'
|
|
1745
|
+
| 'auto_4k';
|
|
1735
1746
|
|
|
1736
1747
|
/**
|
|
1737
1748
|
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
|
@@ -1210,6 +1210,12 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
1210
1210
|
*/
|
|
1211
1211
|
duration?: number;
|
|
1212
1212
|
|
|
1213
|
+
/**
|
|
1214
|
+
* Generate 10-bit HDR output. Requires a 1080p or 4K ratio. Additional charges
|
|
1215
|
+
* apply per output second. Defaults to false.
|
|
1216
|
+
*/
|
|
1217
|
+
hdr?: boolean;
|
|
1218
|
+
|
|
1213
1219
|
/**
|
|
1214
1220
|
* Optional first, middle, and last frames guiding the edit. Middle or last frames
|
|
1215
1221
|
* can be provided without a first frame.
|
|
@@ -1218,7 +1224,7 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
1218
1224
|
|
|
1219
1225
|
/**
|
|
1220
1226
|
* The target output size. Use a pixel ratio such as `1280:720` or `auto_720p` /
|
|
1221
|
-
* `auto_1080p` for adaptive framing.
|
|
1227
|
+
* `auto_1080p` / `auto_4k` for adaptive framing.
|
|
1222
1228
|
*/
|
|
1223
1229
|
ratio?:
|
|
1224
1230
|
| '1280:720'
|
|
@@ -1229,8 +1235,13 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
1229
1235
|
| '1080:1920'
|
|
1230
1236
|
| '1440:1440'
|
|
1231
1237
|
| '2200:940'
|
|
1238
|
+
| '3840:2160'
|
|
1239
|
+
| '2160:3840'
|
|
1240
|
+
| '2880:2880'
|
|
1241
|
+
| '4396:1884'
|
|
1232
1242
|
| 'auto_720p'
|
|
1233
|
-
| 'auto_1080p'
|
|
1243
|
+
| 'auto_1080p'
|
|
1244
|
+
| 'auto_4k';
|
|
1234
1245
|
|
|
1235
1246
|
/**
|
|
1236
1247
|
* Images of characters, objects or styles to use in the video. Up to 10 images in
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.31.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.31.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.31.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.31.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|