getaiapi 1.1.0 → 1.3.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.
@@ -30181,12 +30181,13 @@ var registry_default = [
30181
30181
  ]
30182
30182
  },
30183
30183
  {
30184
- canonical_name: "kling-v1-ai-multi-shot",
30184
+ canonical_name: "kling-image-o1",
30185
30185
  aliases: [
30186
- "kling-multi-shot"
30186
+ "kling-image-o1"
30187
30187
  ],
30188
30188
  modality: {
30189
30189
  inputs: [
30190
+ "image",
30190
30191
  "text"
30191
30192
  ],
30192
30193
  outputs: [
@@ -30195,100 +30196,53 @@ var registry_default = [
30195
30196
  },
30196
30197
  providers: [
30197
30198
  {
30198
- provider: "kling",
30199
- skill_id: "kling-ai-multi-shot",
30200
- endpoint: "v1/images/ai-multi-shot",
30201
- auth_env: "KLING_ACCESS_KEY",
30199
+ provider: "fal-ai",
30200
+ skill_id: "fal-ai-kling-image-o1",
30201
+ endpoint: "fal-ai/kling-image/o1",
30202
+ auth_env: "FAL_KEY",
30202
30203
  param_map: {
30204
+ image: "image_url",
30203
30205
  prompt: "prompt",
30204
- image: "element_frontal_image"
30206
+ strength: "strength",
30207
+ seed: "seed",
30208
+ guidance: "guidance_scale",
30209
+ format: "output_format",
30210
+ quality: "quality",
30211
+ safety: "enable_safety_checker"
30205
30212
  },
30206
30213
  output_map: {
30207
30214
  type: "image",
30208
- extract_path: "task_result.images[].url",
30215
+ extract_path: "images[].url",
30209
30216
  content_type: "image/png"
30210
- },
30211
- defaults: {
30212
- model_name: "kling-v1"
30213
30217
  }
30214
- }
30215
- ]
30216
- },
30217
- {
30218
- canonical_name: "kling-v1-extend-image",
30219
- aliases: [
30220
- "kling-image-expansion"
30221
- ],
30222
- modality: {
30223
- inputs: [
30224
- "image",
30225
- "text"
30226
- ],
30227
- outputs: [
30228
- "image"
30229
- ]
30230
- },
30231
- providers: [
30218
+ },
30232
30219
  {
30233
30220
  provider: "kling",
30234
- skill_id: "kling-extend-image",
30235
- endpoint: "v1/images/image-expansion",
30236
30221
  auth_env: "KLING_ACCESS_KEY",
30222
+ skill_id: "kling-image-omni",
30223
+ endpoint: "v1/images/omni-image",
30237
30224
  param_map: {
30238
30225
  image: "image",
30239
- prompt: "prompt"
30226
+ prompt: "prompt",
30227
+ count: "n",
30228
+ aspect_ratio: "aspect_ratio"
30229
+ },
30230
+ defaults: {
30231
+ model_name: "kling-image-o1"
30240
30232
  },
30241
30233
  output_map: {
30242
30234
  type: "image",
30243
30235
  extract_path: "task_result.images[].url",
30244
30236
  content_type: "image/png"
30245
- },
30246
- defaults: {
30247
- model_name: "kling-v1"
30248
30237
  }
30249
30238
  }
30250
30239
  ]
30251
30240
  },
30252
30241
  {
30253
- canonical_name: "kling-v1-extend-video",
30254
- aliases: [
30255
- "kling-video-extend"
30256
- ],
30257
- modality: {
30258
- inputs: [
30259
- "video",
30260
- "text"
30261
- ],
30262
- outputs: [
30263
- "video"
30264
- ]
30265
- },
30266
- providers: [
30267
- {
30268
- provider: "kling",
30269
- skill_id: "kling-extend-video",
30270
- endpoint: "v1/videos/video-extend",
30271
- auth_env: "KLING_ACCESS_KEY",
30272
- param_map: {
30273
- prompt: "prompt",
30274
- negative_prompt: "negative_prompt",
30275
- video: "video_id"
30276
- },
30277
- output_map: {
30278
- type: "video",
30279
- extract_path: "task_result.videos[].url",
30280
- content_type: "video/mp4"
30281
- },
30282
- defaults: {
30283
- model_name: "kling-v1"
30284
- }
30285
- }
30286
- ]
30287
- },
30288
- {
30289
- canonical_name: "kling-image-o1",
30242
+ canonical_name: "kling-image-o3-image-to-image",
30290
30243
  aliases: [
30291
- "kling-image-o1"
30244
+ "kling-image-o3-image-to-image",
30245
+ "kling-image-o3"
30292
30246
  ],
30293
30247
  modality: {
30294
30248
  inputs: [
@@ -30300,30 +30254,10 @@ var registry_default = [
30300
30254
  ]
30301
30255
  },
30302
30256
  providers: [
30303
- {
30304
- provider: "kling",
30305
- auth_env: "KLING_ACCESS_KEY",
30306
- skill_id: "kling-image-to-image",
30307
- endpoint: "v1/images/generations",
30308
- param_map: {
30309
- prompt: "prompt",
30310
- negative_prompt: "negative_prompt",
30311
- image: "image",
30312
- count: "n"
30313
- },
30314
- defaults: {
30315
- model_name: "kling-image-o1"
30316
- },
30317
- output_map: {
30318
- type: "image",
30319
- extract_path: "task_result.images[].url",
30320
- content_type: "image/png"
30321
- }
30322
- },
30323
30257
  {
30324
30258
  provider: "fal-ai",
30325
- skill_id: "fal-ai-kling-image-o1",
30326
- endpoint: "fal-ai/kling-image/o1",
30259
+ skill_id: "fal-ai-kling-image-o3-image-to-image",
30260
+ endpoint: "fal-ai/kling-image/o3/image-to-image",
30327
30261
  auth_env: "FAL_KEY",
30328
30262
  param_map: {
30329
30263
  image: "image_url",
@@ -30340,34 +30274,17 @@ var registry_default = [
30340
30274
  extract_path: "images[].url",
30341
30275
  content_type: "image/png"
30342
30276
  }
30343
- }
30344
- ]
30345
- },
30346
- {
30347
- canonical_name: "kling-image-o3-image-to-image",
30348
- aliases: [
30349
- "kling-image-o3-image-to-image",
30350
- "kling-image-o3"
30351
- ],
30352
- modality: {
30353
- inputs: [
30354
- "image",
30355
- "text"
30356
- ],
30357
- outputs: [
30358
- "image"
30359
- ]
30360
- },
30361
- providers: [
30277
+ },
30362
30278
  {
30363
30279
  provider: "kling",
30364
30280
  auth_env: "KLING_ACCESS_KEY",
30365
- skill_id: "kling-image-to-image",
30366
- endpoint: "v1/images/generations",
30281
+ skill_id: "kling-image-omni",
30282
+ endpoint: "v1/images/omni-image",
30367
30283
  param_map: {
30368
- prompt: "prompt",
30369
30284
  image: "image",
30370
- count: "n"
30285
+ prompt: "prompt",
30286
+ count: "n",
30287
+ aspect_ratio: "aspect_ratio"
30371
30288
  },
30372
30289
  defaults: {
30373
30290
  model_name: "kling-v3-omni"
@@ -30377,27 +30294,6 @@ var registry_default = [
30377
30294
  extract_path: "task_result.images[].url",
30378
30295
  content_type: "image/png"
30379
30296
  }
30380
- },
30381
- {
30382
- provider: "fal-ai",
30383
- skill_id: "fal-ai-kling-image-o3-image-to-image",
30384
- endpoint: "fal-ai/kling-image/o3/image-to-image",
30385
- auth_env: "FAL_KEY",
30386
- param_map: {
30387
- image: "image_url",
30388
- prompt: "prompt",
30389
- strength: "strength",
30390
- seed: "seed",
30391
- guidance: "guidance_scale",
30392
- format: "output_format",
30393
- quality: "quality",
30394
- safety: "enable_safety_checker"
30395
- },
30396
- output_map: {
30397
- type: "image",
30398
- extract_path: "images[].url",
30399
- content_type: "image/png"
30400
- }
30401
30297
  }
30402
30298
  ]
30403
30299
  },
@@ -30415,25 +30311,6 @@ var registry_default = [
30415
30311
  ]
30416
30312
  },
30417
30313
  providers: [
30418
- {
30419
- provider: "kling",
30420
- auth_env: "KLING_ACCESS_KEY",
30421
- skill_id: "kling-text-to-image",
30422
- endpoint: "v1/images/generations",
30423
- param_map: {
30424
- prompt: "prompt",
30425
- negative_prompt: "negative_prompt",
30426
- count: "n"
30427
- },
30428
- defaults: {
30429
- model_name: "kling-v3-omni"
30430
- },
30431
- output_map: {
30432
- type: "image",
30433
- extract_path: "task_result.images[].url",
30434
- content_type: "image/png"
30435
- }
30436
- },
30437
30314
  {
30438
30315
  provider: "fal-ai",
30439
30316
  skill_id: "fal-ai-kling-image-o3-text-to-image",
@@ -30456,39 +30333,25 @@ var registry_default = [
30456
30333
  extract_path: "images[].url",
30457
30334
  content_type: "image/png"
30458
30335
  }
30459
- }
30460
- ]
30461
- },
30462
- {
30463
- canonical_name: "kling-v1-image-recognize",
30464
- aliases: [
30465
- "kling-image-understanding"
30466
- ],
30467
- modality: {
30468
- inputs: [
30469
- "image",
30470
- "text"
30471
- ],
30472
- outputs: [
30473
- "text"
30474
- ]
30475
- },
30476
- providers: [
30336
+ },
30477
30337
  {
30478
30338
  provider: "kling",
30479
- skill_id: "kling-image-recognize",
30480
- endpoint: "v1/images/image-recognize",
30481
30339
  auth_env: "KLING_ACCESS_KEY",
30340
+ skill_id: "kling-image-omni",
30341
+ endpoint: "v1/images/omni-image",
30482
30342
  param_map: {
30483
- image: "image"
30484
- },
30485
- output_map: {
30486
- type: "text",
30487
- extract_path: "task_result.text",
30488
- content_type: "text/plain"
30343
+ prompt: "prompt",
30344
+ negative_prompt: "negative_prompt",
30345
+ count: "n",
30346
+ aspect_ratio: "aspect_ratio"
30489
30347
  },
30490
30348
  defaults: {
30491
- model_name: "kling-v1"
30349
+ model_name: "kling-v3-omni"
30350
+ },
30351
+ output_map: {
30352
+ type: "image",
30353
+ extract_path: "task_result.images[].url",
30354
+ content_type: "image/png"
30492
30355
  }
30493
30356
  }
30494
30357
  ]
@@ -30509,25 +30372,6 @@ var registry_default = [
30509
30372
  ]
30510
30373
  },
30511
30374
  providers: [
30512
- {
30513
- provider: "kling",
30514
- auth_env: "KLING_ACCESS_KEY",
30515
- skill_id: "kling-image-to-image",
30516
- endpoint: "v1/images/generations",
30517
- param_map: {
30518
- prompt: "prompt",
30519
- image: "image",
30520
- count: "n"
30521
- },
30522
- defaults: {
30523
- model_name: "kling-v3"
30524
- },
30525
- output_map: {
30526
- type: "image",
30527
- extract_path: "task_result.images[].url",
30528
- content_type: "image/png"
30529
- }
30530
- },
30531
30375
  {
30532
30376
  provider: "fal-ai",
30533
30377
  skill_id: "fal-ai-kling-image-v3-image-to-image",
@@ -30548,6 +30392,26 @@ var registry_default = [
30548
30392
  extract_path: "images[].url",
30549
30393
  content_type: "image/png"
30550
30394
  }
30395
+ },
30396
+ {
30397
+ provider: "kling",
30398
+ auth_env: "KLING_ACCESS_KEY",
30399
+ skill_id: "kling-image-generation",
30400
+ endpoint: "v1/images/generations",
30401
+ param_map: {
30402
+ image: "image",
30403
+ prompt: "prompt",
30404
+ count: "n",
30405
+ aspect_ratio: "aspect_ratio"
30406
+ },
30407
+ defaults: {
30408
+ model_name: "kling-v3"
30409
+ },
30410
+ output_map: {
30411
+ type: "image",
30412
+ extract_path: "task_result.images[].url",
30413
+ content_type: "image/png"
30414
+ }
30551
30415
  }
30552
30416
  ]
30553
30417
  },
@@ -30565,25 +30429,6 @@ var registry_default = [
30565
30429
  ]
30566
30430
  },
30567
30431
  providers: [
30568
- {
30569
- provider: "kling",
30570
- auth_env: "KLING_ACCESS_KEY",
30571
- skill_id: "kling-text-to-image",
30572
- endpoint: "v1/images/generations",
30573
- param_map: {
30574
- prompt: "prompt",
30575
- negative_prompt: "negative_prompt",
30576
- count: "n"
30577
- },
30578
- defaults: {
30579
- model_name: "kling-v3"
30580
- },
30581
- output_map: {
30582
- type: "image",
30583
- extract_path: "task_result.images[].url",
30584
- content_type: "image/png"
30585
- }
30586
- },
30587
30432
  {
30588
30433
  provider: "fal-ai",
30589
30434
  skill_id: "fal-ai-kling-image-v3-text-to-image",
@@ -30606,38 +30451,25 @@ var registry_default = [
30606
30451
  extract_path: "images[].url",
30607
30452
  content_type: "image/png"
30608
30453
  }
30609
- }
30610
- ]
30611
- },
30612
- {
30613
- canonical_name: "kling-v1-text-to-audio",
30614
- aliases: [
30615
- "kling-audio-generation"
30616
- ],
30617
- modality: {
30618
- inputs: [
30619
- "text"
30620
- ],
30621
- outputs: [
30622
- "audio"
30623
- ]
30624
- },
30625
- providers: [
30454
+ },
30626
30455
  {
30627
30456
  provider: "kling",
30628
- skill_id: "kling-text-to-audio",
30629
- endpoint: "v1/audios/generation",
30630
30457
  auth_env: "KLING_ACCESS_KEY",
30458
+ skill_id: "kling-image-generation",
30459
+ endpoint: "v1/images/generations",
30631
30460
  param_map: {
30632
- prompt: "prompt"
30633
- },
30634
- output_map: {
30635
- type: "audio",
30636
- extract_path: "task_result.audios[].url",
30637
- content_type: "audio/mpeg"
30461
+ prompt: "prompt",
30462
+ negative_prompt: "negative_prompt",
30463
+ count: "n",
30464
+ aspect_ratio: "aspect_ratio"
30638
30465
  },
30639
30466
  defaults: {
30640
- model_name: "kling-v1"
30467
+ model_name: "kling-v3"
30468
+ },
30469
+ output_map: {
30470
+ type: "image",
30471
+ extract_path: "task_result.images[].url",
30472
+ content_type: "image/png"
30641
30473
  }
30642
30474
  }
30643
30475
  ]
@@ -30656,23 +30488,6 @@ var registry_default = [
30656
30488
  ]
30657
30489
  },
30658
30490
  providers: [
30659
- {
30660
- provider: "kling",
30661
- auth_env: "KLING_ACCESS_KEY",
30662
- skill_id: "kling-virtual-try-on",
30663
- endpoint: "v1/images/kolors-virtual-try-on",
30664
- param_map: {
30665
- image: "human_image"
30666
- },
30667
- defaults: {
30668
- model_name: "kolors-virtual-try-on"
30669
- },
30670
- output_map: {
30671
- type: "image",
30672
- extract_path: "task_result.images[].url",
30673
- content_type: "image/png"
30674
- }
30675
- },
30676
30491
  {
30677
30492
  provider: "fal-ai",
30678
30493
  skill_id: "fal-ai-kling-v1-5-kolors-virtual-try-on",
@@ -30693,6 +30508,23 @@ var registry_default = [
30693
30508
  extract_path: "images[].url",
30694
30509
  content_type: "image/png"
30695
30510
  }
30511
+ },
30512
+ {
30513
+ provider: "kling",
30514
+ auth_env: "KLING_ACCESS_KEY",
30515
+ skill_id: "kling-virtual-try-on",
30516
+ endpoint: "v1/images/kolors-virtual-try-on",
30517
+ param_map: {
30518
+ image: "human_image"
30519
+ },
30520
+ defaults: {
30521
+ model_name: "kolors-virtual-try-on-v1-5"
30522
+ },
30523
+ output_map: {
30524
+ type: "image",
30525
+ extract_path: "task_result.images[].url",
30526
+ content_type: "image/png"
30527
+ }
30696
30528
  }
30697
30529
  ]
30698
30530
  },
@@ -30748,26 +30580,6 @@ var registry_default = [
30748
30580
  ]
30749
30581
  },
30750
30582
  providers: [
30751
- {
30752
- provider: "kling",
30753
- auth_env: "KLING_ACCESS_KEY",
30754
- skill_id: "kling-avatar",
30755
- endpoint: "v1/videos/avatar",
30756
- param_map: {
30757
- image: "image",
30758
- prompt: "text",
30759
- audio: "audio_url"
30760
- },
30761
- defaults: {
30762
- model_name: "kling-v1",
30763
- mode: "pro"
30764
- },
30765
- output_map: {
30766
- type: "video",
30767
- extract_path: "task_result.videos[].url",
30768
- content_type: "video/mp4"
30769
- }
30770
- },
30771
30583
  {
30772
30584
  provider: "fal-ai",
30773
30585
  skill_id: "fal-ai-kling-video-ai-avatar-v2-pro",
@@ -30789,6 +30601,25 @@ var registry_default = [
30789
30601
  extract_path: "video.url",
30790
30602
  content_type: "video/mp4"
30791
30603
  }
30604
+ },
30605
+ {
30606
+ provider: "kling",
30607
+ auth_env: "KLING_ACCESS_KEY",
30608
+ skill_id: "kling-avatar",
30609
+ endpoint: "v1/videos/avatar/image2video",
30610
+ param_map: {
30611
+ image: "image",
30612
+ audio: "sound_file",
30613
+ prompt: "prompt"
30614
+ },
30615
+ defaults: {
30616
+ mode: "pro"
30617
+ },
30618
+ output_map: {
30619
+ type: "video",
30620
+ extract_path: "task_result.videos[].url",
30621
+ content_type: "video/mp4"
30622
+ }
30792
30623
  }
30793
30624
  ]
30794
30625
  },
@@ -30807,26 +30638,6 @@ var registry_default = [
30807
30638
  ]
30808
30639
  },
30809
30640
  providers: [
30810
- {
30811
- provider: "kling",
30812
- auth_env: "KLING_ACCESS_KEY",
30813
- skill_id: "kling-avatar",
30814
- endpoint: "v1/videos/avatar",
30815
- param_map: {
30816
- image: "image",
30817
- prompt: "text",
30818
- audio: "audio_url"
30819
- },
30820
- defaults: {
30821
- model_name: "kling-v1",
30822
- mode: "std"
30823
- },
30824
- output_map: {
30825
- type: "video",
30826
- extract_path: "task_result.videos[].url",
30827
- content_type: "video/mp4"
30828
- }
30829
- },
30830
30641
  {
30831
30642
  provider: "fal-ai",
30832
30643
  skill_id: "fal-ai-kling-video-ai-avatar-v2-standard",
@@ -30847,6 +30658,25 @@ var registry_default = [
30847
30658
  extract_path: "video.url",
30848
30659
  content_type: "video/mp4"
30849
30660
  }
30661
+ },
30662
+ {
30663
+ provider: "kling",
30664
+ auth_env: "KLING_ACCESS_KEY",
30665
+ skill_id: "kling-avatar",
30666
+ endpoint: "v1/videos/avatar/image2video",
30667
+ param_map: {
30668
+ image: "image",
30669
+ audio: "sound_file",
30670
+ prompt: "prompt"
30671
+ },
30672
+ defaults: {
30673
+ mode: "std"
30674
+ },
30675
+ output_map: {
30676
+ type: "video",
30677
+ extract_path: "task_result.videos[].url",
30678
+ content_type: "video/mp4"
30679
+ }
30850
30680
  }
30851
30681
  ]
30852
30682
  },
@@ -30865,23 +30695,6 @@ var registry_default = [
30865
30695
  ]
30866
30696
  },
30867
30697
  providers: [
30868
- {
30869
- provider: "kling",
30870
- auth_env: "KLING_ACCESS_KEY",
30871
- skill_id: "kling-voice-clone",
30872
- endpoint: "v1/audios/voice-clone",
30873
- param_map: {
30874
- audio: "voice_url"
30875
- },
30876
- defaults: {
30877
- model_name: "kling-v1"
30878
- },
30879
- output_map: {
30880
- type: "audio",
30881
- extract_path: "task_result.audios[].url",
30882
- content_type: "audio/mpeg"
30883
- }
30884
- },
30885
30698
  {
30886
30699
  provider: "fal-ai",
30887
30700
  skill_id: "fal-ai-kling-video-create-voice",
@@ -30895,6 +30708,20 @@ var registry_default = [
30895
30708
  extract_path: "voice_id",
30896
30709
  content_type: "text/plain"
30897
30710
  }
30711
+ },
30712
+ {
30713
+ provider: "kling",
30714
+ auth_env: "KLING_ACCESS_KEY",
30715
+ skill_id: "kling-voice-clone",
30716
+ endpoint: "v1/general/custom-voices",
30717
+ param_map: {
30718
+ audio: "voice_url"
30719
+ },
30720
+ output_map: {
30721
+ type: "audio",
30722
+ extract_path: "task_result.audios[].url",
30723
+ content_type: "audio/mpeg"
30724
+ }
30898
30725
  }
30899
30726
  ]
