@runwayml/sdk 3.18.0 → 3.20.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 +33 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-videos.d.mts +101 -0
- package/resources/avatar-videos.d.mts.map +1 -0
- package/resources/avatar-videos.d.ts +101 -0
- package/resources/avatar-videos.d.ts.map +1 -0
- package/resources/avatar-videos.js +19 -0
- package/resources/avatar-videos.js.map +1 -0
- package/resources/avatar-videos.mjs +15 -0
- package/resources/avatar-videos.mjs.map +1 -0
- package/resources/documents.d.mts +13 -1
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +13 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +5 -1
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +5 -1
- package/resources/documents.mjs.map +1 -1
- package/resources/image-to-video.d.mts +43 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +43 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +4 -3
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +4 -3
- package/resources/organization.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +19 -9
- package/resources/realtime-sessions.d.mts.map +1 -1
- package/resources/realtime-sessions.d.ts +19 -9
- package/resources/realtime-sessions.d.ts.map +1 -1
- package/resources/realtime-sessions.js +5 -2
- package/resources/realtime-sessions.js.map +1 -1
- package/resources/realtime-sessions.mjs +5 -2
- package/resources/realtime-sessions.mjs.map +1 -1
- package/resources/text-to-video.d.mts +25 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +25 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +112 -46
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +112 -46
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/voices.d.mts +17 -13
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +17 -13
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +2 -1
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +2 -1
- package/resources/voices.mjs.map +1 -1
- package/src/client.ts +9 -0
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/avatar-videos.ts +170 -0
- package/src/resources/documents.ts +16 -2
- package/src/resources/image-to-video.ts +64 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/organization.ts +15 -2
- package/src/resources/realtime-sessions.ts +19 -9
- package/src/resources/text-to-video.ts +43 -0
- package/src/resources/video-to-video.ts +149 -47
- package/src/resources/voices.ts +19 -13
- 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
|
@@ -43,6 +43,7 @@ export type ImageToVideoCreateParams =
|
|
|
43
43
|
| ImageToVideoCreateParams.Gen3aTurbo
|
|
44
44
|
| ImageToVideoCreateParams.Veo3_1
|
|
45
45
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
46
|
+
| ImageToVideoCreateParams.Seedance2
|
|
46
47
|
| ImageToVideoCreateParams.Veo3;
|
|
47
48
|
|
|
48
49
|
export declare namespace ImageToVideoCreateParams {
|
|
@@ -333,6 +334,69 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
333
334
|
}
|
|
334
335
|
}
|
|
335
336
|
|
|
337
|
+
export interface Seedance2 {
|
|
338
|
+
model: 'seedance2';
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
342
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
343
|
+
*/
|
|
344
|
+
promptImage: string | Array<Seedance2.PromptImage>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
348
|
+
*/
|
|
349
|
+
audio?: boolean;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The number of seconds of duration for the output video.
|
|
353
|
+
*/
|
|
354
|
+
duration?: number;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* The number of video generations to produce.
|
|
358
|
+
*/
|
|
359
|
+
outputCount?: number;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
363
|
+
* This should describe in detail what should appear in the output.
|
|
364
|
+
*/
|
|
365
|
+
promptText?: string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The resolution of the output video.
|
|
369
|
+
*/
|
|
370
|
+
ratio?:
|
|
371
|
+
| '992:432'
|
|
372
|
+
| '864:496'
|
|
373
|
+
| '752:560'
|
|
374
|
+
| '640:640'
|
|
375
|
+
| '560:752'
|
|
376
|
+
| '496:864'
|
|
377
|
+
| '1470:630'
|
|
378
|
+
| '1280:720'
|
|
379
|
+
| '1112:834'
|
|
380
|
+
| '960:960'
|
|
381
|
+
| '834:1112'
|
|
382
|
+
| '720:1280';
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export namespace Seedance2 {
|
|
386
|
+
export interface PromptImage {
|
|
387
|
+
/**
|
|
388
|
+
* A HTTPS URL.
|
|
389
|
+
*/
|
|
390
|
+
uri: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
394
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
395
|
+
*/
|
|
396
|
+
position?: 'first' | 'last';
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
336
400
|
export interface Veo3 {
|
|
337
401
|
/**
|
|
338
402
|
* The number of seconds of duration for the output video.
|
package/src/resources/index.ts
CHANGED
|
@@ -112,14 +112,20 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
112
112
|
| 'veo3.1'
|
|
113
113
|
| 'veo3.1_fast'
|
|
114
114
|
| 'gemini_2.5_flash'
|
|
115
|
+
| 'gemini_image3_pro'
|
|
116
|
+
| 'gemini_image3.1_flash'
|
|
115
117
|
| 'eleven_multilingual_v2'
|
|
118
|
+
| 'eleven_v3'
|
|
116
119
|
| 'eleven_text_to_sound_v2'
|
|
117
120
|
| 'eleven_voice_isolation'
|
|
118
121
|
| 'eleven_voice_dubbing'
|
|
119
122
|
| 'eleven_multilingual_sts_v2'
|
|
123
|
+
| 'eleven_scribe_v2'
|
|
120
124
|
| 'gwm1_avatars'
|
|
121
125
|
| 'gwm1_avatar_async_audio_to_video'
|
|
126
|
+
| 'gwm1_avatar_async_text_to_video'
|
|
122
127
|
| 'voice_processing'
|
|
128
|
+
| 'seedance2'
|
|
123
129
|
>;
|
|
124
130
|
|
|
125
131
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -142,7 +148,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
142
148
|
export namespace Result {
|
|
143
149
|
export interface UsedCredit {
|
|
144
150
|
/**
|
|
145
|
-
* The number of credits spent on the model.
|
|
151
|
+
* The net number of credits spent on the model. May be negative if refunds
|
|
152
|
+
* exceeded charges on this day.
|
|
146
153
|
*/
|
|
147
154
|
amount: number;
|
|
148
155
|
|
|
@@ -161,14 +168,20 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
161
168
|
| 'veo3.1'
|
|
162
169
|
| 'veo3.1_fast'
|
|
163
170
|
| 'gemini_2.5_flash'
|
|
171
|
+
| 'gemini_image3_pro'
|
|
172
|
+
| 'gemini_image3.1_flash'
|
|
164
173
|
| 'eleven_multilingual_v2'
|
|
174
|
+
| 'eleven_v3'
|
|
165
175
|
| 'eleven_text_to_sound_v2'
|
|
166
176
|
| 'eleven_voice_isolation'
|
|
167
177
|
| 'eleven_voice_dubbing'
|
|
168
178
|
| 'eleven_multilingual_sts_v2'
|
|
179
|
+
| 'eleven_scribe_v2'
|
|
169
180
|
| 'gwm1_avatars'
|
|
170
181
|
| 'gwm1_avatar_async_audio_to_video'
|
|
171
|
-
| '
|
|
182
|
+
| 'gwm1_avatar_async_text_to_video'
|
|
183
|
+
| 'voice_processing'
|
|
184
|
+
| 'seedance2';
|
|
172
185
|
}
|
|
173
186
|
}
|
|
174
187
|
}
|
|
@@ -8,7 +8,9 @@ import { path } from '../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class RealtimeSessions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Create a new realtime session with the specified model configuration.
|
|
11
|
+
* Create a new realtime session with the specified model configuration. The
|
|
12
|
+
* returned ID is also the conversation ID used later to fetch transcripts and
|
|
13
|
+
* recordings from the avatar conversation endpoints.
|
|
12
14
|
*/
|
|
13
15
|
create(
|
|
14
16
|
body: RealtimeSessionCreateParams,
|
|
@@ -18,7 +20,8 @@ export class RealtimeSessions extends APIResource {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
|
-
* Get the status of a realtime session.
|
|
23
|
+
* Get the status of a realtime session. This endpoint uses the same ID that the
|
|
24
|
+
* avatar conversation endpoints later expose as the conversation ID.
|
|
22
25
|
*/
|
|
23
26
|
retrieve(id: string, options?: RequestOptions): APIPromise<RealtimeSessionRetrieveResponse> {
|
|
24
27
|
return this._client.get(path`/v1/realtime_sessions/${id}`, options);
|
|
@@ -37,7 +40,8 @@ export class RealtimeSessions extends APIResource {
|
|
|
37
40
|
|
|
38
41
|
export interface RealtimeSessionCreateResponse {
|
|
39
42
|
/**
|
|
40
|
-
* The ID of the created realtime session.
|
|
43
|
+
* The ID of the created realtime session. This same value is later used as the
|
|
44
|
+
* conversation ID in the avatar conversation endpoints.
|
|
41
45
|
*/
|
|
42
46
|
id: string;
|
|
43
47
|
}
|
|
@@ -59,7 +63,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
59
63
|
*/
|
|
60
64
|
export interface NotReady {
|
|
61
65
|
/**
|
|
62
|
-
* The realtime session ID.
|
|
66
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
67
|
+
* the avatar conversation endpoints.
|
|
63
68
|
*/
|
|
64
69
|
id: string;
|
|
65
70
|
|
|
@@ -82,7 +87,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
82
87
|
*/
|
|
83
88
|
export interface Ready {
|
|
84
89
|
/**
|
|
85
|
-
* The realtime session ID.
|
|
90
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
91
|
+
* the avatar conversation endpoints.
|
|
86
92
|
*/
|
|
87
93
|
id: string;
|
|
88
94
|
|
|
@@ -109,7 +115,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
109
115
|
*/
|
|
110
116
|
export interface Running {
|
|
111
117
|
/**
|
|
112
|
-
* The realtime session ID.
|
|
118
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
119
|
+
* the avatar conversation endpoints.
|
|
113
120
|
*/
|
|
114
121
|
id: string;
|
|
115
122
|
|
|
@@ -126,7 +133,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
126
133
|
*/
|
|
127
134
|
export interface Completed {
|
|
128
135
|
/**
|
|
129
|
-
* The realtime session ID.
|
|
136
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
137
|
+
* the avatar conversation endpoints.
|
|
130
138
|
*/
|
|
131
139
|
id: string;
|
|
132
140
|
|
|
@@ -148,7 +156,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
148
156
|
*/
|
|
149
157
|
export interface Failed {
|
|
150
158
|
/**
|
|
151
|
-
* The realtime session ID.
|
|
159
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
160
|
+
* the avatar conversation endpoints.
|
|
152
161
|
*/
|
|
153
162
|
id: string;
|
|
154
163
|
|
|
@@ -177,7 +186,8 @@ export namespace RealtimeSessionRetrieveResponse {
|
|
|
177
186
|
*/
|
|
178
187
|
export interface Cancelled {
|
|
179
188
|
/**
|
|
180
|
-
* The realtime session ID.
|
|
189
|
+
* The realtime session ID. This same value is later used as the conversation ID in
|
|
190
|
+
* the avatar conversation endpoints.
|
|
181
191
|
*/
|
|
182
192
|
id: string;
|
|
183
193
|
|
|
@@ -32,6 +32,7 @@ export type TextToVideoCreateParams =
|
|
|
32
32
|
| TextToVideoCreateParams.Gen4_5
|
|
33
33
|
| TextToVideoCreateParams.Veo3_1
|
|
34
34
|
| TextToVideoCreateParams.Veo3_1Fast
|
|
35
|
+
| TextToVideoCreateParams.Seedance2
|
|
35
36
|
| TextToVideoCreateParams.Veo3;
|
|
36
37
|
|
|
37
38
|
export declare namespace TextToVideoCreateParams {
|
|
@@ -131,6 +132,48 @@ export declare namespace TextToVideoCreateParams {
|
|
|
131
132
|
duration?: 4 | 6 | 8;
|
|
132
133
|
}
|
|
133
134
|
|
|
135
|
+
export interface Seedance2 {
|
|
136
|
+
model: 'seedance2';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
140
|
+
* should describe in detail what should appear in the output.
|
|
141
|
+
*/
|
|
142
|
+
promptText: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
146
|
+
*/
|
|
147
|
+
audio?: boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The number of seconds of duration for the output video.
|
|
151
|
+
*/
|
|
152
|
+
duration?: number;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The number of video generations to produce.
|
|
156
|
+
*/
|
|
157
|
+
outputCount?: number;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The resolution of the output video.
|
|
161
|
+
*/
|
|
162
|
+
ratio?:
|
|
163
|
+
| '992:432'
|
|
164
|
+
| '864:496'
|
|
165
|
+
| '752:560'
|
|
166
|
+
| '640:640'
|
|
167
|
+
| '560:752'
|
|
168
|
+
| '496:864'
|
|
169
|
+
| '1470:630'
|
|
170
|
+
| '1280:720'
|
|
171
|
+
| '1112:834'
|
|
172
|
+
| '960:960'
|
|
173
|
+
| '834:1112'
|
|
174
|
+
| '720:1280';
|
|
175
|
+
}
|
|
176
|
+
|
|
134
177
|
export interface Veo3 {
|
|
135
178
|
/**
|
|
136
179
|
* The number of seconds of duration for the output video.
|
|
@@ -37,68 +37,170 @@ export interface VideoToVideoCreateResponse {
|
|
|
37
37
|
id: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export
|
|
41
|
-
|
|
40
|
+
export type VideoToVideoCreateParams =
|
|
41
|
+
| VideoToVideoCreateParams.Gen4Aleph
|
|
42
|
+
| VideoToVideoCreateParams.Seedance2;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*/
|
|
47
|
-
promptText: string;
|
|
44
|
+
export declare namespace VideoToVideoCreateParams {
|
|
45
|
+
export interface Gen4Aleph {
|
|
46
|
+
model: 'gen4_aleph';
|
|
48
47
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
/**
|
|
49
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
50
|
+
* should describe in detail what should appear in the output.
|
|
51
|
+
*/
|
|
52
|
+
promptText: string;
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
/**
|
|
55
|
+
* A HTTPS URL.
|
|
56
|
+
*/
|
|
57
|
+
videoUri: string;
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
ratio?: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672' | '848:480' | '640:480';
|
|
59
|
+
/**
|
|
60
|
+
* Settings that affect the behavior of the content moderation system.
|
|
61
|
+
*/
|
|
62
|
+
contentModeration?: Gen4Aleph.ContentModeration;
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
66
|
+
* video is determined by the input video.
|
|
67
|
+
*/
|
|
68
|
+
ratio?:
|
|
69
|
+
| '1280:720'
|
|
70
|
+
| '720:1280'
|
|
71
|
+
| '1104:832'
|
|
72
|
+
| '960:960'
|
|
73
|
+
| '832:1104'
|
|
74
|
+
| '1584:672'
|
|
75
|
+
| '848:480'
|
|
76
|
+
| '640:480';
|
|
70
77
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
seed?: number;
|
|
77
|
-
}
|
|
78
|
+
/**
|
|
79
|
+
* An array of references. Currently up to one reference is supported. See
|
|
80
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
81
|
+
*/
|
|
82
|
+
references?: Array<Gen4Aleph.Reference>;
|
|
78
83
|
|
|
79
|
-
export namespace VideoToVideoCreateParams {
|
|
80
|
-
/**
|
|
81
|
-
* Settings that affect the behavior of the content moderation system.
|
|
82
|
-
*/
|
|
83
|
-
export interface ContentModeration {
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
85
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
86
|
+
* get different results for the same other request parameters. Using the same seed
|
|
87
|
+
* integer for an identical request will produce similar results.
|
|
87
88
|
*/
|
|
88
|
-
|
|
89
|
+
seed?: number;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
export namespace Gen4Aleph {
|
|
93
|
+
/**
|
|
94
|
+
* Settings that affect the behavior of the content moderation system.
|
|
95
|
+
*/
|
|
96
|
+
export interface ContentModeration {
|
|
97
|
+
/**
|
|
98
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
99
|
+
* preventing generations that include recognizable public figures.
|
|
100
|
+
*/
|
|
101
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Passing an image reference allows the model to emulate the style or content of
|
|
106
|
+
* the reference in the output.
|
|
107
|
+
*/
|
|
108
|
+
export interface Reference {
|
|
109
|
+
type: 'image';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* A HTTPS URL.
|
|
113
|
+
*/
|
|
114
|
+
uri: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface Seedance2 {
|
|
119
|
+
model: 'seedance2';
|
|
97
120
|
|
|
98
121
|
/**
|
|
99
122
|
* A HTTPS URL.
|
|
100
123
|
*/
|
|
101
|
-
|
|
124
|
+
promptVideo: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
128
|
+
*/
|
|
129
|
+
audio?: boolean;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The number of seconds of duration for the output video. Must be an integer from
|
|
133
|
+
* 4 to 15.
|
|
134
|
+
*/
|
|
135
|
+
duration?: number;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The number of video generations to produce.
|
|
139
|
+
*/
|
|
140
|
+
outputCount?: number;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
144
|
+
* the output video.
|
|
145
|
+
*/
|
|
146
|
+
promptText?: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The resolution of the output video.
|
|
150
|
+
*/
|
|
151
|
+
ratio?:
|
|
152
|
+
| '992:432'
|
|
153
|
+
| '864:496'
|
|
154
|
+
| '752:560'
|
|
155
|
+
| '640:640'
|
|
156
|
+
| '560:752'
|
|
157
|
+
| '496:864'
|
|
158
|
+
| '1470:630'
|
|
159
|
+
| '1280:720'
|
|
160
|
+
| '1112:834'
|
|
161
|
+
| '960:960'
|
|
162
|
+
| '834:1112'
|
|
163
|
+
| '720:1280';
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* An optional array of image references (up to 9). See
|
|
167
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
168
|
+
*/
|
|
169
|
+
references?: string | Array<Seedance2.PromptImage>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* An optional array of up to 3 video references. See
|
|
173
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
174
|
+
*/
|
|
175
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace Seedance2 {
|
|
179
|
+
export interface PromptImage {
|
|
180
|
+
/**
|
|
181
|
+
* A HTTPS URL.
|
|
182
|
+
*/
|
|
183
|
+
uri: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
187
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
188
|
+
*/
|
|
189
|
+
position?: 'first' | 'last';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* A video reference allows the model to use the video as additional context for
|
|
194
|
+
* the output.
|
|
195
|
+
*/
|
|
196
|
+
export interface ReferenceVideo {
|
|
197
|
+
type: 'video';
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* A HTTPS URL.
|
|
201
|
+
*/
|
|
202
|
+
uri: string;
|
|
203
|
+
}
|
|
102
204
|
}
|
|
103
205
|
}
|
|
104
206
|
|
package/src/resources/voices.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
|
|
10
10
|
export class Voices extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Create a custom voice from a text description
|
|
12
|
+
* Create a custom voice from a text description, or clone a voice from an audio
|
|
13
|
+
* sample.
|
|
13
14
|
*/
|
|
14
15
|
create(body: VoiceCreateParams, options?: RequestOptions): APIPromise<VoiceCreateResponse> {
|
|
15
16
|
return this._client.post('/v1/voices', { body, ...options });
|
|
@@ -280,10 +281,7 @@ export interface VoicePreviewResponse {
|
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
export interface VoiceCreateParams {
|
|
283
|
-
|
|
284
|
-
* The source configuration for creating the voice.
|
|
285
|
-
*/
|
|
286
|
-
from: VoiceCreateParams.From;
|
|
284
|
+
from: VoiceCreateParams.Audio | VoiceCreateParams.Text;
|
|
287
285
|
|
|
288
286
|
/**
|
|
289
287
|
* A name for the voice.
|
|
@@ -297,14 +295,21 @@ export interface VoiceCreateParams {
|
|
|
297
295
|
}
|
|
298
296
|
|
|
299
297
|
export namespace VoiceCreateParams {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
export interface Audio {
|
|
299
|
+
/**
|
|
300
|
+
* A HTTPS URL.
|
|
301
|
+
*/
|
|
302
|
+
audio: string;
|
|
303
|
+
|
|
304
|
+
type: 'audio';
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export interface Text {
|
|
304
308
|
/**
|
|
305
|
-
* The voice design model to use.
|
|
309
|
+
* The voice design model to use. Prefer eleven_ttv_v3 (latest);
|
|
310
|
+
* eleven_multilingual_ttv_v2 is the previous generation.
|
|
306
311
|
*/
|
|
307
|
-
model: '
|
|
312
|
+
model: 'eleven_ttv_v3' | 'eleven_multilingual_ttv_v2';
|
|
308
313
|
|
|
309
314
|
/**
|
|
310
315
|
* A text description of the desired voice characteristics. Must be at least 20
|
|
@@ -320,9 +325,10 @@ export interface VoiceListParams extends CursorPageParams {}
|
|
|
320
325
|
|
|
321
326
|
export interface VoicePreviewParams {
|
|
322
327
|
/**
|
|
323
|
-
* The voice design model to use.
|
|
328
|
+
* The voice design model to use. Prefer eleven_ttv_v3 (latest);
|
|
329
|
+
* eleven_multilingual_ttv_v2 is the previous generation.
|
|
324
330
|
*/
|
|
325
|
-
model: '
|
|
331
|
+
model: 'eleven_ttv_v3' | 'eleven_multilingual_ttv_v2';
|
|
326
332
|
|
|
327
333
|
/**
|
|
328
334
|
* A text description of the desired voice characteristics. Must be at least 20
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.20.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.20.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|