@runwayml/sdk 3.7.0 → 3.8.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 +8 -0
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +45 -37
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +45 -37
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +1 -1
- package/resources/speech-to-speech.d.ts +1 -1
- package/resources/text-to-image.d.mts +111 -90
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +111 -90
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +8 -0
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +8 -0
- package/resources/text-to-video.d.ts.map +1 -1
- package/src/resources/image-to-video.ts +54 -44
- package/src/resources/speech-to-speech.ts +1 -1
- package/src/resources/text-to-image.ts +173 -116
- package/src/resources/text-to-video.ts +10 -0
- 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
|
@@ -19,140 +19,197 @@ export class TextToImage extends APIResource {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface TextToImageCreateResponse {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the newly created task.
|
|
24
|
-
*/
|
|
25
22
|
id: string;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
model: 'gen4_image_turbo' | 'gen4_image' | 'gemini_2.5_flash';
|
|
25
|
+
export type TextToImageCreateParams =
|
|
26
|
+
| TextToImageCreateParams.Gen4ImageTurbo
|
|
27
|
+
| TextToImageCreateParams.Gen4Image
|
|
28
|
+
| TextToImageCreateParams.Gemini2_5Flash;
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*/
|
|
38
|
-
promptText: string;
|
|
30
|
+
export declare namespace TextToImageCreateParams {
|
|
31
|
+
export interface Gen4ImageTurbo {
|
|
32
|
+
model: 'gen4_image_turbo';
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* - `1920:1080`
|
|
46
|
-
* - `1080:1920`
|
|
47
|
-
* - `1024:1024`
|
|
48
|
-
* - `1360:768`
|
|
49
|
-
* - `1080:1080`
|
|
50
|
-
* - `1168:880`
|
|
51
|
-
* - `1440:1080`
|
|
52
|
-
* - `1080:1440`
|
|
53
|
-
* - `1808:768`
|
|
54
|
-
* - `2112:912`
|
|
55
|
-
* - `1280:720`
|
|
56
|
-
* - `720:1280`
|
|
57
|
-
* - `720:720`
|
|
58
|
-
* - `960:720`
|
|
59
|
-
* - `720:960`
|
|
60
|
-
* - `1680:720`
|
|
61
|
-
*
|
|
62
|
-
* `gemini_2.5_flash` supports the following values:
|
|
63
|
-
*
|
|
64
|
-
* - `1344:768`
|
|
65
|
-
* - `768:1344`
|
|
66
|
-
* - `1024:1024`
|
|
67
|
-
* - `1184:864`
|
|
68
|
-
* - `864:1184`
|
|
69
|
-
* - `1536:672`
|
|
70
|
-
* - `832x1248`
|
|
71
|
-
* - `1248x832`
|
|
72
|
-
* - `896x1152`
|
|
73
|
-
* - `1152x896`
|
|
74
|
-
*/
|
|
75
|
-
ratio:
|
|
76
|
-
| '1920:1080'
|
|
77
|
-
| '1080:1920'
|
|
78
|
-
| '1024:1024'
|
|
79
|
-
| '1360:768'
|
|
80
|
-
| '1080:1080'
|
|
81
|
-
| '1168:880'
|
|
82
|
-
| '1440:1080'
|
|
83
|
-
| '1080:1440'
|
|
84
|
-
| '1808:768'
|
|
85
|
-
| '2112:912'
|
|
86
|
-
| '1280:720'
|
|
87
|
-
| '720:1280'
|
|
88
|
-
| '720:720'
|
|
89
|
-
| '960:720'
|
|
90
|
-
| '720:960'
|
|
91
|
-
| '1680:720'
|
|
92
|
-
| '1344:768'
|
|
93
|
-
| '768:1344'
|
|
94
|
-
| '1184:864'
|
|
95
|
-
| '864:1184'
|
|
96
|
-
| '1536:672'
|
|
97
|
-
| '832x1248'
|
|
98
|
-
| '1248x832'
|
|
99
|
-
| '896x1152'
|
|
100
|
-
| '1152x896';
|
|
34
|
+
/**
|
|
35
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
36
|
+
* should describe in detail what should appear in the output.
|
|
37
|
+
*/
|
|
38
|
+
promptText: string;
|
|
101
39
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
40
|
+
/**
|
|
41
|
+
* The resolution of the output image.
|
|
42
|
+
*/
|
|
43
|
+
ratio:
|
|
44
|
+
| '1024:1024'
|
|
45
|
+
| '1080:1080'
|
|
46
|
+
| '1168:880'
|
|
47
|
+
| '1360:768'
|
|
48
|
+
| '1440:1080'
|
|
49
|
+
| '1080:1440'
|
|
50
|
+
| '1808:768'
|
|
51
|
+
| '1920:1080'
|
|
52
|
+
| '1080:1920'
|
|
53
|
+
| '2112:912'
|
|
54
|
+
| '1280:720'
|
|
55
|
+
| '720:1280'
|
|
56
|
+
| '720:720'
|
|
57
|
+
| '960:720'
|
|
58
|
+
| '720:960'
|
|
59
|
+
| '1680:720';
|
|
109
60
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
*/
|
|
116
|
-
referenceImages?: Array<TextToImageCreateParams.ReferenceImage>;
|
|
61
|
+
/**
|
|
62
|
+
* An array of one to three images to be used as references for the generated image
|
|
63
|
+
* output.
|
|
64
|
+
*/
|
|
65
|
+
referenceImages: Array<Gen4ImageTurbo.ReferenceImage>;
|
|
117
66
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
*/
|
|
123
|
-
seed?: number;
|
|
124
|
-
}
|
|
67
|
+
/**
|
|
68
|
+
* Settings that affect the behavior of the content moderation system.
|
|
69
|
+
*/
|
|
70
|
+
contentModeration?: Gen4ImageTurbo.ContentModeration;
|
|
125
71
|
|
|
126
|
-
export namespace TextToImageCreateParams {
|
|
127
|
-
/**
|
|
128
|
-
* Settings that affect the behavior of the content moderation system.
|
|
129
|
-
*
|
|
130
|
-
* This field is allowed only for the following model variants: `gen4_image_turbo`,
|
|
131
|
-
* `gen4_image`
|
|
132
|
-
*/
|
|
133
|
-
export interface ContentModeration {
|
|
134
72
|
/**
|
|
135
|
-
*
|
|
136
|
-
*
|
|
73
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
74
|
+
* get different results for the same other request parameters. Using the same seed
|
|
75
|
+
* integer for an identical request will produce similar results.
|
|
137
76
|
*/
|
|
138
|
-
|
|
77
|
+
seed?: number;
|
|
139
78
|
}
|
|
140
79
|
|
|
141
|
-
export
|
|
80
|
+
export namespace Gen4ImageTurbo {
|
|
81
|
+
export interface ReferenceImage {
|
|
82
|
+
/**
|
|
83
|
+
* A HTTPS URL.
|
|
84
|
+
*/
|
|
85
|
+
uri: string;
|
|
86
|
+
|
|
87
|
+
tag?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
142
90
|
/**
|
|
143
|
-
*
|
|
144
|
-
* reference for the generated output image. See [our docs](/assets/inputs#images)
|
|
145
|
-
* on image inputs for more information.
|
|
91
|
+
* Settings that affect the behavior of the content moderation system.
|
|
146
92
|
*/
|
|
147
|
-
|
|
93
|
+
export interface ContentModeration {
|
|
94
|
+
/**
|
|
95
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
96
|
+
* preventing generations that include recognizable public figures.
|
|
97
|
+
*/
|
|
98
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface Gen4Image {
|
|
103
|
+
model: 'gen4_image';
|
|
148
104
|
|
|
149
105
|
/**
|
|
150
|
-
* A
|
|
151
|
-
*
|
|
152
|
-
* refer to the reference image's tag in the prompt text with at-mention syntax:
|
|
153
|
-
* `@tag`. Tags are case-sensitive.
|
|
106
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
107
|
+
* should describe in detail what should appear in the output.
|
|
154
108
|
*/
|
|
155
|
-
|
|
109
|
+
promptText: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The resolution of the output image.
|
|
113
|
+
*/
|
|
114
|
+
ratio:
|
|
115
|
+
| '1024:1024'
|
|
116
|
+
| '1080:1080'
|
|
117
|
+
| '1168:880'
|
|
118
|
+
| '1360:768'
|
|
119
|
+
| '1440:1080'
|
|
120
|
+
| '1080:1440'
|
|
121
|
+
| '1808:768'
|
|
122
|
+
| '1920:1080'
|
|
123
|
+
| '1080:1920'
|
|
124
|
+
| '2112:912'
|
|
125
|
+
| '1280:720'
|
|
126
|
+
| '720:1280'
|
|
127
|
+
| '720:720'
|
|
128
|
+
| '960:720'
|
|
129
|
+
| '720:960'
|
|
130
|
+
| '1680:720';
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Settings that affect the behavior of the content moderation system.
|
|
134
|
+
*/
|
|
135
|
+
contentModeration?: Gen4Image.ContentModeration;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* An array of up to three images to be used as references for the generated image
|
|
139
|
+
* output.
|
|
140
|
+
*/
|
|
141
|
+
referenceImages?: Array<Gen4Image.ReferenceImage>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
145
|
+
* get different results for the same other request parameters. Using the same seed
|
|
146
|
+
* integer for an identical request will produce similar results.
|
|
147
|
+
*/
|
|
148
|
+
seed?: number;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export namespace Gen4Image {
|
|
152
|
+
/**
|
|
153
|
+
* Settings that affect the behavior of the content moderation system.
|
|
154
|
+
*/
|
|
155
|
+
export interface ContentModeration {
|
|
156
|
+
/**
|
|
157
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
158
|
+
* preventing generations that include recognizable public figures.
|
|
159
|
+
*/
|
|
160
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ReferenceImage {
|
|
164
|
+
/**
|
|
165
|
+
* A HTTPS URL.
|
|
166
|
+
*/
|
|
167
|
+
uri: string;
|
|
168
|
+
|
|
169
|
+
tag?: string;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface Gemini2_5Flash {
|
|
174
|
+
model: 'gemini_2.5_flash';
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
178
|
+
* should describe in detail what should appear in the output.
|
|
179
|
+
*/
|
|
180
|
+
promptText: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The resolution of the output image.
|
|
184
|
+
*/
|
|
185
|
+
ratio:
|
|
186
|
+
| '1344:768'
|
|
187
|
+
| '768:1344'
|
|
188
|
+
| '1024:1024'
|
|
189
|
+
| '1184:864'
|
|
190
|
+
| '864:1184'
|
|
191
|
+
| '1536:672'
|
|
192
|
+
| '832:1248'
|
|
193
|
+
| '1248:832'
|
|
194
|
+
| '896:1152'
|
|
195
|
+
| '1152:896';
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* An array of up to three images to be used as references for the generated image
|
|
199
|
+
* output.
|
|
200
|
+
*/
|
|
201
|
+
referenceImages?: Array<Gemini2_5Flash.ReferenceImage>;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export namespace Gemini2_5Flash {
|
|
205
|
+
export interface ReferenceImage {
|
|
206
|
+
/**
|
|
207
|
+
* A HTTPS URL.
|
|
208
|
+
*/
|
|
209
|
+
uri: string;
|
|
210
|
+
|
|
211
|
+
tag?: string;
|
|
212
|
+
}
|
|
156
213
|
}
|
|
157
214
|
}
|
|
158
215
|
|
|
@@ -42,6 +42,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
42
42
|
*/
|
|
43
43
|
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
47
|
+
*/
|
|
48
|
+
audio?: boolean;
|
|
49
|
+
|
|
45
50
|
/**
|
|
46
51
|
* The number of seconds of duration for the output video.
|
|
47
52
|
*/
|
|
@@ -62,6 +67,11 @@ export declare namespace TextToVideoCreateParams {
|
|
|
62
67
|
*/
|
|
63
68
|
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
64
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
72
|
+
*/
|
|
73
|
+
audio?: boolean;
|
|
74
|
+
|
|
65
75
|
/**
|
|
66
76
|
* The number of seconds of duration for the output video.
|
|
67
77
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.8.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.8.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.8.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.8.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|