30900
30727
  },
@@ -30913,25 +30740,6 @@ var registry_default = [
30913
30740
  ]
30914
30741
  },
30915
30742
  providers: [
30916
- {
30917
- provider: "kling",
30918
- auth_env: "KLING_ACCESS_KEY",
30919
- skill_id: "kling-lip-sync",
30920
- endpoint: "v1/videos/lip-sync",
30921
- param_map: {
30922
- video: "video_url",
30923
- prompt: "text",
30924
- audio: "sound_file"
30925
- },
30926
- defaults: {
30927
- model_name: "kling-v1"
30928
- },
30929
- output_map: {
30930
- type: "video",
30931
- extract_path: "task_result.videos[].url",
30932
- content_type: "video/mp4"
30933
- }
30934
- },
30935
30743
  {
30936
30744
  provider: "fal-ai",
30937
30745
  skill_id: "fal-ai-kling-video-lipsync-audio-to-video",
@@ -30952,6 +30760,20 @@ var registry_default = [
30952
30760
  extract_path: "video.url",
30953
30761
  content_type: "video/mp4"
30954
30762
  }
30763
+ },
30764
+ {
30765
+ provider: "kling",
30766
+ auth_env: "KLING_ACCESS_KEY",
30767
+ skill_id: "kling-lip-sync",
30768
+ endpoint: "v1/videos/advanced-lip-sync",
30769
+ param_map: {
30770
+ audio: "sound_file"
30771
+ },
30772
+ output_map: {
30773
+ type: "video",
30774
+ extract_path: "task_result.videos[].url",
30775
+ content_type: "video/mp4"
30776
+ }
30955
30777
  }
30956
30778
  ]
30957
30779
  },
@@ -30971,25 +30793,6 @@ var registry_default = [
30971
30793
  ]
30972
30794
  },
30973
30795
  providers: [
30974
- {
30975
- provider: "kling",
30976
- auth_env: "KLING_ACCESS_KEY",
30977
- skill_id: "kling-lip-sync",
30978
- endpoint: "v1/videos/lip-sync",
30979
- param_map: {
30980
- video: "video_url",
30981
- prompt: "text",
30982
- audio: "sound_file"
30983
- },
30984
- defaults: {
30985
- model_name: "kling-v1"
30986
- },
30987
- output_map: {
30988
- type: "video",
30989
- extract_path: "task_result.videos[].url",
30990
- content_type: "video/mp4"
30991
- }
30992
- },
30993
30796
  {
30994
30797
  provider: "fal-ai",
30995
30798
  skill_id: "fal-ai-kling-video-lipsync-text-to-video",
@@ -31010,6 +30813,20 @@ var registry_default = [
31010
30813
  extract_path: "video.url",
31011
30814
  content_type: "video/mp4"
31012
30815
  }
30816
+ },
30817
+ {
30818
+ provider: "kling",
30819
+ auth_env: "KLING_ACCESS_KEY",
30820
+ skill_id: "kling-lip-sync",
30821
+ endpoint: "v1/videos/advanced-lip-sync",
30822
+ param_map: {
30823
+ audio: "sound_file"
30824
+ },
30825
+ output_map: {
30826
+ type: "video",
30827
+ extract_path: "task_result.videos[].url",
30828
+ content_type: "video/mp4"
30829
+ }
31013
30830
  }
31014
30831
  ]
31015
30832
  },
@@ -31029,29 +30846,6 @@ var registry_default = [
31029
30846
  ]
31030
30847
  },
31031
30848
  providers: [
31032
- {
31033
- provider: "kling",
31034
- auth_env: "KLING_ACCESS_KEY",
31035
- skill_id: "kling-image-to-video",
31036
- endpoint: "v1/videos/image2video",
31037
- param_map: {
31038
- prompt: "prompt",
31039
- negative_prompt: "negative_prompt",
31040
- image: "image",
31041
- duration: "duration",
31042
- size: "aspect_ratio",
31043
- guidance: "cfg_scale"
31044
- },
31045
- defaults: {
31046
- model_name: "kling-video-o1",
31047
- mode: "pro"
31048
- },
31049
- output_map: {
31050
- type: "video",
31051
- extract_path: "task_result.videos[].url",
31052
- content_type: "video/mp4"
31053
- }
31054
- },
31055
30849
  {
31056
30850
  provider: "fal-ai",
31057
30851
  skill_id: "fal-ai-kling-video-o1-image-to-video",
@@ -31072,6 +30866,26 @@ var registry_default = [
31072
30866
  extract_path: "video.url",
31073
30867
  content_type: "video/mp4"
31074
30868
  }
30869
+ },
30870
+ {
30871
+ provider: "kling",
30872
+ auth_env: "KLING_ACCESS_KEY",
30873
+ skill_id: "kling-video-omni",
30874
+ endpoint: "v1/videos/omni-video",
30875
+ param_map: {
30876
+ prompt: "prompt",
30877
+ duration: "duration",
30878
+ aspect_ratio: "aspect_ratio",
30879
+ image: "image"
30880
+ },
30881
+ defaults: {
30882
+ model_name: "kling-video-o1"
30883
+ },
30884
+ output_map: {
30885
+ type: "video",
30886
+ extract_path: "task_result.videos[].url",
30887
+ content_type: "video/mp4"
30888
+ }
31075
30889
  }
31076
30890
  ]
31077
30891
  },
@@ -31089,29 +30903,6 @@ var registry_default = [
31089
30903
  ]
31090
30904
  },
31091
30905
  providers: [
31092
- {
31093
- provider: "kling",
31094
- auth_env: "KLING_ACCESS_KEY",
31095
- skill_id: "kling-image-to-video",
31096
- endpoint: "v1/videos/image2video",
31097
- param_map: {
31098
- prompt: "prompt",
31099
- negative_prompt: "negative_prompt",
31100
- image: "image",
31101
- duration: "duration",
31102
- size: "aspect_ratio",
31103
- guidance: "cfg_scale"
31104
- },
31105
- defaults: {
31106
- model_name: "kling-video-o1",
31107
- mode: "pro"
31108
- },
31109
- output_map: {
31110
- type: "video",
31111
- extract_path: "task_result.videos[].url",
31112
- content_type: "video/mp4"
31113
- }
31114
- },
31115
30906
  {
31116
30907
  provider: "fal-ai",
31117
30908
  skill_id: "fal-ai-kling-video-o1-reference-to-video",
@@ -31132,6 +30923,26 @@ var registry_default = [
31132
30923
  extract_path: "video.url",
31133
30924
  content_type: "video/mp4"
31134
30925
  }
30926
+ },
30927
+ {
30928
+ provider: "kling",
30929
+ auth_env: "KLING_ACCESS_KEY",
30930
+ skill_id: "kling-video-omni",
30931
+ endpoint: "v1/videos/omni-video",
30932
+ param_map: {
30933
+ prompt: "prompt",
30934
+ duration: "duration",
30935
+ aspect_ratio: "aspect_ratio",
30936
+ image: "image"
30937
+ },
30938
+ defaults: {
30939
+ model_name: "kling-video-o1"
30940
+ },
30941
+ output_map: {
30942
+ type: "video",
30943
+ extract_path: "task_result.videos[].url",
30944
+ content_type: "video/mp4"
30945
+ }
31135
30946
  }
31136
30947
  ]
31137
30948
  },
@@ -31151,29 +30962,6 @@ var registry_default = [
31151
30962
  ]
31152
30963
  },
31153
30964
  providers: [
31154
- {
31155
- provider: "kling",
31156
- auth_env: "KLING_ACCESS_KEY",
31157
- skill_id: "kling-image-to-video",
31158
- endpoint: "v1/videos/image2video",
31159
- param_map: {
31160
- prompt: "prompt",
31161
- negative_prompt: "negative_prompt",
31162
- image: "image",
31163
- duration: "duration",
31164
- size: "aspect_ratio",
31165
- guidance: "cfg_scale"
31166
- },
31167
- defaults: {
31168
- model_name: "kling-video-o1",
31169
- mode: "std"
31170
- },
31171
- output_map: {
31172
- type: "video",
31173
- extract_path: "task_result.videos[].url",
31174
- content_type: "video/mp4"
31175
- }
31176
- },
31177
30965
  {
31178
30966
  provider: "fal-ai",
31179
30967
  skill_id: "fal-ai-kling-video-o1-standard-image-to-video",
@@ -31194,6 +30982,27 @@ var registry_default = [
31194
30982
  extract_path: "video.url",
31195
30983
  content_type: "video/mp4"
31196
30984
  }
30985
+ },
30986
+ {
30987
+ provider: "kling",
30988
+ auth_env: "KLING_ACCESS_KEY",
30989
+ skill_id: "kling-video-omni",
30990
+ endpoint: "v1/videos/omni-video",
30991
+ param_map: {
30992
+ prompt: "prompt",
30993
+ duration: "duration",
30994
+ aspect_ratio: "aspect_ratio",
30995
+ image: "image"
30996
+ },
30997
+ defaults: {
30998
+ model_name: "kling-video-o1",
30999
+ mode: "std"
31000
+ },
31001
+ output_map: {
31002
+ type: "video",
31003
+ extract_path: "task_result.videos[].url",
31004
+ content_type: "video/mp4"
31005
+ }
31197
31006
  }
31198
31007
  ]
31199
31008
  },
@@ -31211,29 +31020,6 @@ var registry_default = [
31211
31020
  ]
31212
31021
  },
31213
31022
  providers: [
31214
- {
31215
- provider: "kling",
31216
- auth_env: "KLING_ACCESS_KEY",
31217
- skill_id: "kling-image-to-video",
31218
- endpoint: "v1/videos/image2video",
31219
- param_map: {
31220
- prompt: "prompt",
31221
- negative_prompt: "negative_prompt",
31222
- image: "image",
31223
- duration: "duration",
31224
- size: "aspect_ratio",
31225
- guidance: "cfg_scale"
31226
- },
31227
- defaults: {
31228
- model_name: "kling-video-o1",
31229
- mode: "std"
31230
- },
31231
- output_map: {
31232
- type: "video",
31233
- extract_path: "task_result.videos[].url",
31234
- content_type: "video/mp4"
31235
- }
31236
- },
31237
31023
  {
31238
31024
  provider: "fal-ai",
31239
31025
  skill_id: "fal-ai-kling-video-o1-standard-reference-to-video",
@@ -31254,6 +31040,27 @@ var registry_default = [
31254
31040
  extract_path: "video.url",
31255
31041
  content_type: "video/mp4"
31256
31042
  }
31043
+ },
31044
+ {
31045
+ provider: "kling",
31046
+ auth_env: "KLING_ACCESS_KEY",
31047
+ skill_id: "kling-video-omni",
31048
+ endpoint: "v1/videos/omni-video",
31049
+ param_map: {
31050
+ prompt: "prompt",
31051
+ duration: "duration",
31052
+ aspect_ratio: "aspect_ratio",
31053
+ image: "image"
31054
+ },
31055
+ defaults: {
31056
+ model_name: "kling-video-o1",
31057
+ mode: "std"
31058
+ },
31059
+ output_map: {
31060
+ type: "video",
31061
+ extract_path: "task_result.videos[].url",
31062
+ content_type: "video/mp4"
31063
+ }
31257
31064
  }
31258
31065
  ]
31259
31066
  },
@@ -31292,6 +31099,26 @@ var registry_default = [
31292
31099
  extract_path: "images[].url",
31293
31100
  content_type: "video/mp4"
31294
31101
  }
31102
+ },
31103
+ {
31104
+ provider: "kling",
31105
+ auth_env: "KLING_ACCESS_KEY",
31106
+ skill_id: "kling-video-omni",
31107
+ endpoint: "v1/videos/omni-video",
31108
+ param_map: {
31109
+ prompt: "prompt",
31110
+ duration: "duration",
31111
+ aspect_ratio: "aspect_ratio"
31112
+ },
31113
+ defaults: {
31114
+ model_name: "kling-video-o1",
31115
+ mode: "std"
31116
+ },
31117
+ output_map: {
31118
+ type: "video",
31119
+ extract_path: "task_result.videos[].url",
31120
+ content_type: "video/mp4"
31121
+ }
31295
31122
  }
31296
31123
  ]
31297
31124
  },
@@ -31330,6 +31157,26 @@ var registry_default = [
31330
31157
  extract_path: "video.url",
31331
31158
  content_type: "video/mp4"
31332
31159
  }
31160
+ },
31161
+ {
31162
+ provider: "kling",
31163
+ auth_env: "KLING_ACCESS_KEY",
31164
+ skill_id: "kling-video-omni",
31165
+ endpoint: "v1/videos/omni-video",
31166
+ param_map: {
31167
+ prompt: "prompt",
31168
+ duration: "duration",
31169
+ aspect_ratio: "aspect_ratio"
31170
+ },
31171
+ defaults: {
31172
+ model_name: "kling-video-o1",
31173
+ mode: "std"
31174
+ },
31175
+ output_map: {
31176
+ type: "video",
31177
+ extract_path: "task_result.videos[].url",
31178
+ content_type: "video/mp4"
31179
+ }
31333
31180
  }
31334
31181
  ]
31335
31182
  },
@@ -31368,6 +31215,25 @@ var registry_default = [
31368
31215
  extract_path: "images[].url",
31369
31216
  content_type: "video/mp4"
31370
31217
  }
31218
+ },
31219
+ {
31220
+ provider: "kling",
31221
+ auth_env: "KLING_ACCESS_KEY",
31222
+ skill_id: "kling-video-omni",
31223
+ endpoint: "v1/videos/omni-video",
31224
+ param_map: {
31225
+ prompt: "prompt",
31226
+ duration: "duration",
31227
+ aspect_ratio: "aspect_ratio"
31228
+ },
31229
+ defaults: {
31230
+ model_name: "kling-video-o1"
31231
+ },
31232
+ output_map: {
31233
+ type: "video",
31234
+ extract_path: "task_result.videos[].url",
31235
+ content_type: "video/mp4"
31236
+ }
31371
31237
  }
31372
31238
  ]
31373
31239
  },
@@ -31406,6 +31272,25 @@ var registry_default = [
31406
31272
  extract_path: "video.url",
31407
31273
  content_type: "video/mp4"
31408
31274
  }
31275
+ },
31276
+ {
31277
+ provider: "kling",
31278
+ auth_env: "KLING_ACCESS_KEY",
31279
+ skill_id: "kling-video-omni",
31280
+ endpoint: "v1/videos/omni-video",
31281
+ param_map: {
31282
+ prompt: "prompt",
31283
+ duration: "duration",
31284
+ aspect_ratio: "aspect_ratio"
31285
+ },
31286
+ defaults: {
31287
+ model_name: "kling-video-o1"
31288
+ },
31289
+ output_map: {
31290
+ type: "video",
31291
+ extract_path: "task_result.videos[].url",
31292
+ content_type: "video/mp4"
31293
+ }
31409
31294
  }
31410
31295
  ]
31411
31296
  },
@@ -31424,29 +31309,6 @@ var registry_default = [
31424
31309
  ]
31425
31310
  },
31426
31311
  providers: [
31427
- {
31428
- provider: "kling",
31429
- auth_env: "KLING_ACCESS_KEY",
31430
- skill_id: "kling-image-to-video",
31431
- endpoint: "v1/videos/image2video",
31432
- param_map: {
31433
- prompt: "prompt",
31434
- negative_prompt: "negative_prompt",
31435
- image: "image",
31436
- duration: "duration",
31437
- size: "aspect_ratio",
31438
- guidance: "cfg_scale"
31439
- },
31440
- defaults: {
31441
- model_name: "kling-v3-omni",
31442
- mode: "pro"
31443
- },
31444
- output_map: {
31445
- type: "video",
31446
- extract_path: "task_result.videos[].url",
31447
- content_type: "video/mp4"
31448
- }
31449
- },
31450
31312
  {
31451
31313
  provider: "fal-ai",
31452
31314
  skill_id: "fal-ai-kling-video-o3-pro-image-to-video",
@@ -31467,6 +31329,27 @@ var registry_default = [
31467
31329
  extract_path: "video.url",
31468
31330
  content_type: "video/mp4"
31469
31331
  }
31332
+ },
31333
+ {
31334
+ provider: "kling",
31335
+ auth_env: "KLING_ACCESS_KEY",
31336
+ skill_id: "kling-video-omni",
31337
+ endpoint: "v1/videos/omni-video",
31338
+ param_map: {
31339
+ prompt: "prompt",
31340
+ duration: "duration",
31341
+ aspect_ratio: "aspect_ratio",
31342
+ image: "image"
31343
+ },
31344
+ defaults: {
31345
+ model_name: "kling-v3-omni",
31346
+ mode: "pro"
31347
+ },
31348
+ output_map: {
31349
+ type: "video",
31350
+ extract_path: "task_result.videos[].url",
31351
+ content_type: "video/mp4"
31352
+ }
31470
31353
  }
31471
31354
  ]
31472
31355
  },
@@ -31484,29 +31367,6 @@ var registry_default = [
31484
31367
  ]
31485
31368
  },
31486
31369
  providers: [
31487
- {
31488
- provider: "kling",
31489
- auth_env: "KLING_ACCESS_KEY",
31490
- skill_id: "kling-image-to-video",
31491
- endpoint: "v1/videos/image2video",
31492
- param_map: {
31493
- prompt: "prompt",
31494
- negative_prompt: "negative_prompt",
31495
- image: "image",
31496
- duration: "duration",
31497
- size: "aspect_ratio",
31498
- guidance: "cfg_scale"
31499
- },
31500
- defaults: {
31501
- model_name: "kling-v3-omni",
31502
- mode: "pro"
31503
- },
31504
- output_map: {
31505
- type: "video",
31506
- extract_path: "task_result.videos[].url",
31507
- content_type: "video/mp4"
31508
- }
31509
- },
31510
31370
  {
31511
31371
  provider: "fal-ai",
31512
31372
  skill_id: "fal-ai-kling-video-o3-pro-reference-to-video",
@@ -31528,34 +31388,17 @@ var registry_default = [
31528
31388
  extract_path: "video.url",
31529
31389
  content_type: "video/mp4"
31530
31390
  }
31531
- }
31532
- ]
31533
- },
31534
- {
31535
- canonical_name: "kling-video-o3-pro-text-to-video",
31536
- aliases: [
31537
- "kling-video-o3-pro-text-to-video"
31538
- ],
31539
- modality: {
31540
- inputs: [
31541
- "text"
31542
- ],
31543
- outputs: [
31544
- "video"
31545
- ]
31546
- },
31547
- providers: [
31391
+ },
31548
31392
  {
31549
31393
  provider: "kling",
31550
31394
  auth_env: "KLING_ACCESS_KEY",
31551
- skill_id: "kling-text-to-video",
31552
- endpoint: "v1/videos/text2video",
31395
+ skill_id: "kling-video-omni",
31396
+ endpoint: "v1/videos/omni-video",
31553
31397
  param_map: {
31554
31398
  prompt: "prompt",
31555
- negative_prompt: "negative_prompt",
31556
31399
  duration: "duration",
31557
- size: "aspect_ratio",
31558
- guidance: "cfg_scale"
31400
+ aspect_ratio: "aspect_ratio",
31401
+ image: "image"
31559
31402
  },
31560
31403
  defaults: {
31561
31404
  model_name: "kling-v3-omni",
@@ -31566,7 +31409,23 @@ var registry_default = [
31566
31409
  extract_path: "task_result.videos[].url",
31567
31410
  content_type: "video/mp4"
31568
31411
  }
31569
- },
31412
+ }
31413
+ ]
31414
+ },
31415
+ {
31416
+ canonical_name: "kling-video-o3-pro-text-to-video",
31417
+ aliases: [
31418
+ "kling-video-o3-pro-text-to-video"
31419
+ ],
31420
+ modality: {
31421
+ inputs: [
31422
+ "text"
31423
+ ],
31424
+ outputs: [
31425
+ "video"
31426
+ ]
31427
+ },
31428
+ providers: [
31570
31429
  {
31571
31430
  provider: "fal-ai",
31572
31431
  skill_id: "fal-ai-kling-video-o3-pro-text-to-video",
@@ -31588,6 +31447,26 @@ var registry_default = [
31588
31447
  extract_path: "video.url",
31589
31448
  content_type: "video/mp4"
31590
31449
  }
31450
+ },
31451
+ {
31452
+ provider: "kling",
31453
+ auth_env: "KLING_ACCESS_KEY",
31454
+ skill_id: "kling-video-omni",
31455
+ endpoint: "v1/videos/omni-video",
31456
+ param_map: {
31457
+ prompt: "prompt",
31458
+ duration: "duration",
31459
+ aspect_ratio: "aspect_ratio"
31460
+ },
31461
+ defaults: {
31462
+ model_name: "kling-v3-omni",
31463
+ mode: "pro"
31464
+ },
31465
+ output_map: {
31466
+ type: "video",
31467
+ extract_path: "task_result.videos[].url",
31468
+ content_type: "video/mp4"
31469
+ }
31591
31470
  }
31592
31471
  ]
31593
31472
  },
