getaiapi 1.3.0 → 2.0.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/README.md +453 -399
- package/dist/{chunk-7MV7SODR.js → chunk-H6MMJNJX.js} +243 -65
- package/dist/{chunk-7MV7SODR.js.map → chunk-H6MMJNJX.js.map} +1 -1
- package/dist/cli.d.ts +2 -1
- package/dist/cli.js +2 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +473 -4
- package/dist/index.js +534 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// registry/registry.json
|
|
1
|
+
// deprecated/registry/registry.json
|
|
2
2
|
var registry_default = [
|
|
3
3
|
{
|
|
4
4
|
canonical_name: "851-labs-background-remover",
|
|
@@ -30515,7 +30515,8 @@ var registry_default = [
|
|
|
30515
30515
|
skill_id: "kling-virtual-try-on",
|
|
30516
30516
|
endpoint: "v1/images/kolors-virtual-try-on",
|
|
30517
30517
|
param_map: {
|
|
30518
|
-
image: "human_image"
|
|
30518
|
+
image: "human_image",
|
|
30519
|
+
cloth_image: "cloth_image"
|
|
30519
30520
|
},
|
|
30520
30521
|
defaults: {
|
|
30521
30522
|
model_name: "kolors-virtual-try-on-v1-5"
|
|
@@ -30876,7 +30877,11 @@ var registry_default = [
|
|
|
30876
30877
|
prompt: "prompt",
|
|
30877
30878
|
duration: "duration",
|
|
30878
30879
|
aspect_ratio: "aspect_ratio",
|
|
30879
|
-
image: "image"
|
|
30880
|
+
image: "image",
|
|
30881
|
+
negative_prompt: "negative_prompt",
|
|
30882
|
+
cfg_scale: "cfg_scale",
|
|
30883
|
+
generate_audio: "sound",
|
|
30884
|
+
elements: "element_list"
|
|
30880
30885
|
},
|
|
30881
30886
|
defaults: {
|
|
30882
30887
|
model_name: "kling-video-o1"
|
|
@@ -30933,7 +30938,11 @@ var registry_default = [
|
|
|
30933
30938
|
prompt: "prompt",
|
|
30934
30939
|
duration: "duration",
|
|
30935
30940
|
aspect_ratio: "aspect_ratio",
|
|
30936
|
-
image: "image"
|
|
30941
|
+
image: "image",
|
|
30942
|
+
negative_prompt: "negative_prompt",
|
|
30943
|
+
cfg_scale: "cfg_scale",
|
|
30944
|
+
generate_audio: "sound",
|
|
30945
|
+
elements: "element_list"
|
|
30937
30946
|
},
|
|
30938
30947
|
defaults: {
|
|
30939
30948
|
model_name: "kling-video-o1"
|
|
@@ -30992,7 +31001,11 @@ var registry_default = [
|
|
|
30992
31001
|
prompt: "prompt",
|
|
30993
31002
|
duration: "duration",
|
|
30994
31003
|
aspect_ratio: "aspect_ratio",
|
|
30995
|
-
image: "image"
|
|
31004
|
+
image: "image",
|
|
31005
|
+
negative_prompt: "negative_prompt",
|
|
31006
|
+
cfg_scale: "cfg_scale",
|
|
31007
|
+
generate_audio: "sound",
|
|
31008
|
+
elements: "element_list"
|
|
30996
31009
|
},
|
|
30997
31010
|
defaults: {
|
|
30998
31011
|
model_name: "kling-video-o1",
|
|
@@ -31050,7 +31063,11 @@ var registry_default = [
|
|
|
31050
31063
|
prompt: "prompt",
|
|
31051
31064
|
duration: "duration",
|
|
31052
31065
|
aspect_ratio: "aspect_ratio",
|
|
31053
|
-
image: "image"
|
|
31066
|
+
image: "image",
|
|
31067
|
+
negative_prompt: "negative_prompt",
|
|
31068
|
+
cfg_scale: "cfg_scale",
|
|
31069
|
+
generate_audio: "sound",
|
|
31070
|
+
elements: "element_list"
|
|
31054
31071
|
},
|
|
31055
31072
|
defaults: {
|
|
31056
31073
|
model_name: "kling-video-o1",
|
|
@@ -31108,7 +31125,11 @@ var registry_default = [
|
|
|
31108
31125
|
param_map: {
|
|
31109
31126
|
prompt: "prompt",
|
|
31110
31127
|
duration: "duration",
|
|
31111
|
-
aspect_ratio: "aspect_ratio"
|
|
31128
|
+
aspect_ratio: "aspect_ratio",
|
|
31129
|
+
negative_prompt: "negative_prompt",
|
|
31130
|
+
cfg_scale: "cfg_scale",
|
|
31131
|
+
generate_audio: "sound",
|
|
31132
|
+
elements: "element_list"
|
|
31112
31133
|
},
|
|
31113
31134
|
defaults: {
|
|
31114
31135
|
model_name: "kling-video-o1",
|
|
@@ -31166,7 +31187,11 @@ var registry_default = [
|
|
|
31166
31187
|
param_map: {
|
|
31167
31188
|
prompt: "prompt",
|
|
31168
31189
|
duration: "duration",
|
|
31169
|
-
aspect_ratio: "aspect_ratio"
|
|
31190
|
+
aspect_ratio: "aspect_ratio",
|
|
31191
|
+
negative_prompt: "negative_prompt",
|
|
31192
|
+
cfg_scale: "cfg_scale",
|
|
31193
|
+
generate_audio: "sound",
|
|
31194
|
+
elements: "element_list"
|
|
31170
31195
|
},
|
|
31171
31196
|
defaults: {
|
|
31172
31197
|
model_name: "kling-video-o1",
|
|
@@ -31224,7 +31249,11 @@ var registry_default = [
|
|
|
31224
31249
|
param_map: {
|
|
31225
31250
|
prompt: "prompt",
|
|
31226
31251
|
duration: "duration",
|
|
31227
|
-
aspect_ratio: "aspect_ratio"
|
|
31252
|
+
aspect_ratio: "aspect_ratio",
|
|
31253
|
+
negative_prompt: "negative_prompt",
|
|
31254
|
+
cfg_scale: "cfg_scale",
|
|
31255
|
+
generate_audio: "sound",
|
|
31256
|
+
elements: "element_list"
|
|
31228
31257
|
},
|
|
31229
31258
|
defaults: {
|
|
31230
31259
|
model_name: "kling-video-o1"
|
|
@@ -31281,7 +31310,11 @@ var registry_default = [
|
|
|
31281
31310
|
param_map: {
|
|
31282
31311
|
prompt: "prompt",
|
|
31283
31312
|
duration: "duration",
|
|
31284
|
-
aspect_ratio: "aspect_ratio"
|
|
31313
|
+
aspect_ratio: "aspect_ratio",
|
|
31314
|
+
negative_prompt: "negative_prompt",
|
|
31315
|
+
cfg_scale: "cfg_scale",
|
|
31316
|
+
generate_audio: "sound",
|
|
31317
|
+
elements: "element_list"
|
|
31285
31318
|
},
|
|
31286
31319
|
defaults: {
|
|
31287
31320
|
model_name: "kling-video-o1"
|
|
@@ -31339,7 +31372,11 @@ var registry_default = [
|
|
|
31339
31372
|
prompt: "prompt",
|
|
31340
31373
|
duration: "duration",
|
|
31341
31374
|
aspect_ratio: "aspect_ratio",
|
|
31342
|
-
image: "image"
|
|
31375
|
+
image: "image",
|
|
31376
|
+
negative_prompt: "negative_prompt",
|
|
31377
|
+
cfg_scale: "cfg_scale",
|
|
31378
|
+
generate_audio: "sound",
|
|
31379
|
+
elements: "element_list"
|
|
31343
31380
|
},
|
|
31344
31381
|
defaults: {
|
|
31345
31382
|
model_name: "kling-v3-omni",
|
|
@@ -31398,7 +31435,11 @@ var registry_default = [
|
|
|
31398
31435
|
prompt: "prompt",
|
|
31399
31436
|
duration: "duration",
|
|
31400
31437
|
aspect_ratio: "aspect_ratio",
|
|
31401
|
-
image: "image"
|
|
31438
|
+
image: "image",
|
|
31439
|
+
negative_prompt: "negative_prompt",
|
|
31440
|
+
cfg_scale: "cfg_scale",
|
|
31441
|
+
generate_audio: "sound",
|
|
31442
|
+
elements: "element_list"
|
|
31402
31443
|
},
|
|
31403
31444
|
defaults: {
|
|
31404
31445
|
model_name: "kling-v3-omni",
|
|
@@ -31456,7 +31497,11 @@ var registry_default = [
|
|
|
31456
31497
|
param_map: {
|
|
31457
31498
|
prompt: "prompt",
|
|
31458
31499
|
duration: "duration",
|
|
31459
|
-
aspect_ratio: "aspect_ratio"
|
|
31500
|
+
aspect_ratio: "aspect_ratio",
|
|
31501
|
+
negative_prompt: "negative_prompt",
|
|
31502
|
+
cfg_scale: "cfg_scale",
|
|
31503
|
+
generate_audio: "sound",
|
|
31504
|
+
elements: "element_list"
|
|
31460
31505
|
},
|
|
31461
31506
|
defaults: {
|
|
31462
31507
|
model_name: "kling-v3-omni",
|
|
@@ -31514,7 +31559,11 @@ var registry_default = [
|
|
|
31514
31559
|
param_map: {
|
|
31515
31560
|
prompt: "prompt",
|
|
31516
31561
|
duration: "duration",
|
|
31517
|
-
aspect_ratio: "aspect_ratio"
|
|
31562
|
+
aspect_ratio: "aspect_ratio",
|
|
31563
|
+
negative_prompt: "negative_prompt",
|
|
31564
|
+
cfg_scale: "cfg_scale",
|
|
31565
|
+
generate_audio: "sound",
|
|
31566
|
+
elements: "element_list"
|
|
31518
31567
|
},
|
|
31519
31568
|
defaults: {
|
|
31520
31569
|
model_name: "kling-v3-omni",
|
|
@@ -31572,7 +31621,11 @@ var registry_default = [
|
|
|
31572
31621
|
param_map: {
|
|
31573
31622
|
prompt: "prompt",
|
|
31574
31623
|
duration: "duration",
|
|
31575
|
-
aspect_ratio: "aspect_ratio"
|
|
31624
|
+
aspect_ratio: "aspect_ratio",
|
|
31625
|
+
negative_prompt: "negative_prompt",
|
|
31626
|
+
cfg_scale: "cfg_scale",
|
|
31627
|
+
generate_audio: "sound",
|
|
31628
|
+
elements: "element_list"
|
|
31576
31629
|
},
|
|
31577
31630
|
defaults: {
|
|
31578
31631
|
model_name: "kling-v3-omni",
|
|
@@ -31631,7 +31684,11 @@ var registry_default = [
|
|
|
31631
31684
|
prompt: "prompt",
|
|
31632
31685
|
duration: "duration",
|
|
31633
31686
|
aspect_ratio: "aspect_ratio",
|
|
31634
|
-
image: "image"
|
|
31687
|
+
image: "image",
|
|
31688
|
+
negative_prompt: "negative_prompt",
|
|
31689
|
+
cfg_scale: "cfg_scale",
|
|
31690
|
+
generate_audio: "sound",
|
|
31691
|
+
elements: "element_list"
|
|
31635
31692
|
},
|
|
31636
31693
|
defaults: {
|
|
31637
31694
|
model_name: "kling-v3-omni",
|
|
@@ -31690,7 +31747,11 @@ var registry_default = [
|
|
|
31690
31747
|
param_map: {
|
|
31691
31748
|
prompt: "prompt",
|
|
31692
31749
|
duration: "duration",
|
|
31693
|
-
aspect_ratio: "aspect_ratio"
|
|
31750
|
+
aspect_ratio: "aspect_ratio",
|
|
31751
|
+
negative_prompt: "negative_prompt",
|
|
31752
|
+
cfg_scale: "cfg_scale",
|
|
31753
|
+
generate_audio: "sound",
|
|
31754
|
+
elements: "element_list"
|
|
31694
31755
|
},
|
|
31695
31756
|
defaults: {
|
|
31696
31757
|
model_name: "kling-v3-omni",
|
|
@@ -31748,7 +31809,11 @@ var registry_default = [
|
|
|
31748
31809
|
param_map: {
|
|
31749
31810
|
prompt: "prompt",
|
|
31750
31811
|
duration: "duration",
|
|
31751
|
-
aspect_ratio: "aspect_ratio"
|
|
31812
|
+
aspect_ratio: "aspect_ratio",
|
|
31813
|
+
negative_prompt: "negative_prompt",
|
|
31814
|
+
cfg_scale: "cfg_scale",
|
|
31815
|
+
generate_audio: "sound",
|
|
31816
|
+
elements: "element_list"
|
|
31752
31817
|
},
|
|
31753
31818
|
defaults: {
|
|
31754
31819
|
model_name: "kling-v3-omni",
|
|
@@ -31806,7 +31871,11 @@ var registry_default = [
|
|
|
31806
31871
|
param_map: {
|
|
31807
31872
|
prompt: "prompt",
|
|
31808
31873
|
duration: "duration",
|
|
31809
|
-
aspect_ratio: "aspect_ratio"
|
|
31874
|
+
aspect_ratio: "aspect_ratio",
|
|
31875
|
+
negative_prompt: "negative_prompt",
|
|
31876
|
+
cfg_scale: "cfg_scale",
|
|
31877
|
+
generate_audio: "sound",
|
|
31878
|
+
elements: "element_list"
|
|
31810
31879
|
},
|
|
31811
31880
|
defaults: {
|
|
31812
31881
|
model_name: "kling-v3-omni",
|
|
@@ -32033,7 +32102,12 @@ var registry_default = [
|
|
|
32033
32102
|
negative_prompt: "negative_prompt",
|
|
32034
32103
|
duration: "duration",
|
|
32035
32104
|
aspect_ratio: "aspect_ratio",
|
|
32036
|
-
image: "image"
|
|
32105
|
+
image: "image",
|
|
32106
|
+
cfg_scale: "cfg_scale",
|
|
32107
|
+
generate_audio: "sound",
|
|
32108
|
+
end_image_url: "image_tail",
|
|
32109
|
+
voice_ids: "voice_list",
|
|
32110
|
+
elements: "element_list"
|
|
32037
32111
|
},
|
|
32038
32112
|
defaults: {
|
|
32039
32113
|
model_name: "kling-v1",
|
|
@@ -32092,7 +32166,9 @@ var registry_default = [
|
|
|
32092
32166
|
prompt: "prompt",
|
|
32093
32167
|
negative_prompt: "negative_prompt",
|
|
32094
32168
|
duration: "duration",
|
|
32095
|
-
aspect_ratio: "aspect_ratio"
|
|
32169
|
+
aspect_ratio: "aspect_ratio",
|
|
32170
|
+
cfg_scale: "cfg_scale",
|
|
32171
|
+
generate_audio: "sound"
|
|
32096
32172
|
},
|
|
32097
32173
|
defaults: {
|
|
32098
32174
|
model_name: "kling-v1",
|
|
@@ -32252,7 +32328,12 @@ var registry_default = [
|
|
|
32252
32328
|
negative_prompt: "negative_prompt",
|
|
32253
32329
|
duration: "duration",
|
|
32254
32330
|
aspect_ratio: "aspect_ratio",
|
|
32255
|
-
image: "image"
|
|
32331
|
+
image: "image",
|
|
32332
|
+
cfg_scale: "cfg_scale",
|
|
32333
|
+
generate_audio: "sound",
|
|
32334
|
+
end_image_url: "image_tail",
|
|
32335
|
+
voice_ids: "voice_list",
|
|
32336
|
+
elements: "element_list"
|
|
32256
32337
|
},
|
|
32257
32338
|
defaults: {
|
|
32258
32339
|
model_name: "kling-v1-5",
|
|
@@ -32441,7 +32522,12 @@ var registry_default = [
|
|
|
32441
32522
|
negative_prompt: "negative_prompt",
|
|
32442
32523
|
duration: "duration",
|
|
32443
32524
|
aspect_ratio: "aspect_ratio",
|
|
32444
|
-
image: "image"
|
|
32525
|
+
image: "image",
|
|
32526
|
+
cfg_scale: "cfg_scale",
|
|
32527
|
+
generate_audio: "sound",
|
|
32528
|
+
end_image_url: "image_tail",
|
|
32529
|
+
voice_ids: "voice_list",
|
|
32530
|
+
elements: "element_list"
|
|
32445
32531
|
},
|
|
32446
32532
|
defaults: {
|
|
32447
32533
|
model_name: "kling-v1-6",
|
|
@@ -32500,7 +32586,9 @@ var registry_default = [
|
|
|
32500
32586
|
prompt: "prompt",
|
|
32501
32587
|
negative_prompt: "negative_prompt",
|
|
32502
32588
|
duration: "duration",
|
|
32503
|
-
aspect_ratio: "aspect_ratio"
|
|
32589
|
+
aspect_ratio: "aspect_ratio",
|
|
32590
|
+
cfg_scale: "cfg_scale",
|
|
32591
|
+
generate_audio: "sound"
|
|
32504
32592
|
},
|
|
32505
32593
|
defaults: {
|
|
32506
32594
|
model_name: "kling-v1-6",
|
|
@@ -32651,7 +32739,12 @@ var registry_default = [
|
|
|
32651
32739
|
negative_prompt: "negative_prompt",
|
|
32652
32740
|
duration: "duration",
|
|
32653
32741
|
aspect_ratio: "aspect_ratio",
|
|
32654
|
-
image: "image"
|
|
32742
|
+
image: "image",
|
|
32743
|
+
cfg_scale: "cfg_scale",
|
|
32744
|
+
generate_audio: "sound",
|
|
32745
|
+
end_image_url: "image_tail",
|
|
32746
|
+
voice_ids: "voice_list",
|
|
32747
|
+
elements: "element_list"
|
|
32655
32748
|
},
|
|
32656
32749
|
defaults: {
|
|
32657
32750
|
model_name: "kling-v1-6",
|
|
@@ -32710,7 +32803,9 @@ var registry_default = [
|
|
|
32710
32803
|
prompt: "prompt",
|
|
32711
32804
|
negative_prompt: "negative_prompt",
|
|
32712
32805
|
duration: "duration",
|
|
32713
|
-
aspect_ratio: "aspect_ratio"
|
|
32806
|
+
aspect_ratio: "aspect_ratio",
|
|
32807
|
+
cfg_scale: "cfg_scale",
|
|
32808
|
+
generate_audio: "sound"
|
|
32714
32809
|
},
|
|
32715
32810
|
defaults: {
|
|
32716
32811
|
model_name: "kling-v1-6",
|
|
@@ -32771,7 +32866,12 @@ var registry_default = [
|
|
|
32771
32866
|
negative_prompt: "negative_prompt",
|
|
32772
32867
|
duration: "duration",
|
|
32773
32868
|
aspect_ratio: "aspect_ratio",
|
|
32774
|
-
image: "image"
|
|
32869
|
+
image: "image",
|
|
32870
|
+
cfg_scale: "cfg_scale",
|
|
32871
|
+
generate_audio: "sound",
|
|
32872
|
+
end_image_url: "image_tail",
|
|
32873
|
+
voice_ids: "voice_list",
|
|
32874
|
+
elements: "element_list"
|
|
32775
32875
|
},
|
|
32776
32876
|
defaults: {
|
|
32777
32877
|
model_name: "kling-v2-master"
|
|
@@ -32829,7 +32929,9 @@ var registry_default = [
|
|
|
32829
32929
|
prompt: "prompt",
|
|
32830
32930
|
negative_prompt: "negative_prompt",
|
|
32831
32931
|
duration: "duration",
|
|
32832
|
-
aspect_ratio: "aspect_ratio"
|
|
32932
|
+
aspect_ratio: "aspect_ratio",
|
|
32933
|
+
cfg_scale: "cfg_scale",
|
|
32934
|
+
generate_audio: "sound"
|
|
32833
32935
|
},
|
|
32834
32936
|
defaults: {
|
|
32835
32937
|
model_name: "kling-v2-master"
|
|
@@ -32889,7 +32991,12 @@ var registry_default = [
|
|
|
32889
32991
|
negative_prompt: "negative_prompt",
|
|
32890
32992
|
duration: "duration",
|
|
32891
32993
|
aspect_ratio: "aspect_ratio",
|
|
32892
|
-
image: "image"
|
|
32994
|
+
image: "image",
|
|
32995
|
+
cfg_scale: "cfg_scale",
|
|
32996
|
+
generate_audio: "sound",
|
|
32997
|
+
end_image_url: "image_tail",
|
|
32998
|
+
voice_ids: "voice_list",
|
|
32999
|
+
elements: "element_list"
|
|
32893
33000
|
},
|
|
32894
33001
|
defaults: {
|
|
32895
33002
|
model_name: "kling-v2-1-master"
|
|
@@ -32947,7 +33054,9 @@ var registry_default = [
|
|
|
32947
33054
|
prompt: "prompt",
|
|
32948
33055
|
negative_prompt: "negative_prompt",
|
|
32949
33056
|
duration: "duration",
|
|
32950
|
-
aspect_ratio: "aspect_ratio"
|
|
33057
|
+
aspect_ratio: "aspect_ratio",
|
|
33058
|
+
cfg_scale: "cfg_scale",
|
|
33059
|
+
generate_audio: "sound"
|
|
32951
33060
|
},
|
|
32952
33061
|
defaults: {
|
|
32953
33062
|
model_name: "kling-v2-1-master"
|
|
@@ -33007,7 +33116,12 @@ var registry_default = [
|
|
|
33007
33116
|
negative_prompt: "negative_prompt",
|
|
33008
33117
|
duration: "duration",
|
|
33009
33118
|
aspect_ratio: "aspect_ratio",
|
|
33010
|
-
image: "image"
|
|
33119
|
+
image: "image",
|
|
33120
|
+
cfg_scale: "cfg_scale",
|
|
33121
|
+
generate_audio: "sound",
|
|
33122
|
+
end_image_url: "image_tail",
|
|
33123
|
+
voice_ids: "voice_list",
|
|
33124
|
+
elements: "element_list"
|
|
33011
33125
|
},
|
|
33012
33126
|
defaults: {
|
|
33013
33127
|
model_name: "kling-v2-1",
|
|
@@ -33068,7 +33182,12 @@ var registry_default = [
|
|
|
33068
33182
|
negative_prompt: "negative_prompt",
|
|
33069
33183
|
duration: "duration",
|
|
33070
33184
|
aspect_ratio: "aspect_ratio",
|
|
33071
|
-
image: "image"
|
|
33185
|
+
image: "image",
|
|
33186
|
+
cfg_scale: "cfg_scale",
|
|
33187
|
+
generate_audio: "sound",
|
|
33188
|
+
end_image_url: "image_tail",
|
|
33189
|
+
voice_ids: "voice_list",
|
|
33190
|
+
elements: "element_list"
|
|
33072
33191
|
},
|
|
33073
33192
|
defaults: {
|
|
33074
33193
|
model_name: "kling-v2-1",
|
|
@@ -33129,7 +33248,12 @@ var registry_default = [
|
|
|
33129
33248
|
negative_prompt: "negative_prompt",
|
|
33130
33249
|
duration: "duration",
|
|
33131
33250
|
aspect_ratio: "aspect_ratio",
|
|
33132
|
-
image: "image"
|
|
33251
|
+
image: "image",
|
|
33252
|
+
cfg_scale: "cfg_scale",
|
|
33253
|
+
generate_audio: "sound",
|
|
33254
|
+
end_image_url: "image_tail",
|
|
33255
|
+
voice_ids: "voice_list",
|
|
33256
|
+
elements: "element_list"
|
|
33133
33257
|
},
|
|
33134
33258
|
defaults: {
|
|
33135
33259
|
model_name: "kling-v2-5-turbo",
|
|
@@ -33188,7 +33312,9 @@ var registry_default = [
|
|
|
33188
33312
|
prompt: "prompt",
|
|
33189
33313
|
negative_prompt: "negative_prompt",
|
|
33190
33314
|
duration: "duration",
|
|
33191
|
-
aspect_ratio: "aspect_ratio"
|
|
33315
|
+
aspect_ratio: "aspect_ratio",
|
|
33316
|
+
cfg_scale: "cfg_scale",
|
|
33317
|
+
generate_audio: "sound"
|
|
33192
33318
|
},
|
|
33193
33319
|
defaults: {
|
|
33194
33320
|
model_name: "kling-v2-5-turbo",
|
|
@@ -33249,7 +33375,12 @@ var registry_default = [
|
|
|
33249
33375
|
negative_prompt: "negative_prompt",
|
|
33250
33376
|
duration: "duration",
|
|
33251
33377
|
aspect_ratio: "aspect_ratio",
|
|
33252
|
-
image: "image"
|
|
33378
|
+
image: "image",
|
|
33379
|
+
cfg_scale: "cfg_scale",
|
|
33380
|
+
generate_audio: "sound",
|
|
33381
|
+
end_image_url: "image_tail",
|
|
33382
|
+
voice_ids: "voice_list",
|
|
33383
|
+
elements: "element_list"
|
|
33253
33384
|
},
|
|
33254
33385
|
defaults: {
|
|
33255
33386
|
model_name: "kling-v2-5-turbo",
|
|
@@ -33309,7 +33440,12 @@ var registry_default = [
|
|
|
33309
33440
|
negative_prompt: "negative_prompt",
|
|
33310
33441
|
duration: "duration",
|
|
33311
33442
|
aspect_ratio: "aspect_ratio",
|
|
33312
|
-
image: "image"
|
|
33443
|
+
image: "image",
|
|
33444
|
+
cfg_scale: "cfg_scale",
|
|
33445
|
+
generate_audio: "sound",
|
|
33446
|
+
end_image_url: "image_tail",
|
|
33447
|
+
voice_ids: "voice_list",
|
|
33448
|
+
elements: "element_list"
|
|
33313
33449
|
},
|
|
33314
33450
|
defaults: {
|
|
33315
33451
|
model_name: "kling-v2-6",
|
|
@@ -33390,7 +33526,10 @@ var registry_default = [
|
|
|
33390
33526
|
param_map: {
|
|
33391
33527
|
image: "image_url",
|
|
33392
33528
|
video: "video_url",
|
|
33393
|
-
prompt: "prompt"
|
|
33529
|
+
prompt: "prompt",
|
|
33530
|
+
keep_audio: "keep_original_sound",
|
|
33531
|
+
character_orientation: "character_orientation",
|
|
33532
|
+
elements: "element_list"
|
|
33394
33533
|
},
|
|
33395
33534
|
defaults: {
|
|
33396
33535
|
model_name: "kling-v2-6",
|
|
@@ -33449,7 +33588,9 @@ var registry_default = [
|
|
|
33449
33588
|
prompt: "prompt",
|
|
33450
33589
|
negative_prompt: "negative_prompt",
|
|
33451
33590
|
duration: "duration",
|
|
33452
|
-
aspect_ratio: "aspect_ratio"
|
|
33591
|
+
aspect_ratio: "aspect_ratio",
|
|
33592
|
+
cfg_scale: "cfg_scale",
|
|
33593
|
+
generate_audio: "sound"
|
|
33453
33594
|
},
|
|
33454
33595
|
defaults: {
|
|
33455
33596
|
model_name: "kling-v2-6",
|
|
@@ -33508,7 +33649,10 @@ var registry_default = [
|
|
|
33508
33649
|
param_map: {
|
|
33509
33650
|
image: "image_url",
|
|
33510
33651
|
video: "video_url",
|
|
33511
|
-
prompt: "prompt"
|
|
33652
|
+
prompt: "prompt",
|
|
33653
|
+
keep_audio: "keep_original_sound",
|
|
33654
|
+
character_orientation: "character_orientation",
|
|
33655
|
+
elements: "element_list"
|
|
33512
33656
|
},
|
|
33513
33657
|
defaults: {
|
|
33514
33658
|
model_name: "kling-v2-6",
|
|
@@ -33571,7 +33715,12 @@ var registry_default = [
|
|
|
33571
33715
|
negative_prompt: "negative_prompt",
|
|
33572
33716
|
duration: "duration",
|
|
33573
33717
|
aspect_ratio: "aspect_ratio",
|
|
33574
|
-
image: "image"
|
|
33718
|
+
image: "image",
|
|
33719
|
+
cfg_scale: "cfg_scale",
|
|
33720
|
+
generate_audio: "sound",
|
|
33721
|
+
end_image_url: "image_tail",
|
|
33722
|
+
voice_ids: "voice_list",
|
|
33723
|
+
elements: "element_list"
|
|
33575
33724
|
},
|
|
33576
33725
|
defaults: {
|
|
33577
33726
|
model_name: "kling-v3",
|
|
@@ -33648,7 +33797,10 @@ var registry_default = [
|
|
|
33648
33797
|
param_map: {
|
|
33649
33798
|
image: "image_url",
|
|
33650
33799
|
video: "video_url",
|
|
33651
|
-
prompt: "prompt"
|
|
33800
|
+
prompt: "prompt",
|
|
33801
|
+
keep_audio: "keep_original_sound",
|
|
33802
|
+
character_orientation: "character_orientation",
|
|
33803
|
+
elements: "element_list"
|
|
33652
33804
|
},
|
|
33653
33805
|
defaults: {
|
|
33654
33806
|
model_name: "kling-v3",
|
|
@@ -33708,7 +33860,9 @@ var registry_default = [
|
|
|
33708
33860
|
prompt: "prompt",
|
|
33709
33861
|
negative_prompt: "negative_prompt",
|
|
33710
33862
|
duration: "duration",
|
|
33711
|
-
aspect_ratio: "aspect_ratio"
|
|
33863
|
+
aspect_ratio: "aspect_ratio",
|
|
33864
|
+
cfg_scale: "cfg_scale",
|
|
33865
|
+
generate_audio: "sound"
|
|
33712
33866
|
},
|
|
33713
33867
|
defaults: {
|
|
33714
33868
|
model_name: "kling-v3",
|
|
@@ -33768,7 +33922,12 @@ var registry_default = [
|
|
|
33768
33922
|
negative_prompt: "negative_prompt",
|
|
33769
33923
|
duration: "duration",
|
|
33770
33924
|
aspect_ratio: "aspect_ratio",
|
|
33771
|
-
image: "image"
|
|
33925
|
+
image: "image",
|
|
33926
|
+
cfg_scale: "cfg_scale",
|
|
33927
|
+
generate_audio: "sound",
|
|
33928
|
+
end_image_url: "image_tail",
|
|
33929
|
+
voice_ids: "voice_list",
|
|
33930
|
+
elements: "element_list"
|
|
33772
33931
|
},
|
|
33773
33932
|
defaults: {
|
|
33774
33933
|
model_name: "kling-v3",
|
|
@@ -33849,7 +34008,10 @@ var registry_default = [
|
|
|
33849
34008
|
param_map: {
|
|
33850
34009
|
image: "image_url",
|
|
33851
34010
|
video: "video_url",
|
|
33852
|
-
prompt: "prompt"
|
|
34011
|
+
prompt: "prompt",
|
|
34012
|
+
keep_audio: "keep_original_sound",
|
|
34013
|
+
character_orientation: "character_orientation",
|
|
34014
|
+
elements: "element_list"
|
|
33853
34015
|
},
|
|
33854
34016
|
defaults: {
|
|
33855
34017
|
model_name: "kling-v3",
|
|
@@ -33908,7 +34070,9 @@ var registry_default = [
|
|
|
33908
34070
|
prompt: "prompt",
|
|
33909
34071
|
negative_prompt: "negative_prompt",
|
|
33910
34072
|
duration: "duration",
|
|
33911
|
-
aspect_ratio: "aspect_ratio"
|
|
34073
|
+
aspect_ratio: "aspect_ratio",
|
|
34074
|
+
cfg_scale: "cfg_scale",
|
|
34075
|
+
generate_audio: "sound"
|
|
33912
34076
|
},
|
|
33913
34077
|
defaults: {
|
|
33914
34078
|
model_name: "kling-v3",
|
|
@@ -33957,7 +34121,8 @@ var registry_default = [
|
|
|
33957
34121
|
skill_id: "kling-video-to-audio",
|
|
33958
34122
|
endpoint: "v1/audio/video-to-audio",
|
|
33959
34123
|
param_map: {
|
|
33960
|
-
video: "video_url"
|
|
34124
|
+
video: "video_url",
|
|
34125
|
+
prompt: "sound_effect_prompt"
|
|
33961
34126
|
},
|
|
33962
34127
|
output_map: {
|
|
33963
34128
|
type: "audio",
|
|
@@ -72561,7 +72726,7 @@ var registry_default = [
|
|
|
72561
72726
|
}
|
|
72562
72727
|
];
|
|
72563
72728
|
|
|
72564
|
-
// src/registry.ts
|
|
72729
|
+
// deprecated/src/registry.ts
|
|
72565
72730
|
var registryCache = null;
|
|
72566
72731
|
function loadRegistry() {
|
|
72567
72732
|
if (registryCache) return registryCache;
|
|
@@ -72634,7 +72799,7 @@ function clearRegistryCache() {
|
|
|
72634
72799
|
registryCache = null;
|
|
72635
72800
|
}
|
|
72636
72801
|
|
|
72637
|
-
// src/mapper.ts
|
|
72802
|
+
// deprecated/src/mapper.ts
|
|
72638
72803
|
function mapInput(request, binding) {
|
|
72639
72804
|
const result = {};
|
|
72640
72805
|
const provider = binding.provider;
|
|
@@ -72665,7 +72830,11 @@ function mapInput(request, binding) {
|
|
|
72665
72830
|
const INTERNAL_KEYS = /* @__PURE__ */ new Set(["timeout", "reupload"]);
|
|
72666
72831
|
if (request.options) {
|
|
72667
72832
|
for (const [key, val] of Object.entries(request.options)) {
|
|
72668
|
-
if (
|
|
72833
|
+
if (INTERNAL_KEYS.has(key)) continue;
|
|
72834
|
+
const mappedKey = binding.param_map[key];
|
|
72835
|
+
if (mappedKey && typeof mappedKey === "string") {
|
|
72836
|
+
result[mappedKey] = applyTransform(key, val, provider);
|
|
72837
|
+
} else {
|
|
72669
72838
|
result[key] = val;
|
|
72670
72839
|
}
|
|
72671
72840
|
}
|
|
@@ -72680,6 +72849,15 @@ function applyTransform(universal, value, provider) {
|
|
|
72680
72849
|
if (universal === "size") {
|
|
72681
72850
|
return parseSizeForProvider(value, provider);
|
|
72682
72851
|
}
|
|
72852
|
+
if (universal === "generate_audio" && provider === "kling") {
|
|
72853
|
+
return value ? "on" : "off";
|
|
72854
|
+
}
|
|
72855
|
+
if (universal === "voice_ids" && provider === "kling") {
|
|
72856
|
+
if (Array.isArray(value)) {
|
|
72857
|
+
return value.map((id) => ({ voice_id: id }));
|
|
72858
|
+
}
|
|
72859
|
+
return value;
|
|
72860
|
+
}
|
|
72683
72861
|
return value;
|
|
72684
72862
|
}
|
|
72685
72863
|
function parseSizeForProvider(value, provider) {
|
|
@@ -72794,7 +72972,7 @@ function getNestedValue(obj, path) {
|
|
|
72794
72972
|
return current;
|
|
72795
72973
|
}
|
|
72796
72974
|
|
|
72797
|
-
// src/errors.ts
|
|
72975
|
+
// deprecated/src/errors.ts
|
|
72798
72976
|
var GetAIApiError = class extends Error {
|
|
72799
72977
|
constructor(message) {
|
|
72800
72978
|
super(message);
|
|
@@ -72907,7 +73085,7 @@ var StorageError = class extends GetAIApiError {
|
|
|
72907
73085
|
}
|
|
72908
73086
|
};
|
|
72909
73087
|
|
|
72910
|
-
// src/auth.ts
|
|
73088
|
+
// deprecated/src/auth.ts
|
|
72911
73089
|
var ENV_MAP = {
|
|
72912
73090
|
"fal-ai": "FAL_KEY",
|
|
72913
73091
|
replicate: "REPLICATE_API_TOKEN",
|
|
@@ -72961,7 +73139,7 @@ var AuthManager = class {
|
|
|
72961
73139
|
}
|
|
72962
73140
|
};
|
|
72963
73141
|
|
|
72964
|
-
// src/fetch.ts
|
|
73142
|
+
// deprecated/src/fetch.ts
|
|
72965
73143
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
72966
73144
|
var SENSITIVE_HEADER = /auth|key|token|secret|bearer/i;
|
|
72967
73145
|
var config = {
|
|
@@ -73033,7 +73211,7 @@ async function fetchWithTimeout(url, init) {
|
|
|
73033
73211
|
}
|
|
73034
73212
|
}
|
|
73035
73213
|
|
|
73036
|
-
// src/adapters/kling.ts
|
|
73214
|
+
// deprecated/src/adapters/kling.ts
|
|
73037
73215
|
import { createHmac } from "crypto";
|
|
73038
73216
|
var API_BASE = "https://api-singapore.klingai.com";
|
|
73039
73217
|
var SYNC_ENDPOINTS = /* @__PURE__ */ new Set([
|
|
@@ -73201,10 +73379,10 @@ var klingAdapter = {
|
|
|
73201
73379
|
}
|
|
73202
73380
|
};
|
|
73203
73381
|
|
|
73204
|
-
// src/storage.ts
|
|
73382
|
+
// deprecated/src/storage.ts
|
|
73205
73383
|
import { randomUUID } from "crypto";
|
|
73206
73384
|
|
|
73207
|
-
// src/s3-signer.ts
|
|
73385
|
+
// deprecated/src/s3-signer.ts
|
|
73208
73386
|
import { createHmac as createHmac2, createHash } from "crypto";
|
|
73209
73387
|
function sha256(data) {
|
|
73210
73388
|
return createHash("sha256").update(data).digest("hex");
|
|
@@ -73309,7 +73487,7 @@ function presignS3Url(url, credentials, options) {
|
|
|
73309
73487
|
return `${parsedUrl.origin}${parsedUrl.pathname}?${queryParams.toString()}`;
|
|
73310
73488
|
}
|
|
73311
73489
|
|
|
73312
|
-
// src/storage.ts
|
|
73490
|
+
// deprecated/src/storage.ts
|
|
73313
73491
|
var MAX_PRESIGN_EXPIRES = 604800;
|
|
73314
73492
|
var storageConfig = null;
|
|
73315
73493
|
function parseExpiresIn(value) {
|
|
@@ -73525,10 +73703,10 @@ async function processParamsForUpload(params, options) {
|
|
|
73525
73703
|
return processRecord(params, shouldReupload, maxBytes);
|
|
73526
73704
|
}
|
|
73527
73705
|
|
|
73528
|
-
// src/gateway.ts
|
|
73706
|
+
// deprecated/src/gateway.ts
|
|
73529
73707
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
73530
73708
|
|
|
73531
|
-
// src/adapters/fal-ai.ts
|
|
73709
|
+
// deprecated/src/adapters/fal-ai.ts
|
|
73532
73710
|
var BASE_URL = "https://queue.fal.run";
|
|
73533
73711
|
function getBaseEndpoint(endpoint) {
|
|
73534
73712
|
const parts = endpoint.split("/");
|
|
@@ -73696,7 +73874,7 @@ var falAiAdapter = {
|
|
|
73696
73874
|
}
|
|
73697
73875
|
};
|
|
73698
73876
|
|
|
73699
|
-
// src/adapters/replicate.ts
|
|
73877
|
+
// deprecated/src/adapters/replicate.ts
|
|
73700
73878
|
var BASE_URL2 = "https://api.replicate.com/v1";
|
|
73701
73879
|
async function handleHttpErrors3(response, endpoint) {
|
|
73702
73880
|
if (response.ok) return;
|
|
@@ -73817,7 +73995,7 @@ var replicateAdapter = {
|
|
|
73817
73995
|
}
|
|
73818
73996
|
};
|
|
73819
73997
|
|
|
73820
|
-
// src/adapters/wavespeed.ts
|
|
73998
|
+
// deprecated/src/adapters/wavespeed.ts
|
|
73821
73999
|
var BASE_URL3 = "https://api.wavespeed.ai/api/v3";
|
|
73822
74000
|
async function handleHttpErrors4(response, endpoint) {
|
|
73823
74001
|
if (response.ok) return;
|
|
@@ -73921,7 +74099,7 @@ var wavespeedAdapter = {
|
|
|
73921
74099
|
}
|
|
73922
74100
|
};
|
|
73923
74101
|
|
|
73924
|
-
// src/adapters/openrouter.ts
|
|
74102
|
+
// deprecated/src/adapters/openrouter.ts
|
|
73925
74103
|
var BASE_URL4 = "https://openrouter.ai/api/v1";
|
|
73926
74104
|
async function handleHttpErrors5(response, endpoint) {
|
|
73927
74105
|
if (response.ok) return;
|
|
@@ -73999,7 +74177,7 @@ var openRouterAdapter = {
|
|
|
73999
74177
|
}
|
|
74000
74178
|
};
|
|
74001
74179
|
|
|
74002
|
-
// src/retry.ts
|
|
74180
|
+
// deprecated/src/retry.ts
|
|
74003
74181
|
var DEFAULT_OPTIONS = {
|
|
74004
74182
|
maxRetries: 3,
|
|
74005
74183
|
initialDelayMs: 1e3,
|
|
@@ -74066,7 +74244,7 @@ async function withRetry(fn, options) {
|
|
|
74066
74244
|
throw lastError;
|
|
74067
74245
|
}
|
|
74068
74246
|
|
|
74069
|
-
// src/gateway.ts
|
|
74247
|
+
// deprecated/src/gateway.ts
|
|
74070
74248
|
var adapters = {
|
|
74071
74249
|
"fal-ai": falAiAdapter,
|
|
74072
74250
|
"replicate": replicateAdapter,
|
|
@@ -74226,7 +74404,7 @@ async function generate(request) {
|
|
|
74226
74404
|
};
|
|
74227
74405
|
}
|
|
74228
74406
|
|
|
74229
|
-
// src/discovery.ts
|
|
74407
|
+
// deprecated/src/discovery.ts
|
|
74230
74408
|
function listModels(filters) {
|
|
74231
74409
|
let models = loadRegistry();
|
|
74232
74410
|
if (filters?.input) {
|
|
@@ -74283,4 +74461,4 @@ export {
|
|
|
74283
74461
|
listModels,
|
|
74284
74462
|
deriveCategory
|
|
74285
74463
|
};
|
|
74286
|
-
//# sourceMappingURL=chunk-
|
|
74464
|
+
//# sourceMappingURL=chunk-H6MMJNJX.js.map
|