getaiapi 1.3.0 → 1.3.1

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.
@@ -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",
@@ -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 (!INTERNAL_KEYS.has(key)) {
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) {
@@ -74283,4 +74461,4 @@ export {
74283
74461
  listModels,
74284
74462
  deriveCategory
74285
74463
  };
74286
- //# sourceMappingURL=chunk-7MV7SODR.js.map
74464
+ //# sourceMappingURL=chunk-CN4FJ4FW.js.map