@runwayml/sdk 4.25.0 → 4.27.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 +21 -0
- package/client.d.mts +12 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -0
- package/client.js.map +1 -1
- package/client.mjs +12 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-vector.d.mts +60 -0
- package/resources/image-to-vector.d.mts.map +1 -0
- package/resources/image-to-vector.d.ts +60 -0
- package/resources/image-to-vector.d.ts.map +1 -0
- package/resources/image-to-vector.js +27 -0
- package/resources/image-to-vector.js.map +1 -0
- package/resources/image-to-vector.mjs +23 -0
- package/resources/image-to-vector.mjs.map +1 -0
- package/resources/image-to-video.d.mts +122 -3
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +122 -3
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -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/text-to-music.d.mts +58 -0
- package/resources/text-to-music.d.mts.map +1 -0
- package/resources/text-to-music.d.ts +58 -0
- package/resources/text-to-music.d.ts.map +1 -0
- package/resources/text-to-music.js +20 -0
- package/resources/text-to-music.js.map +1 -0
- package/resources/text-to-music.mjs +16 -0
- package/resources/text-to-music.mjs.map +1 -0
- package/resources/text-to-speech.d.mts +42 -10
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +42 -10
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.js +3 -1
- package/resources/text-to-speech.js.map +1 -1
- package/resources/text-to-speech.mjs +3 -1
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts +92 -4
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +92 -4
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +104 -3
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +104 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +28 -0
- package/src/resources/image-to-vector.ts +79 -0
- package/src/resources/image-to-video.ts +162 -3
- package/src/resources/index.ts +6 -0
- package/src/resources/organization/organization.ts +4 -0
- package/src/resources/text-to-music.ts +78 -0
- package/src/resources/text-to-speech.ts +48 -10
- package/src/resources/text-to-video.ts +126 -4
- package/src/resources/video-to-video.ts +140 -3
- 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,9 @@ export type ImageToVideoCreateParams =
|
|
|
83
83
|
| ImageToVideoCreateParams.GrokImagine1_5Lite
|
|
84
84
|
| ImageToVideoCreateParams.Kling4
|
|
85
85
|
| ImageToVideoCreateParams.GeminiOmniFlash1_2
|
|
86
|
-
| ImageToVideoCreateParams.Kling4Flash
|
|
86
|
+
| ImageToVideoCreateParams.Kling4Flash
|
|
87
|
+
| ImageToVideoCreateParams.Hailuo3Highspeed
|
|
88
|
+
| ImageToVideoCreateParams.Hailuo3Lite;
|
|
87
89
|
|
|
88
90
|
export declare namespace ImageToVideoCreateParams {
|
|
89
91
|
export interface Gen4_5 {
|
|
@@ -1885,7 +1887,8 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
1885
1887
|
promptText?: string;
|
|
1886
1888
|
|
|
1887
1889
|
/**
|
|
1888
|
-
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and
|
|
1890
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, 1080p, and
|
|
1891
|
+
* 4K.
|
|
1889
1892
|
*/
|
|
1890
1893
|
ratio?:
|
|
1891
1894
|
| '992:432'
|
|
@@ -1905,7 +1908,13 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
1905
1908
|
| '1664:1248'
|
|
1906
1909
|
| '1440:1440'
|
|
1907
1910
|
| '1248:1664'
|
|
1908
|
-
| '1080:1920'
|
|
1911
|
+
| '1080:1920'
|
|
1912
|
+
| '3840:1646'
|
|
1913
|
+
| '3840:2160'
|
|
1914
|
+
| '3840:2880'
|
|
1915
|
+
| '3840:3840'
|
|
1916
|
+
| '2880:3840'
|
|
1917
|
+
| '2160:3840';
|
|
1909
1918
|
|
|
1910
1919
|
/**
|
|
1911
1920
|
* An optional array of audio references. The total combined duration must not
|
|
@@ -2153,6 +2162,156 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
2153
2162
|
uri: string;
|
|
2154
2163
|
}
|
|
2155
2164
|
}
|
|
2165
|
+
|
|
2166
|
+
export interface Hailuo3Highspeed {
|
|
2167
|
+
model: 'hailuo3_highspeed';
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2171
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2172
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2173
|
+
*/
|
|
2174
|
+
promptImage: string | Array<Hailuo3Highspeed.UnionMember1>;
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* The text prompt describing the output video.
|
|
2178
|
+
*/
|
|
2179
|
+
promptText: string;
|
|
2180
|
+
|
|
2181
|
+
duration?: number;
|
|
2182
|
+
|
|
2183
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
2184
|
+
|
|
2185
|
+
referenceAudio?: Array<Hailuo3Highspeed.ReferenceAudio>;
|
|
2186
|
+
|
|
2187
|
+
references?: Array<Hailuo3Highspeed.Reference>;
|
|
2188
|
+
|
|
2189
|
+
referenceVideos?: Array<Hailuo3Highspeed.ReferenceVideo>;
|
|
2190
|
+
|
|
2191
|
+
/**
|
|
2192
|
+
* The output video resolution.
|
|
2193
|
+
*/
|
|
2194
|
+
resolution?: '480p' | '768p';
|
|
2195
|
+
}
|
|
2196
|
+
|
|
2197
|
+
export namespace Hailuo3Highspeed {
|
|
2198
|
+
export interface UnionMember1 {
|
|
2199
|
+
/**
|
|
2200
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2201
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2202
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2203
|
+
*/
|
|
2204
|
+
uri: string;
|
|
2205
|
+
|
|
2206
|
+
position?: 'first' | 'last';
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
export interface ReferenceAudio {
|
|
2210
|
+
type: 'audio';
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2214
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
2215
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
2216
|
+
*/
|
|
2217
|
+
uri: string;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
export interface Reference {
|
|
2221
|
+
/**
|
|
2222
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2223
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2224
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2225
|
+
*/
|
|
2226
|
+
uri: string;
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
export interface ReferenceVideo {
|
|
2230
|
+
type: 'video';
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2234
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
2235
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
2236
|
+
*/
|
|
2237
|
+
uri: string;
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
export interface Hailuo3Lite {
|
|
2242
|
+
model: 'hailuo3_lite';
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2246
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2247
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2248
|
+
*/
|
|
2249
|
+
promptImage: string | Array<Hailuo3Lite.UnionMember1>;
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* The text prompt describing the output video.
|
|
2253
|
+
*/
|
|
2254
|
+
promptText: string;
|
|
2255
|
+
|
|
2256
|
+
duration?: number;
|
|
2257
|
+
|
|
2258
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
2259
|
+
|
|
2260
|
+
referenceAudio?: Array<Hailuo3Lite.ReferenceAudio>;
|
|
2261
|
+
|
|
2262
|
+
references?: Array<Hailuo3Lite.Reference>;
|
|
2263
|
+
|
|
2264
|
+
referenceVideos?: Array<Hailuo3Lite.ReferenceVideo>;
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* The output video resolution.
|
|
2268
|
+
*/
|
|
2269
|
+
resolution?: '480p' | '768p';
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
export namespace Hailuo3Lite {
|
|
2273
|
+
export interface UnionMember1 {
|
|
2274
|
+
/**
|
|
2275
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2276
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2277
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2278
|
+
*/
|
|
2279
|
+
uri: string;
|
|
2280
|
+
|
|
2281
|
+
position?: 'first' | 'last';
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
export interface ReferenceAudio {
|
|
2285
|
+
type: 'audio';
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2289
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
2290
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
2291
|
+
*/
|
|
2292
|
+
uri: string;
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
export interface Reference {
|
|
2296
|
+
/**
|
|
2297
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2298
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
2299
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
2300
|
+
*/
|
|
2301
|
+
uri: string;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
export interface ReferenceVideo {
|
|
2305
|
+
type: 'video';
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
2309
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
2310
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
2311
|
+
*/
|
|
2312
|
+
uri: string;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2156
2315
|
}
|
|
2157
2316
|
|
|
2158
2317
|
export declare namespace ImageToVideo {
|
package/src/resources/index.ts
CHANGED
|
@@ -37,6 +37,11 @@ export {
|
|
|
37
37
|
type DocumentListResponsesCursorPage,
|
|
38
38
|
} from './documents';
|
|
39
39
|
export { Generate } from './generate/generate';
|
|
40
|
+
export {
|
|
41
|
+
ImageToVector,
|
|
42
|
+
type ImageToVectorCreateResponse,
|
|
43
|
+
type ImageToVectorCreateParams,
|
|
44
|
+
} from './image-to-vector';
|
|
40
45
|
export {
|
|
41
46
|
ImageToVideo,
|
|
42
47
|
type ImageToVideoCreateResponse,
|
|
@@ -99,6 +104,7 @@ export {
|
|
|
99
104
|
} from './speech-to-speech';
|
|
100
105
|
export { Tasks, type TaskRetrieveResponse } from './tasks';
|
|
101
106
|
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
|
|
107
|
+
export { TextToMusic, type TextToMusicCreateResponse, type TextToMusicCreateParams } from './text-to-music';
|
|
102
108
|
export {
|
|
103
109
|
TextToSpeech,
|
|
104
110
|
type TextToSpeechCreateResponse,
|
|
@@ -162,6 +162,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
162
162
|
| 'seedance2_fast'
|
|
163
163
|
| 'seedance2_mini'
|
|
164
164
|
| 'hailuo3'
|
|
165
|
+
| 'hailuo3_highspeed'
|
|
166
|
+
| 'hailuo3_lite'
|
|
165
167
|
| 'h3_max'
|
|
166
168
|
| 'wan3'
|
|
167
169
|
| 'wan3_prime'
|
|
@@ -286,6 +288,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
286
288
|
| 'seedance2_fast'
|
|
287
289
|
| 'seedance2_mini'
|
|
288
290
|
| 'hailuo3'
|
|
291
|
+
| 'hailuo3_highspeed'
|
|
292
|
+
| 'hailuo3_lite'
|
|
289
293
|
| 'h3_max'
|
|
290
294
|
| 'wan3'
|
|
291
295
|
| 'wan3_prime'
|
|
@@ -0,0 +1,78 @@
|
|
|
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 TextToMusic extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* This endpoint will start a new task to generate a song or instrumental track
|
|
13
|
+
* from a text description.
|
|
14
|
+
*/
|
|
15
|
+
create(
|
|
16
|
+
body: TextToMusicCreateParams,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromiseWithAwaitableTask<TextToMusicCreateResponse> {
|
|
19
|
+
return wrapAsWaitableResource<TextToMusicCreateResponse>(this._client)(
|
|
20
|
+
this._client.post('/v1/text_to_music', { body, ...options }),
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface TextToMusicCreateResponse {
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the task that was created. Use this to retrieve the task later.
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
33
|
+
* the task completes.
|
|
34
|
+
*/
|
|
35
|
+
estimatedCost: TextToMusicCreateResponse.EstimatedCost;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace TextToMusicCreateResponse {
|
|
39
|
+
/**
|
|
40
|
+
* The maximum credits this task may charge. The final amount may be lower after
|
|
41
|
+
* the task completes.
|
|
42
|
+
*/
|
|
43
|
+
export interface EstimatedCost {
|
|
44
|
+
/**
|
|
45
|
+
* Estimated cost of the generation in credits.
|
|
46
|
+
*/
|
|
47
|
+
credits: number;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface TextToMusicCreateParams {
|
|
52
|
+
model: 'eleven_music_v2_5';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A description of the track to generate, such as its genre, mood, instruments,
|
|
56
|
+
* and vocals. Prompts that name specific artists or songs are rejected.
|
|
57
|
+
*/
|
|
58
|
+
promptText: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The length of the track in whole seconds. You are billed for the requested
|
|
62
|
+
* length.
|
|
63
|
+
*/
|
|
64
|
+
duration?: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* When true, the track has no vocals. When omitted, the model decides from the
|
|
68
|
+
* prompt.
|
|
69
|
+
*/
|
|
70
|
+
instrumental?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export declare namespace TextToMusic {
|
|
74
|
+
export {
|
|
75
|
+
type TextToMusicCreateResponse as TextToMusicCreateResponse,
|
|
76
|
+
type TextToMusicCreateParams as TextToMusicCreateParams,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -9,7 +9,9 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
9
9
|
*/
|
|
10
10
|
export class TextToSpeech extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* This endpoint will start a new task to generate speech from text.
|
|
12
|
+
* This endpoint will start a new task to generate speech from text. ElevenLabs
|
|
13
|
+
* models accept preset voices or custom voices created via the Voices API. Seed
|
|
14
|
+
* Audio accepts a reference audio clip.
|
|
13
15
|
*/
|
|
14
16
|
create(
|
|
15
17
|
body: TextToSpeechCreateParams,
|
|
@@ -123,9 +125,9 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
123
125
|
promptText: string;
|
|
124
126
|
|
|
125
127
|
/**
|
|
126
|
-
*
|
|
128
|
+
* The voice to use for the generated speech.
|
|
127
129
|
*/
|
|
128
|
-
voice: ElevenV4.
|
|
130
|
+
voice: ElevenV4.RunwayPreset | ElevenV4.Custom;
|
|
129
131
|
|
|
130
132
|
/**
|
|
131
133
|
* Language code to enforce pronunciation, such as "en" or "pt". A regional code
|
|
@@ -183,7 +185,7 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
183
185
|
/**
|
|
184
186
|
* A voice preset from the RunwayML API.
|
|
185
187
|
*/
|
|
186
|
-
export interface
|
|
188
|
+
export interface RunwayPreset {
|
|
187
189
|
/**
|
|
188
190
|
* The preset voice ID to use for the generated speech.
|
|
189
191
|
*/
|
|
@@ -240,6 +242,18 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
240
242
|
|
|
241
243
|
type: 'runway-preset';
|
|
242
244
|
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* A custom voice belonging to the authenticated organization.
|
|
248
|
+
*/
|
|
249
|
+
export interface Custom {
|
|
250
|
+
/**
|
|
251
|
+
* The ID of a custom voice created via the Voices API.
|
|
252
|
+
*/
|
|
253
|
+
id: string;
|
|
254
|
+
|
|
255
|
+
type: 'custom';
|
|
256
|
+
}
|
|
243
257
|
}
|
|
244
258
|
|
|
245
259
|
export interface ElevenMultilingualV2 {
|
|
@@ -252,16 +266,16 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
252
266
|
promptText: string;
|
|
253
267
|
|
|
254
268
|
/**
|
|
255
|
-
*
|
|
269
|
+
* The voice to use for the generated speech.
|
|
256
270
|
*/
|
|
257
|
-
voice: ElevenMultilingualV2.
|
|
271
|
+
voice: ElevenMultilingualV2.RunwayPreset | ElevenMultilingualV2.Custom;
|
|
258
272
|
}
|
|
259
273
|
|
|
260
274
|
export namespace ElevenMultilingualV2 {
|
|
261
275
|
/**
|
|
262
276
|
* A voice preset from the RunwayML API.
|
|
263
277
|
*/
|
|
264
|
-
export interface
|
|
278
|
+
export interface RunwayPreset {
|
|
265
279
|
/**
|
|
266
280
|
* The preset voice ID to use for the generated speech.
|
|
267
281
|
*/
|
|
@@ -318,6 +332,18 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
318
332
|
|
|
319
333
|
type: 'runway-preset';
|
|
320
334
|
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* A custom voice belonging to the authenticated organization.
|
|
338
|
+
*/
|
|
339
|
+
export interface Custom {
|
|
340
|
+
/**
|
|
341
|
+
* The ID of a custom voice created via the Voices API.
|
|
342
|
+
*/
|
|
343
|
+
id: string;
|
|
344
|
+
|
|
345
|
+
type: 'custom';
|
|
346
|
+
}
|
|
321
347
|
}
|
|
322
348
|
|
|
323
349
|
export interface ElevenV3 {
|
|
@@ -330,9 +356,9 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
330
356
|
promptText: string;
|
|
331
357
|
|
|
332
358
|
/**
|
|
333
|
-
*
|
|
359
|
+
* The voice to use for the generated speech.
|
|
334
360
|
*/
|
|
335
|
-
voice: ElevenV3.
|
|
361
|
+
voice: ElevenV3.RunwayPreset | ElevenV3.Custom;
|
|
336
362
|
|
|
337
363
|
/**
|
|
338
364
|
* Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
|
|
@@ -382,7 +408,7 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
382
408
|
/**
|
|
383
409
|
* A voice preset from the RunwayML API.
|
|
384
410
|
*/
|
|
385
|
-
export interface
|
|
411
|
+
export interface RunwayPreset {
|
|
386
412
|
/**
|
|
387
413
|
* The preset voice ID to use for the generated speech.
|
|
388
414
|
*/
|
|
@@ -439,6 +465,18 @@ export declare namespace TextToSpeechCreateParams {
|
|
|
439
465
|
|
|
440
466
|
type: 'runway-preset';
|
|
441
467
|
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* A custom voice belonging to the authenticated organization.
|
|
471
|
+
*/
|
|
472
|
+
export interface Custom {
|
|
473
|
+
/**
|
|
474
|
+
* The ID of a custom voice created via the Voices API.
|
|
475
|
+
*/
|
|
476
|
+
id: string;
|
|
477
|
+
|
|
478
|
+
type: 'custom';
|
|
479
|
+
}
|
|
442
480
|
}
|
|
443
481
|
}
|
|
444
482
|
|
|
@@ -81,7 +81,9 @@ export type TextToVideoCreateParams =
|
|
|
81
81
|
| TextToVideoCreateParams.GrokImagine1_5Lite
|
|
82
82
|
| TextToVideoCreateParams.Kling4
|
|
83
83
|
| TextToVideoCreateParams.GeminiOmniFlash1_2
|
|
84
|
-
| TextToVideoCreateParams.Kling4Flash
|
|
84
|
+
| TextToVideoCreateParams.Kling4Flash
|
|
85
|
+
| TextToVideoCreateParams.Hailuo3Highspeed
|
|
86
|
+
| TextToVideoCreateParams.Hailuo3Lite;
|
|
85
87
|
|
|
86
88
|
export declare namespace TextToVideoCreateParams {
|
|
87
89
|
export interface Gen4_5 {
|
|
@@ -1563,8 +1565,8 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1563
1565
|
promptText?: string;
|
|
1564
1566
|
|
|
1565
1567
|
/**
|
|
1566
|
-
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, and
|
|
1567
|
-
* Defaults to `1280:720`.
|
|
1568
|
+
* The resolution of the output video. Seedance 2.5 supports 480p, 720p, 1080p, and
|
|
1569
|
+
* 4K. Defaults to `1280:720`.
|
|
1568
1570
|
*/
|
|
1569
1571
|
ratio?:
|
|
1570
1572
|
| '992:432'
|
|
@@ -1584,7 +1586,13 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1584
1586
|
| '1664:1248'
|
|
1585
1587
|
| '1440:1440'
|
|
1586
1588
|
| '1248:1664'
|
|
1587
|
-
| '1080:1920'
|
|
1589
|
+
| '1080:1920'
|
|
1590
|
+
| '3840:1646'
|
|
1591
|
+
| '3840:2160'
|
|
1592
|
+
| '3840:2880'
|
|
1593
|
+
| '3840:3840'
|
|
1594
|
+
| '2880:3840'
|
|
1595
|
+
| '2160:3840';
|
|
1588
1596
|
|
|
1589
1597
|
/**
|
|
1590
1598
|
* An optional array of audio references. The total combined duration must be less
|
|
@@ -1843,6 +1851,120 @@ export declare namespace TextToVideoCreateParams {
|
|
|
1843
1851
|
uri: string;
|
|
1844
1852
|
}
|
|
1845
1853
|
}
|
|
1854
|
+
|
|
1855
|
+
export interface Hailuo3Highspeed {
|
|
1856
|
+
model: 'hailuo3_highspeed';
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* The text prompt describing the output video.
|
|
1860
|
+
*/
|
|
1861
|
+
promptText: string;
|
|
1862
|
+
|
|
1863
|
+
duration?: number;
|
|
1864
|
+
|
|
1865
|
+
ratio?: 'adaptive' | '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
1866
|
+
|
|
1867
|
+
referenceAudio?: Array<Hailuo3Highspeed.ReferenceAudio>;
|
|
1868
|
+
|
|
1869
|
+
references?: Array<Hailuo3Highspeed.Reference>;
|
|
1870
|
+
|
|
1871
|
+
referenceVideos?: Array<Hailuo3Highspeed.ReferenceVideo>;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* The output video resolution.
|
|
1875
|
+
*/
|
|
1876
|
+
resolution?: '480p' | '768p';
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export namespace Hailuo3Highspeed {
|
|
1880
|
+
export interface ReferenceAudio {
|
|
1881
|
+
type: 'audio';
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1885
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
1886
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
1887
|
+
*/
|
|
1888
|
+
uri: string;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
export interface Reference {
|
|
1892
|
+
/**
|
|
1893
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1894
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1895
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1896
|
+
*/
|
|
1897
|
+
uri: string;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
export interface ReferenceVideo {
|
|
1901
|
+
type: 'video';
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1905
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1906
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1907
|
+
*/
|
|
1908
|
+
uri: string;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export interface Hailuo3Lite {
|
|
1913
|
+
model: 'hailuo3_lite';
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* The text prompt describing the output video.
|
|
1917
|
+
*/
|
|
1918
|
+
promptText: string;
|
|
1919
|
+
|
|
1920
|
+
duration?: number;
|
|
1921
|
+
|
|
1922
|
+
ratio?: '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
|
|
1923
|
+
|
|
1924
|
+
referenceAudio?: Array<Hailuo3Lite.ReferenceAudio>;
|
|
1925
|
+
|
|
1926
|
+
references?: Array<Hailuo3Lite.Reference>;
|
|
1927
|
+
|
|
1928
|
+
referenceVideos?: Array<Hailuo3Lite.ReferenceVideo>;
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* The output video resolution.
|
|
1932
|
+
*/
|
|
1933
|
+
resolution?: '480p' | '768p';
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
export namespace Hailuo3Lite {
|
|
1937
|
+
export interface ReferenceAudio {
|
|
1938
|
+
type: 'audio';
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1942
|
+
* `data:audio/mp3;base64,...`, up to 5MB) containing an encoded audio. See
|
|
1943
|
+
* [our docs](/assets/inputs#audio) on audio inputs for more information.
|
|
1944
|
+
*/
|
|
1945
|
+
uri: string;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
export interface Reference {
|
|
1949
|
+
/**
|
|
1950
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1951
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1952
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1953
|
+
*/
|
|
1954
|
+
uri: string;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
export interface ReferenceVideo {
|
|
1958
|
+
type: 'video';
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1962
|
+
* `data:video/mp4;base64,...`, up to 5MB) containing an encoded video. See
|
|
1963
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
1964
|
+
*/
|
|
1965
|
+
uri: string;
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1846
1968
|
}
|
|
1847
1969
|
|
|
1848
1970
|
export declare namespace TextToVideo {
|