@@ -31626,6 +31505,26 @@ var registry_default = [
31626
31505
  extract_path: "images[].url",
31627
31506
  content_type: "video/mp4"
31628
31507
  }
31508
+ },
31509
+ {
31510
+ provider: "kling",
31511
+ auth_env: "KLING_ACCESS_KEY",
31512
+ skill_id: "kling-video-omni",
31513
+ endpoint: "v1/videos/omni-video",
31514
+ param_map: {
31515
+ prompt: "prompt",
31516
+ duration: "duration",
31517
+ aspect_ratio: "aspect_ratio"
31518
+ },
31519
+ defaults: {
31520
+ model_name: "kling-v3-omni",
31521
+ mode: "pro"
31522
+ },
31523
+ output_map: {
31524
+ type: "video",
31525
+ extract_path: "task_result.videos[].url",
31526
+ content_type: "video/mp4"
31527
+ }
31629
31528
  }
31630
31529
  ]
31631
31530
  },
@@ -31664,6 +31563,26 @@ var registry_default = [
31664
31563
  extract_path: "video.url",
31665
31564
  content_type: "video/mp4"
31666
31565
  }
31566
+ },
31567
+ {
31568
+ provider: "kling",
31569
+ auth_env: "KLING_ACCESS_KEY",
31570
+ skill_id: "kling-video-omni",
31571
+ endpoint: "v1/videos/omni-video",
31572
+ param_map: {
31573
+ prompt: "prompt",
31574
+ duration: "duration",
31575
+ aspect_ratio: "aspect_ratio"
31576
+ },
31577
+ defaults: {
31578
+ model_name: "kling-v3-omni",
31579
+ mode: "pro"
31580
+ },
31581
+ output_map: {
31582
+ type: "video",
31583
+ extract_path: "task_result.videos[].url",
31584
+ content_type: "video/mp4"
31585
+ }
31667
31586
  }
31668
31587
  ]
31669
31588
  },
@@ -31681,29 +31600,6 @@ var registry_default = [
31681
31600
  ]
31682
31601
  },
31683
31602
  providers: [
31684
- {
31685
- provider: "kling",
31686
- auth_env: "KLING_ACCESS_KEY",
31687
- skill_id: "kling-image-to-video",
31688
- endpoint: "v1/videos/image2video",
31689
- param_map: {
31690
- prompt: "prompt",
31691
- negative_prompt: "negative_prompt",
31692
- image: "image",
31693
- duration: "duration",
31694
- size: "aspect_ratio",
31695
- guidance: "cfg_scale"
31696
- },
31697
- defaults: {
31698
- model_name: "kling-v3-omni",
31699
- mode: "std"
31700
- },
31701
- output_map: {
31702
- type: "video",
31703
- extract_path: "task_result.videos[].url",
31704
- content_type: "video/mp4"
31705
- }
31706
- },
31707
31603
  {
31708
31604
  provider: "fal-ai",
31709
31605
  skill_id: "fal-ai-kling-video-o3-standard-reference-to-video",
@@ -31725,6 +31621,27 @@ var registry_default = [
31725
31621
  extract_path: "video.url",
31726
31622
  content_type: "video/mp4"
31727
31623
  }
31624
+ },
31625
+ {
31626
+ provider: "kling",
31627
+ auth_env: "KLING_ACCESS_KEY",
31628
+ skill_id: "kling-video-omni",
31629
+ endpoint: "v1/videos/omni-video",
31630
+ param_map: {
31631
+ prompt: "prompt",
31632
+ duration: "duration",
31633
+ aspect_ratio: "aspect_ratio",
31634
+ image: "image"
31635
+ },
31636
+ defaults: {
31637
+ model_name: "kling-v3-omni",
31638
+ mode: "std"
31639
+ },
31640
+ output_map: {
31641
+ type: "video",
31642
+ extract_path: "task_result.videos[].url",
31643
+ content_type: "video/mp4"
31644
+ }
31728
31645
  }
31729
31646
  ]
31730
31647
  },
@@ -31743,28 +31660,6 @@ var registry_default = [
31743
31660
  ]
31744
31661
  },
31745
31662
  providers: [
31746
- {
31747
- provider: "kling",
31748
- auth_env: "KLING_ACCESS_KEY",
31749
- skill_id: "kling-text-to-video",
31750
- endpoint: "v1/videos/text2video",
31751
- param_map: {
31752
- prompt: "prompt",
31753
- negative_prompt: "negative_prompt",
31754
- duration: "duration",
31755
- size: "aspect_ratio",
31756
- guidance: "cfg_scale"
31757
- },
31758
- defaults: {
31759
- model_name: "kling-v3-omni",
31760
- mode: "std"
31761
- },
31762
- output_map: {
31763
- type: "video",
31764
- extract_path: "task_result.videos[].url",
31765
- content_type: "video/mp4"
31766
- }
31767
- },
31768
31663
  {
31769
31664
  provider: "fal-ai",
31770
31665
  skill_id: "fal-ai-kling-video-o3-standard-text-to-video",
@@ -31786,6 +31681,26 @@ var registry_default = [
31786
31681
  extract_path: "video.url",
31787
31682
  content_type: "video/mp4"
31788
31683
  }
31684
+ },
31685
+ {
31686
+ provider: "kling",
31687
+ auth_env: "KLING_ACCESS_KEY",
31688
+ skill_id: "kling-video-omni",
31689
+ endpoint: "v1/videos/omni-video",
31690
+ param_map: {
31691
+ prompt: "prompt",
31692
+ duration: "duration",
31693
+ aspect_ratio: "aspect_ratio"
31694
+ },
31695
+ defaults: {
31696
+ model_name: "kling-v3-omni",
31697
+ mode: "std"
31698
+ },
31699
+ output_map: {
31700
+ type: "video",
31701
+ extract_path: "task_result.videos[].url",
31702
+ content_type: "video/mp4"
31703
+ }
31789
31704
  }
31790
31705
  ]
31791
31706
  },
@@ -31824,6 +31739,26 @@ var registry_default = [
31824
31739
  extract_path: "images[].url",
31825
31740
  content_type: "video/mp4"
31826
31741
  }
31742
+ },
31743
+ {
31744
+ provider: "kling",
31745
+ auth_env: "KLING_ACCESS_KEY",
31746
+ skill_id: "kling-video-omni",
31747
+ endpoint: "v1/videos/omni-video",
31748
+ param_map: {
31749
+ prompt: "prompt",
31750
+ duration: "duration",
31751
+ aspect_ratio: "aspect_ratio"
31752
+ },
31753
+ defaults: {
31754
+ model_name: "kling-v3-omni",
31755
+ mode: "std"
31756
+ },
31757
+ output_map: {
31758
+ type: "video",
31759
+ extract_path: "task_result.videos[].url",
31760
+ content_type: "video/mp4"
31761
+ }
31827
31762
  }
31828
31763
  ]
31829
31764
  },
@@ -31862,6 +31797,26 @@ var registry_default = [
31862
31797
  extract_path: "video.url",
31863
31798
  content_type: "video/mp4"
31864
31799
  }
31800
+ },
31801
+ {
31802
+ provider: "kling",
31803
+ auth_env: "KLING_ACCESS_KEY",
31804
+ skill_id: "kling-video-omni",
31805
+ endpoint: "v1/videos/omni-video",
31806
+ param_map: {
31807
+ prompt: "prompt",
31808
+ duration: "duration",
31809
+ aspect_ratio: "aspect_ratio"
31810
+ },
31811
+ defaults: {
31812
+ model_name: "kling-v3-omni",
31813
+ mode: "std"
31814
+ },
31815
+ output_map: {
31816
+ type: "video",
31817
+ extract_path: "task_result.videos[].url",
31818
+ content_type: "video/mp4"
31819
+ }
31865
31820
  }
31866
31821
  ]
31867
31822
  },
@@ -31880,26 +31835,6 @@ var registry_default = [
31880
31835
  ]
31881
31836
  },
31882
31837
  providers: [
31883
- {
31884
- provider: "kling",
31885
- auth_env: "KLING_ACCESS_KEY",
31886
- skill_id: "kling-avatar",
31887
- endpoint: "v1/videos/avatar",
31888
- param_map: {
31889
- image: "image",
31890
- prompt: "text",
31891
- audio: "audio_url"
31892
- },
31893
- defaults: {
31894
- model_name: "kling-v1",
31895
- mode: "pro"
31896
- },
31897
- output_map: {
31898
- type: "video",
31899
- extract_path: "task_result.videos[].url",
31900
- content_type: "video/mp4"
31901
- }
31902
- },
31903
31838
  {
31904
31839
  provider: "fal-ai",
31905
31840
  skill_id: "fal-ai-kling-video-v1-pro-ai-avatar",
@@ -31920,6 +31855,25 @@ var registry_default = [
31920
31855
  extract_path: "video.url",
31921
31856
  content_type: "video/mp4"
31922
31857
  }
31858
+ },
31859
+ {
31860
+ provider: "kling",
31861
+ auth_env: "KLING_ACCESS_KEY",
31862
+ skill_id: "kling-avatar",
31863
+ endpoint: "v1/videos/avatar/image2video",
31864
+ param_map: {
31865
+ image: "image",
31866
+ audio: "sound_file",
31867
+ prompt: "prompt"
31868
+ },
31869
+ defaults: {
31870
+ mode: "pro"
31871
+ },
31872
+ output_map: {
31873
+ type: "video",
31874
+ extract_path: "task_result.videos[].url",
31875
+ content_type: "video/mp4"
31876
+ }
31923
31877
  }
31924
31878
  ]
31925
31879
  },
@@ -31938,26 +31892,6 @@ var registry_default = [
31938
31892
  ]
31939
31893
  },
31940
31894
  providers: [
31941
- {
31942
- provider: "kling",
31943
- auth_env: "KLING_ACCESS_KEY",
31944
- skill_id: "kling-avatar",
31945
- endpoint: "v1/videos/avatar",
31946
- param_map: {
31947
- image: "image",
31948
- prompt: "text",
31949
- audio: "audio_url"
31950
- },
31951
- defaults: {
31952
- model_name: "kling-v1",
31953
- mode: "std"
31954
- },
31955
- output_map: {
31956
- type: "video",
31957
- extract_path: "task_result.videos[].url",
31958
- content_type: "video/mp4"
31959
- }
31960
- },
31961
31895
  {
31962
31896
  provider: "fal-ai",
31963
31897
  skill_id: "fal-ai-kling-video-v1-standard-ai-avatar",
@@ -31978,6 +31912,25 @@ var registry_default = [
31978
31912
  extract_path: "video.url",
31979
31913
  content_type: "video/mp4"
31980
31914
  }
31915
+ },
31916
+ {
31917
+ provider: "kling",
31918
+ auth_env: "KLING_ACCESS_KEY",
31919
+ skill_id: "kling-avatar",
31920
+ endpoint: "v1/videos/avatar/image2video",
31921
+ param_map: {
31922
+ image: "image",
31923
+ audio: "sound_file",
31924
+ prompt: "prompt"
31925
+ },
31926
+ defaults: {
31927
+ mode: "std"
31928
+ },
31929
+ output_map: {
31930
+ type: "video",
31931
+ extract_path: "task_result.videos[].url",
31932
+ content_type: "video/mp4"
31933
+ }
31981
31934
  }
31982
31935
  ]
31983
31936
  },
@@ -31995,24 +31948,6 @@ var registry_default = [
31995
31948
  ]
31996
31949
  },
31997
31950
  providers: [
31998
- {
31999
- provider: "kling",
32000
- auth_env: "KLING_ACCESS_KEY",
32001
- skill_id: "kling-video-effects",
32002
- endpoint: "v1/videos/effects",
32003
- param_map: {
32004
- image: "image"
32005
- },
32006
- defaults: {
32007
- model_name: "kling-v1",
32008
- mode: "std"
32009
- },
32010
- output_map: {
32011
- type: "video",
32012
- extract_path: "task_result.videos[].url",
32013
- content_type: "video/mp4"
32014
- }
32015
- },
32016
31951
  {
32017
31952
  provider: "fal-ai",
32018
31953
  skill_id: "fal-ai-kling-video-v1-standard-effects",
@@ -32034,6 +31969,20 @@ var registry_default = [
32034
31969
  extract_path: "video.url",
32035
31970
  content_type: "video/mp4"
32036
31971
  }
31972
+ },
31973
+ {
31974
+ provider: "kling",
31975
+ auth_env: "KLING_ACCESS_KEY",
31976
+ skill_id: "kling-video-effects",
31977
+ endpoint: "v1/videos/effects",
31978
+ param_map: {
31979
+ image: "image"
31980
+ },
31981
+ output_map: {
31982
+ type: "video",
31983
+ extract_path: "task_result.videos[].url",
31984
+ content_type: "video/mp4"
31985
+ }
32037
31986
  }
32038
31987
  ]
32039
31988
  },
@@ -32053,29 +32002,6 @@ var registry_default = [
32053
32002
  ]
32054
32003
  },
32055
32004
  providers: [
32056
- {
32057
- provider: "kling",
32058
- auth_env: "KLING_ACCESS_KEY",
32059
- skill_id: "kling-image-to-video",
32060
- endpoint: "v1/videos/image2video",
32061
- param_map: {
32062
- prompt: "prompt",
32063
- negative_prompt: "negative_prompt",
32064
- image: "image",
32065
- duration: "duration",
32066
- size: "aspect_ratio",
32067
- guidance: "cfg_scale"
32068
- },
32069
- defaults: {
32070
- model_name: "kling-v1",
32071
- mode: "std"
32072
- },
32073
- output_map: {
32074
- type: "video",
32075
- extract_path: "task_result.videos[].url",
32076
- content_type: "video/mp4"
32077
- }
32078
- },
32079
32005
  {
32080
32006
  provider: "fal-ai",
32081
32007
  skill_id: "fal-ai-kling-video-v1-standard-image-to-video",
@@ -32096,34 +32022,18 @@ var registry_default = [
32096
32022
  extract_path: "video.url",
32097
32023
  content_type: "video/mp4"
32098
32024
  }
32099
- }
32100
- ]
32101
- },
32102
- {
32103
- canonical_name: "kling-video-v1-standard-text-to-video",
32104
- aliases: [
32105
- "kling-video-v1-standard-text-to-video"
32106
- ],
32107
- modality: {
32108
- inputs: [
32109
- "text"
32110
- ],
32111
- outputs: [
32112
- "video"
32113
- ]
32114
- },
32115
- providers: [
32025
+ },
32116
32026
  {
32117
32027
  provider: "kling",
32118
32028
  auth_env: "KLING_ACCESS_KEY",
32119
- skill_id: "kling-text-to-video",
32120
- endpoint: "v1/videos/text2video",
32029
+ skill_id: "kling-image2video",
32030
+ endpoint: "v1/videos/image2video",
32121
32031
  param_map: {
32122
32032
  prompt: "prompt",
32123
32033
  negative_prompt: "negative_prompt",
32124
32034
  duration: "duration",
32125
- size: "aspect_ratio",
32126
- guidance: "cfg_scale"
32035
+ aspect_ratio: "aspect_ratio",
32036
+ image: "image"
32127
32037
  },
32128
32038
  defaults: {
32129
32039
  model_name: "kling-v1",
@@ -32134,7 +32044,23 @@ var registry_default = [
32134
32044
  extract_path: "task_result.videos[].url",
32135
32045
  content_type: "video/mp4"
32136
32046
  }
32137
- },
32047
+ }
32048
+ ]
32049
+ },
32050
+ {
32051
+ canonical_name: "kling-video-v1-standard-text-to-video",
32052
+ aliases: [
32053
+ "kling-video-v1-standard-text-to-video"
32054
+ ],
32055
+ modality: {
32056
+ inputs: [
32057
+ "text"
32058
+ ],
32059
+ outputs: [
32060
+ "video"
32061
+ ]
32062
+ },
32063
+ providers: [
32138
32064
  {
32139
32065
  provider: "fal-ai",
32140
32066
  skill_id: "fal-ai-kling-video-v1-standard-text-to-video",
@@ -32156,6 +32082,27 @@ var registry_default = [
32156
32082
  extract_path: "video.url",
32157
32083
  content_type: "video/mp4"
32158
32084
  }
32085
+ },
32086
+ {
32087
+ provider: "kling",
32088
+ auth_env: "KLING_ACCESS_KEY",
32089
+ skill_id: "kling-text2video",
32090
+ endpoint: "v1/videos/text2video",
32091
+ param_map: {
32092
+ prompt: "prompt",
32093
+ negative_prompt: "negative_prompt",
32094
+ duration: "duration",
32095
+ aspect_ratio: "aspect_ratio"
32096
+ },
32097
+ defaults: {
32098
+ model_name: "kling-v1",
32099
+ mode: "std"
32100
+ },
32101
+ output_map: {
32102
+ type: "video",
32103
+ extract_path: "task_result.videos[].url",
32104
+ content_type: "video/mp4"
32105
+ }
32159
32106
  }
32160
32107
  ]
32161
32108
  },
@@ -32173,23 +32120,6 @@ var registry_default = [
32173
32120
  ]
32174
32121
  },
32175
32122
  providers: [
32176
- {
32177
- provider: "kling",
32178
- auth_env: "KLING_ACCESS_KEY",
32179
- skill_id: "kling-tts",
32180
- endpoint: "v1/audios/tts",
32181
- param_map: {
32182
- prompt: "text"
32183
- },
32184
- defaults: {
32185
- model_name: "kling-v1"
32186
- },
32187
- output_map: {
32188
- type: "audio",
32189
- extract_path: "task_result.audios[].url",
32190
- content_type: "audio/mpeg"
32191
- }
32192
- },
32193
32123
  {
32194
32124
  provider: "fal-ai",
32195
32125
  skill_id: "fal-ai-kling-video-v1-tts",
@@ -32206,6 +32136,20 @@ var registry_default = [
32206
32136
  extract_path: "audio.url",
32207
32137
  content_type: "audio/mpeg"
32208
32138
  }
32139
+ },
32140
+ {
32141
+ provider: "kling",
32142
+ auth_env: "KLING_ACCESS_KEY",
32143
+ skill_id: "kling-tts",
32144
+ endpoint: "v1/audio/tts",
32145
+ param_map: {
32146
+ prompt: "text"
32147
+ },
32148
+ output_map: {
32149
+ type: "audio",
32150
+ extract_path: "task_result.audios[].url",
32151
+ content_type: "audio/mpeg"
32152
+ }
32209
32153
  }
32210
32154
  ]
32211
32155
  },
@@ -32223,24 +32167,6 @@ var registry_default = [
32223
32167
  ]
32224
32168
  },
32225
32169
  providers: [
32226
- {
32227
- provider: "kling",
32228
- auth_env: "KLING_ACCESS_KEY",
32229
- skill_id: "kling-video-effects",
32230
- endpoint: "v1/videos/effects",
32231
- param_map: {
32232
- image: "image"
32233
- },
32234
- defaults: {
32235
- model_name: "kling-v1-5",
32236
- mode: "pro"
32237
- },
32238
- output_map: {
32239
- type: "video",
32240
- extract_path: "task_result.videos[].url",
32241
- content_type: "video/mp4"
32242
- }
32243
- },
32244
32170
  {
32245
32171
  provider: "fal-ai",
32246
32172
  skill_id: "fal-ai-kling-video-v1.5-pro-effects",
@@ -32262,6 +32188,20 @@ var registry_default = [
32262
32188
  extract_path: "video.url",
32263
32189
  content_type: "video/mp4"
32264
32190
  }
32191
+ },
32192
+ {
32193
+ provider: "kling",
32194
+ auth_env: "KLING_ACCESS_KEY",
32195
+ skill_id: "kling-video-effects",
32196
+ endpoint: "v1/videos/effects",
32197
+ param_map: {
32198
+ image: "image"
32199
+ },
32200
+ output_map: {
32201
+ type: "video",
32202
+ extract_path: "task_result.videos[].url",
32203
+ content_type: "video/mp4"
32204
+ }
32265
32205
  }
32266
32206
  ]
32267
32207
  },
@@ -32281,29 +32221,6 @@ var registry_default = [
32281
32221
  ]
32282
32222
  },
