@runwayml/sdk 3.20.0 → 3.21.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 +25 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +41 -83
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +41 -83
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +89 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +89 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +1 -25
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +1 -25
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +46 -112
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +46 -112
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/image-to-video.ts +48 -112
- package/src/resources/organization.ts +2 -0
- package/src/resources/text-to-image.ts +168 -0
- package/src/resources/text-to-video.ts +0 -43
- package/src/resources/video-to-video.ts +47 -149
- 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
|
@@ -25,7 +25,7 @@ export interface ImageToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.
|
|
28
|
+
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
|
|
29
29
|
export declare namespace ImageToVideoCreateParams {
|
|
30
30
|
interface Gen4_5 {
|
|
31
31
|
/**
|
|
@@ -134,6 +134,46 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
134
134
|
publicFigureThreshold?: 'auto' | 'low';
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
interface Veo3_1 {
|
|
138
|
+
model: 'veo3.1';
|
|
139
|
+
/**
|
|
140
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
141
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
142
|
+
* support generating with only a last frame.
|
|
143
|
+
*/
|
|
144
|
+
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
145
|
+
/**
|
|
146
|
+
* The resolution of the output video.
|
|
147
|
+
*/
|
|
148
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
149
|
+
/**
|
|
150
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
151
|
+
*/
|
|
152
|
+
audio?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The number of seconds of duration for the output video.
|
|
155
|
+
*/
|
|
156
|
+
duration?: 4 | 6 | 8;
|
|
157
|
+
/**
|
|
158
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
159
|
+
* should describe in detail what should appear in the output.
|
|
160
|
+
*/
|
|
161
|
+
promptText?: string;
|
|
162
|
+
}
|
|
163
|
+
namespace Veo3_1 {
|
|
164
|
+
interface PromptImage {
|
|
165
|
+
/**
|
|
166
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
167
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
168
|
+
* video.
|
|
169
|
+
*/
|
|
170
|
+
position: 'first' | 'last';
|
|
171
|
+
/**
|
|
172
|
+
* A HTTPS URL.
|
|
173
|
+
*/
|
|
174
|
+
uri: string;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
137
177
|
interface Gen3aTurbo {
|
|
138
178
|
model: 'gen3a_turbo';
|
|
139
179
|
/**
|
|
@@ -188,46 +228,6 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
188
228
|
publicFigureThreshold?: 'auto' | 'low';
|
|
189
229
|
}
|
|
190
230
|
}
|
|
191
|
-
interface Veo3_1 {
|
|
192
|
-
model: 'veo3.1';
|
|
193
|
-
/**
|
|
194
|
-
* You may specify an image to use as the first frame of the output video, or an
|
|
195
|
-
* array with a first frame and optionally a last frame. This model does not
|
|
196
|
-
* support generating with only a last frame.
|
|
197
|
-
*/
|
|
198
|
-
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
199
|
-
/**
|
|
200
|
-
* The resolution of the output video.
|
|
201
|
-
*/
|
|
202
|
-
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
203
|
-
/**
|
|
204
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
205
|
-
*/
|
|
206
|
-
audio?: boolean;
|
|
207
|
-
/**
|
|
208
|
-
* The number of seconds of duration for the output video.
|
|
209
|
-
*/
|
|
210
|
-
duration?: 4 | 6 | 8;
|
|
211
|
-
/**
|
|
212
|
-
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
213
|
-
* should describe in detail what should appear in the output.
|
|
214
|
-
*/
|
|
215
|
-
promptText?: string;
|
|
216
|
-
}
|
|
217
|
-
namespace Veo3_1 {
|
|
218
|
-
interface PromptImage {
|
|
219
|
-
/**
|
|
220
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
221
|
-
* first frame of the video, "last" will use the image as the last frame of the
|
|
222
|
-
* video.
|
|
223
|
-
*/
|
|
224
|
-
position: 'first' | 'last';
|
|
225
|
-
/**
|
|
226
|
-
* A HTTPS URL.
|
|
227
|
-
*/
|
|
228
|
-
uri: string;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
231
|
interface Veo3_1Fast {
|
|
232
232
|
model: 'veo3.1_fast';
|
|
233
233
|
/**
|
|
@@ -268,48 +268,6 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
268
268
|
uri: string;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
interface Seedance2 {
|
|
272
|
-
model: 'seedance2';
|
|
273
|
-
/**
|
|
274
|
-
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
275
|
-
* omit position for reference images. The two modes cannot be mixed.
|
|
276
|
-
*/
|
|
277
|
-
promptImage: string | Array<Seedance2.PromptImage>;
|
|
278
|
-
/**
|
|
279
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
280
|
-
*/
|
|
281
|
-
audio?: boolean;
|
|
282
|
-
/**
|
|
283
|
-
* The number of seconds of duration for the output video.
|
|
284
|
-
*/
|
|
285
|
-
duration?: number;
|
|
286
|
-
/**
|
|
287
|
-
* The number of video generations to produce.
|
|
288
|
-
*/
|
|
289
|
-
outputCount?: number;
|
|
290
|
-
/**
|
|
291
|
-
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
292
|
-
* This should describe in detail what should appear in the output.
|
|
293
|
-
*/
|
|
294
|
-
promptText?: string;
|
|
295
|
-
/**
|
|
296
|
-
* The resolution of the output video.
|
|
297
|
-
*/
|
|
298
|
-
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
299
|
-
}
|
|
300
|
-
namespace Seedance2 {
|
|
301
|
-
interface PromptImage {
|
|
302
|
-
/**
|
|
303
|
-
* A HTTPS URL.
|
|
304
|
-
*/
|
|
305
|
-
uri: string;
|
|
306
|
-
/**
|
|
307
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
308
|
-
* first frame, "last" as the last frame. Omit for a reference image.
|
|
309
|
-
*/
|
|
310
|
-
position?: 'first' | 'last';
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
271
|
interface Veo3 {
|
|
314
272
|
/**
|
|
315
273
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.mts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,
|
|
1
|
+
{"version":3,"file":"image-to-video.d.mts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,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KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE9C;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;;eAGG;YACH,QAAQ,EAAE,OAAO,CAAC;YAElB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -25,7 +25,7 @@ export interface ImageToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.
|
|
28
|
+
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
|
|
29
29
|
export declare namespace ImageToVideoCreateParams {
|
|
30
30
|
interface Gen4_5 {
|
|
31
31
|
/**
|
|
@@ -134,6 +134,46 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
134
134
|
publicFigureThreshold?: 'auto' | 'low';
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
interface Veo3_1 {
|
|
138
|
+
model: 'veo3.1';
|
|
139
|
+
/**
|
|
140
|
+
* You may specify an image to use as the first frame of the output video, or an
|
|
141
|
+
* array with a first frame and optionally a last frame. This model does not
|
|
142
|
+
* support generating with only a last frame.
|
|
143
|
+
*/
|
|
144
|
+
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
145
|
+
/**
|
|
146
|
+
* The resolution of the output video.
|
|
147
|
+
*/
|
|
148
|
+
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
149
|
+
/**
|
|
150
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
151
|
+
*/
|
|
152
|
+
audio?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* The number of seconds of duration for the output video.
|
|
155
|
+
*/
|
|
156
|
+
duration?: 4 | 6 | 8;
|
|
157
|
+
/**
|
|
158
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
159
|
+
* should describe in detail what should appear in the output.
|
|
160
|
+
*/
|
|
161
|
+
promptText?: string;
|
|
162
|
+
}
|
|
163
|
+
namespace Veo3_1 {
|
|
164
|
+
interface PromptImage {
|
|
165
|
+
/**
|
|
166
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
167
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
168
|
+
* video.
|
|
169
|
+
*/
|
|
170
|
+
position: 'first' | 'last';
|
|
171
|
+
/**
|
|
172
|
+
* A HTTPS URL.
|
|
173
|
+
*/
|
|
174
|
+
uri: string;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
137
177
|
interface Gen3aTurbo {
|
|
138
178
|
model: 'gen3a_turbo';
|
|
139
179
|
/**
|
|
@@ -188,46 +228,6 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
188
228
|
publicFigureThreshold?: 'auto' | 'low';
|
|
189
229
|
}
|
|
190
230
|
}
|
|
191
|
-
interface Veo3_1 {
|
|
192
|
-
model: 'veo3.1';
|
|
193
|
-
/**
|
|
194
|
-
* You may specify an image to use as the first frame of the output video, or an
|
|
195
|
-
* array with a first frame and optionally a last frame. This model does not
|
|
196
|
-
* support generating with only a last frame.
|
|
197
|
-
*/
|
|
198
|
-
promptImage: string | Array<Veo3_1.PromptImage>;
|
|
199
|
-
/**
|
|
200
|
-
* The resolution of the output video.
|
|
201
|
-
*/
|
|
202
|
-
ratio: '1280:720' | '720:1280' | '1080:1920' | '1920:1080';
|
|
203
|
-
/**
|
|
204
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
205
|
-
*/
|
|
206
|
-
audio?: boolean;
|
|
207
|
-
/**
|
|
208
|
-
* The number of seconds of duration for the output video.
|
|
209
|
-
*/
|
|
210
|
-
duration?: 4 | 6 | 8;
|
|
211
|
-
/**
|
|
212
|
-
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
213
|
-
* should describe in detail what should appear in the output.
|
|
214
|
-
*/
|
|
215
|
-
promptText?: string;
|
|
216
|
-
}
|
|
217
|
-
namespace Veo3_1 {
|
|
218
|
-
interface PromptImage {
|
|
219
|
-
/**
|
|
220
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
221
|
-
* first frame of the video, "last" will use the image as the last frame of the
|
|
222
|
-
* video.
|
|
223
|
-
*/
|
|
224
|
-
position: 'first' | 'last';
|
|
225
|
-
/**
|
|
226
|
-
* A HTTPS URL.
|
|
227
|
-
*/
|
|
228
|
-
uri: string;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
231
|
interface Veo3_1Fast {
|
|
232
232
|
model: 'veo3.1_fast';
|
|
233
233
|
/**
|
|
@@ -268,48 +268,6 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
268
268
|
uri: string;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
interface Seedance2 {
|
|
272
|
-
model: 'seedance2';
|
|
273
|
-
/**
|
|
274
|
-
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
275
|
-
* omit position for reference images. The two modes cannot be mixed.
|
|
276
|
-
*/
|
|
277
|
-
promptImage: string | Array<Seedance2.PromptImage>;
|
|
278
|
-
/**
|
|
279
|
-
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
280
|
-
*/
|
|
281
|
-
audio?: boolean;
|
|
282
|
-
/**
|
|
283
|
-
* The number of seconds of duration for the output video.
|
|
284
|
-
*/
|
|
285
|
-
duration?: number;
|
|
286
|
-
/**
|
|
287
|
-
* The number of video generations to produce.
|
|
288
|
-
*/
|
|
289
|
-
outputCount?: number;
|
|
290
|
-
/**
|
|
291
|
-
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
292
|
-
* This should describe in detail what should appear in the output.
|
|
293
|
-
*/
|
|
294
|
-
promptText?: string;
|
|
295
|
-
/**
|
|
296
|
-
* The resolution of the output video.
|
|
297
|
-
*/
|
|
298
|
-
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280';
|
|
299
|
-
}
|
|
300
|
-
namespace Seedance2 {
|
|
301
|
-
interface PromptImage {
|
|
302
|
-
/**
|
|
303
|
-
* A HTTPS URL.
|
|
304
|
-
*/
|
|
305
|
-
uri: string;
|
|
306
|
-
/**
|
|
307
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
308
|
-
* first frame, "last" as the last frame. Omit for a reference image.
|
|
309
|
-
*/
|
|
310
|
-
position?: 'first' | 'last';
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
271
|
interface Veo3 {
|
|
314
272
|
/**
|
|
315
273
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAA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,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAErB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,UAAU,CAAC;QAC1B,UAAiB,WAAW;YAC1B;;;;eAIG;YACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;YAE3B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE9C;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;;eAGG;YACH,QAAQ,EAAE,OAAO,CAAC;YAElB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -83,7 +83,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
83
83
|
/**
|
|
84
84
|
* The list of models with usage during the queried time range.
|
|
85
85
|
*/
|
|
86
|
-
models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2'>;
|
|
86
|
+
models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2'>;
|
|
87
87
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
88
88
|
}
|
|
89
89
|
export declare namespace OrganizationRetrieveUsageResponse {
|
|
@@ -108,7 +108,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
|
|
|
108
108
|
/**
|
|
109
109
|
* The model that credits were spent on.
|
|
110
110
|
*/
|
|
111
|
-
model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2';
|
|
111
|
+
model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2';
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SAAE,CAAC;KACxC;IAED,UAAiB,IAAI,C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,GACR,aAAa,GACb,kBAAkB,GAClB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,WAAW,GACX,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,kBAAkB,GAClB,cAAc,GACd,kCAAkC,GAClC,iCAAiC,GACjC,kBAAkB,GAClB,WAAW,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;W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AU;YACzB;;;eAGG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,KAAK,EACD,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,SAAS,GACT,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,WAAW,GACX,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,kBAAkB,GAClB,cAAc,GACd,kCAAkC,GAClC,iCAAiC,GACjC,kBAAkB,GAClB,WAAW,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -83,7 +83,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
83
83
|
/**
|
|
84
84
|
* The list of models with usage during the queried time range.
|
|
85
85
|
*/
|
|
86
|
-
models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2'>;
|
|
86
|
+
models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2'>;
|
|
87
87
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
88
88
|
}
|
|
89
89
|
export declare namespace OrganizationRetrieveUsageResponse {
|
|
@@ -108,7 +108,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
|
|
|
108
108
|
/**
|
|
109
109
|
* The model that credits were spent on.
|
|
110
110
|
*/
|
|
111
|
-
model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2';
|
|
111
|
+
model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'gpt_image_2' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'gemini_image3_pro' | 'gemini_image3.1_flash' | 'eleven_multilingual_v2' | 'eleven_v3' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'eleven_scribe_v2' | 'gwm1_avatars' | 'gwm1_avatar_async_audio_to_video' | 'gwm1_avatar_async_text_to_video' | 'voice_processing' | 'seedance2';
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SAAE,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,wBAAwB,EAAE,MAAM,CAAC;YAEjC;;eAEG;YACH,mBAAmB,EA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ACxB,sBAAsB,GACtB,4BAA4B,GAC5B,kBAAkB,GAClB,cAAc,GACd,kCAAkC,GAClC,iCAAiC,GACjC,kBAAkB,GAClB,WAAW,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,C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YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,SAAS,GACT,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,mBAAmB,GACnB,uBAAuB,GACvB,wBAAwB,GACxB,WAAW,GACX,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,kBAAkB,GAClB,cAAc,GACd,kCAAkC,GAClC,iCAAiC,GACjC,kBAAkB,GAClB,WAAW,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -16,7 +16,7 @@ export interface TextToImageCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini2_5Flash;
|
|
19
|
+
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.Gemini2_5Flash;
|
|
20
20
|
export declare namespace TextToImageCreateParams {
|
|
21
21
|
interface Gen4ImageTurbo {
|
|
22
22
|
model: 'gen4_image_turbo';
|
|
@@ -118,6 +118,94 @@ export declare namespace TextToImageCreateParams {
|
|
|
118
118
|
tag?: string;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
interface GptImage2 {
|
|
122
|
+
model: 'gpt_image_2';
|
|
123
|
+
/**
|
|
124
|
+
* A non-empty string up to 32,000 characters describing the desired image.
|
|
125
|
+
*/
|
|
126
|
+
promptText: string;
|
|
127
|
+
/**
|
|
128
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
129
|
+
* to let the model choose.
|
|
130
|
+
*/
|
|
131
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
132
|
+
/**
|
|
133
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
134
|
+
* `transparent` is not supported by this model.
|
|
135
|
+
*/
|
|
136
|
+
background?: 'opaque' | 'auto';
|
|
137
|
+
/**
|
|
138
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
139
|
+
* number of credits consumed by the generation.
|
|
140
|
+
*/
|
|
141
|
+
outputCount?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
144
|
+
*/
|
|
145
|
+
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
146
|
+
/**
|
|
147
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
148
|
+
* output.
|
|
149
|
+
*/
|
|
150
|
+
referenceImages?: Array<GptImage2.ReferenceImage>;
|
|
151
|
+
}
|
|
152
|
+
namespace GptImage2 {
|
|
153
|
+
interface ReferenceImage {
|
|
154
|
+
/**
|
|
155
|
+
* A HTTPS URL.
|
|
156
|
+
*/
|
|
157
|
+
uri: string;
|
|
158
|
+
/**
|
|
159
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
160
|
+
* in prompt text.
|
|
161
|
+
*/
|
|
162
|
+
tag?: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
interface GeminiImage3Pro {
|
|
166
|
+
model: 'gemini_image3_pro';
|
|
167
|
+
/**
|
|
168
|
+
* A non-empty string up to 5,500 characters (measured in UTF-16 code units). This
|
|
169
|
+
* should describe in detail what should appear in the output.
|
|
170
|
+
*/
|
|
171
|
+
promptText: string;
|
|
172
|
+
/**
|
|
173
|
+
* The resolution of the output image.
|
|
174
|
+
*/
|
|
175
|
+
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
176
|
+
/**
|
|
177
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
178
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
179
|
+
* once.
|
|
180
|
+
*/
|
|
181
|
+
outputCount?: 1 | 4;
|
|
182
|
+
/**
|
|
183
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
184
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
185
|
+
* character consistency, and up to nine of those images can pass
|
|
186
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
187
|
+
* output.
|
|
188
|
+
*/
|
|
189
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
190
|
+
}
|
|
191
|
+
namespace GeminiImage3Pro {
|
|
192
|
+
interface ReferenceImage {
|
|
193
|
+
/**
|
|
194
|
+
* A HTTPS URL.
|
|
195
|
+
*/
|
|
196
|
+
uri: string;
|
|
197
|
+
/**
|
|
198
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
199
|
+
* object that appears in the output.
|
|
200
|
+
*/
|
|
201
|
+
subject?: 'object' | 'human';
|
|
202
|
+
/**
|
|
203
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
204
|
+
* prompt text.
|
|
205
|
+
*/
|
|
206
|
+
tag?: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
121
209
|
interface Gemini2_5Flash {
|
|
122
210
|
model: 'gemini_2.5_flash';
|
|
123
211
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.mts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EACD,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QAEtD;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,EACD,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,CAAC;QAEf;;;WAGG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;KACxD;IAED,UAAiB,cAAc,CAAC;QAC9B,UAAiB,cAAc;YAC7B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"text-to-image.d.mts","sourceRoot":"","sources":["../src/resources/text-to-image.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,uBAAuB,GAC/B,uBAAuB,CAAC,cAAc,GACtC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,SAAS,GACjC,uBAAuB,CAAC,eAAe,GACvC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,CAAC,OAAO,WAAW,uBAAuB,CAAC;IAC/C,UAAiB,cAAc;QAC7B,KAAK,EAAE,kBAAkB,CAAC;QAE1B;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAA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}
|
|
@@ -16,7 +16,7 @@ export interface TextToImageCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.Gemini2_5Flash;
|
|
19
|
+
export type TextToImageCreateParams = TextToImageCreateParams.Gen4ImageTurbo | TextToImageCreateParams.Gen4Image | TextToImageCreateParams.GptImage2 | TextToImageCreateParams.GeminiImage3Pro | TextToImageCreateParams.Gemini2_5Flash;
|
|
20
20
|
export declare namespace TextToImageCreateParams {
|
|
21
21
|
interface Gen4ImageTurbo {
|
|
22
22
|
model: 'gen4_image_turbo';
|
|
@@ -118,6 +118,94 @@ export declare namespace TextToImageCreateParams {
|
|
|
118
118
|
tag?: string;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
interface GptImage2 {
|
|
122
|
+
model: 'gpt_image_2';
|
|
123
|
+
/**
|
|
124
|
+
* A non-empty string up to 32,000 characters describing the desired image.
|
|
125
|
+
*/
|
|
126
|
+
promptText: string;
|
|
127
|
+
/**
|
|
128
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use `auto`
|
|
129
|
+
* to let the model choose.
|
|
130
|
+
*/
|
|
131
|
+
ratio: '2048:880' | '1920:1088' | '1920:1280' | '1920:1440' | '1920:1536' | '1920:1920' | '1536:1920' | '1440:1920' | '1280:1920' | '1088:1920' | '2912:1248' | '2560:1440' | '2560:1712' | '2560:1920' | '2560:2048' | '2560:2560' | '2048:2560' | '1920:2560' | '1712:2560' | '1440:2560' | '3840:1648' | '3840:2160' | '3504:2336' | '3264:2448' | '3200:2560' | '2880:2880' | '2560:3200' | '2448:3264' | '2336:3504' | '2160:3840' | 'auto';
|
|
132
|
+
/**
|
|
133
|
+
* Background treatment. Defaults to `auto`, which lets the model pick.
|
|
134
|
+
* `transparent` is not supported by this model.
|
|
135
|
+
*/
|
|
136
|
+
background?: 'opaque' | 'auto';
|
|
137
|
+
/**
|
|
138
|
+
* The number of images to generate (1-10). Increasing this number will affect the
|
|
139
|
+
* number of credits consumed by the generation.
|
|
140
|
+
*/
|
|
141
|
+
outputCount?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Rendering quality. Higher qualities consume more credits. Defaults to `high`.
|
|
144
|
+
*/
|
|
145
|
+
quality?: 'low' | 'medium' | 'high' | 'auto';
|
|
146
|
+
/**
|
|
147
|
+
* An array of up to 16 images to be used as references for the generated image
|
|
148
|
+
* output.
|
|
149
|
+
*/
|
|
150
|
+
referenceImages?: Array<GptImage2.ReferenceImage>;
|
|
151
|
+
}
|
|
152
|
+
namespace GptImage2 {
|
|
153
|
+
interface ReferenceImage {
|
|
154
|
+
/**
|
|
155
|
+
* A HTTPS URL.
|
|
156
|
+
*/
|
|
157
|
+
uri: string;
|
|
158
|
+
/**
|
|
159
|
+
* A tag to identify the reference image. This may be used to reference the image
|
|
160
|
+
* in prompt text.
|
|
161
|
+
*/
|
|
162
|
+
tag?: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
interface GeminiImage3Pro {
|
|
166
|
+
model: 'gemini_image3_pro';
|
|
167
|
+
/**
|
|
168
|
+
* A non-empty string up to 5,500 characters (measured in UTF-16 code units). This
|
|
169
|
+
* should describe in detail what should appear in the output.
|
|
170
|
+
*/
|
|
171
|
+
promptText: string;
|
|
172
|
+
/**
|
|
173
|
+
* The resolution of the output image.
|
|
174
|
+
*/
|
|
175
|
+
ratio: '1344:768' | '768:1344' | '1024:1024' | '1184:864' | '864:1184' | '1536:672' | '832:1248' | '1248:832' | '896:1152' | '1152:896' | '2048:2048' | '1696:2528' | '2528:1696' | '1792:2400' | '2400:1792' | '1856:2304' | '2304:1856' | '1536:2752' | '2752:1536' | '3168:1344' | '4096:4096' | '3392:5056' | '5056:3392' | '3584:4800' | '4800:3584' | '3712:4608' | '4608:3712' | '3072:5504' | '5504:3072' | '6336:2688';
|
|
176
|
+
/**
|
|
177
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
178
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
179
|
+
* once.
|
|
180
|
+
*/
|
|
181
|
+
outputCount?: 1 | 4;
|
|
182
|
+
/**
|
|
183
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
184
|
+
* output. Up to five of those images can pass `subject: "human"` to maintain
|
|
185
|
+
* character consistency, and up to nine of those images can pass
|
|
186
|
+
* `subject: "object"` with high-fidelity images of objects to include in the
|
|
187
|
+
* output.
|
|
188
|
+
*/
|
|
189
|
+
referenceImages?: Array<GeminiImage3Pro.ReferenceImage>;
|
|
190
|
+
}
|
|
191
|
+
namespace GeminiImage3Pro {
|
|
192
|
+
interface ReferenceImage {
|
|
193
|
+
/**
|
|
194
|
+
* A HTTPS URL.
|
|
195
|
+
*/
|
|
196
|
+
uri: string;
|
|
197
|
+
/**
|
|
198
|
+
* Whether this is a reference of a human subject (for character consistency) or an
|
|
199
|
+
* object that appears in the output.
|
|
200
|
+
*/
|
|
201
|
+
subject?: 'object' | 'human';
|
|
202
|
+
/**
|
|
203
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
204
|
+
* prompt text.
|
|
205
|
+
*/
|
|
206
|
+
tag?: string;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
121
209
|
interface Gemini2_5Flash {
|
|
122
210
|
model: 'gemini_2.5_flash';
|
|
123
211
|
/**
|