@apicity/kie 0.5.1 → 0.5.2
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/README.md +11 -0
- package/dist/src/model-schemas.d.ts.map +1 -1
- package/dist/src/model-schemas.js +2 -2
- package/dist/src/model-schemas.js.map +1 -1
- package/dist/src/zod.d.ts +867 -55
- package/dist/src/zod.d.ts.map +1 -1
- package/dist/src/zod.js +49 -16
- package/dist/src/zod.js.map +1 -1
- package/package.json +1 -1
package/dist/src/zod.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ export declare const GrokImagineResolutionSchema: z.ZodEnum<{
|
|
|
95
95
|
"720p": "720p";
|
|
96
96
|
"480p": "480p";
|
|
97
97
|
}>;
|
|
98
|
+
export declare const GrokImagineImageUrlSchema: z.ZodString;
|
|
98
99
|
export declare const GrokVideo15AspectRatioSchema: z.ZodEnum<{
|
|
99
100
|
"16:9": "16:9";
|
|
100
101
|
"9:16": "9:16";
|
|
@@ -401,18 +402,18 @@ export declare const GrokImageToVideoRequestSchema: z.ZodObject<{
|
|
|
401
402
|
prompt: z.ZodOptional<z.ZodString>;
|
|
402
403
|
image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
404
|
task_id: z.ZodOptional<z.ZodString>;
|
|
404
|
-
index: z.
|
|
405
|
-
mode: z.
|
|
405
|
+
index: z.ZodDefault<z.ZodNumber>;
|
|
406
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
406
407
|
fun: "fun";
|
|
407
408
|
normal: "normal";
|
|
408
409
|
spicy: "spicy";
|
|
409
410
|
}>>;
|
|
410
|
-
duration: z.
|
|
411
|
-
resolution: z.
|
|
411
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
412
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
412
413
|
"720p": "720p";
|
|
413
414
|
"480p": "480p";
|
|
414
415
|
}>>;
|
|
415
|
-
aspect_ratio: z.
|
|
416
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
416
417
|
"16:9": "16:9";
|
|
417
418
|
"9:16": "9:16";
|
|
418
419
|
"1:1": "1:1";
|
|
@@ -1216,51 +1217,6 @@ export declare const KieOptionsSchema: z.ZodObject<{
|
|
|
1216
1217
|
fetch: z.ZodOptional<z.ZodCustom<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
|
|
1217
1218
|
paygate: z.ZodOptional<z.ZodCustom<PayGateConfig, PayGateConfig>>;
|
|
1218
1219
|
}, z.core.$strip>;
|
|
1219
|
-
export declare const CreateTaskRequestSchema: z.ZodObject<{
|
|
1220
|
-
model: z.ZodEnum<{
|
|
1221
|
-
"kling-3.0/video": "kling-3.0/video";
|
|
1222
|
-
"kling-3.0/motion-control": "kling-3.0/motion-control";
|
|
1223
|
-
"kling/v3-turbo-image-to-video": "kling/v3-turbo-image-to-video";
|
|
1224
|
-
"kling/v3-turbo-text-to-video": "kling/v3-turbo-text-to-video";
|
|
1225
|
-
"grok-imagine/text-to-image": "grok-imagine/text-to-image";
|
|
1226
|
-
"grok-imagine/image-to-image": "grok-imagine/image-to-image";
|
|
1227
|
-
"grok-imagine/text-to-video": "grok-imagine/text-to-video";
|
|
1228
|
-
"grok-imagine/image-to-video": "grok-imagine/image-to-video";
|
|
1229
|
-
"grok-imagine-video-1-5-preview": "grok-imagine-video-1-5-preview";
|
|
1230
|
-
"nano-banana-pro": "nano-banana-pro";
|
|
1231
|
-
"nano-banana-2": "nano-banana-2";
|
|
1232
|
-
"gpt-image/1.5-image-to-image": "gpt-image/1.5-image-to-image";
|
|
1233
|
-
"gpt-image-2-image-to-image": "gpt-image-2-image-to-image";
|
|
1234
|
-
"gpt-image-2-text-to-image": "gpt-image-2-text-to-image";
|
|
1235
|
-
"seedream/5-lite-image-to-image": "seedream/5-lite-image-to-image";
|
|
1236
|
-
"seedream/5-lite-text-to-image": "seedream/5-lite-text-to-image";
|
|
1237
|
-
"grok-imagine/extend": "grok-imagine/extend";
|
|
1238
|
-
"grok-imagine/upscale": "grok-imagine/upscale";
|
|
1239
|
-
"qwen2/text-to-image": "qwen2/text-to-image";
|
|
1240
|
-
"qwen2/image-edit": "qwen2/image-edit";
|
|
1241
|
-
"bytedance/seedance-2-fast": "bytedance/seedance-2-fast";
|
|
1242
|
-
"bytedance/seedance-2": "bytedance/seedance-2";
|
|
1243
|
-
"wan/2-7-image-to-video": "wan/2-7-image-to-video";
|
|
1244
|
-
"wan/2-7-text-to-video": "wan/2-7-text-to-video";
|
|
1245
|
-
"wan/2-7-r2v": "wan/2-7-r2v";
|
|
1246
|
-
"wan/2-7-videoedit": "wan/2-7-videoedit";
|
|
1247
|
-
"wan/2-7-image": "wan/2-7-image";
|
|
1248
|
-
"wan/2-7-image-pro": "wan/2-7-image-pro";
|
|
1249
|
-
"happyhorse/text-to-video": "happyhorse/text-to-video";
|
|
1250
|
-
"happyhorse/image-to-video": "happyhorse/image-to-video";
|
|
1251
|
-
"happyhorse/reference-to-video": "happyhorse/reference-to-video";
|
|
1252
|
-
"happyhorse/video-edit": "happyhorse/video-edit";
|
|
1253
|
-
"volcengine/video-to-video-lip-sync": "volcengine/video-to-video-lip-sync";
|
|
1254
|
-
"elevenlabs/audio-isolation": "elevenlabs/audio-isolation";
|
|
1255
|
-
"elevenlabs/text-to-dialogue-v3": "elevenlabs/text-to-dialogue-v3";
|
|
1256
|
-
"elevenlabs/text-to-speech-multilingual-v2": "elevenlabs/text-to-speech-multilingual-v2";
|
|
1257
|
-
"elevenlabs/text-to-speech-turbo-2-5": "elevenlabs/text-to-speech-turbo-2-5";
|
|
1258
|
-
"elevenlabs/sound-effect-v2": "elevenlabs/sound-effect-v2";
|
|
1259
|
-
"sora-watermark-remover": "sora-watermark-remover";
|
|
1260
|
-
}>;
|
|
1261
|
-
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
1262
|
-
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1263
|
-
}, z.core.$strip>;
|
|
1264
1220
|
export declare const VeoGenerateRequestSchema: z.ZodObject<{
|
|
1265
1221
|
prompt: z.ZodString;
|
|
1266
1222
|
model: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1591,18 +1547,18 @@ export declare const MediaGenerationRequestSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
1591
1547
|
prompt: z.ZodOptional<z.ZodString>;
|
|
1592
1548
|
image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1593
1549
|
task_id: z.ZodOptional<z.ZodString>;
|
|
1594
|
-
index: z.
|
|
1595
|
-
mode: z.
|
|
1550
|
+
index: z.ZodDefault<z.ZodNumber>;
|
|
1551
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
1596
1552
|
fun: "fun";
|
|
1597
1553
|
normal: "normal";
|
|
1598
1554
|
spicy: "spicy";
|
|
1599
1555
|
}>>;
|
|
1600
|
-
duration: z.
|
|
1601
|
-
resolution: z.
|
|
1556
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1557
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
1602
1558
|
"720p": "720p";
|
|
1603
1559
|
"480p": "480p";
|
|
1604
1560
|
}>>;
|
|
1605
|
-
aspect_ratio: z.
|
|
1561
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
1606
1562
|
"16:9": "16:9";
|
|
1607
1563
|
"9:16": "9:16";
|
|
1608
1564
|
"1:1": "1:1";
|
|
@@ -2257,6 +2213,862 @@ export declare const MediaGenerationRequestSchema: z.ZodUnion<readonly [z.ZodObj
|
|
|
2257
2213
|
}>>;
|
|
2258
2214
|
}, z.core.$strip>;
|
|
2259
2215
|
}, z.core.$strip>]>;
|
|
2216
|
+
export declare const CreateTaskRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
2217
|
+
model: z.ZodEnum<{
|
|
2218
|
+
"kling-3.0/video": "kling-3.0/video";
|
|
2219
|
+
"kling-3.0/motion-control": "kling-3.0/motion-control";
|
|
2220
|
+
"kling/v3-turbo-image-to-video": "kling/v3-turbo-image-to-video";
|
|
2221
|
+
"kling/v3-turbo-text-to-video": "kling/v3-turbo-text-to-video";
|
|
2222
|
+
"grok-imagine/text-to-image": "grok-imagine/text-to-image";
|
|
2223
|
+
"grok-imagine/image-to-image": "grok-imagine/image-to-image";
|
|
2224
|
+
"grok-imagine/text-to-video": "grok-imagine/text-to-video";
|
|
2225
|
+
"grok-imagine/image-to-video": "grok-imagine/image-to-video";
|
|
2226
|
+
"grok-imagine-video-1-5-preview": "grok-imagine-video-1-5-preview";
|
|
2227
|
+
"nano-banana-pro": "nano-banana-pro";
|
|
2228
|
+
"nano-banana-2": "nano-banana-2";
|
|
2229
|
+
"gpt-image/1.5-image-to-image": "gpt-image/1.5-image-to-image";
|
|
2230
|
+
"gpt-image-2-image-to-image": "gpt-image-2-image-to-image";
|
|
2231
|
+
"gpt-image-2-text-to-image": "gpt-image-2-text-to-image";
|
|
2232
|
+
"seedream/5-lite-image-to-image": "seedream/5-lite-image-to-image";
|
|
2233
|
+
"seedream/5-lite-text-to-image": "seedream/5-lite-text-to-image";
|
|
2234
|
+
"grok-imagine/extend": "grok-imagine/extend";
|
|
2235
|
+
"grok-imagine/upscale": "grok-imagine/upscale";
|
|
2236
|
+
"qwen2/text-to-image": "qwen2/text-to-image";
|
|
2237
|
+
"qwen2/image-edit": "qwen2/image-edit";
|
|
2238
|
+
"bytedance/seedance-2-fast": "bytedance/seedance-2-fast";
|
|
2239
|
+
"bytedance/seedance-2": "bytedance/seedance-2";
|
|
2240
|
+
"wan/2-7-image-to-video": "wan/2-7-image-to-video";
|
|
2241
|
+
"wan/2-7-text-to-video": "wan/2-7-text-to-video";
|
|
2242
|
+
"wan/2-7-r2v": "wan/2-7-r2v";
|
|
2243
|
+
"wan/2-7-videoedit": "wan/2-7-videoedit";
|
|
2244
|
+
"wan/2-7-image": "wan/2-7-image";
|
|
2245
|
+
"wan/2-7-image-pro": "wan/2-7-image-pro";
|
|
2246
|
+
"happyhorse/text-to-video": "happyhorse/text-to-video";
|
|
2247
|
+
"happyhorse/image-to-video": "happyhorse/image-to-video";
|
|
2248
|
+
"happyhorse/reference-to-video": "happyhorse/reference-to-video";
|
|
2249
|
+
"happyhorse/video-edit": "happyhorse/video-edit";
|
|
2250
|
+
"volcengine/video-to-video-lip-sync": "volcengine/video-to-video-lip-sync";
|
|
2251
|
+
"elevenlabs/audio-isolation": "elevenlabs/audio-isolation";
|
|
2252
|
+
"elevenlabs/text-to-dialogue-v3": "elevenlabs/text-to-dialogue-v3";
|
|
2253
|
+
"elevenlabs/text-to-speech-multilingual-v2": "elevenlabs/text-to-speech-multilingual-v2";
|
|
2254
|
+
"elevenlabs/text-to-speech-turbo-2-5": "elevenlabs/text-to-speech-turbo-2-5";
|
|
2255
|
+
"elevenlabs/sound-effect-v2": "elevenlabs/sound-effect-v2";
|
|
2256
|
+
"sora-watermark-remover": "sora-watermark-remover";
|
|
2257
|
+
}>;
|
|
2258
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2259
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2260
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
2261
|
+
model: z.ZodLiteral<"kling-3.0/video">;
|
|
2262
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2263
|
+
input: z.ZodObject<{
|
|
2264
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2265
|
+
image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2266
|
+
sound: z.ZodBoolean;
|
|
2267
|
+
duration: z.ZodEnum<{
|
|
2268
|
+
3: "3";
|
|
2269
|
+
4: "4";
|
|
2270
|
+
5: "5";
|
|
2271
|
+
6: "6";
|
|
2272
|
+
7: "7";
|
|
2273
|
+
8: "8";
|
|
2274
|
+
9: "9";
|
|
2275
|
+
10: "10";
|
|
2276
|
+
11: "11";
|
|
2277
|
+
12: "12";
|
|
2278
|
+
13: "13";
|
|
2279
|
+
14: "14";
|
|
2280
|
+
15: "15";
|
|
2281
|
+
}>;
|
|
2282
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2283
|
+
"16:9": "16:9";
|
|
2284
|
+
"9:16": "9:16";
|
|
2285
|
+
"1:1": "1:1";
|
|
2286
|
+
}>>;
|
|
2287
|
+
mode: z.ZodEnum<{
|
|
2288
|
+
std: "std";
|
|
2289
|
+
pro: "pro";
|
|
2290
|
+
"4K": "4K";
|
|
2291
|
+
}>;
|
|
2292
|
+
multi_shots: z.ZodBoolean;
|
|
2293
|
+
multi_prompt: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2294
|
+
prompt: z.ZodString;
|
|
2295
|
+
duration: z.ZodNumber;
|
|
2296
|
+
}, z.core.$strip>>>;
|
|
2297
|
+
kling_elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2298
|
+
name: z.ZodString;
|
|
2299
|
+
description: z.ZodString;
|
|
2300
|
+
element_input_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2301
|
+
element_input_video_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2302
|
+
}, z.core.$strip>>>;
|
|
2303
|
+
}, z.core.$strip>;
|
|
2304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2305
|
+
model: z.ZodLiteral<"kling-3.0/motion-control">;
|
|
2306
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2307
|
+
input: z.ZodObject<{
|
|
2308
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2309
|
+
input_urls: z.ZodArray<z.ZodString>;
|
|
2310
|
+
video_urls: z.ZodArray<z.ZodString>;
|
|
2311
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
2312
|
+
"720p": "720p";
|
|
2313
|
+
"1080p": "1080p";
|
|
2314
|
+
}>>;
|
|
2315
|
+
character_orientation: z.ZodOptional<z.ZodEnum<{
|
|
2316
|
+
image: "image";
|
|
2317
|
+
video: "video";
|
|
2318
|
+
}>>;
|
|
2319
|
+
background_source: z.ZodOptional<z.ZodEnum<{
|
|
2320
|
+
input_video: "input_video";
|
|
2321
|
+
input_image: "input_image";
|
|
2322
|
+
}>>;
|
|
2323
|
+
}, z.core.$strip>;
|
|
2324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2325
|
+
model: z.ZodLiteral<"kling/v3-turbo-image-to-video">;
|
|
2326
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2327
|
+
input: z.ZodObject<{
|
|
2328
|
+
prompt: z.ZodString;
|
|
2329
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
2330
|
+
duration: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2331
|
+
resolution: z.ZodEnum<{
|
|
2332
|
+
"720p": "720p";
|
|
2333
|
+
"1080p": "1080p";
|
|
2334
|
+
}>;
|
|
2335
|
+
}, z.core.$strip>;
|
|
2336
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2337
|
+
model: z.ZodLiteral<"kling/v3-turbo-text-to-video">;
|
|
2338
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2339
|
+
input: z.ZodObject<{
|
|
2340
|
+
prompt: z.ZodString;
|
|
2341
|
+
duration: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
2342
|
+
aspect_ratio: z.ZodEnum<{
|
|
2343
|
+
"16:9": "16:9";
|
|
2344
|
+
"9:16": "9:16";
|
|
2345
|
+
"1:1": "1:1";
|
|
2346
|
+
}>;
|
|
2347
|
+
resolution: z.ZodEnum<{
|
|
2348
|
+
"720p": "720p";
|
|
2349
|
+
"1080p": "1080p";
|
|
2350
|
+
}>;
|
|
2351
|
+
}, z.core.$strip>;
|
|
2352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2353
|
+
model: z.ZodLiteral<"grok-imagine/text-to-image">;
|
|
2354
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2355
|
+
input: z.ZodObject<{
|
|
2356
|
+
prompt: z.ZodString;
|
|
2357
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2358
|
+
"16:9": "16:9";
|
|
2359
|
+
"9:16": "9:16";
|
|
2360
|
+
"1:1": "1:1";
|
|
2361
|
+
"3:2": "3:2";
|
|
2362
|
+
"2:3": "2:3";
|
|
2363
|
+
}>>;
|
|
2364
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2365
|
+
enable_pro: z.ZodOptional<z.ZodBoolean>;
|
|
2366
|
+
}, z.core.$strip>;
|
|
2367
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2368
|
+
model: z.ZodLiteral<"grok-imagine/image-to-image">;
|
|
2369
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
input: z.ZodObject<{
|
|
2371
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2372
|
+
image_urls: z.ZodTuple<[z.ZodString], null>;
|
|
2373
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2374
|
+
}, z.core.$strip>;
|
|
2375
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2376
|
+
model: z.ZodLiteral<"grok-imagine/text-to-video">;
|
|
2377
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2378
|
+
input: z.ZodObject<{
|
|
2379
|
+
prompt: z.ZodString;
|
|
2380
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2381
|
+
"16:9": "16:9";
|
|
2382
|
+
"9:16": "9:16";
|
|
2383
|
+
"1:1": "1:1";
|
|
2384
|
+
"3:2": "3:2";
|
|
2385
|
+
"2:3": "2:3";
|
|
2386
|
+
}>>;
|
|
2387
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
2388
|
+
fun: "fun";
|
|
2389
|
+
normal: "normal";
|
|
2390
|
+
spicy: "spicy";
|
|
2391
|
+
}>>;
|
|
2392
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2393
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2394
|
+
"720p": "720p";
|
|
2395
|
+
"480p": "480p";
|
|
2396
|
+
}>>;
|
|
2397
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2398
|
+
}, z.core.$strip>;
|
|
2399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2400
|
+
model: z.ZodLiteral<"grok-imagine/image-to-video">;
|
|
2401
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2402
|
+
input: z.ZodObject<{
|
|
2403
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2404
|
+
image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2405
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
2406
|
+
index: z.ZodDefault<z.ZodNumber>;
|
|
2407
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
2408
|
+
fun: "fun";
|
|
2409
|
+
normal: "normal";
|
|
2410
|
+
spicy: "spicy";
|
|
2411
|
+
}>>;
|
|
2412
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2413
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2414
|
+
"720p": "720p";
|
|
2415
|
+
"480p": "480p";
|
|
2416
|
+
}>>;
|
|
2417
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2418
|
+
"16:9": "16:9";
|
|
2419
|
+
"9:16": "9:16";
|
|
2420
|
+
"1:1": "1:1";
|
|
2421
|
+
"3:2": "3:2";
|
|
2422
|
+
"2:3": "2:3";
|
|
2423
|
+
}>>;
|
|
2424
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2425
|
+
}, z.core.$strip>;
|
|
2426
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2427
|
+
model: z.ZodLiteral<"grok-imagine-video-1-5-preview">;
|
|
2428
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2429
|
+
input: z.ZodObject<{
|
|
2430
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
2432
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2433
|
+
"16:9": "16:9";
|
|
2434
|
+
"9:16": "9:16";
|
|
2435
|
+
"1:1": "1:1";
|
|
2436
|
+
auto: "auto";
|
|
2437
|
+
"4:3": "4:3";
|
|
2438
|
+
"3:4": "3:4";
|
|
2439
|
+
"3:2": "3:2";
|
|
2440
|
+
"2:3": "2:3";
|
|
2441
|
+
}>>;
|
|
2442
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2443
|
+
"720p": "720p";
|
|
2444
|
+
"480p": "480p";
|
|
2445
|
+
}>>;
|
|
2446
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
2447
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2448
|
+
}, z.core.$strip>;
|
|
2449
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2450
|
+
model: z.ZodLiteral<"grok-imagine/extend">;
|
|
2451
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2452
|
+
input: z.ZodObject<{
|
|
2453
|
+
task_id: z.ZodString;
|
|
2454
|
+
prompt: z.ZodString;
|
|
2455
|
+
extend_at: z.ZodString;
|
|
2456
|
+
extend_times: z.ZodEnum<{
|
|
2457
|
+
6: "6";
|
|
2458
|
+
10: "10";
|
|
2459
|
+
}>;
|
|
2460
|
+
}, z.core.$strip>;
|
|
2461
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2462
|
+
model: z.ZodLiteral<"grok-imagine/upscale">;
|
|
2463
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2464
|
+
input: z.ZodObject<{
|
|
2465
|
+
task_id: z.ZodString;
|
|
2466
|
+
}, z.core.$strip>;
|
|
2467
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2468
|
+
model: z.ZodLiteral<"nano-banana-pro">;
|
|
2469
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2470
|
+
input: z.ZodObject<{
|
|
2471
|
+
prompt: z.ZodString;
|
|
2472
|
+
image_input: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2473
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2474
|
+
"16:9": "16:9";
|
|
2475
|
+
"9:16": "9:16";
|
|
2476
|
+
"1:1": "1:1";
|
|
2477
|
+
auto: "auto";
|
|
2478
|
+
"4:3": "4:3";
|
|
2479
|
+
"3:4": "3:4";
|
|
2480
|
+
"3:2": "3:2";
|
|
2481
|
+
"2:3": "2:3";
|
|
2482
|
+
"21:9": "21:9";
|
|
2483
|
+
"4:5": "4:5";
|
|
2484
|
+
"5:4": "5:4";
|
|
2485
|
+
}>>;
|
|
2486
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2487
|
+
"4K": "4K";
|
|
2488
|
+
"1K": "1K";
|
|
2489
|
+
"2K": "2K";
|
|
2490
|
+
}>>;
|
|
2491
|
+
output_format: z.ZodOptional<z.ZodEnum<{
|
|
2492
|
+
png: "png";
|
|
2493
|
+
jpg: "jpg";
|
|
2494
|
+
}>>;
|
|
2495
|
+
}, z.core.$strip>;
|
|
2496
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2497
|
+
model: z.ZodLiteral<"nano-banana-2">;
|
|
2498
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
input: z.ZodObject<{
|
|
2500
|
+
prompt: z.ZodString;
|
|
2501
|
+
image_input: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2502
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2503
|
+
"16:9": "16:9";
|
|
2504
|
+
"9:16": "9:16";
|
|
2505
|
+
"1:1": "1:1";
|
|
2506
|
+
auto: "auto";
|
|
2507
|
+
"4:3": "4:3";
|
|
2508
|
+
"3:4": "3:4";
|
|
2509
|
+
"3:2": "3:2";
|
|
2510
|
+
"2:3": "2:3";
|
|
2511
|
+
"21:9": "21:9";
|
|
2512
|
+
"8:1": "8:1";
|
|
2513
|
+
"1:8": "1:8";
|
|
2514
|
+
"4:5": "4:5";
|
|
2515
|
+
"5:4": "5:4";
|
|
2516
|
+
"1:4": "1:4";
|
|
2517
|
+
"4:1": "4:1";
|
|
2518
|
+
}>>;
|
|
2519
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2520
|
+
"4K": "4K";
|
|
2521
|
+
"1K": "1K";
|
|
2522
|
+
"2K": "2K";
|
|
2523
|
+
}>>;
|
|
2524
|
+
output_format: z.ZodOptional<z.ZodEnum<{
|
|
2525
|
+
png: "png";
|
|
2526
|
+
jpg: "jpg";
|
|
2527
|
+
}>>;
|
|
2528
|
+
google_search: z.ZodOptional<z.ZodBoolean>;
|
|
2529
|
+
}, z.core.$strip>;
|
|
2530
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2531
|
+
model: z.ZodLiteral<"gpt-image/1.5-image-to-image">;
|
|
2532
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
input: z.ZodObject<{
|
|
2534
|
+
input_urls: z.ZodArray<z.ZodString>;
|
|
2535
|
+
prompt: z.ZodString;
|
|
2536
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2537
|
+
"1:1": "1:1";
|
|
2538
|
+
"3:2": "3:2";
|
|
2539
|
+
"2:3": "2:3";
|
|
2540
|
+
}>>;
|
|
2541
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
2542
|
+
medium: "medium";
|
|
2543
|
+
high: "high";
|
|
2544
|
+
}>>;
|
|
2545
|
+
}, z.core.$strip>;
|
|
2546
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2547
|
+
model: z.ZodLiteral<"gpt-image-2-image-to-image">;
|
|
2548
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2549
|
+
input: z.ZodObject<{
|
|
2550
|
+
prompt: z.ZodString;
|
|
2551
|
+
input_urls: z.ZodArray<z.ZodString>;
|
|
2552
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2553
|
+
"16:9": "16:9";
|
|
2554
|
+
"9:16": "9:16";
|
|
2555
|
+
"1:1": "1:1";
|
|
2556
|
+
auto: "auto";
|
|
2557
|
+
"4:3": "4:3";
|
|
2558
|
+
"3:4": "3:4";
|
|
2559
|
+
"3:2": "3:2";
|
|
2560
|
+
"2:3": "2:3";
|
|
2561
|
+
"21:9": "21:9";
|
|
2562
|
+
"4:5": "4:5";
|
|
2563
|
+
"5:4": "5:4";
|
|
2564
|
+
}>>;
|
|
2565
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2566
|
+
"4K": "4K";
|
|
2567
|
+
"1K": "1K";
|
|
2568
|
+
"2K": "2K";
|
|
2569
|
+
}>>;
|
|
2570
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2571
|
+
}, z.core.$strip>;
|
|
2572
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2573
|
+
model: z.ZodLiteral<"gpt-image-2-text-to-image">;
|
|
2574
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2575
|
+
input: z.ZodObject<{
|
|
2576
|
+
prompt: z.ZodString;
|
|
2577
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2578
|
+
"16:9": "16:9";
|
|
2579
|
+
"9:16": "9:16";
|
|
2580
|
+
"1:1": "1:1";
|
|
2581
|
+
auto: "auto";
|
|
2582
|
+
"4:3": "4:3";
|
|
2583
|
+
"3:4": "3:4";
|
|
2584
|
+
"3:2": "3:2";
|
|
2585
|
+
"2:3": "2:3";
|
|
2586
|
+
"21:9": "21:9";
|
|
2587
|
+
"4:5": "4:5";
|
|
2588
|
+
"5:4": "5:4";
|
|
2589
|
+
"2:1": "2:1";
|
|
2590
|
+
"1:2": "1:2";
|
|
2591
|
+
"3:1": "3:1";
|
|
2592
|
+
"1:3": "1:3";
|
|
2593
|
+
"9:21": "9:21";
|
|
2594
|
+
}>>;
|
|
2595
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2596
|
+
"4K": "4K";
|
|
2597
|
+
"1K": "1K";
|
|
2598
|
+
"2K": "2K";
|
|
2599
|
+
}>>;
|
|
2600
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2601
|
+
}, z.core.$strip>;
|
|
2602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2603
|
+
model: z.ZodLiteral<"seedream/5-lite-image-to-image">;
|
|
2604
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2605
|
+
input: z.ZodObject<{
|
|
2606
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
2607
|
+
prompt: z.ZodString;
|
|
2608
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2609
|
+
"16:9": "16:9";
|
|
2610
|
+
"9:16": "9:16";
|
|
2611
|
+
"1:1": "1:1";
|
|
2612
|
+
"4:3": "4:3";
|
|
2613
|
+
"3:4": "3:4";
|
|
2614
|
+
"3:2": "3:2";
|
|
2615
|
+
"2:3": "2:3";
|
|
2616
|
+
"21:9": "21:9";
|
|
2617
|
+
}>>;
|
|
2618
|
+
quality: z.ZodEnum<{
|
|
2619
|
+
high: "high";
|
|
2620
|
+
basic: "basic";
|
|
2621
|
+
}>;
|
|
2622
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2623
|
+
}, z.core.$strip>;
|
|
2624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2625
|
+
model: z.ZodLiteral<"seedream/5-lite-text-to-image">;
|
|
2626
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2627
|
+
input: z.ZodObject<{
|
|
2628
|
+
prompt: z.ZodString;
|
|
2629
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2630
|
+
"16:9": "16:9";
|
|
2631
|
+
"9:16": "9:16";
|
|
2632
|
+
"1:1": "1:1";
|
|
2633
|
+
"4:3": "4:3";
|
|
2634
|
+
"3:4": "3:4";
|
|
2635
|
+
"3:2": "3:2";
|
|
2636
|
+
"2:3": "2:3";
|
|
2637
|
+
"21:9": "21:9";
|
|
2638
|
+
}>>;
|
|
2639
|
+
quality: z.ZodEnum<{
|
|
2640
|
+
high: "high";
|
|
2641
|
+
basic: "basic";
|
|
2642
|
+
}>;
|
|
2643
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2644
|
+
}, z.core.$strip>;
|
|
2645
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2646
|
+
model: z.ZodLiteral<"qwen2/text-to-image">;
|
|
2647
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2648
|
+
input: z.ZodObject<{
|
|
2649
|
+
prompt: z.ZodString;
|
|
2650
|
+
image_size: z.ZodOptional<z.ZodEnum<{
|
|
2651
|
+
square: "square";
|
|
2652
|
+
square_hd: "square_hd";
|
|
2653
|
+
portrait_4_3: "portrait_4_3";
|
|
2654
|
+
portrait_16_9: "portrait_16_9";
|
|
2655
|
+
landscape_4_3: "landscape_4_3";
|
|
2656
|
+
landscape_16_9: "landscape_16_9";
|
|
2657
|
+
}>>;
|
|
2658
|
+
num_inference_steps: z.ZodOptional<z.ZodNumber>;
|
|
2659
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2660
|
+
guidance_scale: z.ZodOptional<z.ZodNumber>;
|
|
2661
|
+
enable_safety_checker: z.ZodOptional<z.ZodBoolean>;
|
|
2662
|
+
output_format: z.ZodOptional<z.ZodEnum<{
|
|
2663
|
+
png: "png";
|
|
2664
|
+
jpeg: "jpeg";
|
|
2665
|
+
}>>;
|
|
2666
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
2667
|
+
acceleration: z.ZodOptional<z.ZodEnum<{
|
|
2668
|
+
high: "high";
|
|
2669
|
+
none: "none";
|
|
2670
|
+
regular: "regular";
|
|
2671
|
+
}>>;
|
|
2672
|
+
}, z.core.$strip>;
|
|
2673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2674
|
+
model: z.ZodLiteral<"qwen2/image-edit">;
|
|
2675
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2676
|
+
input: z.ZodObject<{
|
|
2677
|
+
prompt: z.ZodString;
|
|
2678
|
+
image_url: z.ZodArray<z.ZodString>;
|
|
2679
|
+
image_size: z.ZodDefault<z.ZodEnum<{
|
|
2680
|
+
"16:9": "16:9";
|
|
2681
|
+
"9:16": "9:16";
|
|
2682
|
+
"1:1": "1:1";
|
|
2683
|
+
"4:3": "4:3";
|
|
2684
|
+
"3:4": "3:4";
|
|
2685
|
+
"3:2": "3:2";
|
|
2686
|
+
"2:3": "2:3";
|
|
2687
|
+
"21:9": "21:9";
|
|
2688
|
+
}>>;
|
|
2689
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
2690
|
+
png: "png";
|
|
2691
|
+
jpeg: "jpeg";
|
|
2692
|
+
}>>;
|
|
2693
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2694
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2695
|
+
}, z.core.$strip>;
|
|
2696
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2697
|
+
model: z.ZodLiteral<"bytedance/seedance-2-fast">;
|
|
2698
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2699
|
+
input: z.ZodObject<{
|
|
2700
|
+
prompt: z.ZodString;
|
|
2701
|
+
first_frame_url: z.ZodOptional<z.ZodString>;
|
|
2702
|
+
last_frame_url: z.ZodOptional<z.ZodString>;
|
|
2703
|
+
reference_image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2704
|
+
reference_video_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2705
|
+
reference_audio_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2706
|
+
return_last_frame: z.ZodOptional<z.ZodBoolean>;
|
|
2707
|
+
generate_audio: z.ZodOptional<z.ZodBoolean>;
|
|
2708
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2709
|
+
"720p": "720p";
|
|
2710
|
+
"480p": "480p";
|
|
2711
|
+
}>>;
|
|
2712
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2713
|
+
"16:9": "16:9";
|
|
2714
|
+
"9:16": "9:16";
|
|
2715
|
+
"1:1": "1:1";
|
|
2716
|
+
"4:3": "4:3";
|
|
2717
|
+
"3:4": "3:4";
|
|
2718
|
+
"21:9": "21:9";
|
|
2719
|
+
adaptive: "adaptive";
|
|
2720
|
+
}>>;
|
|
2721
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
2722
|
+
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
2723
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2724
|
+
}, z.core.$strip>;
|
|
2725
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2726
|
+
model: z.ZodLiteral<"bytedance/seedance-2">;
|
|
2727
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2728
|
+
input: z.ZodObject<{
|
|
2729
|
+
prompt: z.ZodString;
|
|
2730
|
+
first_frame_url: z.ZodOptional<z.ZodString>;
|
|
2731
|
+
last_frame_url: z.ZodOptional<z.ZodString>;
|
|
2732
|
+
reference_image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2733
|
+
reference_video_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2734
|
+
reference_audio_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2735
|
+
return_last_frame: z.ZodOptional<z.ZodBoolean>;
|
|
2736
|
+
generate_audio: z.ZodOptional<z.ZodBoolean>;
|
|
2737
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2738
|
+
"720p": "720p";
|
|
2739
|
+
"1080p": "1080p";
|
|
2740
|
+
"480p": "480p";
|
|
2741
|
+
}>>;
|
|
2742
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2743
|
+
"16:9": "16:9";
|
|
2744
|
+
"9:16": "9:16";
|
|
2745
|
+
"1:1": "1:1";
|
|
2746
|
+
"4:3": "4:3";
|
|
2747
|
+
"3:4": "3:4";
|
|
2748
|
+
"21:9": "21:9";
|
|
2749
|
+
adaptive: "adaptive";
|
|
2750
|
+
}>>;
|
|
2751
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
2752
|
+
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
2753
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2754
|
+
}, z.core.$strip>;
|
|
2755
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2756
|
+
model: z.ZodLiteral<"wan/2-7-image-to-video">;
|
|
2757
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2758
|
+
input: z.ZodObject<{
|
|
2759
|
+
prompt: z.ZodString;
|
|
2760
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
2761
|
+
first_frame_url: z.ZodOptional<z.ZodString>;
|
|
2762
|
+
last_frame_url: z.ZodOptional<z.ZodString>;
|
|
2763
|
+
first_clip_url: z.ZodOptional<z.ZodString>;
|
|
2764
|
+
driving_audio_url: z.ZodOptional<z.ZodString>;
|
|
2765
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2766
|
+
"720p": "720p";
|
|
2767
|
+
"1080p": "1080p";
|
|
2768
|
+
}>>;
|
|
2769
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2770
|
+
prompt_extend: z.ZodOptional<z.ZodBoolean>;
|
|
2771
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2772
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2773
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2774
|
+
}, z.core.$strip>;
|
|
2775
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2776
|
+
model: z.ZodLiteral<"wan/2-7-text-to-video">;
|
|
2777
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2778
|
+
input: z.ZodObject<{
|
|
2779
|
+
prompt: z.ZodString;
|
|
2780
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
2781
|
+
audio_url: z.ZodOptional<z.ZodString>;
|
|
2782
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2783
|
+
"720p": "720p";
|
|
2784
|
+
"1080p": "1080p";
|
|
2785
|
+
}>>;
|
|
2786
|
+
ratio: z.ZodOptional<z.ZodEnum<{
|
|
2787
|
+
"16:9": "16:9";
|
|
2788
|
+
"9:16": "9:16";
|
|
2789
|
+
"1:1": "1:1";
|
|
2790
|
+
"4:3": "4:3";
|
|
2791
|
+
"3:4": "3:4";
|
|
2792
|
+
}>>;
|
|
2793
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2794
|
+
prompt_extend: z.ZodOptional<z.ZodBoolean>;
|
|
2795
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2796
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2797
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2798
|
+
}, z.core.$strip>;
|
|
2799
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2800
|
+
model: z.ZodLiteral<"wan/2-7-r2v">;
|
|
2801
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2802
|
+
input: z.ZodObject<{
|
|
2803
|
+
prompt: z.ZodString;
|
|
2804
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
2805
|
+
reference_image: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2806
|
+
reference_video: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2807
|
+
first_frame: z.ZodOptional<z.ZodString>;
|
|
2808
|
+
reference_voice: z.ZodOptional<z.ZodString>;
|
|
2809
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2810
|
+
"720p": "720p";
|
|
2811
|
+
"1080p": "1080p";
|
|
2812
|
+
}>>;
|
|
2813
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2814
|
+
"16:9": "16:9";
|
|
2815
|
+
"9:16": "9:16";
|
|
2816
|
+
"1:1": "1:1";
|
|
2817
|
+
"4:3": "4:3";
|
|
2818
|
+
"3:4": "3:4";
|
|
2819
|
+
}>>;
|
|
2820
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2821
|
+
prompt_extend: z.ZodOptional<z.ZodBoolean>;
|
|
2822
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2823
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2824
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2825
|
+
}, z.core.$strip>;
|
|
2826
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2827
|
+
model: z.ZodLiteral<"wan/2-7-videoedit">;
|
|
2828
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2829
|
+
input: z.ZodObject<{
|
|
2830
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2831
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
2832
|
+
video_url: z.ZodString;
|
|
2833
|
+
reference_image: z.ZodOptional<z.ZodString>;
|
|
2834
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2835
|
+
"720p": "720p";
|
|
2836
|
+
"1080p": "1080p";
|
|
2837
|
+
}>>;
|
|
2838
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2839
|
+
"16:9": "16:9";
|
|
2840
|
+
"9:16": "9:16";
|
|
2841
|
+
"1:1": "1:1";
|
|
2842
|
+
"4:3": "4:3";
|
|
2843
|
+
"3:4": "3:4";
|
|
2844
|
+
}>>;
|
|
2845
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2846
|
+
audio_setting: z.ZodOptional<z.ZodEnum<{
|
|
2847
|
+
auto: "auto";
|
|
2848
|
+
origin: "origin";
|
|
2849
|
+
}>>;
|
|
2850
|
+
prompt_extend: z.ZodOptional<z.ZodBoolean>;
|
|
2851
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2852
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2853
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2854
|
+
}, z.core.$strip>;
|
|
2855
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2856
|
+
model: z.ZodLiteral<"wan/2-7-image">;
|
|
2857
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2858
|
+
input: z.ZodObject<{
|
|
2859
|
+
prompt: z.ZodString;
|
|
2860
|
+
input_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2861
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2862
|
+
"16:9": "16:9";
|
|
2863
|
+
"9:16": "9:16";
|
|
2864
|
+
"1:1": "1:1";
|
|
2865
|
+
"4:3": "4:3";
|
|
2866
|
+
"3:4": "3:4";
|
|
2867
|
+
"21:9": "21:9";
|
|
2868
|
+
"8:1": "8:1";
|
|
2869
|
+
"1:8": "1:8";
|
|
2870
|
+
}>>;
|
|
2871
|
+
enable_sequential: z.ZodOptional<z.ZodBoolean>;
|
|
2872
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
2873
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2874
|
+
"4K": "4K";
|
|
2875
|
+
"1K": "1K";
|
|
2876
|
+
"2K": "2K";
|
|
2877
|
+
}>>;
|
|
2878
|
+
thinking_mode: z.ZodOptional<z.ZodBoolean>;
|
|
2879
|
+
color_palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2880
|
+
hex: z.ZodString;
|
|
2881
|
+
ratio: z.ZodString;
|
|
2882
|
+
}, z.core.$strip>>>;
|
|
2883
|
+
bbox_list: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
2884
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2885
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2886
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2887
|
+
}, z.core.$strip>;
|
|
2888
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2889
|
+
model: z.ZodLiteral<"wan/2-7-image-pro">;
|
|
2890
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2891
|
+
input: z.ZodObject<{
|
|
2892
|
+
prompt: z.ZodString;
|
|
2893
|
+
input_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2894
|
+
aspect_ratio: z.ZodDefault<z.ZodEnum<{
|
|
2895
|
+
"16:9": "16:9";
|
|
2896
|
+
"9:16": "9:16";
|
|
2897
|
+
"1:1": "1:1";
|
|
2898
|
+
"4:3": "4:3";
|
|
2899
|
+
"3:4": "3:4";
|
|
2900
|
+
"21:9": "21:9";
|
|
2901
|
+
"8:1": "8:1";
|
|
2902
|
+
"1:8": "1:8";
|
|
2903
|
+
}>>;
|
|
2904
|
+
enable_sequential: z.ZodOptional<z.ZodBoolean>;
|
|
2905
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
2906
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
2907
|
+
"4K": "4K";
|
|
2908
|
+
"1K": "1K";
|
|
2909
|
+
"2K": "2K";
|
|
2910
|
+
}>>;
|
|
2911
|
+
thinking_mode: z.ZodOptional<z.ZodBoolean>;
|
|
2912
|
+
color_palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2913
|
+
hex: z.ZodString;
|
|
2914
|
+
ratio: z.ZodString;
|
|
2915
|
+
}, z.core.$strip>>>;
|
|
2916
|
+
bbox_list: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodArray<z.ZodNumber>>>>;
|
|
2917
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
2918
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2919
|
+
nsfw_checker: z.ZodDefault<z.ZodBoolean>;
|
|
2920
|
+
}, z.core.$strip>;
|
|
2921
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2922
|
+
model: z.ZodLiteral<"happyhorse/text-to-video">;
|
|
2923
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2924
|
+
input: z.ZodObject<{
|
|
2925
|
+
prompt: z.ZodString;
|
|
2926
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2927
|
+
"720p": "720p";
|
|
2928
|
+
"1080p": "1080p";
|
|
2929
|
+
}>>;
|
|
2930
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2931
|
+
"16:9": "16:9";
|
|
2932
|
+
"9:16": "9:16";
|
|
2933
|
+
"1:1": "1:1";
|
|
2934
|
+
"4:3": "4:3";
|
|
2935
|
+
"3:4": "3:4";
|
|
2936
|
+
}>>;
|
|
2937
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2938
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2939
|
+
}, z.core.$strip>;
|
|
2940
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2941
|
+
model: z.ZodLiteral<"happyhorse/image-to-video">;
|
|
2942
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2943
|
+
input: z.ZodObject<{
|
|
2944
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
2945
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
2946
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2947
|
+
"720p": "720p";
|
|
2948
|
+
"1080p": "1080p";
|
|
2949
|
+
}>>;
|
|
2950
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2951
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2952
|
+
}, z.core.$strip>;
|
|
2953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2954
|
+
model: z.ZodLiteral<"happyhorse/reference-to-video">;
|
|
2955
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2956
|
+
input: z.ZodObject<{
|
|
2957
|
+
prompt: z.ZodString;
|
|
2958
|
+
reference_image: z.ZodArray<z.ZodString>;
|
|
2959
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2960
|
+
"720p": "720p";
|
|
2961
|
+
"1080p": "1080p";
|
|
2962
|
+
}>>;
|
|
2963
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
2964
|
+
"16:9": "16:9";
|
|
2965
|
+
"9:16": "9:16";
|
|
2966
|
+
"1:1": "1:1";
|
|
2967
|
+
"4:3": "4:3";
|
|
2968
|
+
"3:4": "3:4";
|
|
2969
|
+
}>>;
|
|
2970
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
2971
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2972
|
+
}, z.core.$strip>;
|
|
2973
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2974
|
+
model: z.ZodLiteral<"happyhorse/video-edit">;
|
|
2975
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2976
|
+
input: z.ZodObject<{
|
|
2977
|
+
prompt: z.ZodString;
|
|
2978
|
+
video_url: z.ZodString;
|
|
2979
|
+
reference_image: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2980
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
2981
|
+
"720p": "720p";
|
|
2982
|
+
"1080p": "1080p";
|
|
2983
|
+
}>>;
|
|
2984
|
+
audio_setting: z.ZodOptional<z.ZodEnum<{
|
|
2985
|
+
auto: "auto";
|
|
2986
|
+
origin: "origin";
|
|
2987
|
+
}>>;
|
|
2988
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
2989
|
+
}, z.core.$strip>;
|
|
2990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2991
|
+
model: z.ZodLiteral<"volcengine/video-to-video-lip-sync">;
|
|
2992
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
2993
|
+
input: z.ZodObject<{
|
|
2994
|
+
mode: z.ZodEnum<{
|
|
2995
|
+
lite: "lite";
|
|
2996
|
+
basic: "basic";
|
|
2997
|
+
}>;
|
|
2998
|
+
video_url: z.ZodString;
|
|
2999
|
+
audio_url: z.ZodString;
|
|
3000
|
+
separate_vocal: z.ZodDefault<z.ZodBoolean>;
|
|
3001
|
+
open_scenedet: z.ZodDefault<z.ZodBoolean>;
|
|
3002
|
+
align_audio: z.ZodDefault<z.ZodBoolean>;
|
|
3003
|
+
align_audio_reverse: z.ZodDefault<z.ZodBoolean>;
|
|
3004
|
+
templ_start_seconds: z.ZodDefault<z.ZodNumber>;
|
|
3005
|
+
}, z.core.$strip>;
|
|
3006
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3007
|
+
model: z.ZodLiteral<"elevenlabs/audio-isolation">;
|
|
3008
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
3009
|
+
input: z.ZodObject<{
|
|
3010
|
+
audio_url: z.ZodString;
|
|
3011
|
+
}, z.core.$strip>;
|
|
3012
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3013
|
+
model: z.ZodLiteral<"elevenlabs/text-to-dialogue-v3">;
|
|
3014
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
3015
|
+
input: z.ZodObject<{
|
|
3016
|
+
dialogue: z.ZodArray<z.ZodObject<{
|
|
3017
|
+
text: z.ZodString;
|
|
3018
|
+
voice: z.ZodString;
|
|
3019
|
+
}, z.core.$strip>>;
|
|
3020
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
3021
|
+
}, z.core.$strip>;
|
|
3022
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3023
|
+
model: z.ZodLiteral<"elevenlabs/text-to-speech-multilingual-v2">;
|
|
3024
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
3025
|
+
input: z.ZodObject<{
|
|
3026
|
+
text: z.ZodString;
|
|
3027
|
+
voice: z.ZodString;
|
|
3028
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
3029
|
+
similarity_boost: z.ZodOptional<z.ZodNumber>;
|
|
3030
|
+
style: z.ZodOptional<z.ZodNumber>;
|
|
3031
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
3032
|
+
timestamps: z.ZodOptional<z.ZodBoolean>;
|
|
3033
|
+
previous_text: z.ZodOptional<z.ZodString>;
|
|
3034
|
+
next_text: z.ZodOptional<z.ZodString>;
|
|
3035
|
+
language_code: z.ZodOptional<z.ZodString>;
|
|
3036
|
+
}, z.core.$strip>;
|
|
3037
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3038
|
+
model: z.ZodLiteral<"elevenlabs/text-to-speech-turbo-2-5">;
|
|
3039
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
3040
|
+
input: z.ZodObject<{
|
|
3041
|
+
text: z.ZodString;
|
|
3042
|
+
voice: z.ZodString;
|
|
3043
|
+
stability: z.ZodOptional<z.ZodNumber>;
|
|
3044
|
+
similarity_boost: z.ZodOptional<z.ZodNumber>;
|
|
3045
|
+
style: z.ZodOptional<z.ZodNumber>;
|
|
3046
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
3047
|
+
timestamps: z.ZodOptional<z.ZodBoolean>;
|
|
3048
|
+
previous_text: z.ZodOptional<z.ZodString>;
|
|
3049
|
+
next_text: z.ZodOptional<z.ZodString>;
|
|
3050
|
+
language_code: z.ZodOptional<z.ZodString>;
|
|
3051
|
+
}, z.core.$strip>;
|
|
3052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3053
|
+
model: z.ZodLiteral<"elevenlabs/sound-effect-v2">;
|
|
3054
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
3055
|
+
input: z.ZodObject<{
|
|
3056
|
+
text: z.ZodString;
|
|
3057
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
3058
|
+
prompt_influence: z.ZodOptional<z.ZodNumber>;
|
|
3059
|
+
output_format: z.ZodOptional<z.ZodString>;
|
|
3060
|
+
}, z.core.$strip>;
|
|
3061
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3062
|
+
model: z.ZodLiteral<"sora-watermark-remover">;
|
|
3063
|
+
callBackUrl: z.ZodOptional<z.ZodString>;
|
|
3064
|
+
input: z.ZodObject<{
|
|
3065
|
+
video_url: z.ZodString;
|
|
3066
|
+
upload_method: z.ZodOptional<z.ZodEnum<{
|
|
3067
|
+
s3: "s3";
|
|
3068
|
+
oss: "oss";
|
|
3069
|
+
}>>;
|
|
3070
|
+
}, z.core.$strip>;
|
|
3071
|
+
}, z.core.$strip>]>>;
|
|
2260
3072
|
export type KieMediaModel = z.infer<typeof KieMediaModelSchema>;
|
|
2261
3073
|
export type MediaType = z.infer<typeof MediaTypeSchema>;
|
|
2262
3074
|
export type KlingDuration = z.infer<typeof KlingDurationSchema>;
|