32283
32223
  providers: [
32284
- {
32285
- provider: "kling",
32286
- auth_env: "KLING_ACCESS_KEY",
32287
- skill_id: "kling-image-to-video",
32288
- endpoint: "v1/videos/image2video",
32289
- param_map: {
32290
- prompt: "prompt",
32291
- negative_prompt: "negative_prompt",
32292
- image: "image",
32293
- duration: "duration",
32294
- size: "aspect_ratio",
32295
- guidance: "cfg_scale"
32296
- },
32297
- defaults: {
32298
- model_name: "kling-v1-5",
32299
- mode: "pro"
32300
- },
32301
- output_map: {
32302
- type: "video",
32303
- extract_path: "task_result.videos[].url",
32304
- content_type: "video/mp4"
32305
- }
32306
- },
32307
32224
  {
32308
32225
  provider: "fal-ai",
32309
32226
  skill_id: "fal-ai-kling-video-v1.5-pro-image-to-video",
@@ -32324,34 +32241,18 @@ var registry_default = [
32324
32241
  extract_path: "video.url",
32325
32242
  content_type: "video/mp4"
32326
32243
  }
32327
- }
32328
- ]
32329
- },
32330
- {
32331
- canonical_name: "kling-video-v1.5-pro-text-to-video",
32332
- aliases: [
32333
- "kling-video-v1.5-pro-text-to-video"
32334
- ],
32335
- modality: {
32336
- inputs: [
32337
- "text"
32338
- ],
32339
- outputs: [
32340
- "video"
32341
- ]
32342
- },
32343
- providers: [
32244
+ },
32344
32245
  {
32345
32246
  provider: "kling",
32346
32247
  auth_env: "KLING_ACCESS_KEY",
32347
- skill_id: "kling-text-to-video",
32348
- endpoint: "v1/videos/text2video",
32248
+ skill_id: "kling-image2video",
32249
+ endpoint: "v1/videos/image2video",
32349
32250
  param_map: {
32350
32251
  prompt: "prompt",
32351
32252
  negative_prompt: "negative_prompt",
32352
32253
  duration: "duration",
32353
- size: "aspect_ratio",
32354
- guidance: "cfg_scale"
32254
+ aspect_ratio: "aspect_ratio",
32255
+ image: "image"
32355
32256
  },
32356
32257
  defaults: {
32357
32258
  model_name: "kling-v1-5",
@@ -32362,7 +32263,23 @@ var registry_default = [
32362
32263
  extract_path: "task_result.videos[].url",
32363
32264
  content_type: "video/mp4"
32364
32265
  }
32365
- },
32266
+ }
32267
+ ]
32268
+ },
32269
+ {
32270
+ canonical_name: "kling-video-v1.5-pro-text-to-video",
32271
+ aliases: [
32272
+ "kling-video-v1.5-pro-text-to-video"
32273
+ ],
32274
+ modality: {
32275
+ inputs: [
32276
+ "text"
32277
+ ],
32278
+ outputs: [
32279
+ "video"
32280
+ ]
32281
+ },
32282
+ providers: [
32366
32283
  {
32367
32284
  provider: "fal-ai",
32368
32285
  skill_id: "fal-ai-kling-video-v1.5-pro-text-to-video",
@@ -32387,38 +32304,20 @@ var registry_default = [
32387
32304
  }
32388
32305
  ]
32389
32306
  },
32390
- {
32391
- canonical_name: "kling-video-v1.6-pro-effects",
32392
- aliases: [
32393
- "kling-video-v1.6-pro-effects"
32394
- ],
32395
- modality: {
32396
- inputs: [
32397
- "text"
32398
- ],
32399
- outputs: [
32400
- "video"
32401
- ]
32402
- },
32403
- providers: [
32404
- {
32405
- provider: "kling",
32406
- auth_env: "KLING_ACCESS_KEY",
32407
- skill_id: "kling-video-effects",
32408
- endpoint: "v1/videos/effects",
32409
- param_map: {
32410
- image: "image"
32411
- },
32412
- defaults: {
32413
- model_name: "kling-v1-6",
32414
- mode: "pro"
32415
- },
32416
- output_map: {
32417
- type: "video",
32418
- extract_path: "task_result.videos[].url",
32419
- content_type: "video/mp4"
32420
- }
32421
- },
32307
+ {
32308
+ canonical_name: "kling-video-v1.6-pro-effects",
32309
+ aliases: [
32310
+ "kling-video-v1.6-pro-effects"
32311
+ ],
32312
+ modality: {
32313
+ inputs: [
32314
+ "text"
32315
+ ],
32316
+ outputs: [
32317
+ "video"
32318
+ ]
32319
+ },
32320
+ providers: [
32422
32321
  {
32423
32322
  provider: "fal-ai",
32424
32323
  skill_id: "fal-ai-kling-video-v1.6-pro-effects",
@@ -32440,6 +32339,20 @@ var registry_default = [
32440
32339
  extract_path: "video.url",
32441
32340
  content_type: "video/mp4"
32442
32341
  }
32342
+ },
32343
+ {
32344
+ provider: "kling",
32345
+ auth_env: "KLING_ACCESS_KEY",
32346
+ skill_id: "kling-video-effects",
32347
+ endpoint: "v1/videos/effects",
32348
+ param_map: {
32349
+ image: "image"
32350
+ },
32351
+ output_map: {
32352
+ type: "video",
32353
+ extract_path: "task_result.videos[].url",
32354
+ content_type: "video/mp4"
32355
+ }
32443
32356
  }
32444
32357
  ]
32445
32358
  },
@@ -32458,29 +32371,6 @@ var registry_default = [
32458
32371
  ]
32459
32372
  },
32460
32373
  providers: [
32461
- {
32462
- provider: "kling",
32463
- auth_env: "KLING_ACCESS_KEY",
32464
- skill_id: "kling-image-to-video",
32465
- endpoint: "v1/videos/image2video",
32466
- param_map: {
32467
- prompt: "prompt",
32468
- negative_prompt: "negative_prompt",
32469
- image: "image",
32470
- duration: "duration",
32471
- size: "aspect_ratio",
32472
- guidance: "cfg_scale"
32473
- },
32474
- defaults: {
32475
- model_name: "kling-v1-6",
32476
- mode: "pro"
32477
- },
32478
- output_map: {
32479
- type: "video",
32480
- extract_path: "task_result.videos[].url",
32481
- content_type: "video/mp4"
32482
- }
32483
- },
32484
32374
  {
32485
32375
  provider: "fal-ai",
32486
32376
  skill_id: "fal-ai-kling-video-v1.6-pro-elements",
@@ -32520,29 +32410,6 @@ var registry_default = [
32520
32410
  ]
32521
32411
  },
32522
32412
  providers: [
32523
- {
32524
- provider: "kling",
32525
- auth_env: "KLING_ACCESS_KEY",
32526
- skill_id: "kling-image-to-video",
32527
- endpoint: "v1/videos/image2video",
32528
- param_map: {
32529
- prompt: "prompt",
32530
- negative_prompt: "negative_prompt",
32531
- image: "image",
32532
- duration: "duration",
32533
- size: "aspect_ratio",
32534
- guidance: "cfg_scale"
32535
- },
32536
- defaults: {
32537
- model_name: "kling-v1-6",
32538
- mode: "pro"
32539
- },
32540
- output_map: {
32541
- type: "video",
32542
- extract_path: "task_result.videos[].url",
32543
- content_type: "video/mp4"
32544
- }
32545
- },
32546
32413
  {
32547
32414
  provider: "fal-ai",
32548
32415
  skill_id: "fal-ai-kling-video-v1.6-pro-image-to-video",
@@ -32563,34 +32430,18 @@ var registry_default = [
32563
32430
  extract_path: "video.url",
32564
32431
  content_type: "video/mp4"
32565
32432
  }
32566
- }
32567
- ]
32568
- },
32569
- {
32570
- canonical_name: "kling-video-v1.6-pro-text-to-video",
32571
- aliases: [
32572
- "kling-video-v1.6-pro-text-to-video"
32573
- ],
32574
- modality: {
32575
- inputs: [
32576
- "text"
32577
- ],
32578
- outputs: [
32579
- "video"
32580
- ]
32581
- },
32582
- providers: [
32433
+ },
32583
32434
  {
32584
32435
  provider: "kling",
32585
32436
  auth_env: "KLING_ACCESS_KEY",
32586
- skill_id: "kling-text-to-video",
32587
- endpoint: "v1/videos/text2video",
32437
+ skill_id: "kling-image2video",
32438
+ endpoint: "v1/videos/image2video",
32588
32439
  param_map: {
32589
32440
  prompt: "prompt",
32590
32441
  negative_prompt: "negative_prompt",
32591
32442
  duration: "duration",
32592
- size: "aspect_ratio",
32593
- guidance: "cfg_scale"
32443
+ aspect_ratio: "aspect_ratio",
32444
+ image: "image"
32594
32445
  },
32595
32446
  defaults: {
32596
32447
  model_name: "kling-v1-6",
@@ -32601,7 +32452,23 @@ var registry_default = [
32601
32452
  extract_path: "task_result.videos[].url",
32602
32453
  content_type: "video/mp4"
32603
32454
  }
32604
- },
32455
+ }
32456
+ ]
32457
+ },
32458
+ {
32459
+ canonical_name: "kling-video-v1.6-pro-text-to-video",
32460
+ aliases: [
32461
+ "kling-video-v1.6-pro-text-to-video"
32462
+ ],
32463
+ modality: {
32464
+ inputs: [
32465
+ "text"
32466
+ ],
32467
+ outputs: [
32468
+ "video"
32469
+ ]
32470
+ },
32471
+ providers: [
32605
32472
  {
32606
32473
  provider: "fal-ai",
32607
32474
  skill_id: "fal-ai-kling-video-v1.6-pro-text-to-video",
@@ -32623,6 +32490,27 @@ var registry_default = [
32623
32490
  extract_path: "video.url",
32624
32491
  content_type: "video/mp4"
32625
32492
  }
32493
+ },
32494
+ {
32495
+ provider: "kling",
32496
+ auth_env: "KLING_ACCESS_KEY",
32497
+ skill_id: "kling-text2video",
32498
+ endpoint: "v1/videos/text2video",
32499
+ param_map: {
32500
+ prompt: "prompt",
32501
+ negative_prompt: "negative_prompt",
32502
+ duration: "duration",
32503
+ aspect_ratio: "aspect_ratio"
32504
+ },
32505
+ defaults: {
32506
+ model_name: "kling-v1-6",
32507
+ mode: "pro"
32508
+ },
32509
+ output_map: {
32510
+ type: "video",
32511
+ extract_path: "task_result.videos[].url",
32512
+ content_type: "video/mp4"
32513
+ }
32626
32514
  }
32627
32515
  ]
32628
32516
  },
@@ -32640,24 +32528,6 @@ var registry_default = [
32640
32528
  ]
32641
32529
  },
32642
32530
  providers: [
32643
- {
32644
- provider: "kling",
32645
- auth_env: "KLING_ACCESS_KEY",
32646
- skill_id: "kling-video-effects",
32647
- endpoint: "v1/videos/effects",
32648
- param_map: {
32649
- image: "image"
32650
- },
32651
- defaults: {
32652
- model_name: "kling-v1-6",
32653
- mode: "std"
32654
- },
32655
- output_map: {
32656
- type: "video",
32657
- extract_path: "task_result.videos[].url",
32658
- content_type: "video/mp4"
32659
- }
32660
- },
32661
32531
  {
32662
32532
  provider: "fal-ai",
32663
32533
  skill_id: "fal-ai-kling-video-v1.6-standard-effects",
@@ -32679,6 +32549,20 @@ var registry_default = [
32679
32549
  extract_path: "video.url",
32680
32550
  content_type: "video/mp4"
32681
32551
  }
32552
+ },
32553
+ {
32554
+ provider: "kling",
32555
+ auth_env: "KLING_ACCESS_KEY",
32556
+ skill_id: "kling-video-effects",
32557
+ endpoint: "v1/videos/effects",
32558
+ param_map: {
32559
+ image: "image"
32560
+ },
32561
+ output_map: {
32562
+ type: "video",
32563
+ extract_path: "task_result.videos[].url",
32564
+ content_type: "video/mp4"
32565
+ }
32682
32566
  }
32683
32567
  ]
32684
32568
  },
@@ -32697,29 +32581,6 @@ var registry_default = [
32697
32581
  ]
32698
32582
  },
32699
32583
  providers: [
32700
- {
32701
- provider: "kling",
32702
- auth_env: "KLING_ACCESS_KEY",
32703
- skill_id: "kling-image-to-video",
32704
- endpoint: "v1/videos/image2video",
32705
- param_map: {
32706
- prompt: "prompt",
32707
- negative_prompt: "negative_prompt",
32708
- image: "image",
32709
- duration: "duration",
32710
- size: "aspect_ratio",
32711
- guidance: "cfg_scale"
32712
- },
32713
- defaults: {
32714
- model_name: "kling-v1-6",
32715
- mode: "std"
32716
- },
32717
- output_map: {
32718
- type: "video",
32719
- extract_path: "task_result.videos[].url",
32720
- content_type: "video/mp4"
32721
- }
32722
- },
32723
32584
  {
32724
32585
  provider: "fal-ai",
32725
32586
  skill_id: "fal-ai-kling-video-v1.6-standard-elements",
@@ -32759,29 +32620,6 @@ var registry_default = [
32759
32620
  ]
32760
32621
  },
32761
32622
  providers: [
32762
- {
32763
- provider: "kling",
32764
- auth_env: "KLING_ACCESS_KEY",
32765
- skill_id: "kling-image-to-video",
32766
- endpoint: "v1/videos/image2video",
32767
- param_map: {
32768
- prompt: "prompt",
32769
- negative_prompt: "negative_prompt",
32770
- image: "image",
32771
- duration: "duration",
32772
- size: "aspect_ratio",
32773
- guidance: "cfg_scale"
32774
- },
32775
- defaults: {
32776
- model_name: "kling-v1-6",
32777
- mode: "std"
32778
- },
32779
- output_map: {
32780
- type: "video",
32781
- extract_path: "task_result.videos[].url",
32782
- content_type: "video/mp4"
32783
- }
32784
- },
32785
32623
  {
32786
32624
  provider: "fal-ai",
32787
32625
  skill_id: "fal-ai-kling-video-v1.6-standard-image-to-video",
@@ -32802,34 +32640,18 @@ var registry_default = [
32802
32640
  extract_path: "video.url",
32803
32641
  content_type: "video/mp4"
32804
32642
  }
32805
- }
32806
- ]
32807
- },
32808
- {
32809
- canonical_name: "kling-video-v1.6-standard-text-to-video",
32810
- aliases: [
32811
- "kling-video-v1.6-standard-text-to-video"
32812
- ],
32813
- modality: {
32814
- inputs: [
32815
- "text"
32816
- ],
32817
- outputs: [
32818
- "video"
32819
- ]
32820
- },
32821
- providers: [
32643
+ },
32822
32644
  {
32823
32645
  provider: "kling",
32824
32646
  auth_env: "KLING_ACCESS_KEY",
32825
- skill_id: "kling-text-to-video",
32826
- endpoint: "v1/videos/text2video",
32647
+ skill_id: "kling-image2video",
32648
+ endpoint: "v1/videos/image2video",
32827
32649
  param_map: {
32828
32650
  prompt: "prompt",
32829
32651
  negative_prompt: "negative_prompt",
32830
32652
  duration: "duration",
32831
- size: "aspect_ratio",
32832
- guidance: "cfg_scale"
32653
+ aspect_ratio: "aspect_ratio",
32654
+ image: "image"
32833
32655
  },
32834
32656
  defaults: {
32835
32657
  model_name: "kling-v1-6",
@@ -32840,7 +32662,23 @@ var registry_default = [
32840
32662
  extract_path: "task_result.videos[].url",
32841
32663
  content_type: "video/mp4"
32842
32664
  }
32843
- },
32665
+ }
32666
+ ]
32667
+ },
32668
+ {
32669
+ canonical_name: "kling-video-v1.6-standard-text-to-video",
32670
+ aliases: [
32671
+ "kling-video-v1.6-standard-text-to-video"
32672
+ ],
32673
+ modality: {
32674
+ inputs: [
32675
+ "text"
32676
+ ],
32677
+ outputs: [
32678
+ "video"
32679
+ ]
32680
+ },
32681
+ providers: [
32844
32682
  {
32845
32683
  provider: "fal-ai",
32846
32684
  skill_id: "fal-ai-kling-video-v1.6-standard-text-to-video",
@@ -32862,6 +32700,27 @@ var registry_default = [
32862
32700
  extract_path: "video.url",
32863
32701
  content_type: "video/mp4"
32864
32702
  }
32703
+ },
32704
+ {
32705
+ provider: "kling",
32706
+ auth_env: "KLING_ACCESS_KEY",
32707
+ skill_id: "kling-text2video",
32708
+ endpoint: "v1/videos/text2video",
32709
+ param_map: {
32710
+ prompt: "prompt",
32711
+ negative_prompt: "negative_prompt",
32712
+ duration: "duration",
32713
+ aspect_ratio: "aspect_ratio"
32714
+ },
32715
+ defaults: {
32716
+ model_name: "kling-v1-6",
32717
+ mode: "std"
32718
+ },
32719
+ output_map: {
32720
+ type: "video",
32721
+ extract_path: "task_result.videos[].url",
32722
+ content_type: "video/mp4"
32723
+ }
32865
32724
  }
32866
32725
  ]
32867
32726
  },
@@ -32881,28 +32740,6 @@ var registry_default = [
32881
32740
  ]
32882
32741
  },
32883
32742
  providers: [
32884
- {
32885
- provider: "kling",
32886
- auth_env: "KLING_ACCESS_KEY",
32887
- skill_id: "kling-image-to-video",
32888
- endpoint: "v1/videos/image2video",
32889
- param_map: {
32890
- prompt: "prompt",
32891
- negative_prompt: "negative_prompt",
32892
- image: "image",
32893
- duration: "duration",
32894
- size: "aspect_ratio",
32895
- guidance: "cfg_scale"
32896
- },
32897
- defaults: {
32898
- model_name: "kling-v2-master"
32899
- },
32900
- output_map: {
32901
- type: "video",
32902
- extract_path: "task_result.videos[].url",
32903
- content_type: "video/mp4"
32904
- }
32905
- },
32906
32743
  {
32907
32744
  provider: "fal-ai",
32908
32745
  skill_id: "fal-ai-kling-video-v2-master-image-to-video",
@@ -32923,6 +32760,27 @@ var registry_default = [
32923
32760
  extract_path: "video.url",
32924
32761
  content_type: "video/mp4"
32925
32762
  }
32763
+ },
32764
+ {
32765
+ provider: "kling",
32766
+ auth_env: "KLING_ACCESS_KEY",
32767
+ skill_id: "kling-image2video",
32768
+ endpoint: "v1/videos/image2video",
32769
+ param_map: {
32770
+ prompt: "prompt",
32771
+ negative_prompt: "negative_prompt",
32772
+ duration: "duration",
32773
+ aspect_ratio: "aspect_ratio",
32774
+ image: "image"
32775
+ },
32776
+ defaults: {
32777
+ model_name: "kling-v2-master"
32778
+ },
32779
+ output_map: {
32780
+ type: "video",
32781
+ extract_path: "task_result.videos[].url",
32782
+ content_type: "video/mp4"
32783
+ }
32926
32784
  }
32927
32785
  ]
32928
32786
  },
@@ -32940,27 +32798,6 @@ var registry_default = [
32940
32798
  ]
32941
32799
  },
32942
32800
  providers: [
32943
- {
32944
- provider: "kling",
32945
- auth_env: "KLING_ACCESS_KEY",
32946
- skill_id: "kling-text-to-video",
32947
- endpoint: "v1/videos/text2video",
32948
- param_map: {
32949
- prompt: "prompt",
32950
- negative_prompt: "negative_prompt",
32951
- duration: "duration",
32952
- size: "aspect_ratio",
32953
- guidance: "cfg_scale"
32954
- },
32955
- defaults: {
32956
- model_name: "kling-v2-master"
32957
- },
32958
- output_map: {
32959
- type: "video",
32960
- extract_path: "task_result.videos[].url",
32961
- content_type: "video/mp4"
32962
- }
32963
- },
32964
32801
  {
32965
32802
  provider: "fal-ai",
32966
32803
  skill_id: "fal-ai-kling-video-v2-master-text-to-video",
@@ -32982,6 +32819,26 @@ var registry_default = [
32982
32819
  extract_path: "video.url",
32983
32820
  content_type: "video/mp4"
32984
32821
  }
32822
+ },
32823
+ {
32824
+ provider: "kling",
32825
+ auth_env: "KLING_ACCESS_KEY",
32826
+ skill_id: "kling-text2video",
32827
+ endpoint: "v1/videos/text2video",
32828
+ param_map: {
32829
+ prompt: "prompt",
32830
+ negative_prompt: "negative_prompt",
32831
+ duration: "duration",
32832
+ aspect_ratio: "aspect_ratio"
32833
+ },
32834
+ defaults: {
32835
+ model_name: "kling-v2-master"
32836
+ },
32837
+ output_map: {
32838
+ type: "video",
32839
+ extract_path: "task_result.videos[].url",
32840
+ content_type: "video/mp4"
32841
+ }
32985
32842
  }
32986
32843
  ]
32987
32844
  },
@@ -33001,28 +32858,6 @@ var registry_default = [
33001
32858
  ]
33002
32859
  },
