@runwayml/sdk 3.4.0 → 3.6.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 +17 -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/package.json +1 -1
- package/resources/character-performance.d.mts +38 -27
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +38 -27
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +16 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +16 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/image-to-video.d.mts +215 -88
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +215 -88
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +10 -1
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +10 -1
- package/resources/image-to-video.mjs.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 +32 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +32 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +1 -7
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +1 -7
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +64 -0
- package/resources/speech-to-speech.d.mts.map +1 -0
- package/resources/speech-to-speech.d.ts +64 -0
- package/resources/speech-to-speech.d.ts.map +1 -0
- package/resources/speech-to-speech.js +17 -0
- package/resources/speech-to-speech.js.map +1 -0
- package/resources/speech-to-speech.mjs +12 -0
- package/resources/speech-to-speech.mjs.map +1 -0
- package/resources/text-to-speech.d.mts +3 -9
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -9
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +50 -28
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +50 -28
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +12 -10
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +12 -10
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +10 -0
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +10 -0
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/video-upscale.d.mts +9 -9
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +9 -9
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/video-upscale.js +8 -0
- package/resources/video-upscale.js.map +1 -1
- package/resources/video-upscale.mjs +8 -0
- package/resources/video-upscale.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +10 -8
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +10 -8
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +9 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +9 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +13 -10
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +13 -10
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +11 -1
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +11 -1
- package/resources/voice-isolation.mjs.map +1 -1
- package/src/client.ts +13 -0
- package/src/resources/character-performance.ts +40 -29
- package/src/resources/image-to-video.ts +253 -99
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +37 -0
- package/src/resources/sound-effect.ts +1 -7
- package/src/resources/speech-to-speech.ts +136 -0
- package/src/resources/text-to-speech.ts +3 -9
- package/src/resources/text-to-video.ts +61 -28
- package/src/resources/video-to-video.ts +12 -10
- package/src/resources/video-upscale.ts +9 -9
- package/src/resources/voice-dubbing.ts +10 -8
- package/src/resources/voice-isolation.ts +13 -10
- 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
|
@@ -8,6 +8,22 @@ export class CharacterPerformance extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* This endpoint will start a new task to control a character's facial expressions
|
|
10
10
|
* and body movements using a reference video.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const characterPerformance =
|
|
15
|
+
* await client.characterPerformance.create({
|
|
16
|
+
* character: {
|
|
17
|
+
* type: 'image',
|
|
18
|
+
* uri: 'https://example.com/file',
|
|
19
|
+
* },
|
|
20
|
+
* model: 'act_two',
|
|
21
|
+
* reference: {
|
|
22
|
+
* type: 'video',
|
|
23
|
+
* uri: 'https://example.com/reference-performance.mp4',
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
11
27
|
*/
|
|
12
28
|
create(
|
|
13
29
|
body: CharacterPerformanceCreateParams,
|
|
@@ -20,9 +36,6 @@ export class CharacterPerformance extends APIResource {
|
|
|
20
36
|
}
|
|
21
37
|
|
|
22
38
|
export interface CharacterPerformanceCreateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* The ID of the newly created task.
|
|
25
|
-
*/
|
|
26
39
|
id: string;
|
|
27
40
|
}
|
|
28
41
|
|
|
@@ -31,18 +44,14 @@ export interface CharacterPerformanceCreateParams {
|
|
|
31
44
|
* The character to control. You can either provide a video or an image. A visually
|
|
32
45
|
* recognizable face must be visible and stay within the frame.
|
|
33
46
|
*/
|
|
34
|
-
character: CharacterPerformanceCreateParams.
|
|
47
|
+
character: CharacterPerformanceCreateParams.Image | CharacterPerformanceCreateParams.Video;
|
|
35
48
|
|
|
36
|
-
/**
|
|
37
|
-
* The model variant to use.
|
|
38
|
-
*/
|
|
39
49
|
model: 'act_two';
|
|
40
50
|
|
|
41
51
|
/**
|
|
42
|
-
*
|
|
52
|
+
* A video of a person performing in the manner that you would like your character
|
|
53
|
+
* to perform. The video must be between 3 and 30 seconds in duration.
|
|
43
54
|
*/
|
|
44
|
-
ratio: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
|
|
45
|
-
|
|
46
55
|
reference: CharacterPerformanceCreateParams.Reference;
|
|
47
56
|
|
|
48
57
|
/**
|
|
@@ -63,6 +72,11 @@ export interface CharacterPerformanceCreateParams {
|
|
|
63
72
|
*/
|
|
64
73
|
expressionIntensity?: number;
|
|
65
74
|
|
|
75
|
+
/**
|
|
76
|
+
* The resolution of the output video.
|
|
77
|
+
*/
|
|
78
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
|
|
79
|
+
|
|
66
80
|
/**
|
|
67
81
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
68
82
|
* get different results for the same other request parameters. Using the same seed
|
|
@@ -73,44 +87,41 @@ export interface CharacterPerformanceCreateParams {
|
|
|
73
87
|
|
|
74
88
|
export namespace CharacterPerformanceCreateParams {
|
|
75
89
|
/**
|
|
76
|
-
*
|
|
77
|
-
* video performance in its original
|
|
78
|
-
* character's own movements.
|
|
90
|
+
* An image of your character. In the output, the character will use the reference
|
|
91
|
+
* video performance in its original static environment.
|
|
79
92
|
*/
|
|
80
|
-
export interface
|
|
81
|
-
type: '
|
|
93
|
+
export interface Image {
|
|
94
|
+
type: 'image';
|
|
82
95
|
|
|
83
96
|
/**
|
|
84
|
-
* A HTTPS URL
|
|
85
|
-
* character. See [our docs](/assets/inputs#videos) on video inputs for more
|
|
86
|
-
* information.
|
|
97
|
+
* A HTTPS URL.
|
|
87
98
|
*/
|
|
88
99
|
uri: string;
|
|
89
100
|
}
|
|
90
101
|
|
|
91
102
|
/**
|
|
92
|
-
*
|
|
93
|
-
* video performance in its original
|
|
103
|
+
* A video of your character. In the output, the character will use the reference
|
|
104
|
+
* video performance in its original animated environment and some of the
|
|
105
|
+
* character's own movements.
|
|
94
106
|
*/
|
|
95
|
-
export interface
|
|
96
|
-
type: '
|
|
107
|
+
export interface Video {
|
|
108
|
+
type: 'video';
|
|
97
109
|
|
|
98
110
|
/**
|
|
99
|
-
* A HTTPS URL
|
|
100
|
-
* character. See [our docs](/assets/inputs#images) on image inputs for more
|
|
101
|
-
* information.
|
|
111
|
+
* A HTTPS URL.
|
|
102
112
|
*/
|
|
103
113
|
uri: string;
|
|
104
114
|
}
|
|
105
115
|
|
|
116
|
+
/**
|
|
117
|
+
* A video of a person performing in the manner that you would like your character
|
|
118
|
+
* to perform. The video must be between 3 and 30 seconds in duration.
|
|
119
|
+
*/
|
|
106
120
|
export interface Reference {
|
|
107
121
|
type: 'video';
|
|
108
122
|
|
|
109
123
|
/**
|
|
110
|
-
* A HTTPS URL
|
|
111
|
-
* performing in the manner that you would like your character to perform. The
|
|
112
|
-
* video must be between 3 and 30 seconds in duration. See
|
|
113
|
-
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
124
|
+
* A HTTPS URL.
|
|
114
125
|
*/
|
|
115
126
|
uri: string;
|
|
116
127
|
}
|
|
@@ -6,7 +6,16 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
6
6
|
|
|
7
7
|
export class ImageToVideo extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* This endpoint will start a new task to generate a video from an image
|
|
9
|
+
* This endpoint will start a new task to generate a video from an image.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const imageToVideo = await client.imageToVideo.create({
|
|
14
|
+
* model: 'gen3a_turbo',
|
|
15
|
+
* promptImage: 'https://example.com/file',
|
|
16
|
+
* promptText: 'A beautiful sunset over a calm ocean.',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(
|
|
12
21
|
body: ImageToVideoCreateParams,
|
|
@@ -19,123 +28,268 @@ export class ImageToVideo extends APIResource {
|
|
|
19
28
|
}
|
|
20
29
|
|
|
21
30
|
export interface ImageToVideoCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the newly created task. Use this ID to query the task status and
|
|
24
|
-
* retrieve the generated video.
|
|
25
|
-
*/
|
|
26
31
|
id: string;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
export type ImageToVideoCreateParams =
|
|
35
|
+
| ImageToVideoCreateParams.Gen4Turbo
|
|
36
|
+
| ImageToVideoCreateParams.Gen3aTurbo
|
|
37
|
+
| ImageToVideoCreateParams.Veo3_1
|
|
38
|
+
| ImageToVideoCreateParams.Veo3_1Fast
|
|
39
|
+
| ImageToVideoCreateParams.Veo3;
|
|
34
40
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* inputs for more information.
|
|
39
|
-
*/
|
|
40
|
-
promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
|
|
41
|
+
export declare namespace ImageToVideoCreateParams {
|
|
42
|
+
export interface Gen4Turbo {
|
|
43
|
+
model: 'gen4_turbo';
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
* - `1280:720`
|
|
48
|
-
* - `720:1280`
|
|
49
|
-
* - `1104:832`
|
|
50
|
-
* - `832:1104`
|
|
51
|
-
* - `960:960`
|
|
52
|
-
* - `1584:672`
|
|
53
|
-
*
|
|
54
|
-
* `gen3a_turbo` supports the following values:
|
|
55
|
-
*
|
|
56
|
-
* - `1280:768`
|
|
57
|
-
* - `768:1280`
|
|
58
|
-
*
|
|
59
|
-
* `veo3`, `veo3.1`, `veo3.1_fast` support the following values:
|
|
60
|
-
*
|
|
61
|
-
* - `1280:720`
|
|
62
|
-
* - `720:1280`
|
|
63
|
-
* - `1080:1920`
|
|
64
|
-
* - `1920:1080`
|
|
65
|
-
*/
|
|
66
|
-
ratio:
|
|
67
|
-
| '1280:720'
|
|
68
|
-
| '720:1280'
|
|
69
|
-
| '1104:832'
|
|
70
|
-
| '832:1104'
|
|
71
|
-
| '960:960'
|
|
72
|
-
| '1584:672'
|
|
73
|
-
| '1280:768'
|
|
74
|
-
| '768:1280'
|
|
75
|
-
| '1080:1920'
|
|
76
|
-
| '1920:1080';
|
|
45
|
+
/**
|
|
46
|
+
* A HTTPS URL.
|
|
47
|
+
*/
|
|
48
|
+
promptImage: string | Array<Gen4Turbo.PromptImage>;
|
|
77
49
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
* `gen3a_turbo`
|
|
83
|
-
*/
|
|
84
|
-
contentModeration?: ImageToVideoCreateParams.ContentModeration;
|
|
50
|
+
/**
|
|
51
|
+
* The resolution of the output video.
|
|
52
|
+
*/
|
|
53
|
+
ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672';
|
|
85
54
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
* duration of 2-10 seconds.
|
|
91
|
-
*/
|
|
92
|
-
duration?: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
55
|
+
/**
|
|
56
|
+
* Settings that affect the behavior of the content moderation system.
|
|
57
|
+
*/
|
|
58
|
+
contentModeration?: Gen4Turbo.ContentModeration;
|
|
93
59
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
promptText?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The number of seconds of duration for the output video.
|
|
62
|
+
*/
|
|
63
|
+
duration?: number;
|
|
99
64
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
seed?: number;
|
|
106
|
-
}
|
|
65
|
+
/**
|
|
66
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
67
|
+
* should describe in detail what should appear in the output.
|
|
68
|
+
*/
|
|
69
|
+
promptText?: string;
|
|
107
70
|
|
|
108
|
-
export namespace ImageToVideoCreateParams {
|
|
109
|
-
export interface PromptImage {
|
|
110
71
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* "last" is currently supported for `gen3a_turbo`, `veo3.1`, and `veo3.1_fast`
|
|
116
|
-
* only. `veo3.1` and `veo3.1_fast` require a `first` frame to be provided.
|
|
72
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
73
|
+
* get different results for the same other request parameters. Using the same seed
|
|
74
|
+
* integer for an identical request will produce similar results.
|
|
117
75
|
*/
|
|
118
|
-
|
|
76
|
+
seed?: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace Gen4Turbo {
|
|
80
|
+
export interface PromptImage {
|
|
81
|
+
/**
|
|
82
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
83
|
+
* first frame of the video.
|
|
84
|
+
*/
|
|
85
|
+
position: 'first';
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A HTTPS URL.
|
|
89
|
+
*/
|
|
90
|
+
uri: string;
|
|
91
|
+
}
|
|
119
92
|
|
|
120
93
|
/**
|
|
121
|
-
*
|
|
122
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
94
|
+
* Settings that affect the behavior of the content moderation system.
|
|
123
95
|
*/
|
|
124
|
-
|
|
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
|
+
}
|
|
125
103
|
}
|
|
126
104
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
105
|
+
export interface Gen3aTurbo {
|
|
106
|
+
model: 'gen3a_turbo';
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A HTTPS URL.
|
|
110
|
+
*/
|
|
111
|
+
promptImage: string | Array<Gen3aTurbo.PromptImage>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
115
|
+
* should describe in detail what should appear in the output.
|
|
116
|
+
*/
|
|
117
|
+
promptText: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Settings that affect the behavior of the content moderation system.
|
|
121
|
+
*/
|
|
122
|
+
contentModeration?: Gen3aTurbo.ContentModeration;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The duration of the output video in seconds.
|
|
126
|
+
*/
|
|
127
|
+
duration?: 5 | 10;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The resolution of the output video.
|
|
131
|
+
*/
|
|
132
|
+
ratio?: '768:1280' | '1280:768';
|
|
133
|
+
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
135
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
136
|
+
* get different results for the same other request parameters. Using the same seed
|
|
137
|
+
* integer for an identical request will produce similar results.
|
|
137
138
|
*/
|
|
138
|
-
|
|
139
|
+
seed?: number;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace Gen3aTurbo {
|
|
143
|
+
export interface PromptImage {
|
|
144
|
+
/**
|
|
145
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
146
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
147
|
+
* video.
|
|
148
|
+
*/
|
|
149
|
+
position: 'first' | 'last';
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* A HTTPS URL.
|
|
153
|
+
*/
|
|
154
|
+
uri: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Settings that affect the behavior of the content moderation system.
|
|
159
|
+
*/
|
|
160
|
+
export interface ContentModeration {
|
|
161
|
+
/**
|
|
162
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
163
|
+
* preventing generations that include recognizable public figures.
|
|
164
|
+
*/
|
|
165
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface Veo3_1 {
|
|
170
|
+
model: 'veo3.1';
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
174
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
175
|
+
* support generating with only a last frame.
|
|
176
|
+
*/
|
|
177
|
+
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The resolution of the output video.
|
|
181
|
+
*/
|
|
182
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The number of seconds of duration for the output video.
|
|
186
|
+
*/
|
|
187
|
+
duration?: 4 | 6 | 8;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
191
|
+
* should describe in detail what should appear in the output.
|
|
192
|
+
*/
|
|
193
|
+
promptText?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export namespace Veo3_1 {
|
|
197
|
+
export interface PromptImage {
|
|
198
|
+
/**
|
|
199
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
200
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
201
|
+
* video.
|
|
202
|
+
*/
|
|
203
|
+
position: 'first' | 'last';
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* A HTTPS URL.
|
|
207
|
+
*/
|
|
208
|
+
uri: string;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface Veo3_1Fast {
|
|
213
|
+
model: 'veo3.1_fast';
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
217
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
218
|
+
* support generating with only a last frame.
|
|
219
|
+
*/
|
|
220
|
+
promptImage: string | Array<Veo3_1Fast.PromptImage>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The resolution of the output video.
|
|
224
|
+
*/
|
|
225
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The number of seconds of duration for the output video.
|
|
229
|
+
*/
|
|
230
|
+
duration?: 4 | 6 | 8;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
234
|
+
* should describe in detail what should appear in the output.
|
|
235
|
+
*/
|
|
236
|
+
promptText?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export namespace Veo3_1Fast {
|
|
240
|
+
export interface PromptImage {
|
|
241
|
+
/**
|
|
242
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
243
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
244
|
+
* video.
|
|
245
|
+
*/
|
|
246
|
+
position: 'first' | 'last';
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* A HTTPS URL.
|
|
250
|
+
*/
|
|
251
|
+
uri: string;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export interface Veo3 {
|
|
256
|
+
/**
|
|
257
|
+
* The number of seconds of duration for the output video.
|
|
258
|
+
*/
|
|
259
|
+
duration: 8;
|
|
260
|
+
|
|
261
|
+
model: 'veo3';
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* A HTTPS URL.
|
|
265
|
+
*/
|
|
266
|
+
promptImage: string | Array<Veo3.PromptImage>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* The resolution of the output video.
|
|
270
|
+
*/
|
|
271
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
275
|
+
* should describe in detail what should appear in the output.
|
|
276
|
+
*/
|
|
277
|
+
promptText?: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace Veo3 {
|
|
281
|
+
export interface PromptImage {
|
|
282
|
+
/**
|
|
283
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
284
|
+
* first frame of the video.
|
|
285
|
+
*/
|
|
286
|
+
position: 'first';
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* A HTTPS URL.
|
|
290
|
+
*/
|
|
291
|
+
uri: string;
|
|
292
|
+
}
|
|
139
293
|
}
|
|
140
294
|
}
|
|
141
295
|
|
package/src/resources/index.ts
CHANGED
|
@@ -17,6 +17,11 @@ export {
|
|
|
17
17
|
type OrganizationRetrieveUsageParams,
|
|
18
18
|
} from './organization';
|
|
19
19
|
export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
|
|
20
|
+
export {
|
|
21
|
+
SpeechToSpeech,
|
|
22
|
+
type SpeechToSpeechCreateResponse,
|
|
23
|
+
type SpeechToSpeechCreateParams,
|
|
24
|
+
} from './speech-to-speech';
|
|
20
25
|
export { Tasks, type TaskRetrieveResponse } from './tasks';
|
|
21
26
|
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from './text-to-image';
|
|
22
27
|
export {
|
|
@@ -69,6 +69,11 @@ export namespace OrganizationRetrieveResponse {
|
|
|
69
69
|
*/
|
|
70
70
|
act_two?: Models.ActTwo;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Limits associated with the eleven_multilingual_sts_v2 model.
|
|
74
|
+
*/
|
|
75
|
+
eleven_multilingual_sts_v2?: Models.ElevenMultilingualStsV2;
|
|
76
|
+
|
|
72
77
|
/**
|
|
73
78
|
* Limits associated with the eleven_multilingual_v2 model.
|
|
74
79
|
*/
|
|
@@ -156,6 +161,21 @@ export namespace OrganizationRetrieveResponse {
|
|
|
156
161
|
maxDailyGenerations: number;
|
|
157
162
|
}
|
|
158
163
|
|
|
164
|
+
/**
|
|
165
|
+
* Limits associated with the eleven_multilingual_sts_v2 model.
|
|
166
|
+
*/
|
|
167
|
+
export interface ElevenMultilingualStsV2 {
|
|
168
|
+
/**
|
|
169
|
+
* The maximum number of generations that can be run concurrently for this model.
|
|
170
|
+
*/
|
|
171
|
+
maxConcurrentGenerations: number;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* The maximum number of generations that can be created each day for this model.
|
|
175
|
+
*/
|
|
176
|
+
maxDailyGenerations: number;
|
|
177
|
+
}
|
|
178
|
+
|
|
159
179
|
/**
|
|
160
180
|
* Limits associated with the eleven_multilingual_v2 model.
|
|
161
181
|
*/
|
|
@@ -388,6 +408,11 @@ export namespace OrganizationRetrieveResponse {
|
|
|
388
408
|
*/
|
|
389
409
|
act_two?: Models.ActTwo;
|
|
390
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Usage data for the eleven_multilingual_sts_v2 model.
|
|
413
|
+
*/
|
|
414
|
+
eleven_multilingual_sts_v2?: Models.ElevenMultilingualStsV2;
|
|
415
|
+
|
|
391
416
|
/**
|
|
392
417
|
* Usage data for the eleven_multilingual_v2 model.
|
|
393
418
|
*/
|
|
@@ -470,6 +495,16 @@ export namespace OrganizationRetrieveResponse {
|
|
|
470
495
|
dailyGenerations: number;
|
|
471
496
|
}
|
|
472
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Usage data for the eleven_multilingual_sts_v2 model.
|
|
500
|
+
*/
|
|
501
|
+
export interface ElevenMultilingualStsV2 {
|
|
502
|
+
/**
|
|
503
|
+
* The number of generations that have been run for this model in the past day.
|
|
504
|
+
*/
|
|
505
|
+
dailyGenerations: number;
|
|
506
|
+
}
|
|
507
|
+
|
|
473
508
|
/**
|
|
474
509
|
* Usage data for the eleven_multilingual_v2 model.
|
|
475
510
|
*/
|
|
@@ -619,6 +654,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
619
654
|
*/
|
|
620
655
|
models: Array<
|
|
621
656
|
| 'act_two'
|
|
657
|
+
| 'eleven_multilingual_sts_v2'
|
|
622
658
|
| 'eleven_multilingual_v2'
|
|
623
659
|
| 'eleven_text_to_sound_v2'
|
|
624
660
|
| 'eleven_voice_dubbing'
|
|
@@ -664,6 +700,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
664
700
|
*/
|
|
665
701
|
model:
|
|
666
702
|
| 'act_two'
|
|
703
|
+
| 'eleven_multilingual_sts_v2'
|
|
667
704
|
| 'eleven_multilingual_v2'
|
|
668
705
|
| 'eleven_text_to_sound_v2'
|
|
669
706
|
| 'eleven_voice_dubbing'
|
|
@@ -20,16 +20,10 @@ export class SoundEffect extends APIResource {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface SoundEffectCreateResponse {
|
|
23
|
-
/**
|
|
24
|
-
* The ID of the newly created task.
|
|
25
|
-
*/
|
|
26
23
|
id: string;
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
export interface SoundEffectCreateParams {
|
|
30
|
-
/**
|
|
31
|
-
* The model variant to use.
|
|
32
|
-
*/
|
|
33
27
|
model: 'eleven_text_to_sound_v2';
|
|
34
28
|
|
|
35
29
|
/**
|
|
@@ -45,7 +39,7 @@ export interface SoundEffectCreateParams {
|
|
|
45
39
|
duration?: number;
|
|
46
40
|
|
|
47
41
|
/**
|
|
48
|
-
* Whether the sound effect should be designed to loop seamlessly.
|
|
42
|
+
* Whether the output sound effect should be designed to loop seamlessly.
|
|
49
43
|
*/
|
|
50
44
|
loop?: boolean;
|
|
51
45
|
}
|