@runwayml/sdk 4.22.0 → 4.24.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 +15 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/generate/image.d.mts +6 -4
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +6 -4
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +683 -73
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +683 -73
- 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/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +105 -80
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +105 -80
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +6 -4
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +6 -4
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/routers.d.mts +14 -10
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +14 -10
- package/resources/routers.d.ts.map +1 -1
- package/resources/sound-effect.d.mts +28 -1
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +28 -1
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/tasks.d.mts +7 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +7 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +7 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +7 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +238 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +238 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +492 -81
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +492 -81
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-audio.d.mts +84 -0
- package/resources/video-to-audio.d.mts.map +1 -0
- package/resources/video-to-audio.d.ts +84 -0
- package/resources/video-to-audio.d.ts.map +1 -0
- package/resources/video-to-audio.js +29 -0
- package/resources/video-to-audio.js.map +1 -0
- package/resources/video-to-audio.mjs +25 -0
- package/resources/video-to-audio.mjs.map +1 -0
- package/resources/video-to-video.d.mts +277 -20
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +277 -20
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +16 -0
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/generate/image.ts +6 -4
- package/src/resources/image-to-video.ts +836 -111
- package/src/resources/index.ts +5 -0
- package/src/resources/organization/organization.ts +20 -0
- package/src/resources/organization/webapp/audit-logs.ts +142 -78
- package/src/resources/organization/webapp/webapp.ts +6 -4
- package/src/resources/routers.ts +14 -10
- package/src/resources/sound-effect.ts +35 -0
- package/src/resources/tasks.ts +7 -0
- package/src/resources/text-to-image.ts +406 -0
- package/src/resources/text-to-video.ts +621 -114
- package/src/resources/video-to-audio.ts +109 -0
- package/src/resources/video-to-video.ts +335 -30
- 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
|
@@ -64,11 +64,18 @@ export type TextToImageCreateParams =
|
|
|
64
64
|
| TextToImageCreateParams.Seedream5Pro
|
|
65
65
|
| TextToImageCreateParams.Seedream5Lite
|
|
66
66
|
| TextToImageCreateParams.GrokImagineImage2
|
|
67
|
+
| TextToImageCreateParams.GeminiImage3_1FlashLite
|
|
67
68
|
| TextToImageCreateParams.GeminiImage3Pro
|
|
68
69
|
| TextToImageCreateParams.GptImage2_5Flare
|
|
69
70
|
| TextToImageCreateParams.GptImage2_5Sunburst
|
|
71
|
+
| TextToImageCreateParams.BriaFibo1_5
|
|
72
|
+
| TextToImageCreateParams.BriaFiboEdit1_5
|
|
70
73
|
| TextToImageCreateParams.Ideogram4_0
|
|
71
74
|
| TextToImageCreateParams.Ideogram4_5
|
|
75
|
+
| TextToImageCreateParams.Seedream5Flash
|
|
76
|
+
| TextToImageCreateParams.NanoBanana2_1
|
|
77
|
+
| TextToImageCreateParams.RecraftV4_1Flash
|
|
78
|
+
| TextToImageCreateParams.RecraftV4_1Vector
|
|
72
79
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
73
80
|
|
|
74
81
|
export declare namespace TextToImageCreateParams {
|
|
@@ -691,6 +698,59 @@ export declare namespace TextToImageCreateParams {
|
|
|
691
698
|
}
|
|
692
699
|
}
|
|
693
700
|
|
|
701
|
+
export interface GeminiImage3_1FlashLite {
|
|
702
|
+
model: 'gemini_image3.1_flash_lite';
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* This should describe in detail what should appear in the output.
|
|
706
|
+
*/
|
|
707
|
+
promptText: string;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* The resolution of the output image.
|
|
711
|
+
*/
|
|
712
|
+
ratio:
|
|
713
|
+
| '1024:1024'
|
|
714
|
+
| '848:1264'
|
|
715
|
+
| '1264:848'
|
|
716
|
+
| '896:1200'
|
|
717
|
+
| '1200:896'
|
|
718
|
+
| '928:1152'
|
|
719
|
+
| '1152:928'
|
|
720
|
+
| '768:1376'
|
|
721
|
+
| '1376:768'
|
|
722
|
+
| '1584:672';
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
726
|
+
* of credits consumed by the generation. Up to four images can be generated at
|
|
727
|
+
* once.
|
|
728
|
+
*/
|
|
729
|
+
outputCount?: 1 | 4;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* An array of up to 14 images to be used as references for the generated image
|
|
733
|
+
* output. Up to five can pass `subject: "human"` and up to nine can pass
|
|
734
|
+
* `subject: "object"`.
|
|
735
|
+
*/
|
|
736
|
+
referenceImages?: Array<GeminiImage3_1FlashLite.ReferenceImage>;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export namespace GeminiImage3_1FlashLite {
|
|
740
|
+
export interface ReferenceImage {
|
|
741
|
+
/**
|
|
742
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
743
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
744
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
745
|
+
*/
|
|
746
|
+
uri: string;
|
|
747
|
+
|
|
748
|
+
subject?: 'object' | 'human';
|
|
749
|
+
|
|
750
|
+
tag?: string;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
694
754
|
export interface GeminiImage3Pro {
|
|
695
755
|
model: 'gemini_image3_pro';
|
|
696
756
|
|
|
@@ -950,6 +1010,122 @@ export declare namespace TextToImageCreateParams {
|
|
|
950
1010
|
}
|
|
951
1011
|
}
|
|
952
1012
|
|
|
1013
|
+
export interface BriaFibo1_5 {
|
|
1014
|
+
model: 'bria_fibo_1_5';
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* A non-empty text prompt describing what should appear in the output image.
|
|
1018
|
+
*/
|
|
1019
|
+
promptText: string;
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* The resolution of the output image, expressed as `<width>:<height>`. 1MP sizes
|
|
1023
|
+
* cost 5 credits per image and 4MP sizes 10.
|
|
1024
|
+
*/
|
|
1025
|
+
ratio:
|
|
1026
|
+
| '1024:1024'
|
|
1027
|
+
| '768:1152'
|
|
1028
|
+
| '1152:768'
|
|
1029
|
+
| '768:1024'
|
|
1030
|
+
| '1024:768'
|
|
1031
|
+
| '768:960'
|
|
1032
|
+
| '960:768'
|
|
1033
|
+
| '576:1024'
|
|
1034
|
+
| '1024:576'
|
|
1035
|
+
| '2048:2048'
|
|
1036
|
+
| '1536:2304'
|
|
1037
|
+
| '2304:1536'
|
|
1038
|
+
| '1536:2048'
|
|
1039
|
+
| '2048:1536'
|
|
1040
|
+
| '1536:1920'
|
|
1041
|
+
| '1920:1536'
|
|
1042
|
+
| '1152:2048'
|
|
1043
|
+
| '2048:1152';
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* The file format of the output image. Defaults to png.
|
|
1047
|
+
*/
|
|
1048
|
+
outputFormat?: 'png' | 'jpeg';
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Up to 1 image to guide the generation. The prompt describes how the output
|
|
1052
|
+
* should build on it.
|
|
1053
|
+
*/
|
|
1054
|
+
referenceImages?: Array<BriaFibo1_5.ReferenceImage>;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* If unspecified, a random number is chosen. Using the same seed with an identical
|
|
1058
|
+
* request reproduces the same image.
|
|
1059
|
+
*/
|
|
1060
|
+
seed?: number;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export namespace BriaFibo1_5 {
|
|
1064
|
+
export interface ReferenceImage {
|
|
1065
|
+
/**
|
|
1066
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1067
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1068
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1069
|
+
*/
|
|
1070
|
+
uri: string;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
export interface BriaFiboEdit1_5 {
|
|
1075
|
+
model: 'bria_fibo_edit_1_5';
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* An instruction describing how to edit the reference images.
|
|
1079
|
+
*/
|
|
1080
|
+
promptText: string;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* The file format of the output image. Defaults to png.
|
|
1084
|
+
*/
|
|
1085
|
+
outputFormat?: 'png' | 'jpeg';
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Omit it or
|
|
1089
|
+
* use `auto` to keep the framing of the first reference image. Choosing a size
|
|
1090
|
+
* requires at least 2 reference images; a single image always keeps its own
|
|
1091
|
+
* framing.
|
|
1092
|
+
*/
|
|
1093
|
+
ratio?:
|
|
1094
|
+
| '1024:1024'
|
|
1095
|
+
| '768:1152'
|
|
1096
|
+
| '1152:768'
|
|
1097
|
+
| '768:1024'
|
|
1098
|
+
| '1024:768'
|
|
1099
|
+
| '768:960'
|
|
1100
|
+
| '960:768'
|
|
1101
|
+
| '576:1024'
|
|
1102
|
+
| '1024:576'
|
|
1103
|
+
| 'auto';
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* 1 to 4 images to edit. With several, the instruction describes how to combine
|
|
1107
|
+
* them.
|
|
1108
|
+
*/
|
|
1109
|
+
referenceImages?: Array<BriaFiboEdit1_5.ReferenceImage>;
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* If unspecified, a random number is chosen. Using the same seed with an identical
|
|
1113
|
+
* request reproduces the same image.
|
|
1114
|
+
*/
|
|
1115
|
+
seed?: number;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export namespace BriaFiboEdit1_5 {
|
|
1119
|
+
export interface ReferenceImage {
|
|
1120
|
+
/**
|
|
1121
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1122
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1123
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1124
|
+
*/
|
|
1125
|
+
uri: string;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
953
1129
|
export interface Ideogram4_0 {
|
|
954
1130
|
model: 'ideogram_4_0';
|
|
955
1131
|
|
|
@@ -1091,6 +1267,236 @@ export declare namespace TextToImageCreateParams {
|
|
|
1091
1267
|
}
|
|
1092
1268
|
}
|
|
1093
1269
|
|
|
1270
|
+
export interface Seedream5Flash {
|
|
1271
|
+
model: 'seedream5_flash';
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* A description of the image you want to generate.
|
|
1275
|
+
*/
|
|
1276
|
+
promptText: string;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Use
|
|
1280
|
+
* `auto_1k` or `auto_2k` to let the model pick the aspect ratio at a fixed
|
|
1281
|
+
* resolution tier.
|
|
1282
|
+
*/
|
|
1283
|
+
ratio:
|
|
1284
|
+
| '1024:1024'
|
|
1285
|
+
| '1184:896'
|
|
1286
|
+
| '896:1184'
|
|
1287
|
+
| '1376:768'
|
|
1288
|
+
| '768:1376'
|
|
1289
|
+
| '1248:832'
|
|
1290
|
+
| '832:1248'
|
|
1291
|
+
| '1568:672'
|
|
1292
|
+
| '2048:2048'
|
|
1293
|
+
| '2304:1728'
|
|
1294
|
+
| '1728:2304'
|
|
1295
|
+
| '2848:1600'
|
|
1296
|
+
| '1600:2848'
|
|
1297
|
+
| '2496:1664'
|
|
1298
|
+
| '1664:2496'
|
|
1299
|
+
| '3136:1344'
|
|
1300
|
+
| 'auto_1k'
|
|
1301
|
+
| 'auto_2k';
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
1305
|
+
* of credits consumed by the generation.
|
|
1306
|
+
*/
|
|
1307
|
+
outputCount?: number;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* The file format of the output image. Defaults to png.
|
|
1311
|
+
*/
|
|
1312
|
+
outputFormat?: 'png' | 'jpeg';
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Images to edit or combine. Refer to them in the prompt by upload order (Figure
|
|
1316
|
+
* 1, Figure 2, and so on).
|
|
1317
|
+
*/
|
|
1318
|
+
referenceImages?: Array<Seedream5Flash.ReferenceImage>;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export namespace Seedream5Flash {
|
|
1322
|
+
export interface ReferenceImage {
|
|
1323
|
+
/**
|
|
1324
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1325
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1326
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1327
|
+
*/
|
|
1328
|
+
uri: string;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
export interface NanoBanana2_1 {
|
|
1333
|
+
model: 'nano_banana_2.1';
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* A description of the image you want to generate.
|
|
1337
|
+
*/
|
|
1338
|
+
promptText: string;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* The resolution of the output image.
|
|
1342
|
+
*/
|
|
1343
|
+
ratio:
|
|
1344
|
+
| '1024:1024'
|
|
1345
|
+
| '848:1264'
|
|
1346
|
+
| '1264:848'
|
|
1347
|
+
| '896:1200'
|
|
1348
|
+
| '1200:896'
|
|
1349
|
+
| '928:1152'
|
|
1350
|
+
| '1152:928'
|
|
1351
|
+
| '768:1376'
|
|
1352
|
+
| '1376:768'
|
|
1353
|
+
| '1584:672'
|
|
1354
|
+
| '512:2064'
|
|
1355
|
+
| '2064:512'
|
|
1356
|
+
| '352:2928'
|
|
1357
|
+
| '2928:352'
|
|
1358
|
+
| '2048:2048'
|
|
1359
|
+
| '1696:2528'
|
|
1360
|
+
| '2528:1696'
|
|
1361
|
+
| '1792:2400'
|
|
1362
|
+
| '2400:1792'
|
|
1363
|
+
| '1856:2304'
|
|
1364
|
+
| '2304:1856'
|
|
1365
|
+
| '1536:2752'
|
|
1366
|
+
| '2752:1536'
|
|
1367
|
+
| '3168:1344'
|
|
1368
|
+
| '1024:4128'
|
|
1369
|
+
| '4128:1024'
|
|
1370
|
+
| '704:5856'
|
|
1371
|
+
| '5856:704'
|
|
1372
|
+
| '4096:4096'
|
|
1373
|
+
| '3392:5056'
|
|
1374
|
+
| '5056:3392'
|
|
1375
|
+
| '3584:4800'
|
|
1376
|
+
| '4800:3584'
|
|
1377
|
+
| '3712:4608'
|
|
1378
|
+
| '4608:3712'
|
|
1379
|
+
| '3072:5504'
|
|
1380
|
+
| '5504:3072'
|
|
1381
|
+
| '6336:2688'
|
|
1382
|
+
| '2048:8256'
|
|
1383
|
+
| '8256:2048'
|
|
1384
|
+
| '1408:11712'
|
|
1385
|
+
| '11712:1408';
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
1389
|
+
* of credits consumed by the generation.
|
|
1390
|
+
*/
|
|
1391
|
+
outputCount?: number;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Up to 14 images to edit, combine, or use as references for the output.
|
|
1395
|
+
*/
|
|
1396
|
+
referenceImages?: Array<NanoBanana2_1.ReferenceImage>;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* How much the model reasons about the prompt before generating. Defaults to
|
|
1400
|
+
* medium.
|
|
1401
|
+
*/
|
|
1402
|
+
thinkingLevel?: 'minimal' | 'medium' | 'high';
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
export namespace NanoBanana2_1 {
|
|
1406
|
+
export interface ReferenceImage {
|
|
1407
|
+
/**
|
|
1408
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1409
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1410
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1411
|
+
*/
|
|
1412
|
+
uri: string;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* A tag to identify the reference image. This is used to reference the image in
|
|
1416
|
+
* prompt text. Must be 3-16 characters, start with a letter, and use only letters,
|
|
1417
|
+
* digits, and underscores.
|
|
1418
|
+
*/
|
|
1419
|
+
tag?: string;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
export interface RecraftV4_1Flash {
|
|
1424
|
+
model: 'recraft_v4_1_flash';
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* A description of the image you want to generate.
|
|
1428
|
+
*/
|
|
1429
|
+
promptText: string;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* The output dimensions, expressed as `<width>:<height>`.
|
|
1433
|
+
*/
|
|
1434
|
+
ratio:
|
|
1435
|
+
| '1024:1024'
|
|
1436
|
+
| '1536:768'
|
|
1437
|
+
| '768:1536'
|
|
1438
|
+
| '1280:832'
|
|
1439
|
+
| '832:1280'
|
|
1440
|
+
| '1216:896'
|
|
1441
|
+
| '896:1216'
|
|
1442
|
+
| '1152:896'
|
|
1443
|
+
| '896:1152'
|
|
1444
|
+
| '832:1344'
|
|
1445
|
+
| '1280:896'
|
|
1446
|
+
| '896:1280'
|
|
1447
|
+
| '1344:768'
|
|
1448
|
+
| '768:1344';
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* A preferred background color as a six-digit hex string.
|
|
1452
|
+
*/
|
|
1453
|
+
backgroundColor?: string;
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Preferred colors as six-digit hex strings.
|
|
1457
|
+
*/
|
|
1458
|
+
colors?: Array<string>;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* The number of images to generate. Each image is billed separately.
|
|
1462
|
+
*/
|
|
1463
|
+
outputCount?: number;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* The output file format. Defaults to webp.
|
|
1467
|
+
*/
|
|
1468
|
+
outputFormat?: 'webp' | 'png';
|
|
1469
|
+
|
|
1470
|
+
seed?: number;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
export interface RecraftV4_1Vector {
|
|
1474
|
+
model: 'recraft_v4_1_vector';
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Describe the vector illustration you want to generate.
|
|
1478
|
+
*/
|
|
1479
|
+
promptText: string;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* The preferred background color as a six-digit hex value. This is a generation
|
|
1483
|
+
* hint, not an exact color constraint; the generated background may use a
|
|
1484
|
+
* different shade.
|
|
1485
|
+
*/
|
|
1486
|
+
backgroundColor?: string;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Preferred colors as six-digit hex values, such as #FF8800.
|
|
1490
|
+
*/
|
|
1491
|
+
colors?: Array<string>;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* The width and height declared by the output SVG. Vector artwork can be scaled
|
|
1495
|
+
* after generation.
|
|
1496
|
+
*/
|
|
1497
|
+
ratio?: '1024:1024' | '1216:896' | '896:1216' | '1344:768' | '768:1344';
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1094
1500
|
export interface Gemini2_5Flash {
|
|
1095
1501
|
model: 'gemini_2.5_flash';
|
|
1096
1502
|
|