33003
32860
  providers: [
33004
- {
33005
- provider: "kling",
33006
- auth_env: "KLING_ACCESS_KEY",
33007
- skill_id: "kling-image-to-video",
33008
- endpoint: "v1/videos/image2video",
33009
- param_map: {
33010
- prompt: "prompt",
33011
- negative_prompt: "negative_prompt",
33012
- image: "image",
33013
- duration: "duration",
33014
- size: "aspect_ratio",
33015
- guidance: "cfg_scale"
33016
- },
33017
- defaults: {
33018
- model_name: "kling-v2-1-master"
33019
- },
33020
- output_map: {
33021
- type: "video",
33022
- extract_path: "task_result.videos[].url",
33023
- content_type: "video/mp4"
33024
- }
33025
- },
33026
32861
  {
33027
32862
  provider: "fal-ai",
33028
32863
  skill_id: "fal-ai-kling-video-v2.1-master-image-to-video",
@@ -33043,6 +32878,27 @@ var registry_default = [
33043
32878
  extract_path: "video.url",
33044
32879
  content_type: "video/mp4"
33045
32880
  }
32881
+ },
32882
+ {
32883
+ provider: "kling",
32884
+ auth_env: "KLING_ACCESS_KEY",
32885
+ skill_id: "kling-image2video",
32886
+ endpoint: "v1/videos/image2video",
32887
+ param_map: {
32888
+ prompt: "prompt",
32889
+ negative_prompt: "negative_prompt",
32890
+ duration: "duration",
32891
+ aspect_ratio: "aspect_ratio",
32892
+ image: "image"
32893
+ },
32894
+ defaults: {
32895
+ model_name: "kling-v2-1-master"
32896
+ },
32897
+ output_map: {
32898
+ type: "video",
32899
+ extract_path: "task_result.videos[].url",
32900
+ content_type: "video/mp4"
32901
+ }
33046
32902
  }
33047
32903
  ]
33048
32904
  },
@@ -33060,27 +32916,6 @@ var registry_default = [
33060
32916
  ]
33061
32917
  },
33062
32918
  providers: [
33063
- {
33064
- provider: "kling",
33065
- auth_env: "KLING_ACCESS_KEY",
33066
- skill_id: "kling-text-to-video",
33067
- endpoint: "v1/videos/text2video",
33068
- param_map: {
33069
- prompt: "prompt",
33070
- negative_prompt: "negative_prompt",
33071
- duration: "duration",
33072
- size: "aspect_ratio",
33073
- guidance: "cfg_scale"
33074
- },
33075
- defaults: {
33076
- model_name: "kling-v2-1-master"
33077
- },
33078
- output_map: {
33079
- type: "video",
33080
- extract_path: "task_result.videos[].url",
33081
- content_type: "video/mp4"
33082
- }
33083
- },
33084
32919
  {
33085
32920
  provider: "fal-ai",
33086
32921
  skill_id: "fal-ai-kling-video-v2.1-master-text-to-video",
@@ -33102,6 +32937,26 @@ var registry_default = [
33102
32937
  extract_path: "video.url",
33103
32938
  content_type: "video/mp4"
33104
32939
  }
32940
+ },
32941
+ {
32942
+ provider: "kling",
32943
+ auth_env: "KLING_ACCESS_KEY",
32944
+ skill_id: "kling-text2video",
32945
+ endpoint: "v1/videos/text2video",
32946
+ param_map: {
32947
+ prompt: "prompt",
32948
+ negative_prompt: "negative_prompt",
32949
+ duration: "duration",
32950
+ aspect_ratio: "aspect_ratio"
32951
+ },
32952
+ defaults: {
32953
+ model_name: "kling-v2-1-master"
32954
+ },
32955
+ output_map: {
32956
+ type: "video",
32957
+ extract_path: "task_result.videos[].url",
32958
+ content_type: "video/mp4"
32959
+ }
33105
32960
  }
33106
32961
  ]
33107
32962
  },
@@ -33121,29 +32976,6 @@ var registry_default = [
33121
32976
  ]
33122
32977
  },
33123
32978
  providers: [
33124
- {
33125
- provider: "kling",
33126
- auth_env: "KLING_ACCESS_KEY",
33127
- skill_id: "kling-image-to-video",
33128
- endpoint: "v1/videos/image2video",
33129
- param_map: {
33130
- prompt: "prompt",
33131
- negative_prompt: "negative_prompt",
33132
- image: "image",
33133
- duration: "duration",
33134
- size: "aspect_ratio",
33135
- guidance: "cfg_scale"
33136
- },
33137
- defaults: {
33138
- model_name: "kling-v2-1",
33139
- mode: "pro"
33140
- },
33141
- output_map: {
33142
- type: "video",
33143
- extract_path: "task_result.videos[].url",
33144
- content_type: "video/mp4"
33145
- }
33146
- },
33147
32979
  {
33148
32980
  provider: "fal-ai",
33149
32981
  skill_id: "fal-ai-kling-video-v2.1-pro-image-to-video",
@@ -33164,6 +32996,28 @@ var registry_default = [
33164
32996
  extract_path: "video.url",
33165
32997
  content_type: "video/mp4"
33166
32998
  }
32999
+ },
33000
+ {
33001
+ provider: "kling",
33002
+ auth_env: "KLING_ACCESS_KEY",
33003
+ skill_id: "kling-image2video",
33004
+ endpoint: "v1/videos/image2video",
33005
+ param_map: {
33006
+ prompt: "prompt",
33007
+ negative_prompt: "negative_prompt",
33008
+ duration: "duration",
33009
+ aspect_ratio: "aspect_ratio",
33010
+ image: "image"
33011
+ },
33012
+ defaults: {
33013
+ model_name: "kling-v2-1",
33014
+ mode: "pro"
33015
+ },
33016
+ output_map: {
33017
+ type: "video",
33018
+ extract_path: "task_result.videos[].url",
33019
+ content_type: "video/mp4"
33020
+ }
33167
33021
  }
33168
33022
  ]
33169
33023
  },
@@ -33183,29 +33037,6 @@ var registry_default = [
33183
33037
  ]
33184
33038
  },
33185
33039
  providers: [
33186
- {
33187
- provider: "kling",
33188
- auth_env: "KLING_ACCESS_KEY",
33189
- skill_id: "kling-image-to-video",
33190
- endpoint: "v1/videos/image2video",
33191
- param_map: {
33192
- prompt: "prompt",
33193
- negative_prompt: "negative_prompt",
33194
- image: "image",
33195
- duration: "duration",
33196
- size: "aspect_ratio",
33197
- guidance: "cfg_scale"
33198
- },
33199
- defaults: {
33200
- model_name: "kling-v2-1",
33201
- mode: "std"
33202
- },
33203
- output_map: {
33204
- type: "video",
33205
- extract_path: "task_result.videos[].url",
33206
- content_type: "video/mp4"
33207
- }
33208
- },
33209
33040
  {
33210
33041
  provider: "fal-ai",
33211
33042
  skill_id: "fal-ai-kling-video-v2.1-standard-image-to-video",
@@ -33226,48 +33057,47 @@ var registry_default = [
33226
33057
  extract_path: "video.url",
33227
33058
  content_type: "video/mp4"
33228
33059
  }
33229
- }
33230
- ]
33231
- },
33232
- {
33233
- canonical_name: "kling-video-v2.5-turbo-pro-image-to-video",
33234
- aliases: [
33235
- "kling-video-v2.5-turbo-pro-image-to-video",
33236
- "kling-video-v2.5-turbo-pro"
33237
- ],
33238
- modality: {
33239
- inputs: [
33240
- "image",
33241
- "text"
33242
- ],
33243
- outputs: [
33244
- "video"
33245
- ]
33246
- },
33247
- providers: [
33060
+ },
33248
33061
  {
33249
33062
  provider: "kling",
33250
33063
  auth_env: "KLING_ACCESS_KEY",
33251
- skill_id: "kling-image-to-video",
33064
+ skill_id: "kling-image2video",
33252
33065
  endpoint: "v1/videos/image2video",
33253
33066
  param_map: {
33254
33067
  prompt: "prompt",
33255
33068
  negative_prompt: "negative_prompt",
33256
- image: "image",
33257
33069
  duration: "duration",
33258
- size: "aspect_ratio",
33259
- guidance: "cfg_scale"
33070
+ aspect_ratio: "aspect_ratio",
33071
+ image: "image"
33260
33072
  },
33261
33073
  defaults: {
33262
- model_name: "kling-v2-5-turbo",
33263
- mode: "pro"
33074
+ model_name: "kling-v2-1",
33075
+ mode: "std"
33264
33076
  },
33265
33077
  output_map: {
33266
33078
  type: "video",
33267
33079
  extract_path: "task_result.videos[].url",
33268
33080
  content_type: "video/mp4"
33269
33081
  }
33270
- },
33082
+ }
33083
+ ]
33084
+ },
33085
+ {
33086
+ canonical_name: "kling-video-v2.5-turbo-pro-image-to-video",
33087
+ aliases: [
33088
+ "kling-video-v2.5-turbo-pro-image-to-video",
33089
+ "kling-video-v2.5-turbo-pro"
33090
+ ],
33091
+ modality: {
33092
+ inputs: [
33093
+ "image",
33094
+ "text"
33095
+ ],
33096
+ outputs: [
33097
+ "video"
33098
+ ]
33099
+ },
33100
+ providers: [
33271
33101
  {
33272
33102
  provider: "fal-ai",
33273
33103
  skill_id: "fal-ai-kling-video-v2.5-turbo-pro-image-to-video",
@@ -33288,34 +33118,18 @@ var registry_default = [
33288
33118
  extract_path: "video.url",
33289
33119
  content_type: "video/mp4"
33290
33120
  }
33291
- }
33292
- ]
33293
- },
33294
- {
33295
- canonical_name: "kling-video-v2.5-turbo-pro-text-to-video",
33296
- aliases: [
33297
- "kling-video-v2.5-turbo-pro-text-to-video"
33298
- ],
33299
- modality: {
33300
- inputs: [
33301
- "text"
33302
- ],
33303
- outputs: [
33304
- "video"
33305
- ]
33306
- },
33307
- providers: [
33121
+ },
33308
33122
  {
33309
33123
  provider: "kling",
33310
33124
  auth_env: "KLING_ACCESS_KEY",
33311
- skill_id: "kling-text-to-video",
33312
- endpoint: "v1/videos/text2video",
33125
+ skill_id: "kling-image2video",
33126
+ endpoint: "v1/videos/image2video",
33313
33127
  param_map: {
33314
33128
  prompt: "prompt",
33315
33129
  negative_prompt: "negative_prompt",
33316
33130
  duration: "duration",
33317
- size: "aspect_ratio",
33318
- guidance: "cfg_scale"
33131
+ aspect_ratio: "aspect_ratio",
33132
+ image: "image"
33319
33133
  },
33320
33134
  defaults: {
33321
33135
  model_name: "kling-v2-5-turbo",
@@ -33326,7 +33140,23 @@ var registry_default = [
33326
33140
  extract_path: "task_result.videos[].url",
33327
33141
  content_type: "video/mp4"
33328
33142
  }
33329
- },
33143
+ }
33144
+ ]
33145
+ },
33146
+ {
33147
+ canonical_name: "kling-video-v2.5-turbo-pro-text-to-video",
33148
+ aliases: [
33149
+ "kling-video-v2.5-turbo-pro-text-to-video"
33150
+ ],
33151
+ modality: {
33152
+ inputs: [
33153
+ "text"
33154
+ ],
33155
+ outputs: [
33156
+ "video"
33157
+ ]
33158
+ },
33159
+ providers: [
33330
33160
  {
33331
33161
  provider: "fal-ai",
33332
33162
  skill_id: "fal-ai-kling-video-v2.5-turbo-pro-text-to-video",
@@ -33348,6 +33178,27 @@ var registry_default = [
33348
33178
  extract_path: "video.url",
33349
33179
  content_type: "video/mp4"
33350
33180
  }
33181
+ },
33182
+ {
33183
+ provider: "kling",
33184
+ auth_env: "KLING_ACCESS_KEY",
33185
+ skill_id: "kling-text2video",
33186
+ endpoint: "v1/videos/text2video",
33187
+ param_map: {
33188
+ prompt: "prompt",
33189
+ negative_prompt: "negative_prompt",
33190
+ duration: "duration",
33191
+ aspect_ratio: "aspect_ratio"
33192
+ },
33193
+ defaults: {
33194
+ model_name: "kling-v2-5-turbo",
33195
+ mode: "pro"
33196
+ },
33197
+ output_map: {
33198
+ type: "video",
33199
+ extract_path: "task_result.videos[].url",
33200
+ content_type: "video/mp4"
33201
+ }
33351
33202
  }
33352
33203
  ]
33353
33204
  },
@@ -33367,29 +33218,6 @@ var registry_default = [
33367
33218
  ]
33368
33219
  },
33369
33220
  providers: [
33370
- {
33371
- provider: "kling",
33372
- auth_env: "KLING_ACCESS_KEY",
33373
- skill_id: "kling-image-to-video",
33374
- endpoint: "v1/videos/image2video",
33375
- param_map: {
33376
- prompt: "prompt",
33377
- negative_prompt: "negative_prompt",
33378
- image: "image",
33379
- duration: "duration",
33380
- size: "aspect_ratio",
33381
- guidance: "cfg_scale"
33382
- },
33383
- defaults: {
33384
- model_name: "kling-v2-5-turbo",
33385
- mode: "std"
33386
- },
33387
- output_map: {
33388
- type: "video",
33389
- extract_path: "task_result.videos[].url",
33390
- content_type: "video/mp4"
33391
- }
33392
- },
33393
33221
  {
33394
33222
  provider: "fal-ai",
33395
33223
  skill_id: "fal-ai-kling-video-v2.5-turbo-standard-image-to-video",
@@ -33410,6 +33238,28 @@ var registry_default = [
33410
33238
  extract_path: "video.url",
33411
33239
  content_type: "video/mp4"
33412
33240
  }
33241
+ },
33242
+ {
33243
+ provider: "kling",
33244
+ auth_env: "KLING_ACCESS_KEY",
33245
+ skill_id: "kling-image2video",
33246
+ endpoint: "v1/videos/image2video",
33247
+ param_map: {
33248
+ prompt: "prompt",
33249
+ negative_prompt: "negative_prompt",
33250
+ duration: "duration",
33251
+ aspect_ratio: "aspect_ratio",
33252
+ image: "image"
33253
+ },
33254
+ defaults: {
33255
+ model_name: "kling-v2-5-turbo",
33256
+ mode: "std"
33257
+ },
33258
+ output_map: {
33259
+ type: "video",
33260
+ extract_path: "task_result.videos[].url",
33261
+ content_type: "video/mp4"
33262
+ }
33413
33263
  }
33414
33264
  ]
33415
33265
  },
@@ -33430,46 +33280,44 @@ var registry_default = [
33430
33280
  },
33431
33281
  providers: [
33432
33282
  {
33433
- provider: "kling",
33434
- auth_env: "KLING_ACCESS_KEY",
33435
- skill_id: "kling-image-to-video",
33436
- endpoint: "v1/videos/image2video",
33283
+ provider: "fal-ai",
33284
+ skill_id: "fal-ai-kling-video-v2.6-pro-image-to-video",
33285
+ endpoint: "fal-ai/kling-video/v2.6/pro/image-to-video",
33286
+ auth_env: "FAL_KEY",
33437
33287
  param_map: {
33288
+ image: "start_image_url",
33289
+ image_tail: "end_image_url",
33438
33290
  prompt: "prompt",
33439
33291
  negative_prompt: "negative_prompt",
33440
- image: "image",
33441
33292
  duration: "duration",
33442
- size: "aspect_ratio",
33443
- guidance: "cfg_scale"
33444
- },
33445
- defaults: {
33446
- model_name: "kling-v2-6",
33447
- mode: "pro"
33293
+ voice_ids: "voice_ids",
33294
+ generate_audio: "generate_audio"
33448
33295
  },
33449
33296
  output_map: {
33450
33297
  type: "video",
33451
- extract_path: "task_result.videos[].url",
33298
+ extract_path: "video.url",
33452
33299
  content_type: "video/mp4"
33453
33300
  }
33454
33301
  },
33455
33302
  {
33456
- provider: "fal-ai",
33457
- skill_id: "fal-ai-kling-video-v2.6-pro-image-to-video",
33458
- endpoint: "fal-ai/kling-video/v2.6/pro/image-to-video",
33459
- auth_env: "FAL_KEY",
33303
+ provider: "kling",
33304
+ auth_env: "KLING_ACCESS_KEY",
33305
+ skill_id: "kling-image2video",
33306
+ endpoint: "v1/videos/image2video",
33460
33307
  param_map: {
33461
- image: "image_url",
33462
33308
  prompt: "prompt",
33463
33309
  negative_prompt: "negative_prompt",
33464
- seed: "seed",
33465
- guidance: "guidance_scale",
33466
- steps: "num_inference_steps",
33467
- format: "output_format",
33468
- safety: "enable_safety_checker"
33310
+ duration: "duration",
33311
+ aspect_ratio: "aspect_ratio",
33312
+ image: "image"
33313
+ },
33314
+ defaults: {
33315
+ model_name: "kling-v2-6",
33316
+ mode: "pro"
33469
33317
  },
33470
33318
  output_map: {
33471
33319
  type: "video",
33472
- extract_path: "video.url",
33320
+ extract_path: "task_result.videos[].url",
33473
33321
  content_type: "video/mp4"
33474
33322
  }
33475
33323
  }
@@ -33492,29 +33340,6 @@ var registry_default = [
33492
33340
  ]
33493
33341
  },
33494
33342
  providers: [
33495
- {
33496
- provider: "kling",
33497
- auth_env: "KLING_ACCESS_KEY",
33498
- skill_id: "kling-image-to-video",
33499
- endpoint: "v1/videos/image2video",
33500
- param_map: {
33501
- prompt: "prompt",
33502
- negative_prompt: "negative_prompt",
33503
- image: "image",
33504
- duration: "duration",
33505
- size: "aspect_ratio",
33506
- guidance: "cfg_scale"
33507
- },
33508
- defaults: {
33509
- model_name: "kling-v2-6",
33510
- mode: "pro"
33511
- },
33512
- output_map: {
33513
- type: "video",
33514
- extract_path: "task_result.videos[].url",
33515
- content_type: "video/mp4"
33516
- }
33517
- },
33518
33343
  {
33519
33344
  provider: "fal-ai",
33520
33345
  skill_id: "fal-ai-kling-video-v2.6-pro-motion-control",
@@ -33556,6 +33381,26 @@ var registry_default = [
33556
33381
  extract_path: "output[]",
33557
33382
  content_type: "video/mp4"
33558
33383
  }
33384
+ },
33385
+ {
33386
+ provider: "kling",
33387
+ auth_env: "KLING_ACCESS_KEY",
33388
+ skill_id: "kling-motion-control",
33389
+ endpoint: "v1/videos/motion-control",
33390
+ param_map: {
33391
+ image: "image_url",
33392
+ video: "video_url",
33393
+ prompt: "prompt"
33394
+ },
33395
+ defaults: {
33396
+ model_name: "kling-v2-6",
33397
+ mode: "pro"
33398
+ },
33399
+ output_map: {
33400
+ type: "video",
33401
+ extract_path: "task_result.videos[].url",
33402
+ content_type: "video/mp4"
33403
+ }
33559
33404
  }
33560
33405
  ]
33561
33406
  },
@@ -33573,28 +33418,6 @@ var registry_default = [
33573
33418
  ]
33574
33419
  },
33575
33420
  providers: [
33576
- {
33577
- provider: "kling",
33578
- auth_env: "KLING_ACCESS_KEY",
33579
- skill_id: "kling-text-to-video",
33580
- endpoint: "v1/videos/text2video",
33581
- param_map: {
33582
- prompt: "prompt",
33583
- negative_prompt: "negative_prompt",
33584
- duration: "duration",
33585
- size: "aspect_ratio",
33586
- guidance: "cfg_scale"
33587
- },
33588
- defaults: {
33589
- model_name: "kling-v2-6",
33590
- mode: "pro"
33591
- },
33592
- output_map: {
33593
- type: "video",
33594
- extract_path: "task_result.videos[].url",
33595
- content_type: "video/mp4"
33596
- }
33597
- },
33598
33421
  {
33599
33422
  provider: "fal-ai",
33600
33423
  skill_id: "fal-ai-kling-video-v2.6-pro-text-to-video",
@@ -33616,6 +33439,27 @@ var registry_default = [
33616
33439
  extract_path: "video.url",
33617
33440
  content_type: "video/mp4"
33618
33441
  }
33442
+ },
33443
+ {
33444
+ provider: "kling",
33445
+ auth_env: "KLING_ACCESS_KEY",
33446
+ skill_id: "kling-text2video",
33447
+ endpoint: "v1/videos/text2video",
33448
+ param_map: {
33449
+ prompt: "prompt",
33450
+ negative_prompt: "negative_prompt",
33451
+ duration: "duration",
33452
+ aspect_ratio: "aspect_ratio"
33453
+ },
33454
+ defaults: {
33455
+ model_name: "kling-v2-6",
33456
+ mode: "pro"
33457
+ },
33458
+ output_map: {
33459
+ type: "video",
33460
+ extract_path: "task_result.videos[].url",
33461
+ content_type: "video/mp4"
33462
+ }
33619
33463
  }
33620
33464
  ]
33621
33465
  },
@@ -33635,29 +33479,6 @@ var registry_default = [
33635
33479
  ]
33636
33480
  },
33637
33481
  providers: [
33638
- {
33639
- provider: "kling",
33640
- auth_env: "KLING_ACCESS_KEY",
33641
- skill_id: "kling-image-to-video",
33642
- endpoint: "v1/videos/image2video",
33643
- param_map: {
33644
- prompt: "prompt",
33645
- negative_prompt: "negative_prompt",
33646
- image: "image",
33647
- duration: "duration",
33648
- size: "aspect_ratio",
33649
- guidance: "cfg_scale"
33650
- },
33651
- defaults: {
33652
- model_name: "kling-v2-6",
33653
- mode: "std"
33654
- },
33655
- output_map: {
33656
- type: "video",
33657
- extract_path: "task_result.videos[].url",
33658
- content_type: "video/mp4"
33659
- }
33660
- },
33661
33482
  {
33662
33483
  provider: "fal-ai",
33663
33484
  skill_id: "fal-ai-kling-video-v2.6-standard-motion-control",
@@ -33678,6 +33499,26 @@ var registry_default = [
33678
33499
  extract_path: "video.url",
33679
33500
  content_type: "video/mp4"
33680
33501
  }
33502
+ },
33503
+ {
33504
+ provider: "kling",
33505
+ auth_env: "KLING_ACCESS_KEY",
33506
+ skill_id: "kling-motion-control",
33507
+ endpoint: "v1/videos/motion-control",
33508
+ param_map: {
33509
+ image: "image_url",
33510
+ video: "video_url",
33511
+ prompt: "prompt"
33512
+ },
33513
+ defaults: {
33514
+ model_name: "kling-v2-6",
33515
+ mode: "std"
33516
+ },
33517
+ output_map: {
33518
+ type: "video",
33519
+ extract_path: "task_result.videos[].url",
33520
+ content_type: "video/mp4"
33521
+ }
33681
33522
  }
33682
33523
  ]
33683
33524
  },
@@ -33697,29 +33538,6 @@ var registry_default = [
33697
33538
  ]
33698
33539
  },
33699
33540
  providers: [
33700
- {
33701
- provider: "kling",
33702
- auth_env: "KLING_ACCESS_KEY",
33703
- skill_id: "kling-image-to-video",
33704
- endpoint: "v1/videos/image2video",
33705
- param_map: {
33706
- prompt: "prompt",
33707
- negative_prompt: "negative_prompt",
33708
- image: "image",
33709
- duration: "duration",
33710
- size: "aspect_ratio",
33711
- guidance: "cfg_scale"
33712
- },
33713
- defaults: {
33714
- model_name: "kling-v3",
33715
- mode: "pro"
33716
- },
33717
- output_map: {
33718
- type: "video",
33719
- extract_path: "task_result.videos[].url",
33720
- content_type: "video/mp4"
33721
- }
33722
- },
33723
33541
  {
33724
33542
  provider: "fal-ai",
33725
33543
  skill_id: "fal-ai-kling-video-pro",
@@ -33742,6 +33560,28 @@ var registry_default = [
33742
33560
  extract_path: "video.url",
33743
33561
  content_type: "video/mp4"
33744
33562
  }
33563
+ },
33564
+ {
33565
+ provider: "kling",
33566
+ auth_env: "KLING_ACCESS_KEY",
33567
+ skill_id: "kling-image2video",
33568
+ endpoint: "v1/videos/image2video",
33569
+ param_map: {
33570
+ prompt: "prompt",
33571
+ negative_prompt: "negative_prompt",
33572
+ duration: "duration",
33573
+ aspect_ratio: "aspect_ratio",
33574
+ image: "image"
33575
+ },
33576
+ defaults: {
33577
+ model_name: "kling-v3",
33578
+ mode: "pro"
33579
+ },
33580
+ output_map: {
33581
+ type: "video",
33582
+ extract_path: "task_result.videos[].url",
33583
+ content_type: "video/mp4"
33584
+ }
33745
33585
  }
33746
33586
  ]
33747
33587
  },
@@ -33762,29 +33602,6 @@ var registry_default = [
33762
33602
  ]
33763
33603
  },
33764
33604
  providers: [
33765
- {
33766
- provider: "kling",
33767
- auth_env: "KLING_ACCESS_KEY",
33768
- skill_id: "kling-image-to-video",
33769
- endpoint: "v1/videos/image2video",
33770
- param_map: {
33771
- prompt: "prompt",
33772
- negative_prompt: "negative_prompt",
33773
- image: "image",
33774
- duration: "duration",
33775
- size: "aspect_ratio",
33776
- guidance: "cfg_scale"
33777
- },
33778
- defaults: {
33779
- model_name: "kling-v3",
33780
- mode: "pro"
33781
- },
33782
- output_map: {
33783
- type: "video",
33784
- extract_path: "task_result.videos[].url",
33785
- content_type: "video/mp4"
33786
- }
33787
- },
33788
33605
  {
33789
33606
  provider: "fal-ai",
33790
33607
  skill_id: "fal-ai-kling-video-v3-pro-motion-control",
@@ -33822,6 +33639,26 @@ var registry_default = [
33822
33639
  extract_path: "output[]",
33823
33640
  content_type: "video/mp4"
33824
33641
  }
33642
+ },
33643
+ {
33644
+ provider: "kling",
33645
+ auth_env: "KLING_ACCESS_KEY",
33646
+ skill_id: "kling-motion-control",
33647
+ endpoint: "v1/videos/motion-control",
33648
+ param_map: {
33649
+ image: "image_url",
33650
+ video: "video_url",
33651
+ prompt: "prompt"
33652
+ },
33653
+ defaults: {
33654
+ model_name: "kling-v3",
33655
+ mode: "pro"
33656
+ },
33657
+ output_map: {
33658
+ type: "video",
33659
+ extract_path: "task_result.videos[].url",
33660
+ content_type: "video/mp4"
33661
+ }
33825
33662
  }
33826
33663
  ]
33827
33664
  },
@@ -33840,28 +33677,6 @@ var registry_default = [
33840
33677
  ]
33841
33678
  },
33842
33679
  providers: [
33843
- {
33844
- provider: "kling",
33845
- auth_env: "KLING_ACCESS_KEY",
33846
- skill_id: "kling-text-to-video",
33847
- endpoint: "v1/videos/text2video",
33848
- param_map: {
33849
- prompt: "prompt",
33850
- negative_prompt: "negative_prompt",
33851
- duration: "duration",
33852
- size: "aspect_ratio",
33853
- guidance: "cfg_scale"
33854
- },
33855
- defaults: {
33856
- model_name: "kling-v3",
33857
- mode: "pro"
33858
- },
33859
- output_map: {
33860
- type: "video",
33861
- extract_path: "task_result.videos[].url",
33862
- content_type: "video/mp4"
33863
- }
33864
- },
33865
33680
  {
33866
33681
  provider: "fal-ai",
33867
33682
  skill_id: "fal-ai-kling-video-v3-pro-text-to-video",
@@ -33883,6 +33698,27 @@ var registry_default = [
33883
33698
  extract_path: "video.url",
33884
33699
  content_type: "video/mp4"
33885
33700
  }
33701
+ },
33702
+ {
33703
+ provider: "kling",
33704
+ auth_env: "KLING_ACCESS_KEY",
33705
+ skill_id: "kling-text2video",
33706
+ endpoint: "v1/videos/text2video",
33707
+ param_map: {
33708
+ prompt: "prompt",
33709
+ negative_prompt: "negative_prompt",
33710
+ duration: "duration",
33711
+ aspect_ratio: "aspect_ratio"
33712
+ },
33713
+ defaults: {
33714
+ model_name: "kling-v3",
33715
+ mode: "pro"
33716
+ },
33717
+ output_map: {
33718
+ type: "video",
33719
+ extract_path: "task_result.videos[].url",
33720
+ content_type: "video/mp4"
33721
+ }
33886
33722
  }
33887
33723
  ]
33888
33724
  },
@@ -33901,29 +33737,6 @@ var registry_default = [
33901
33737
  ]
33902
33738
  },
33903
33739
  providers: [
33904
- {
33905
- provider: "kling",
33906
- auth_env: "KLING_ACCESS_KEY",
33907
- skill_id: "kling-image-to-video",
33908
- endpoint: "v1/videos/image2video",
33909
- param_map: {
33910
- prompt: "prompt",
33911
- negative_prompt: "negative_prompt",
33912
- image: "image",
33913
- duration: "duration",
33914
- size: "aspect_ratio",
33915
- guidance: "cfg_scale"
33916
- },
33917
- defaults: {
33918
- model_name: "kling-v3",
33919
- mode: "std"
33920
- },
33921
- output_map: {
33922
- type: "video",
33923
- extract_path: "task_result.videos[].url",
33924
- content_type: "video/mp4"
33925
- }
33926
- },
33927
33740
  {
33928
33741
  provider: "fal-ai",
33929
33742
  skill_id: "fal-ai-kling-video-v3-standard-image-to-video",
@@ -33944,6 +33757,28 @@ var registry_default = [
33944
33757
  extract_path: "video.url",
33945
33758
  content_type: "video/mp4"
33946
33759
  }
33760
+ },
33761
+ {
33762
+ provider: "kling",
33763
+ auth_env: "KLING_ACCESS_KEY",
33764
+ skill_id: "kling-image2video",
33765
+ endpoint: "v1/videos/image2video",
33766
+ param_map: {
33767
+ prompt: "prompt",
33768
+ negative_prompt: "negative_prompt",
33769
+ duration: "duration",
33770
+ aspect_ratio: "aspect_ratio",
33771
+ image: "image"
33772
+ },
33773
+ defaults: {
33774
+ model_name: "kling-v3",
33775
+ mode: "std"
33776
+ },
33777
+ output_map: {
33778
+ type: "video",
33779
+ extract_path: "task_result.videos[].url",
33780
+ content_type: "video/mp4"
33781
+ }
33947
33782
  }
33948
33783
  ]
33949
33784
  },
@@ -33964,29 +33799,6 @@ var registry_default = [
33964
33799
  ]
33965
33800
  },
33966
33801
  providers: [
33967
- {
33968
- provider: "kling",
33969
- auth_env: "KLING_ACCESS_KEY",
33970
- skill_id: "kling-image-to-video",
33971
- endpoint: "v1/videos/image2video",
33972
- param_map: {
33973
- prompt: "prompt",
33974
- negative_prompt: "negative_prompt",
33975
- image: "image",
33976
- duration: "duration",
33977
- size: "aspect_ratio",
33978
- guidance: "cfg_scale"
33979
- },
33980
- defaults: {
33981
- model_name: "kling-v3",
33982
- mode: "std"
33983
- },
33984
- output_map: {
33985
- type: "video",
33986
- extract_path: "task_result.videos[].url",
33987
- content_type: "video/mp4"
33988
- }
33989
- },
33990
33802
  {
33991
33803
  provider: "fal-ai",
33992
33804
  skill_id: "fal-ai-kling-video-v3-standard-motion-control",
@@ -34028,6 +33840,26 @@ var registry_default = [
34028
33840
  extract_path: "data.outputs[]",
34029
33841
  content_type: "video/mp4"
34030
33842
  }
33843
+ },
33844
+ {
33845
+ provider: "kling",
33846
+ auth_env: "KLING_ACCESS_KEY",
33847
+ skill_id: "kling-motion-control",
33848
+ endpoint: "v1/videos/motion-control",
33849
+ param_map: {
33850
+ image: "image_url",
33851
+ video: "video_url",
33852
+ prompt: "prompt"
33853
+ },
33854
+ defaults: {
33855
+ model_name: "kling-v3",
33856
+ mode: "std"
33857
+ },
33858
+ output_map: {
33859
+ type: "video",
33860
+ extract_path: "task_result.videos[].url",
33861
+ content_type: "video/mp4"
33862
+ }
34031
33863
  }
34032
33864
  ]
34033
33865
  },
@@ -34045,28 +33877,6 @@ var registry_default = [
34045
33877
  ]
34046
33878
  },
34047
33879
  providers: [
34048
- {
34049
- provider: "kling",
34050
- auth_env: "KLING_ACCESS_KEY",
34051
- skill_id: "kling-text-to-video",
34052
- endpoint: "v1/videos/text2video",
34053
- param_map: {
34054
- prompt: "prompt",
34055
- negative_prompt: "negative_prompt",
34056
- duration: "duration",
34057
- size: "aspect_ratio",
34058
- guidance: "cfg_scale"
34059
- },
34060
- defaults: {
34061
- model_name: "kling-v3",
34062
- mode: "std"
34063
- },
34064
- output_map: {
34065
- type: "video",
34066
- extract_path: "task_result.videos[].url",
34067
- content_type: "video/mp4"
34068
- }
34069
- },
34070
33880
  {
34071
33881
  provider: "fal-ai",
34072
33882
  skill_id: "fal-ai-kling-video-v3-standard-text-to-video",
@@ -34088,6 +33898,27 @@ var registry_default = [
34088
33898
  extract_path: "video.url",
34089
33899
  content_type: "video/mp4"
34090
33900
  }
33901
+ },
33902
+ {
33903
+ provider: "kling",
33904
+ auth_env: "KLING_ACCESS_KEY",
33905
+ skill_id: "kling-text2video",
33906
+ endpoint: "v1/videos/text2video",
33907
+ param_map: {
33908
+ prompt: "prompt",
33909
+ negative_prompt: "negative_prompt",
33910
+ duration: "duration",
33911
+ aspect_ratio: "aspect_ratio"
33912
+ },
33913
+ defaults: {
33914
+ model_name: "kling-v3",
33915
+ mode: "std"
33916
+ },
33917
+ output_map: {
33918
+ type: "video",
33919
+ extract_path: "task_result.videos[].url",
33920
+ content_type: "video/mp4"
33921
+ }
34091
33922
  }
34092
33923
  ]
34093
33924
  },
@@ -34106,35 +33937,31 @@ var registry_default = [
34106
33937
  },
34107
33938
  providers: [
34108
33939
  {
34109
- provider: "kling",
34110
- auth_env: "KLING_ACCESS_KEY",
34111
- skill_id: "kling-video-to-audio",
34112
- endpoint: "v1/audios/video2audio",
33940
+ provider: "fal-ai",
33941
+ skill_id: "fal-ai-kling-video-video-to-audio",
33942
+ endpoint: "fal-ai/kling-video/video-to-audio",
33943
+ auth_env: "FAL_KEY",
34113
33944
  param_map: {
34114
33945
  video: "video_url",
34115
33946
  prompt: "prompt"
34116
33947
  },
34117
- defaults: {
34118
- model_name: "kling-v1"
34119
- },
34120
33948
  output_map: {
34121
33949
  type: "audio",
34122
- extract_path: "task_result.audios[].url",
33950
+ extract_path: "audio.url",
34123
33951
  content_type: "audio/mpeg"
34124
33952
  }
34125
33953
  },
34126
33954
  {
34127
- provider: "fal-ai",
34128
- skill_id: "fal-ai-kling-video-video-to-audio",
34129
- endpoint: "fal-ai/kling-video/video-to-audio",
34130
- auth_env: "FAL_KEY",
33955
+ provider: "kling",
33956
+ auth_env: "KLING_ACCESS_KEY",
33957
+ skill_id: "kling-video-to-audio",
33958
+ endpoint: "v1/audio/video-to-audio",
34131
33959
  param_map: {
34132
- video: "video_url",
34133
- prompt: "prompt"
33960
+ video: "video_url"
34134
33961
  },
34135
33962
  output_map: {
34136
33963
  type: "audio",
34137
- extract_path: "audio.url",
33964
+ extract_path: "task_result.audios[].url",
34138
33965
  content_type: "audio/mpeg"
34139
33966
  }
34140
33967
  }
@@ -34663,26 +34490,6 @@ var registry_default = [
34663
34490
  ]
34664
34491
  },
34665
34492
  providers: [
34666
- {
34667
- provider: "kling",
34668
- auth_env: "KLING_ACCESS_KEY",
34669
- skill_id: "kling-avatar",
34670
- endpoint: "v1/videos/avatar",
34671
- param_map: {
34672
- image: "image",
34673
- prompt: "text",
34674
- audio: "audio_url"
34675
- },
34676
- defaults: {
34677
- model_name: "kling-v1",
34678
- mode: "pro"
34679
- },
34680
- output_map: {
34681
- type: "video",
34682
- extract_path: "task_result.videos[].url",
34683
- content_type: "video/mp4"
34684
- }
34685
- },
34686
34493
  {
34687
34494
  provider: "replicate",
34688
34495
  skill_id: "replicate-kwaivgi-kling-avatar-v2",
@@ -34722,25 +34529,6 @@ var registry_default = [
34722
34529
  ]
34723
34530
  },
34724
34531
  providers: [
34725
- {
34726
- provider: "kling",
34727
- auth_env: "KLING_ACCESS_KEY",
34728
- skill_id: "kling-lip-sync",
34729
- endpoint: "v1/videos/lip-sync",
34730
- param_map: {
34731
- video: "video_url",
34732
- prompt: "text",
34733
- audio: "sound_file"
34734
- },
34735
- defaults: {
34736
- model_name: "kling-v1"
34737
- },
34738
- output_map: {
34739
- type: "video",
34740
- extract_path: "task_result.videos[].url",
34741
- content_type: "video/mp4"
34742
- }
34743
- },
34744
34532
  {
34745
34533
  provider: "replicate",
34746
34534
  skill_id: "replicate-kwaivgi-kling-lip-sync",
@@ -34779,29 +34567,6 @@ var registry_default = [
34779
34567
  ]
34780
34568
  },
34781
34569
  providers: [
34782
- {
34783
- provider: "kling",
34784
- auth_env: "KLING_ACCESS_KEY",
34785
- skill_id: "kling-image-to-video",
34786
- endpoint: "v1/videos/image2video",
34787
- param_map: {
34788
- prompt: "prompt",
34789
- negative_prompt: "negative_prompt",
34790
- image: "image",
34791
- duration: "duration",
34792
- size: "aspect_ratio",
34793
- guidance: "cfg_scale"
34794
- },
34795
- defaults: {
34796
- model_name: "kling-video-o1",
34797
- mode: "pro"
34798
- },
34799
- output_map: {
34800
- type: "video",
34801
- extract_path: "task_result.videos[].url",
34802
- content_type: "video/mp4"
34803
- }
34804
- },
34805
34570
  {
34806
34571
  provider: "replicate",
34807
34572
  skill_id: "replicate-kwaivgi-kling-o1",
@@ -34844,29 +34609,6 @@ var registry_default = [
34844
34609
  ]
34845
34610
  },
34846
34611
  providers: [
34847
- {
34848
- provider: "kling",
34849
- auth_env: "KLING_ACCESS_KEY",
34850
- skill_id: "kling-image-to-video",
34851
- endpoint: "v1/videos/image2video",
34852
- param_map: {
34853
- prompt: "prompt",
34854
- negative_prompt: "negative_prompt",
34855
- image: "image",
34856
- duration: "duration",
34857
- size: "aspect_ratio",
34858
- guidance: "cfg_scale"
34859
- },
34860
- defaults: {
34861
- model_name: "kling-v1-5",
34862
- mode: "pro"
34863
- },
34864
- output_map: {
34865
- type: "video",
34866
- extract_path: "task_result.videos[].url",
34867
- content_type: "video/mp4"
34868
- }
34869
- },
34870
34612
  {
34871
34613
  provider: "replicate",
34872
34614
  skill_id: "replicate-kwaivgi-kling-v1.5-pro",
@@ -34909,29 +34651,6 @@ var registry_default = [
34909
34651
  ]
34910
34652
  },
34911
34653
  providers: [
34912
- {
34913
- provider: "kling",
34914
- auth_env: "KLING_ACCESS_KEY",
34915
- skill_id: "kling-image-to-video",
34916
- endpoint: "v1/videos/image2video",
34917
- param_map: {
34918
- prompt: "prompt",
34919
- negative_prompt: "negative_prompt",
34920
- image: "image",
34921
- duration: "duration",
34922
- size: "aspect_ratio",
34923
- guidance: "cfg_scale"
34924
- },
34925
- defaults: {
34926
- model_name: "kling-v1-5",
34927
- mode: "std"
34928
- },
34929
- output_map: {
34930
- type: "video",
34931
- extract_path: "task_result.videos[].url",
34932
- content_type: "video/mp4"
34933
- }
34934
- },
34935
34654
  {
34936
34655
  provider: "replicate",
34937
34656
  skill_id: "replicate-kwaivgi-kling-v1.5-standard",
@@ -34970,29 +34689,6 @@ var registry_default = [
34970
34689
  ]
34971
34690
  },
34972
34691
  providers: [
34973
- {
34974
- provider: "kling",
34975
- auth_env: "KLING_ACCESS_KEY",
34976
- skill_id: "kling-image-to-video",
34977
- endpoint: "v1/videos/image2video",
34978
- param_map: {
34979
- prompt: "prompt",
34980
- negative_prompt: "negative_prompt",
34981
- image: "image",
34982
- duration: "duration",
34983
- size: "aspect_ratio",
34984
- guidance: "cfg_scale"
34985
- },
34986
- defaults: {
34987
- model_name: "kling-v1-6",
34988
- mode: "pro"
34989
- },
34990
- output_map: {
34991
- type: "video",
34992
- extract_path: "task_result.videos[].url",
34993
- content_type: "video/mp4"
34994
- }
34995
- },
34996
34692
  {
34997
34693
  provider: "replicate",
34998
34694
  skill_id: "replicate-kwaivgi-kling-v1.6-pro",
@@ -35035,29 +34731,6 @@ var registry_default = [
35035
34731
  ]
35036
34732
  },
35037
34733
  providers: [
35038
- {
35039
- provider: "kling",
35040
- auth_env: "KLING_ACCESS_KEY",
35041
- skill_id: "kling-image-to-video",
35042
- endpoint: "v1/videos/image2video",
35043
- param_map: {
35044
- prompt: "prompt",
35045
- negative_prompt: "negative_prompt",
35046
- image: "image",
35047
- duration: "duration",
35048
- size: "aspect_ratio",
35049
- guidance: "cfg_scale"
35050
- },
35051
- defaults: {
35052
- model_name: "kling-v1-6",
35053
- mode: "std"
35054
- },
35055
- output_map: {
35056
- type: "video",
35057
- extract_path: "task_result.videos[].url",
35058
- content_type: "video/mp4"
35059
- }
35060
- },
35061
34734
  {
35062
34735
  provider: "replicate",
35063
34736
  skill_id: "replicate-kwaivgi-kling-v1.6-standard",
@@ -35101,28 +34774,6 @@ var registry_default = [
35101
34774
  ]
35102
34775
  },
35103
34776
  providers: [
35104
- {
35105
- provider: "kling",
35106
- auth_env: "KLING_ACCESS_KEY",
35107
- skill_id: "kling-image-to-video",
35108
- endpoint: "v1/videos/image2video",
35109
- param_map: {
35110
- prompt: "prompt",
35111
- negative_prompt: "negative_prompt",
35112
- image: "image",
35113
- duration: "duration",
35114
- size: "aspect_ratio",
35115
- guidance: "cfg_scale"
35116
- },
35117
- defaults: {
35118
- model_name: "kling-v2-master"
35119
- },
35120
- output_map: {
35121
- type: "video",
35122
- extract_path: "task_result.videos[].url",
35123
- content_type: "video/mp4"
35124
- }
35125
- },
35126
34777
  {
35127
34778
  provider: "replicate",
35128
34779
  skill_id: "replicate-kwaivgi-kling-v2.0",
@@ -35166,29 +34817,6 @@ var registry_default = [
35166
34817
  ]
35167
34818
  },
35168
34819
  providers: [
35169
- {
35170
- provider: "kling",
35171
- auth_env: "KLING_ACCESS_KEY",
35172
- skill_id: "kling-image-to-video",
35173
- endpoint: "v1/videos/image2video",
35174
- param_map: {
35175
- prompt: "prompt",
35176
- negative_prompt: "negative_prompt",
35177
- image: "image",
35178
- duration: "duration",
35179
- size: "aspect_ratio",
35180
- guidance: "cfg_scale"
35181
- },
35182
- defaults: {
35183
- model_name: "kling-v2-1",
35184
- mode: "pro"
35185
- },
35186
- output_map: {
35187
- type: "video",
35188
- extract_path: "task_result.videos[].url",
35189
- content_type: "video/mp4"
35190
- }
35191
- },
35192
34820
  {
35193
34821
  provider: "replicate",
35194
34822
  skill_id: "replicate-kwaivgi-kling-v2.1",
@@ -35227,28 +34855,6 @@ var registry_default = [
35227
34855
  ]
35228
34856
  },
35229
34857
  providers: [
35230
- {
35231
- provider: "kling",
35232
- auth_env: "KLING_ACCESS_KEY",
35233
- skill_id: "kling-image-to-video",
35234
- endpoint: "v1/videos/image2video",
35235
- param_map: {
35236
- prompt: "prompt",
35237
- negative_prompt: "negative_prompt",
35238
- image: "image",
35239
- duration: "duration",
35240
- size: "aspect_ratio",
35241
- guidance: "cfg_scale"
35242
- },
35243
- defaults: {
35244
- model_name: "kling-v2-1-master"
35245
- },
35246
- output_map: {
35247
- type: "video",
35248
- extract_path: "task_result.videos[].url",
35249
- content_type: "video/mp4"
35250
- }
35251
- },
35252
34858
  {
35253
34859
  provider: "replicate",
35254
34860
  skill_id: "replicate-kwaivgi-kling-v2.1-master",
@@ -35291,29 +34897,6 @@ var registry_default = [
35291
34897
  ]
35292
34898
  },
35293
34899
  providers: [
35294
- {
35295
- provider: "kling",
35296
- auth_env: "KLING_ACCESS_KEY",
35297
- skill_id: "kling-image-to-video",
35298
- endpoint: "v1/videos/image2video",
35299
- param_map: {
35300
- prompt: "prompt",
35301
- negative_prompt: "negative_prompt",
35302
- image: "image",
35303
- duration: "duration",
35304
- size: "aspect_ratio",
35305
- guidance: "cfg_scale"
35306
- },
35307
- defaults: {
35308
- model_name: "kling-v2-5-turbo",
35309
- mode: "pro"
35310
- },
35311
- output_map: {
35312
- type: "video",
35313
- extract_path: "task_result.videos[].url",
35314
- content_type: "video/mp4"
35315
- }
35316
- },
35317
34900
  {
35318
34901
  provider: "replicate",
35319
34902
  skill_id: "replicate-kwaivgi-kling-v2.5-turbo-pro",
@@ -35356,29 +34939,6 @@ var registry_default = [
35356
34939
  ]
35357
34940
  },
35358
34941
  providers: [
35359
- {
35360
- provider: "kling",
35361
- auth_env: "KLING_ACCESS_KEY",
35362
- skill_id: "kling-image-to-video",
35363
- endpoint: "v1/videos/image2video",
35364
- param_map: {
35365
- prompt: "prompt",
35366
- negative_prompt: "negative_prompt",
35367
- image: "image",
35368
- duration: "duration",
35369
- size: "aspect_ratio",
35370
- guidance: "cfg_scale"
35371
- },
35372
- defaults: {
35373
- model_name: "kling-v2-5-turbo",
35374
- mode: "pro"
35375
- },
35376
- output_map: {
35377
- type: "video",
35378
- extract_path: "task_result.videos[].url",
35379
- content_type: "video/mp4"
35380
- }
35381
- },
35382
34942
  {
35383
34943
  provider: "wavespeed",
35384
34944
  skill_id: "wavespeed-kwaivgi-kling-v2.5-turbo-pro-image-to-video",
@@ -35418,29 +34978,6 @@ var registry_default = [
35418
34978
  ]
35419
34979
  },
35420
34980
  providers: [
35421
- {
35422
- provider: "kling",
35423
- auth_env: "KLING_ACCESS_KEY",
35424
- skill_id: "kling-image-to-video",
35425
- endpoint: "v1/videos/image2video",
35426
- param_map: {
35427
- prompt: "prompt",
35428
- negative_prompt: "negative_prompt",
35429
- image: "image",
35430
- duration: "duration",
35431
- size: "aspect_ratio",
35432
- guidance: "cfg_scale"
35433
- },
35434
- defaults: {
35435
- model_name: "kling-v2-6",
35436
- mode: "pro"
35437
- },
35438
- output_map: {
35439
- type: "video",
35440
- extract_path: "task_result.videos[].url",
35441
- content_type: "video/mp4"
35442
- }
35443
- },
35444
34981
  {
35445
34982
  provider: "replicate",
35446
34983
  skill_id: "replicate-kwaivgi-kling-v2.6",
@@ -35483,29 +35020,6 @@ var registry_default = [
35483
35020
  ]
35484
35021
  },
35485
35022
  providers: [
35486
- {
35487
- provider: "kling",
35488
- auth_env: "KLING_ACCESS_KEY",
35489
- skill_id: "kling-image-to-video",
35490
- endpoint: "v1/videos/image2video",
35491
- param_map: {
35492
- prompt: "prompt",
35493
- negative_prompt: "negative_prompt",
35494
- image: "image",
35495
- duration: "duration",
35496
- size: "aspect_ratio",
35497
- guidance: "cfg_scale"
35498
- },
35499
- defaults: {
35500
- model_name: "kling-v3-omni",
35501
- mode: "pro"
35502
- },
35503
- output_map: {
35504
- type: "video",
35505
- extract_path: "task_result.videos[].url",
35506
- content_type: "video/mp4"
35507
- }
35508
- },
35509
35023
  {
35510
35024
  provider: "replicate",
35511
35025
  skill_id: "replicate-kwaivgi-kling-v3-omni-video",
@@ -35548,29 +35062,6 @@ var registry_default = [
35548
35062
  ]
35549
35063
  },
35550
35064
  providers: [
35551
- {
35552
- provider: "kling",
35553
- auth_env: "KLING_ACCESS_KEY",
35554
- skill_id: "kling-image-to-video",
35555
- endpoint: "v1/videos/image2video",
35556
- param_map: {
35557
- prompt: "prompt",
35558
- negative_prompt: "negative_prompt",
35559
- image: "image",
35560
- duration: "duration",
35561
- size: "aspect_ratio",
35562
- guidance: "cfg_scale"
35563
- },
35564
- defaults: {
35565
- model_name: "kling-v3",
35566
- mode: "pro"
35567
- },
35568
- output_map: {
35569
- type: "video",
35570
- extract_path: "task_result.videos[].url",
35571
- content_type: "video/mp4"
35572
- }
35573
- },
35574
35065
  {
35575
35066
  provider: "replicate",
35576
35067
  skill_id: "replicate-kwaivgi-kling-v3-video",
@@ -35613,24 +35104,6 @@ var registry_default = [
35613
35104
  ]
35614
35105
  },
35615
35106
  providers: [
35616
- {
35617
- provider: "kling",
35618
- auth_env: "KLING_ACCESS_KEY",
35619
- skill_id: "kling-video-to-audio",
35620
- endpoint: "v1/audios/video2audio",
35621
- param_map: {
35622
- video: "video_url",
35623
- prompt: "prompt"
35624
- },
35625
- defaults: {
35626
- model_name: "kling-v1"
35627
- },
35628
- output_map: {
35629
- type: "audio",
35630
- extract_path: "task_result.audios[].url",
35631
- content_type: "audio/mpeg"
35632
- }
35633
- },
35634
35107
  {
35635
35108
  provider: "wavespeed",
35636
35109
  skill_id: "wavespeed-kwaivgi-kling-video-to-audio",
@@ -72855,6 +72328,236 @@ var registry_default = [
72855
72328
  }
72856
72329
  }
72857
72330
  ]
72331
+ },
72332
+ {
72333
+ canonical_name: "kling-reference-to-image",
72334
+ aliases: [
72335
+ "kling-reference-to-image",
72336
+ "kling-multi-image2image"
72337
+ ],
72338
+ modality: {
72339
+ inputs: [
72340
+ "image",
72341
+ "text"
72342
+ ],
72343
+ outputs: [
72344
+ "image"
72345
+ ]
72346
+ },
72347
+ providers: [
72348
+ {
72349
+ provider: "kling",
72350
+ auth_env: "KLING_ACCESS_KEY",
72351
+ skill_id: "kling-reference-to-image",
72352
+ endpoint: "v1/images/multi-image2image",
72353
+ param_map: {
72354
+ prompt: "prompt",
72355
+ count: "n",
72356
+ aspect_ratio: "aspect_ratio"
72357
+ },
72358
+ defaults: {
72359
+ model_name: "kling-v2-1"
72360
+ },
72361
+ output_map: {
72362
+ type: "image",
72363
+ extract_path: "task_result.images[].url",
72364
+ content_type: "image/png"
72365
+ }
72366
+ }
72367
+ ]
72368
+ },
72369
+ {
72370
+ canonical_name: "kling-extend-image",
72371
+ aliases: [
72372
+ "kling-extend-image",
72373
+ "kling-image-expand",
72374
+ "kling-outpaint"
72375
+ ],
72376
+ modality: {
72377
+ inputs: [
72378
+ "image",
72379
+ "text"
72380
+ ],
72381
+ outputs: [
72382
+ "image"
72383
+ ]
72384
+ },
72385
+ providers: [
72386
+ {
72387
+ provider: "kling",
72388
+ auth_env: "KLING_ACCESS_KEY",
72389
+ skill_id: "kling-extend-image",
72390
+ endpoint: "v1/images/editing/expand",
72391
+ param_map: {
72392
+ image: "image",
72393
+ prompt: "prompt",
72394
+ count: "n"
72395
+ },
72396
+ output_map: {
72397
+ type: "image",
72398
+ extract_path: "task_result.images[].url",
72399
+ content_type: "image/png"
72400
+ }
72401
+ }
72402
+ ]
72403
+ },
72404
+ {
72405
+ canonical_name: "kling-video-extend",
72406
+ aliases: [
72407
+ "kling-video-extend",
72408
+ "kling-video-extension"
72409
+ ],
72410
+ modality: {
72411
+ inputs: [
72412
+ "video",
72413
+ "text"
72414
+ ],
72415
+ outputs: [
72416
+ "video"
72417
+ ]
72418
+ },
72419
+ providers: [
72420
+ {
72421
+ provider: "kling",
72422
+ auth_env: "KLING_ACCESS_KEY",
72423
+ skill_id: "kling-video-extend",
72424
+ endpoint: "v1/videos/video-extend",
72425
+ param_map: {
72426
+ prompt: "prompt",
72427
+ negative_prompt: "negative_prompt"
72428
+ },
72429
+ output_map: {
72430
+ type: "video",
72431
+ extract_path: "task_result.videos[].url",
72432
+ content_type: "video/mp4"
72433
+ }
72434
+ }
72435
+ ]
72436
+ },
72437
+ {
72438
+ canonical_name: "kling-identify-face",
72439
+ aliases: [
72440
+ "kling-identify-face",
72441
+ "kling-face-detection"
72442
+ ],
72443
+ modality: {
72444
+ inputs: [
72445
+ "video"
72446
+ ],
72447
+ outputs: [
72448
+ "text"
72449
+ ]
72450
+ },
72451
+ providers: [
72452
+ {
72453
+ provider: "kling",
72454
+ auth_env: "KLING_ACCESS_KEY",
72455
+ skill_id: "kling-identify-face",
72456
+ endpoint: "v1/videos/identify-face",
72457
+ param_map: {
72458
+ video: "video_url"
72459
+ },
72460
+ output_map: {
72461
+ type: "text",
72462
+ extract_path: "face_data",
72463
+ content_type: "application/json"
72464
+ }
72465
+ }
72466
+ ]
72467
+ },
72468
+ {
72469
+ canonical_name: "kling-text-to-audio",
72470
+ aliases: [
72471
+ "kling-text-to-audio",
72472
+ "kling-sound-generation"
72473
+ ],
72474
+ modality: {
72475
+ inputs: [
72476
+ "text"
72477
+ ],
72478
+ outputs: [
72479
+ "audio"
72480
+ ]
72481
+ },
72482
+ providers: [
72483
+ {
72484
+ provider: "kling",
72485
+ auth_env: "KLING_ACCESS_KEY",
72486
+ skill_id: "kling-text-to-audio",
72487
+ endpoint: "v1/audio/text-to-audio",
72488
+ param_map: {
72489
+ prompt: "prompt",
72490
+ duration: "duration"
72491
+ },
72492
+ output_map: {
72493
+ type: "audio",
72494
+ extract_path: "task_result.audios[].url",
72495
+ content_type: "audio/mpeg"
72496
+ }
72497
+ }
72498
+ ]
72499
+ },
72500
+ {
72501
+ canonical_name: "kling-image-recognize",
72502
+ aliases: [
72503
+ "kling-image-recognize",
72504
+ "kling-segmentation"
72505
+ ],
72506
+ modality: {
72507
+ inputs: [
72508
+ "image"
72509
+ ],
72510
+ outputs: [
72511
+ "image"
72512
+ ]
72513
+ },
72514
+ providers: [
72515
+ {
72516
+ provider: "kling",
72517
+ skill_id: "kling-image-recognize",
72518
+ endpoint: "v1/videos/image-recognize",
72519
+ auth_env: "KLING_ACCESS_KEY",
72520
+ param_map: {
72521
+ image: "image"
72522
+ },
72523
+ output_map: {
72524
+ type: "segmentation",
72525
+ extract_path: "task_result.images[].url",
72526
+ content_type: "image/png"
72527
+ }
72528
+ }
72529
+ ]
72530
+ },
72531
+ {
72532
+ canonical_name: "kling-ai-multi-shot",
72533
+ aliases: [
72534
+ "kling-ai-multi-shot",
72535
+ "kling-multi-angle"
72536
+ ],
72537
+ modality: {
72538
+ inputs: [
72539
+ "image"
72540
+ ],
72541
+ outputs: [
72542
+ "image"
72543
+ ]
72544
+ },
72545
+ providers: [
72546
+ {
72547
+ provider: "kling",
72548
+ skill_id: "kling-ai-multi-shot",
72549
+ endpoint: "v1/general/ai-multi-shot",
72550
+ auth_env: "KLING_ACCESS_KEY",
72551
+ param_map: {
72552
+ image: "element_frontal_image"
72553
+ },
72554
+ output_map: {
72555
+ type: "image",
72556
+ extract_path: "task_result.images[].url_1",
72557
+ content_type: "image/png"
72558
+ }
72559
+ }
72560
+ ]
72858
72561
  }
72859
72562
  ];
72860
72563
 
@@ -73258,9 +72961,85 @@ var AuthManager = class {
73258
72961
  }
73259
72962
  };
73260
72963
 
72964
+ // src/fetch.ts
72965
+ var DEFAULT_TIMEOUT_MS = 3e4;
72966
+ var SENSITIVE_HEADER = /auth|key|token|secret|bearer/i;
72967
+ var config = {
72968
+ timeoutMs: DEFAULT_TIMEOUT_MS,
72969
+ logging: false,
72970
+ logger: (entry) => console.debug(JSON.stringify(entry))
72971
+ };
72972
+ function configureFetch(options) {
72973
+ if (options.timeoutMs !== void 0) config.timeoutMs = options.timeoutMs;
72974
+ if (options.logging !== void 0) config.logging = options.logging;
72975
+ if (options.logger) config.logger = options.logger;
72976
+ }
72977
+ function redactHeaders(headers) {
72978
+ if (!headers) return void 0;
72979
+ const entries = headers instanceof Headers ? Array.from(headers.entries()) : Array.isArray(headers) ? headers : Object.entries(headers);
72980
+ const result = {};
72981
+ for (const [key, value] of entries) {
72982
+ result[key] = SENSITIVE_HEADER.test(key) ? "[REDACTED]" : value;
72983
+ }
72984
+ return result;
72985
+ }
72986
+ function bodySize(body) {
72987
+ if (typeof body === "string") return body.length;
72988
+ if (body instanceof ArrayBuffer) return body.byteLength;
72989
+ if (body instanceof Uint8Array) return body.byteLength;
72990
+ return void 0;
72991
+ }
72992
+ async function fetchWithTimeout(url, init) {
72993
+ const finalInit = { ...init };
72994
+ if (!finalInit.signal) {
72995
+ finalInit.signal = AbortSignal.timeout(config.timeoutMs);
72996
+ }
72997
+ const method = (finalInit.method ?? "GET").toUpperCase();
72998
+ const start = Date.now();
72999
+ if (config.logging) {
73000
+ config.logger({
73001
+ kind: "request",
73002
+ method,
73003
+ url,
73004
+ bodyBytes: bodySize(finalInit.body),
73005
+ headers: redactHeaders(finalInit.headers)
73006
+ });
73007
+ }
73008
+ try {
73009
+ const response = await fetch(url, finalInit);
73010
+ if (config.logging) {
73011
+ const contentLength = response.headers.get("content-length");
73012
+ config.logger({
73013
+ kind: "response",
73014
+ method,
73015
+ url,
73016
+ status: response.status,
73017
+ durationMs: Date.now() - start,
73018
+ responseBytes: contentLength ? parseInt(contentLength, 10) : void 0
73019
+ });
73020
+ }
73021
+ return response;
73022
+ } catch (err) {
73023
+ if (config.logging) {
73024
+ config.logger({
73025
+ kind: "error",
73026
+ method,
73027
+ url,
73028
+ durationMs: Date.now() - start,
73029
+ error: err instanceof Error ? err.message : String(err)
73030
+ });
73031
+ }
73032
+ throw err;
73033
+ }
73034
+ }
73035
+
73261
73036
  // src/adapters/kling.ts
73262
73037
  import { createHmac } from "crypto";
73263
73038
  var API_BASE = "https://api-singapore.klingai.com";
73039
+ var SYNC_ENDPOINTS = /* @__PURE__ */ new Set([
73040
+ "v1/audio/tts",
73041
+ "v1/videos/image-recognize"
73042
+ ]);
73264
73043
  function generateJwt(accessKey, secretKey) {
73265
73044
  const header = Buffer.from(JSON.stringify({ alg: "HS256", typ: "JWT" })).toString("base64url");
73266
73045
  const now = Math.floor(Date.now() / 1e3);
@@ -73325,11 +73104,16 @@ function handleBodyErrors(json, endpoint) {
73325
73104
  }
73326
73105
  throw new ProviderError("kling", endpoint, json.code, json);
73327
73106
  }
73107
+ function inferContentType(type) {
73108
+ if (type === "video") return "video/mp4";
73109
+ if (type === "audio") return "audio/mpeg";
73110
+ return "image/png";
73111
+ }
73328
73112
  var klingAdapter = {
73329
73113
  name: "kling",
73330
73114
  async submit(endpoint, params, auth) {
73331
73115
  const url = `${API_BASE}/${endpoint}`;
73332
- const response = await fetch(url, {
73116
+ const response = await fetchWithTimeout(url, {
73333
73117
  method: "POST",
73334
73118
  headers: getAuthHeaders(auth),
73335
73119
  body: JSON.stringify(cleanParams(params))
@@ -73337,6 +73121,13 @@ var klingAdapter = {
73337
73121
  await handleHttpErrors(response, endpoint);
73338
73122
  const json = await response.json();
73339
73123
  handleBodyErrors(json, endpoint);
73124
+ if (SYNC_ENDPOINTS.has(endpoint)) {
73125
+ return {
73126
+ id: json.data.task_id,
73127
+ status: "completed",
73128
+ output: json.data
73129
+ };
73130
+ }
73340
73131
  return {
73341
73132
  id: json.data.task_id,
73342
73133
  status: "pending"
@@ -73347,7 +73138,7 @@ var klingAdapter = {
73347
73138
  throw new ProviderError("kling", "unknown", 400, "endpoint is required for polling");
73348
73139
  }
73349
73140
  const url = `${API_BASE}/${endpoint}/${taskId}`;
73350
- const response = await fetch(url, {
73141
+ const response = await fetchWithTimeout(url, {
73351
73142
  headers: getAuthHeaders(auth)
73352
73143
  });
73353
73144
  await handleHttpErrors(response, endpoint);
@@ -73375,37 +73166,38 @@ var klingAdapter = {
73375
73166
  },
73376
73167
  parseOutput(raw, outputMapping) {
73377
73168
  const data = raw;
73378
- const taskResult = data.task_result;
73379
- if (!taskResult) return [];
73380
73169
  const path = outputMapping.extract_path;
73381
- if (path === "task_result.videos[].url") {
73382
- const videos = taskResult.videos;
73383
- if (!Array.isArray(videos)) return [];
73384
- return videos.filter((v) => v.url).map((v) => ({
73385
- type: outputMapping.type,
73386
- url: v.url,
73387
- content_type: outputMapping.content_type ?? "video/mp4"
73388
- }));
73389
- }
73390
- if (path === "task_result.images[].url") {
73391
- const images = taskResult.images;
73392
- if (!Array.isArray(images)) return [];
73393
- return images.filter((img) => img.url).map((img) => ({
73394
- type: outputMapping.type,
73395
- url: img.url,
73396
- content_type: outputMapping.content_type ?? "image/png"
73397
- }));
73170
+ const segments = path.split(".");
73171
+ const arrayIndex = segments.findIndex((s) => s.endsWith("[]"));
73172
+ if (arrayIndex === -1) return [];
73173
+ let current = data;
73174
+ for (let i = 0; i < arrayIndex; i++) {
73175
+ if (current == null || typeof current !== "object") return [];
73176
+ current = current[segments[i]];
73398
73177
  }
73399
- if (path === "task_result.audios[].url") {
73400
- const audios = taskResult.audios;
73401
- if (!Array.isArray(audios)) return [];
73402
- return audios.filter((a) => a.url).map((a) => ({
73178
+ const arrayKey = segments[arrayIndex].slice(0, -2);
73179
+ if (current == null || typeof current !== "object") return [];
73180
+ const items = current[arrayKey];
73181
+ if (!Array.isArray(items)) return [];
73182
+ const fieldSegments = segments.slice(arrayIndex + 1);
73183
+ const results = [];
73184
+ for (const item of items) {
73185
+ let value = item;
73186
+ for (const field of fieldSegments) {
73187
+ if (value == null || typeof value !== "object") {
73188
+ value = null;
73189
+ break;
73190
+ }
73191
+ value = value[field];
73192
+ }
73193
+ if (typeof value !== "string" || !value) continue;
73194
+ results.push({
73403
73195
  type: outputMapping.type,
73404
- url: a.url,
73405
- content_type: outputMapping.content_type ?? "audio/mpeg"
73406
- }));
73196
+ url: value,
73197
+ content_type: outputMapping.content_type ?? inferContentType(outputMapping.type)
73198
+ });
73407
73199
  }
73408
- return [];
73200
+ return results;
73409
73201
  }
73410
73202
  };
73411
73203
 
@@ -73528,9 +73320,9 @@ function parseExpiresIn(value) {
73528
73320
  }
73529
73321
  return parsed;
73530
73322
  }
73531
- function configureStorage(config) {
73532
- if (config) {
73533
- storageConfig = config;
73323
+ function configureStorage(config2) {
73324
+ if (config2) {
73325
+ storageConfig = config2;
73534
73326
  return;
73535
73327
  }
73536
73328
  const accountId = process.env.R2_ACCOUNT_ID;
@@ -73563,15 +73355,15 @@ function getConfig() {
73563
73355
  }
73564
73356
  return storageConfig;
73565
73357
  }
73566
- function buildR2Url(config, key) {
73567
- return `https://${config.accountId}.r2.cloudflarestorage.com/${config.bucketName}/${key}`;
73358
+ function buildR2Url(config2, key) {
73359
+ return `https://${config2.accountId}.r2.cloudflarestorage.com/${config2.bucketName}/${key}`;
73568
73360
  }
73569
- function buildPublicUrl(config, key) {
73570
- if (config.publicUrlBase) {
73571
- const base = config.publicUrlBase.replace(/\/$/, "");
73361
+ function buildPublicUrl(config2, key) {
73362
+ if (config2.publicUrlBase) {
73363
+ const base = config2.publicUrlBase.replace(/\/$/, "");
73572
73364
  return `${base}/${key}`;
73573
73365
  }
73574
- return buildR2Url(config, key);
73366
+ return buildR2Url(config2, key);
73575
73367
  }
73576
73368
  function detectContentType(input) {
73577
73369
  if (input instanceof File) return input.type || "application/octet-stream";
@@ -73585,7 +73377,7 @@ async function toBuffer(input) {
73585
73377
  return Buffer.from(input);
73586
73378
  }
73587
73379
  async function uploadAsset(input, options) {
73588
- const config = getConfig();
73380
+ const config2 = getConfig();
73589
73381
  const buffer = await toBuffer(input);
73590
73382
  const maxBytes = options?.maxBytes ?? DEFAULT_MAX_BYTES;
73591
73383
  if (buffer.length > maxBytes) {
@@ -73597,15 +73389,15 @@ async function uploadAsset(input, options) {
73597
73389
  const contentType = options?.contentType ?? detectContentType(input);
73598
73390
  const prefix = options?.prefix ? `${options.prefix.replace(/\/$/, "")}/` : "";
73599
73391
  const key = options?.key ?? `${prefix}${randomUUID()}`;
73600
- const r2Url = buildR2Url(config, key);
73392
+ const r2Url = buildR2Url(config2, key);
73601
73393
  const signed = signS3Request(
73602
73394
  "PUT",
73603
73395
  r2Url,
73604
73396
  { "Content-Type": contentType, "Content-Length": String(buffer.length) },
73605
73397
  buffer,
73606
73398
  {
73607
- accessKeyId: config.accessKeyId,
73608
- secretAccessKey: config.secretAccessKey
73399
+ accessKeyId: config2.accessKeyId,
73400
+ secretAccessKey: config2.secretAccessKey
73609
73401
  }
73610
73402
  );
73611
73403
  const response = await fetch(signed.url, {
@@ -73617,7 +73409,7 @@ async function uploadAsset(input, options) {
73617
73409
  const body = await response.text().catch(() => "");
73618
73410
  throw new StorageError("upload", `R2 returned ${response.status}: ${body}`, response.status);
73619
73411
  }
73620
- const url = config.mode === "presigned" ? validatedPresign(config, key) : buildPublicUrl(config, key);
73412
+ const url = config2.mode === "presigned" ? validatedPresign(config2, key) : buildPublicUrl(config2, key);
73621
73413
  return {
73622
73414
  url,
73623
73415
  key,
@@ -73625,34 +73417,34 @@ async function uploadAsset(input, options) {
73625
73417
  content_type: contentType
73626
73418
  };
73627
73419
  }
73628
- function validatedPresign(config, key, expiresIn) {
73629
- const ttl = expiresIn ?? config.presignExpiresIn ?? 3600;
73420
+ function validatedPresign(config2, key, expiresIn) {
73421
+ const ttl = expiresIn ?? config2.presignExpiresIn ?? 3600;
73630
73422
  if (ttl > MAX_PRESIGN_EXPIRES) {
73631
73423
  throw new StorageError(
73632
73424
  "config",
73633
73425
  `Presign expiry ${ttl}s exceeds maximum of ${MAX_PRESIGN_EXPIRES}s (7 days).`
73634
73426
  );
73635
73427
  }
73636
- return presignS3Url(buildR2Url(config, key), {
73637
- accessKeyId: config.accessKeyId,
73638
- secretAccessKey: config.secretAccessKey
73428
+ return presignS3Url(buildR2Url(config2, key), {
73429
+ accessKeyId: config2.accessKeyId,
73430
+ secretAccessKey: config2.secretAccessKey
73639
73431
  }, { expiresIn: ttl });
73640
73432
  }
73641
73433
  function presignAsset(key, options) {
73642
- const config = getConfig();
73643
- return validatedPresign(config, key, options?.expiresIn);
73434
+ const config2 = getConfig();
73435
+ return validatedPresign(config2, key, options?.expiresIn);
73644
73436
  }
73645
73437
  async function deleteAsset(key) {
73646
- const config = getConfig();
73647
- const r2Url = buildR2Url(config, key);
73438
+ const config2 = getConfig();
73439
+ const r2Url = buildR2Url(config2, key);
73648
73440
  const signed = signS3Request(
73649
73441
  "DELETE",
73650
73442
  r2Url,
73651
73443
  {},
73652
73444
  null,
73653
73445
  {
73654
- accessKeyId: config.accessKeyId,
73655
- secretAccessKey: config.secretAccessKey
73446
+ accessKeyId: config2.accessKeyId,
73447
+ secretAccessKey: config2.secretAccessKey
73656
73448
  }
73657
73449
  );
73658
73450
  const response = await fetch(signed.url, {
@@ -73726,9 +73518,9 @@ async function processRecord(obj, shouldReupload, maxBytes) {
73726
73518
  return result;
73727
73519
  }
73728
73520
  async function processParamsForUpload(params, options) {
73729
- const config = getStorageConfig();
73730
- if (!config) return params;
73731
- const shouldReupload = options?.reupload || config.autoUpload || false;
73521
+ const config2 = getStorageConfig();
73522
+ if (!config2) return params;
73523
+ const shouldReupload = options?.reupload || config2.autoUpload || false;
73732
73524
  const maxBytes = options?.maxBytes ?? DEFAULT_MAX_BYTES;
73733
73525
  return processRecord(params, shouldReupload, maxBytes);
73734
73526
  }
@@ -73772,7 +73564,7 @@ var falAiAdapter = {
73772
73564
  name: "fal-ai",
73773
73565
  async submit(endpoint, params, auth) {
73774
73566
  const url = `${BASE_URL}/${endpoint}`;
73775
- const response = await fetch(url, {
73567
+ const response = await fetchWithTimeout(url, {
73776
73568
  method: "POST",
73777
73569
  headers: authHeaders(auth),
73778
73570
  body: JSON.stringify(params)
@@ -73790,7 +73582,7 @@ var falAiAdapter = {
73790
73582
  }
73791
73583
  const baseEndpoint = getBaseEndpoint(endpoint);
73792
73584
  const statusUrl = `${BASE_URL}/${baseEndpoint}/requests/${taskId}/status`;
73793
- const statusResponse = await fetch(statusUrl, {
73585
+ const statusResponse = await fetchWithTimeout(statusUrl, {
73794
73586
  headers: { Authorization: `Key ${auth}` }
73795
73587
  });
73796
73588
  await handleHttpErrors2(statusResponse, endpoint);
@@ -73809,7 +73601,7 @@ var falAiAdapter = {
73809
73601
  };
73810
73602
  }
73811
73603
  const resultUrl = `${BASE_URL}/${baseEndpoint}/requests/${taskId}`;
73812
- const resultResponse = await fetch(resultUrl, {
73604
+ const resultResponse = await fetchWithTimeout(resultUrl, {
73813
73605
  headers: { Authorization: `Key ${auth}` }
73814
73606
  });
73815
73607
  await handleHttpErrors2(resultResponse, endpoint);
@@ -73931,7 +73723,7 @@ function authHeaders2(auth) {
73931
73723
  "Content-Type": "application/json"
73932
73724
  };
73933
73725
  }
73934
- function inferContentType(url) {
73726
+ function inferContentType2(url) {
73935
73727
  const lower = url.toLowerCase();
73936
73728
  if (lower.includes(".png")) return "image/png";
73937
73729
  if (lower.includes(".jpg") || lower.includes(".jpeg")) return "image/jpeg";
@@ -73947,7 +73739,7 @@ async function fetchLatestVersion(endpoint, auth) {
73947
73739
  const cached = versionCache.get(endpoint);
73948
73740
  if (cached) return cached;
73949
73741
  const url = `${BASE_URL2}/models/${endpoint}`;
73950
- const response = await fetch(url, {
73742
+ const response = await fetchWithTimeout(url, {
73951
73743
  headers: { Authorization: `Bearer ${auth}` }
73952
73744
  });
73953
73745
  await handleHttpErrors3(response, endpoint);
@@ -73960,7 +73752,7 @@ async function fetchLatestVersion(endpoint, auth) {
73960
73752
  }
73961
73753
  async function submitWithVersion(endpoint, params, auth) {
73962
73754
  const version = await fetchLatestVersion(endpoint, auth);
73963
- const response = await fetch(`${BASE_URL2}/predictions`, {
73755
+ const response = await fetchWithTimeout(`${BASE_URL2}/predictions`, {
73964
73756
  method: "POST",
73965
73757
  headers: authHeaders2(auth),
73966
73758
  body: JSON.stringify({ version, input: params })
@@ -73976,7 +73768,7 @@ var replicateAdapter = {
73976
73768
  return submitWithVersion(endpoint, params, auth);
73977
73769
  }
73978
73770
  const modelsUrl = `${BASE_URL2}/models/${endpoint}/predictions`;
73979
- const response = await fetch(modelsUrl, {
73771
+ const response = await fetchWithTimeout(modelsUrl, {
73980
73772
  method: "POST",
73981
73773
  headers: authHeaders2(auth),
73982
73774
  body: JSON.stringify({ input: params })
@@ -73991,7 +73783,7 @@ var replicateAdapter = {
73991
73783
  },
73992
73784
  async poll(taskId, auth) {
73993
73785
  const url = `${BASE_URL2}/predictions/${taskId}`;
73994
- const response = await fetch(url, {
73786
+ const response = await fetchWithTimeout(url, {
73995
73787
  headers: { Authorization: `Bearer ${auth}` }
73996
73788
  });
73997
73789
  await handleHttpErrors3(response, taskId);
@@ -74020,7 +73812,7 @@ var replicateAdapter = {
74020
73812
  return raw.map((url) => ({
74021
73813
  type: outputMapping.type,
74022
73814
  url,
74023
- content_type: outputMapping.content_type ?? inferContentType(url)
73815
+ content_type: outputMapping.content_type ?? inferContentType2(url)
74024
73816
  }));
74025
73817
  }
74026
73818
  };
@@ -74052,7 +73844,7 @@ function authHeaders3(auth) {
74052
73844
  "Content-Type": "application/json"
74053
73845
  };
74054
73846
  }
74055
- function inferContentType2(url) {
73847
+ function inferContentType3(url) {
74056
73848
  const ext = url.split(".").pop()?.toLowerCase()?.split("?")[0];
74057
73849
  switch (ext) {
74058
73850
  case "png":
@@ -74078,7 +73870,7 @@ var wavespeedAdapter = {
74078
73870
  name: "wavespeed",
74079
73871
  async submit(endpoint, params, auth) {
74080
73872
  const url = `${BASE_URL3}/${endpoint}`;
74081
- const response = await fetch(url, {
73873
+ const response = await fetchWithTimeout(url, {
74082
73874
  method: "POST",
74083
73875
  headers: authHeaders3(auth),
74084
73876
  body: JSON.stringify(params)
@@ -74092,7 +73884,7 @@ var wavespeedAdapter = {
74092
73884
  },
74093
73885
  async poll(taskId, auth) {
74094
73886
  const url = `${BASE_URL3}/predictions/${taskId}/result`;
74095
- const response = await fetch(url, {
73887
+ const response = await fetchWithTimeout(url, {
74096
73888
  headers: { Authorization: `Bearer ${auth}` }
74097
73889
  });
74098
73890
  await handleHttpErrors4(response, `predictions/${taskId}/result`);
@@ -74124,7 +73916,7 @@ var wavespeedAdapter = {
74124
73916
  return outputs.map((url) => ({
74125
73917
  type: outputMapping.type,
74126
73918
  url,
74127
- content_type: outputMapping.content_type ?? inferContentType2(url)
73919
+ content_type: outputMapping.content_type ?? inferContentType3(url)
74128
73920
  }));
74129
73921
  }
74130
73922
  };
@@ -74175,7 +73967,7 @@ var openRouterAdapter = {
74175
73967
  if (max_tokens !== void 0) body.max_tokens = max_tokens;
74176
73968
  if (top_p !== void 0) body.top_p = top_p;
74177
73969
  const url = `${BASE_URL4}/chat/completions`;
74178
- const response = await fetch(url, {
73970
+ const response = await fetchWithTimeout(url, {
74179
73971
  method: "POST",
74180
73972
  headers: authHeaders4(auth),
74181
73973
  body: JSON.stringify(body)
@@ -74282,7 +74074,7 @@ var adapters = {
74282
74074
  "openrouter": openRouterAdapter,
74283
74075
  "kling": klingAdapter
74284
74076
  };
74285
- var DEFAULT_TIMEOUT_MS = 12e4;
74077
+ var DEFAULT_TIMEOUT_MS2 = 12e4;
74286
74078
  async function _prepare(request) {
74287
74079
  if (!request.model) throw new ValidationError("model", "model is required");
74288
74080
  const auth = new AuthManager();
@@ -74316,7 +74108,7 @@ async function _prepare(request) {
74316
74108
  }
74317
74109
  async function submit(request) {
74318
74110
  const { binding, adapter, apiKey, finalParams, model } = await _prepare(request);
74319
- const timeoutMs = request.options?.timeout ?? DEFAULT_TIMEOUT_MS;
74111
+ const timeoutMs = request.options?.timeout ?? DEFAULT_TIMEOUT_MS2;
74320
74112
  const submitted = await withRetry(
74321
74113
  () => adapter.submit(binding.endpoint, finalParams, apiKey),
74322
74114
  { timeoutMs, provider: binding.provider, model: model.canonical_name }
@@ -74386,7 +74178,7 @@ async function submitAndPoll(request) {
74386
74178
  async function generate(request) {
74387
74179
  const startTime = Date.now();
74388
74180
  const { binding, adapter, apiKey, finalParams, model } = await _prepare(request);
74389
- const timeoutMs = request.options?.timeout ?? DEFAULT_TIMEOUT_MS;
74181
+ const timeoutMs = request.options?.timeout ?? DEFAULT_TIMEOUT_MS2;
74390
74182
  const submitted = await withRetry(
74391
74183
  () => adapter.submit(binding.endpoint, finalParams, apiKey),
74392
74184
  { timeoutMs, provider: binding.provider, model: model.canonical_name }
@@ -74478,6 +74270,7 @@ export {
74478
74270
  RateLimitError,
74479
74271
  StorageError,
74480
74272
  configureAuth,
74273
+ configureFetch,
74481
74274
  klingAdapter,
74482
74275
  configureStorage,
74483
74276
  uploadAsset,
@@ -74490,4 +74283,4 @@ export {
74490
74283
  listModels,
74491
74284
  deriveCategory
74492
74285
  };
74493
- //# sourceMappingURL=chunk-3V2PDK26.js.map
74286
+ //# sourceMappingURL=chunk-7MV7SODR.js.map