@byte_fluffy/nexra-sdk 0.1.0-alpha.44 → 0.1.0-alpha.46

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.
@@ -2,7 +2,7 @@ import {
2
2
  normalizePublicErrorInput,
3
3
  pickPublicErrorFields,
4
4
  sortRatioDisplayOrder
5
- } from "./chunk-ESPUF2D4.js";
5
+ } from "./chunk-LXR3MEF3.js";
6
6
 
7
7
  // src/catalog/generated/audio.generated.json
8
8
  var audio_generated_default = [
@@ -2804,7 +2804,7 @@ var image_generated_default = [
2804
2804
  contractVersion: 1,
2805
2805
  developer: "bytedance",
2806
2806
  displayName: "Volcengine Image Enhancement",
2807
- summary: "Upscale an image with Volcengine CVProcess and save the output.",
2807
+ summary: "Upscale an image with Volcengine CVProcess.",
2808
2808
  kind: "image",
2809
2809
  family: "Volcengine Upscale",
2810
2810
  aliases: [],
@@ -2815,7 +2815,9 @@ var image_generated_default = [
2815
2815
  outputModalities: [
2816
2816
  "image"
2817
2817
  ],
2818
- inputModes: [],
2818
+ inputModes: [
2819
+ "image-upscale"
2820
+ ],
2819
2821
  features: []
2820
2822
  },
2821
2823
  operations: [
@@ -5494,7 +5496,7 @@ var image_generated_default = [
5494
5496
  order: 0
5495
5497
  },
5496
5498
  title: "\u8F93\u5165\u5185\u5BB9",
5497
- description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6309\u987A\u5E8F\u6DFB\u52A0\u53C2\u8003\u56FE\u7247\u3002",
5499
+ description: "\u666E\u901A\u751F\u56FE\u9700\u8981\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u53C2\u8003\u56FE\u7247\uFF1B\u56FE\u5C42\u62C6\u5206\u9700\u8981\u4E00\u5F20\u56FE\u7247\uFF0C\u53EF\u9009\u63D0\u793A\u8BCD\u3002",
5498
5500
  maxItems: 11,
5499
5501
  allOf: [
5500
5502
  {
@@ -5509,7 +5511,7 @@ var image_generated_default = [
5509
5511
  "type"
5510
5512
  ]
5511
5513
  },
5512
- minContains: 1,
5514
+ minContains: 0,
5513
5515
  maxContains: 1
5514
5516
  },
5515
5517
  {
@@ -5579,250 +5581,122 @@ var image_generated_default = [
5579
5581
  order: 11,
5580
5582
  control: "segmented"
5581
5583
  }
5584
+ },
5585
+ output_mode: {
5586
+ type: "string",
5587
+ enum: [
5588
+ "image",
5589
+ "layers"
5590
+ ],
5591
+ title: "\u8F93\u51FA\u6A21\u5F0F",
5592
+ "x-ui": {
5593
+ hidden: true
5594
+ }
5595
+ },
5596
+ prompt_optimization: {
5597
+ type: "string",
5598
+ enum: [
5599
+ "standard",
5600
+ "fast"
5601
+ ],
5602
+ title: "\u4F18\u5316\u6A21\u5F0F",
5603
+ "x-ui": {
5604
+ hidden: true
5605
+ }
5582
5606
  }
5583
5607
  },
5584
5608
  required: [
5585
5609
  "content"
5586
5610
  ],
5587
- additionalProperties: false
5588
- },
5589
- outputSchema: {},
5590
- metering: {
5591
- schemaVersion: 1,
5592
- kind: "non_token",
5593
- metrics: [
5594
- {
5595
- metric: "requests",
5596
- requirement: "required"
5597
- },
5598
- {
5599
- metric: "input_images",
5600
- requirement: "informational"
5601
- },
5611
+ additionalProperties: false,
5612
+ allOf: [
5602
5613
  {
5603
- metric: "output_images",
5604
- requirement: "required"
5605
- }
5606
- ]
5607
- }
5608
- }
5609
- ],
5610
- endpoints: []
5611
- },
5612
- {
5613
- id: "google/gemini-2.5-flash-image",
5614
- contractVersion: 1,
5615
- developer: "google",
5616
- displayName: "Banana",
5617
- summary: "Generate or edit 1K images from text and up to three reference images with configurable aspect ratio.",
5618
- kind: "image",
5619
- family: "Gemini Flash Image",
5620
- versionLabel: "2.5",
5621
- aliases: [],
5622
- capabilities: {
5623
- inputModalities: [
5624
- "text",
5625
- "image"
5626
- ],
5627
- outputModalities: [
5628
- "image"
5629
- ],
5630
- inputModes: [
5631
- "text-to-image",
5632
- "image-to-image"
5633
- ],
5634
- features: []
5635
- },
5636
- operations: [
5637
- {
5638
- operation: "image.generate",
5639
- inputModalities: [
5640
- "text",
5641
- "image"
5642
- ],
5643
- outputModalities: [
5644
- "image"
5645
- ],
5646
- inputSchema: {
5647
- $schema: "https://json-schema.org/draft/2020-12/schema",
5648
- type: "object",
5649
- properties: {
5650
- content: {
5651
- type: "array",
5652
- minItems: 1,
5653
- items: {
5654
- oneOf: [
5655
- {
5656
- type: "object",
5657
- properties: {
5658
- type: {
5659
- const: "text"
5660
- },
5661
- text: {
5662
- type: "string",
5663
- minLength: 1
5664
- },
5665
- role: {
5666
- type: "string",
5667
- const: "prompt",
5668
- title: "\u7528\u9014"
5669
- }
5670
- },
5671
- required: [
5672
- "type",
5673
- "text",
5674
- "role"
5675
- ],
5676
- additionalProperties: false
5677
- },
5678
- {
5679
- type: "object",
5680
- properties: {
5681
- type: {
5682
- const: "image"
5683
- },
5684
- source: {
5685
- oneOf: [
5686
- {
5687
- type: "string",
5688
- minLength: 1
5689
- },
5690
- {
5691
- type: "object",
5692
- properties: {
5693
- assetId: {
5694
- type: "string",
5695
- minLength: 1
5696
- }
5697
- },
5698
- required: [
5699
- "assetId"
5700
- ],
5701
- additionalProperties: false
5702
- }
5703
- ]
5704
- },
5705
- role: {
5706
- type: "string",
5707
- enum: [
5708
- "source",
5709
- "reference"
5710
- ],
5711
- title: "\u7528\u9014"
5712
- }
5713
- },
5714
- required: [
5715
- "type",
5716
- "source",
5717
- "role"
5718
- ],
5719
- additionalProperties: false
5614
+ if: {
5615
+ properties: {
5616
+ output_mode: {
5617
+ const: "layers"
5720
5618
  }
5619
+ },
5620
+ required: [
5621
+ "output_mode"
5721
5622
  ]
5722
5623
  },
5723
- "x-ui": {
5724
- control: "content-parts",
5725
- order: 0
5726
- },
5727
- title: "\u8F93\u5165\u5185\u5BB9",
5728
- description: "\u63D0\u4F9B\u4E00\u6761\u63D0\u793A\u8BCD\u3001\u6700\u591A\u4E09\u5F20\u53C2\u8003\u56FE\u7247\uFF0C\u6216\u540C\u65F6\u63D0\u4F9B\u4E24\u8005\u3002",
5729
- maxItems: 4,
5730
- allOf: [
5731
- {
5732
- contains: {
5733
- type: "object",
5734
- properties: {
5735
- type: {
5736
- const: "text"
5624
+ then: {
5625
+ properties: {
5626
+ content: {
5627
+ type: "array",
5628
+ minItems: 1,
5629
+ maxItems: 2,
5630
+ allOf: [
5631
+ {
5632
+ type: "array",
5633
+ contains: {
5634
+ type: "object",
5635
+ properties: {
5636
+ type: {
5637
+ const: "image"
5638
+ }
5639
+ },
5640
+ required: [
5641
+ "type"
5642
+ ]
5643
+ },
5644
+ minContains: 1,
5645
+ maxContains: 1
5737
5646
  }
5738
- },
5739
- required: [
5740
- "type"
5741
5647
  ]
5742
5648
  },
5743
- minContains: 0,
5744
- maxContains: 1
5745
- },
5746
- {
5747
- contains: {
5748
- type: "object",
5749
- properties: {
5750
- type: {
5751
- const: "image"
5649
+ aspect_ratio: false,
5650
+ output_format: {
5651
+ const: "png"
5652
+ }
5653
+ }
5654
+ },
5655
+ else: {
5656
+ properties: {
5657
+ content: {
5658
+ type: "array",
5659
+ allOf: [
5660
+ {
5661
+ type: "array",
5662
+ contains: {
5663
+ type: "object",
5664
+ properties: {
5665
+ type: {
5666
+ const: "text"
5667
+ }
5668
+ },
5669
+ required: [
5670
+ "type"
5671
+ ]
5672
+ },
5673
+ minContains: 1,
5674
+ maxContains: 1
5752
5675
  }
5753
- },
5754
- required: [
5755
- "type"
5756
5676
  ]
5757
5677
  },
5758
- minContains: 0,
5759
- maxContains: 3
5678
+ prompt_optimization: false
5760
5679
  }
5761
- ]
5762
- },
5763
- aspect_ratio: {
5764
- type: "string",
5765
- enum: [
5766
- "1:1",
5767
- "2:3",
5768
- "3:2",
5769
- "3:4",
5770
- "4:3",
5771
- "4:5",
5772
- "5:4",
5773
- "9:16",
5774
- "16:9",
5775
- "21:9"
5776
- ],
5777
- default: "1:1",
5778
- title: "\u753B\u9762\u6BD4\u4F8B",
5779
- "x-ui": {
5780
- control: "select",
5781
- order: 10
5782
- }
5783
- },
5784
- resolution: {
5785
- type: "string",
5786
- enum: [
5787
- "1K"
5788
- ],
5789
- default: "1K",
5790
- title: "\u5206\u8FA8\u7387",
5791
- "x-ui": {
5792
- hidden: true,
5793
- order: 11
5794
5680
  }
5795
5681
  }
5796
- },
5797
- required: [
5798
- "content"
5799
- ],
5800
- additionalProperties: false
5682
+ ]
5801
5683
  },
5802
5684
  outputSchema: {},
5803
5685
  metering: {
5804
5686
  schemaVersion: 1,
5805
- kind: "token",
5687
+ kind: "non_token",
5806
5688
  metrics: [
5807
5689
  {
5808
5690
  metric: "requests",
5809
5691
  requirement: "required"
5810
5692
  },
5811
- {
5812
- metric: "input_tokens",
5813
- requirement: "required"
5814
- },
5815
- {
5816
- metric: "output_tokens",
5817
- requirement: "required"
5818
- },
5819
5693
  {
5820
5694
  metric: "input_images",
5821
5695
  requirement: "informational"
5822
5696
  },
5823
5697
  {
5824
5698
  metric: "output_images",
5825
- requirement: "informational"
5699
+ requirement: "required"
5826
5700
  }
5827
5701
  ]
5828
5702
  }
@@ -5831,14 +5705,14 @@ var image_generated_default = [
5831
5705
  endpoints: []
5832
5706
  },
5833
5707
  {
5834
- id: "google/gemini-3.1-flash-image",
5708
+ id: "google/gemini-2.5-flash-image",
5835
5709
  contractVersion: 1,
5836
5710
  developer: "google",
5837
- displayName: "Banana 2",
5838
- summary: "Generate or edit 512px, 1K, 2K, or 4K images from text and up to fourteen reference images.",
5711
+ displayName: "Banana",
5712
+ summary: "Generate or edit 1K images from text and up to three reference images with configurable aspect ratio.",
5839
5713
  kind: "image",
5840
5714
  family: "Gemini Flash Image",
5841
- versionLabel: "3.1",
5715
+ versionLabel: "2.5",
5842
5716
  aliases: [],
5843
5717
  capabilities: {
5844
5718
  inputModalities: [
@@ -5946,8 +5820,8 @@ var image_generated_default = [
5946
5820
  order: 0
5947
5821
  },
5948
5822
  title: "\u8F93\u5165\u5185\u5BB9",
5949
- description: "\u63D0\u4F9B\u4E00\u6761\u63D0\u793A\u8BCD\u3001\u6700\u591A 14 \u5F20\u53C2\u8003\u56FE\u7247\uFF0C\u6216\u540C\u65F6\u63D0\u4F9B\u4E24\u8005\u3002",
5950
- maxItems: 15,
5823
+ description: "\u63D0\u4F9B\u4E00\u6761\u63D0\u793A\u8BCD\u3001\u6700\u591A\u4E09\u5F20\u53C2\u8003\u56FE\u7247\uFF0C\u6216\u540C\u65F6\u63D0\u4F9B\u4E24\u8005\u3002",
5824
+ maxItems: 4,
5951
5825
  allOf: [
5952
5826
  {
5953
5827
  contains: {
@@ -5977,7 +5851,7 @@ var image_generated_default = [
5977
5851
  ]
5978
5852
  },
5979
5853
  minContains: 0,
5980
- maxContains: 14
5854
+ maxContains: 3
5981
5855
  }
5982
5856
  ]
5983
5857
  },
@@ -5985,20 +5859,15 @@ var image_generated_default = [
5985
5859
  type: "string",
5986
5860
  enum: [
5987
5861
  "1:1",
5988
- "3:2",
5989
5862
  "2:3",
5863
+ "3:2",
5990
5864
  "3:4",
5991
- "1:4",
5992
- "4:1",
5993
5865
  "4:3",
5994
5866
  "4:5",
5995
5867
  "5:4",
5996
- "1:8",
5997
- "8:1",
5998
5868
  "9:16",
5999
5869
  "16:9",
6000
- "21:9",
6001
- "9:21"
5870
+ "21:9"
6002
5871
  ],
6003
5872
  default: "1:1",
6004
5873
  title: "\u753B\u9762\u6BD4\u4F8B",
@@ -6010,15 +5879,12 @@ var image_generated_default = [
6010
5879
  resolution: {
6011
5880
  type: "string",
6012
5881
  enum: [
6013
- "512",
6014
- "1K",
6015
- "2K",
6016
- "4K"
5882
+ "1K"
6017
5883
  ],
6018
5884
  default: "1K",
6019
5885
  title: "\u5206\u8FA8\u7387",
6020
5886
  "x-ui": {
6021
- control: "segmented",
5887
+ hidden: true,
6022
5888
  order: 11
6023
5889
  }
6024
5890
  }
@@ -6060,13 +5926,13 @@ var image_generated_default = [
6060
5926
  endpoints: []
6061
5927
  },
6062
5928
  {
6063
- id: "google/gemini-3.1-flash-lite-image",
5929
+ id: "google/gemini-3.1-flash-image",
6064
5930
  contractVersion: 1,
6065
5931
  developer: "google",
6066
- displayName: "Banana 2 Lite",
6067
- summary: "Generate or edit 1K images from text and up to fourteen reference images with expanded aspect-ratio support.",
5932
+ displayName: "Banana 2",
5933
+ summary: "Generate or edit 512px, 1K, 2K, or 4K images from text and up to fourteen reference images.",
6068
5934
  kind: "image",
6069
- family: "Gemini Flash-Lite Image",
5935
+ family: "Gemini Flash Image",
6070
5936
  versionLabel: "3.1",
6071
5937
  aliases: [],
6072
5938
  capabilities: {
@@ -6226,7 +6092,8 @@ var image_generated_default = [
6226
6092
  "8:1",
6227
6093
  "9:16",
6228
6094
  "16:9",
6229
- "21:9"
6095
+ "21:9",
6096
+ "9:21"
6230
6097
  ],
6231
6098
  default: "1:1",
6232
6099
  title: "\u753B\u9762\u6BD4\u4F8B",
@@ -6238,13 +6105,15 @@ var image_generated_default = [
6238
6105
  resolution: {
6239
6106
  type: "string",
6240
6107
  enum: [
6241
- "1K"
6108
+ "512",
6109
+ "1K",
6110
+ "2K",
6111
+ "4K"
6242
6112
  ],
6243
6113
  default: "1K",
6244
6114
  title: "\u5206\u8FA8\u7387",
6245
6115
  "x-ui": {
6246
6116
  control: "segmented",
6247
- hidden: true,
6248
6117
  order: 11
6249
6118
  }
6250
6119
  }
@@ -6286,14 +6155,14 @@ var image_generated_default = [
6286
6155
  endpoints: []
6287
6156
  },
6288
6157
  {
6289
- id: "google/gemini-3-pro-image",
6158
+ id: "google/gemini-3.1-flash-lite-image",
6290
6159
  contractVersion: 1,
6291
6160
  developer: "google",
6292
- displayName: "Banana Pro",
6293
- summary: "Generate or edit professional 1K, 2K, or 4K images from text and up to fourteen reference images.",
6161
+ displayName: "Banana 2 Lite",
6162
+ summary: "Generate or edit 1K images from text and up to fourteen reference images with expanded aspect-ratio support.",
6294
6163
  kind: "image",
6295
- family: "Gemini Pro Image",
6296
- versionLabel: "3 Pro",
6164
+ family: "Gemini Flash-Lite Image",
6165
+ versionLabel: "3.1",
6297
6166
  aliases: [],
6298
6167
  capabilities: {
6299
6168
  inputModalities: [
@@ -6440,20 +6309,19 @@ var image_generated_default = [
6440
6309
  type: "string",
6441
6310
  enum: [
6442
6311
  "1:1",
6443
- "16:9",
6444
- "9:16",
6445
- "3:4",
6446
- "4:3",
6447
6312
  "3:2",
6448
6313
  "2:3",
6449
- "4:5",
6450
- "5:4",
6451
- "21:9",
6314
+ "3:4",
6452
6315
  "1:4",
6453
6316
  "4:1",
6317
+ "4:3",
6318
+ "4:5",
6319
+ "5:4",
6454
6320
  "1:8",
6455
6321
  "8:1",
6456
- "9:21"
6322
+ "9:16",
6323
+ "16:9",
6324
+ "21:9"
6457
6325
  ],
6458
6326
  default: "1:1",
6459
6327
  title: "\u753B\u9762\u6BD4\u4F8B",
@@ -6465,14 +6333,13 @@ var image_generated_default = [
6465
6333
  resolution: {
6466
6334
  type: "string",
6467
6335
  enum: [
6468
- "1K",
6469
- "2K",
6470
- "4K"
6336
+ "1K"
6471
6337
  ],
6472
6338
  default: "1K",
6473
6339
  title: "\u5206\u8FA8\u7387",
6474
6340
  "x-ui": {
6475
6341
  control: "segmented",
6342
+ hidden: true,
6476
6343
  order: 11
6477
6344
  }
6478
6345
  }
@@ -6514,20 +6381,15 @@ var image_generated_default = [
6514
6381
  endpoints: []
6515
6382
  },
6516
6383
  {
6517
- id: "openai/gpt-image-2",
6518
- contractVersion: 2,
6519
- developer: "openai",
6520
- displayName: "GPT-Image-2",
6521
- summary: "GPT Image 2 \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u56FE\u8F93\u5165\u3001\u8499\u7248\u53CA\u81EA\u5B9A\u4E49\u8F93\u51FA\u5C3A\u5BF8\u3002",
6384
+ id: "google/gemini-3-pro-image",
6385
+ contractVersion: 1,
6386
+ developer: "google",
6387
+ displayName: "Banana Pro",
6388
+ summary: "Generate or edit professional 1K, 2K, or 4K images from text and up to fourteen reference images.",
6522
6389
  kind: "image",
6523
- family: "GPT Image",
6524
- versionLabel: "2",
6525
- aliases: [
6526
- "azure/gpt-image-2",
6527
- "gpt-image-2",
6528
- "gpt-image2",
6529
- "gptimage2"
6530
- ],
6390
+ family: "Gemini Pro Image",
6391
+ versionLabel: "3 Pro",
6392
+ aliases: [],
6531
6393
  capabilities: {
6532
6394
  inputModalities: [
6533
6395
  "text",
@@ -6569,23 +6431,18 @@ var image_generated_default = [
6569
6431
  },
6570
6432
  text: {
6571
6433
  type: "string",
6572
- title: "\u63D0\u793A\u8BCD",
6573
- minLength: 1,
6574
- maxLength: 32e3,
6575
- description: "\u63CF\u8FF0\u8981\u751F\u6210\u7684\u56FE\u7247\uFF0C\u6216\u5BF9\u8F93\u5165\u56FE\u7247\u7684\u4FEE\u6539\u8981\u6C42\u3002",
6576
- "x-ui": {
6577
- order: 1,
6578
- control: "textarea"
6579
- }
6434
+ minLength: 1
6580
6435
  },
6581
6436
  role: {
6437
+ type: "string",
6582
6438
  const: "prompt",
6583
6439
  title: "\u7528\u9014"
6584
6440
  }
6585
6441
  },
6586
6442
  required: [
6587
6443
  "type",
6588
- "text"
6444
+ "text",
6445
+ "role"
6589
6446
  ],
6590
6447
  additionalProperties: false
6591
6448
  },
@@ -6599,9 +6456,7 @@ var image_generated_default = [
6599
6456
  oneOf: [
6600
6457
  {
6601
6458
  type: "string",
6602
- minLength: 1,
6603
- format: "uri",
6604
- pattern: "^(https?://|data:image/)"
6459
+ minLength: 1
6605
6460
  },
6606
6461
  {
6607
6462
  type: "object",
@@ -6622,15 +6477,15 @@ var image_generated_default = [
6622
6477
  type: "string",
6623
6478
  enum: [
6624
6479
  "source",
6625
- "reference",
6626
- "mask"
6480
+ "reference"
6627
6481
  ],
6628
6482
  title: "\u7528\u9014"
6629
6483
  }
6630
6484
  },
6631
6485
  required: [
6632
6486
  "type",
6633
- "source"
6487
+ "source",
6488
+ "role"
6634
6489
  ],
6635
6490
  additionalProperties: false
6636
6491
  }
@@ -6641,8 +6496,8 @@ var image_generated_default = [
6641
6496
  order: 0
6642
6497
  },
6643
6498
  title: "\u8F93\u5165\u5185\u5BB9",
6644
- description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u8F93\u5165\u56FE\u7247\u548C\u4E00\u5F20\u8499\u7248\u3002",
6645
- maxItems: 18,
6499
+ description: "\u63D0\u4F9B\u4E00\u6761\u63D0\u793A\u8BCD\u3001\u6700\u591A 14 \u5F20\u53C2\u8003\u56FE\u7247\uFF0C\u6216\u540C\u65F6\u63D0\u4F9B\u4E24\u8005\u3002",
6500
+ maxItems: 15,
6646
6501
  allOf: [
6647
6502
  {
6648
6503
  contains: {
@@ -6656,25 +6511,6 @@ var image_generated_default = [
6656
6511
  "type"
6657
6512
  ]
6658
6513
  },
6659
- minContains: 1,
6660
- maxContains: 1
6661
- },
6662
- {
6663
- contains: {
6664
- type: "object",
6665
- properties: {
6666
- type: {
6667
- const: "image"
6668
- },
6669
- role: {
6670
- const: "mask"
6671
- }
6672
- },
6673
- required: [
6674
- "type",
6675
- "role"
6676
- ]
6677
- },
6678
6514
  minContains: 0,
6679
6515
  maxContains: 1
6680
6516
  },
@@ -6684,12 +6520,6 @@ var image_generated_default = [
6684
6520
  properties: {
6685
6521
  type: {
6686
6522
  const: "image"
6687
- },
6688
- role: {
6689
- enum: [
6690
- "source",
6691
- "reference"
6692
- ]
6693
6523
  }
6694
6524
  },
6695
6525
  required: [
@@ -6697,131 +6527,396 @@ var image_generated_default = [
6697
6527
  ]
6698
6528
  },
6699
6529
  minContains: 0,
6700
- maxContains: 16
6701
- },
6702
- {
6703
- if: {
6704
- contains: {
6705
- type: "object",
6706
- properties: {
6707
- type: {
6708
- const: "image"
6709
- },
6710
- role: {
6711
- const: "mask"
6712
- }
6713
- },
6714
- required: [
6715
- "type",
6716
- "role"
6717
- ]
6718
- },
6719
- minContains: 1
6720
- },
6721
- then: {
6722
- contains: {
6723
- type: "object",
6724
- properties: {
6725
- type: {
6726
- const: "image"
6727
- },
6728
- role: {
6729
- enum: [
6730
- "source",
6731
- "reference"
6732
- ]
6733
- }
6734
- },
6735
- required: [
6736
- "type"
6737
- ]
6738
- },
6739
- minContains: 1
6740
- }
6530
+ maxContains: 14
6741
6531
  }
6742
6532
  ]
6743
6533
  },
6744
- quality: {
6745
- type: "string",
6746
- title: "\u56FE\u7247\u8D28\u91CF",
6747
- enum: [
6748
- "auto",
6749
- "low",
6750
- "medium",
6751
- "high"
6752
- ],
6753
- "x-ui": {
6754
- order: 12,
6755
- optionLabels: {
6756
- auto: "\u81EA\u52A8",
6757
- low: "\u4F4E",
6758
- medium: "\u4E2D",
6759
- high: "\u9AD8"
6760
- },
6761
- control: "segmented"
6762
- }
6763
- },
6764
- count: {
6765
- type: "integer",
6766
- title: "\u8F93\u51FA\u5F20\u6570",
6767
- minimum: 1,
6768
- maximum: 10,
6769
- "x-ui": {
6770
- order: 13,
6771
- control: "range"
6772
- }
6773
- },
6774
- output_format: {
6775
- type: "string",
6776
- description: "\u8F93\u51FA\u56FE\u7247\u7684\u7F16\u7801\u683C\u5F0F\u3002",
6777
- enum: [
6778
- "png",
6779
- "jpeg"
6780
- ],
6781
- title: "\u56FE\u7247\u683C\u5F0F",
6782
- "x-ui": {
6783
- order: 14,
6784
- optionLabels: {
6785
- png: "PNG",
6786
- jpeg: "JPEG"
6787
- },
6788
- control: "segmented"
6789
- }
6790
- },
6791
6534
  aspect_ratio: {
6792
6535
  type: "string",
6793
6536
  enum: [
6794
6537
  "1:1",
6795
6538
  "16:9",
6796
6539
  "9:16",
6797
- "4:3",
6798
6540
  "3:4",
6541
+ "4:3",
6799
6542
  "3:2",
6800
6543
  "2:3",
6544
+ "4:5",
6545
+ "5:4",
6801
6546
  "21:9",
6547
+ "1:4",
6548
+ "4:1",
6549
+ "1:8",
6550
+ "8:1",
6802
6551
  "9:21"
6803
6552
  ],
6804
6553
  default: "1:1",
6805
6554
  title: "\u753B\u9762\u6BD4\u4F8B",
6806
- description: "\u9009\u62E9\u8F93\u51FA\u753B\u9762\u7684\u5BBD\u9AD8\u6BD4\u4F8B\u3002",
6807
6555
  "x-ui": {
6808
- order: 10,
6809
- control: "segmented"
6556
+ control: "select",
6557
+ order: 10
6810
6558
  }
6811
6559
  },
6812
6560
  resolution: {
6813
6561
  type: "string",
6814
6562
  enum: [
6815
- "1k",
6816
- "2k",
6817
- "4k"
6563
+ "1K",
6564
+ "2K",
6565
+ "4K"
6818
6566
  ],
6819
- default: "1k",
6567
+ default: "1K",
6820
6568
  title: "\u5206\u8FA8\u7387",
6821
- description: "\u9009\u62E9\u8F93\u51FA\u56FE\u7247\u7684\u5206\u8FA8\u7387\u6863\u4F4D\u3002",
6822
6569
  "x-ui": {
6823
- order: 11,
6824
- control: "segmented"
6570
+ control: "segmented",
6571
+ order: 11
6572
+ }
6573
+ }
6574
+ },
6575
+ required: [
6576
+ "content"
6577
+ ],
6578
+ additionalProperties: false
6579
+ },
6580
+ outputSchema: {},
6581
+ metering: {
6582
+ schemaVersion: 1,
6583
+ kind: "token",
6584
+ metrics: [
6585
+ {
6586
+ metric: "requests",
6587
+ requirement: "required"
6588
+ },
6589
+ {
6590
+ metric: "input_tokens",
6591
+ requirement: "required"
6592
+ },
6593
+ {
6594
+ metric: "output_tokens",
6595
+ requirement: "required"
6596
+ },
6597
+ {
6598
+ metric: "input_images",
6599
+ requirement: "informational"
6600
+ },
6601
+ {
6602
+ metric: "output_images",
6603
+ requirement: "informational"
6604
+ }
6605
+ ]
6606
+ }
6607
+ }
6608
+ ],
6609
+ endpoints: []
6610
+ },
6611
+ {
6612
+ id: "openai/gpt-image-2",
6613
+ contractVersion: 2,
6614
+ developer: "openai",
6615
+ displayName: "GPT-Image-2",
6616
+ summary: "GPT Image 2 \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u56FE\u8F93\u5165\u3001\u8499\u7248\u53CA\u81EA\u5B9A\u4E49\u8F93\u51FA\u5C3A\u5BF8\u3002",
6617
+ kind: "image",
6618
+ family: "GPT Image",
6619
+ versionLabel: "2",
6620
+ aliases: [
6621
+ "azure/gpt-image-2",
6622
+ "gpt-image-2",
6623
+ "gpt-image2",
6624
+ "gptimage2"
6625
+ ],
6626
+ capabilities: {
6627
+ inputModalities: [
6628
+ "text",
6629
+ "image"
6630
+ ],
6631
+ outputModalities: [
6632
+ "image"
6633
+ ],
6634
+ inputModes: [
6635
+ "text-to-image",
6636
+ "image-to-image"
6637
+ ],
6638
+ features: []
6639
+ },
6640
+ operations: [
6641
+ {
6642
+ operation: "image.generate",
6643
+ inputModalities: [
6644
+ "text",
6645
+ "image"
6646
+ ],
6647
+ outputModalities: [
6648
+ "image"
6649
+ ],
6650
+ inputSchema: {
6651
+ $schema: "https://json-schema.org/draft/2020-12/schema",
6652
+ type: "object",
6653
+ properties: {
6654
+ content: {
6655
+ type: "array",
6656
+ minItems: 1,
6657
+ items: {
6658
+ oneOf: [
6659
+ {
6660
+ type: "object",
6661
+ properties: {
6662
+ type: {
6663
+ const: "text"
6664
+ },
6665
+ text: {
6666
+ type: "string",
6667
+ title: "\u63D0\u793A\u8BCD",
6668
+ minLength: 1,
6669
+ maxLength: 32e3,
6670
+ description: "\u63CF\u8FF0\u8981\u751F\u6210\u7684\u56FE\u7247\uFF0C\u6216\u5BF9\u8F93\u5165\u56FE\u7247\u7684\u4FEE\u6539\u8981\u6C42\u3002",
6671
+ "x-ui": {
6672
+ order: 1,
6673
+ control: "textarea"
6674
+ }
6675
+ },
6676
+ role: {
6677
+ const: "prompt",
6678
+ title: "\u7528\u9014"
6679
+ }
6680
+ },
6681
+ required: [
6682
+ "type",
6683
+ "text"
6684
+ ],
6685
+ additionalProperties: false
6686
+ },
6687
+ {
6688
+ type: "object",
6689
+ properties: {
6690
+ type: {
6691
+ const: "image"
6692
+ },
6693
+ source: {
6694
+ oneOf: [
6695
+ {
6696
+ type: "string",
6697
+ minLength: 1,
6698
+ format: "uri",
6699
+ pattern: "^(https?://|data:image/)"
6700
+ },
6701
+ {
6702
+ type: "object",
6703
+ properties: {
6704
+ assetId: {
6705
+ type: "string",
6706
+ minLength: 1
6707
+ }
6708
+ },
6709
+ required: [
6710
+ "assetId"
6711
+ ],
6712
+ additionalProperties: false
6713
+ }
6714
+ ]
6715
+ },
6716
+ role: {
6717
+ type: "string",
6718
+ enum: [
6719
+ "source",
6720
+ "reference",
6721
+ "mask"
6722
+ ],
6723
+ title: "\u7528\u9014"
6724
+ }
6725
+ },
6726
+ required: [
6727
+ "type",
6728
+ "source"
6729
+ ],
6730
+ additionalProperties: false
6731
+ }
6732
+ ]
6733
+ },
6734
+ "x-ui": {
6735
+ control: "content-parts",
6736
+ order: 0
6737
+ },
6738
+ title: "\u8F93\u5165\u5185\u5BB9",
6739
+ description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u8F93\u5165\u56FE\u7247\u548C\u4E00\u5F20\u8499\u7248\u3002",
6740
+ maxItems: 18,
6741
+ allOf: [
6742
+ {
6743
+ contains: {
6744
+ type: "object",
6745
+ properties: {
6746
+ type: {
6747
+ const: "text"
6748
+ }
6749
+ },
6750
+ required: [
6751
+ "type"
6752
+ ]
6753
+ },
6754
+ minContains: 1,
6755
+ maxContains: 1
6756
+ },
6757
+ {
6758
+ contains: {
6759
+ type: "object",
6760
+ properties: {
6761
+ type: {
6762
+ const: "image"
6763
+ },
6764
+ role: {
6765
+ const: "mask"
6766
+ }
6767
+ },
6768
+ required: [
6769
+ "type",
6770
+ "role"
6771
+ ]
6772
+ },
6773
+ minContains: 0,
6774
+ maxContains: 1
6775
+ },
6776
+ {
6777
+ contains: {
6778
+ type: "object",
6779
+ properties: {
6780
+ type: {
6781
+ const: "image"
6782
+ },
6783
+ role: {
6784
+ enum: [
6785
+ "source",
6786
+ "reference"
6787
+ ]
6788
+ }
6789
+ },
6790
+ required: [
6791
+ "type"
6792
+ ]
6793
+ },
6794
+ minContains: 0,
6795
+ maxContains: 16
6796
+ },
6797
+ {
6798
+ if: {
6799
+ contains: {
6800
+ type: "object",
6801
+ properties: {
6802
+ type: {
6803
+ const: "image"
6804
+ },
6805
+ role: {
6806
+ const: "mask"
6807
+ }
6808
+ },
6809
+ required: [
6810
+ "type",
6811
+ "role"
6812
+ ]
6813
+ },
6814
+ minContains: 1
6815
+ },
6816
+ then: {
6817
+ contains: {
6818
+ type: "object",
6819
+ properties: {
6820
+ type: {
6821
+ const: "image"
6822
+ },
6823
+ role: {
6824
+ enum: [
6825
+ "source",
6826
+ "reference"
6827
+ ]
6828
+ }
6829
+ },
6830
+ required: [
6831
+ "type"
6832
+ ]
6833
+ },
6834
+ minContains: 1
6835
+ }
6836
+ }
6837
+ ]
6838
+ },
6839
+ quality: {
6840
+ type: "string",
6841
+ title: "\u56FE\u7247\u8D28\u91CF",
6842
+ enum: [
6843
+ "auto",
6844
+ "low",
6845
+ "medium",
6846
+ "high"
6847
+ ],
6848
+ "x-ui": {
6849
+ order: 12,
6850
+ optionLabels: {
6851
+ auto: "\u81EA\u52A8",
6852
+ low: "\u4F4E",
6853
+ medium: "\u4E2D",
6854
+ high: "\u9AD8"
6855
+ },
6856
+ control: "segmented"
6857
+ }
6858
+ },
6859
+ count: {
6860
+ type: "integer",
6861
+ title: "\u8F93\u51FA\u5F20\u6570",
6862
+ minimum: 1,
6863
+ maximum: 10,
6864
+ "x-ui": {
6865
+ order: 13,
6866
+ control: "range"
6867
+ }
6868
+ },
6869
+ output_format: {
6870
+ type: "string",
6871
+ description: "\u8F93\u51FA\u56FE\u7247\u7684\u7F16\u7801\u683C\u5F0F\u3002",
6872
+ enum: [
6873
+ "png",
6874
+ "jpeg"
6875
+ ],
6876
+ title: "\u56FE\u7247\u683C\u5F0F",
6877
+ "x-ui": {
6878
+ order: 14,
6879
+ optionLabels: {
6880
+ png: "PNG",
6881
+ jpeg: "JPEG"
6882
+ },
6883
+ control: "segmented"
6884
+ }
6885
+ },
6886
+ aspect_ratio: {
6887
+ type: "string",
6888
+ enum: [
6889
+ "1:1",
6890
+ "16:9",
6891
+ "9:16",
6892
+ "4:3",
6893
+ "3:4",
6894
+ "3:2",
6895
+ "2:3",
6896
+ "21:9",
6897
+ "9:21"
6898
+ ],
6899
+ default: "1:1",
6900
+ title: "\u753B\u9762\u6BD4\u4F8B",
6901
+ description: "\u9009\u62E9\u8F93\u51FA\u753B\u9762\u7684\u5BBD\u9AD8\u6BD4\u4F8B\u3002",
6902
+ "x-ui": {
6903
+ order: 10,
6904
+ control: "segmented"
6905
+ }
6906
+ },
6907
+ resolution: {
6908
+ type: "string",
6909
+ enum: [
6910
+ "1k",
6911
+ "2k",
6912
+ "4k"
6913
+ ],
6914
+ default: "1k",
6915
+ title: "\u5206\u8FA8\u7387",
6916
+ description: "\u9009\u62E9\u8F93\u51FA\u56FE\u7247\u7684\u5206\u8FA8\u7387\u6863\u4F4D\u3002",
6917
+ "x-ui": {
6918
+ order: 11,
6919
+ control: "segmented"
6825
6920
  }
6826
6921
  }
6827
6922
  },
@@ -32729,12 +32824,1371 @@ var language_generated_default = [
32729
32824
 
32730
32825
  // src/catalog/generated/video.generated.json
32731
32826
  var video_generated_default = [
32827
+ {
32828
+ id: "depth-anything/video-depth-anything-small",
32829
+ contractVersion: 1,
32830
+ developer: "depth-anything",
32831
+ displayName: "Video Depth Anything Small",
32832
+ summary: "Extract temporally consistent grayscale depth maps from a video while preserving its audio.",
32833
+ kind: "video",
32834
+ family: "Video Depth Anything",
32835
+ versionLabel: "Small",
32836
+ aliases: [],
32837
+ capabilities: {
32838
+ inputModalities: [
32839
+ "video"
32840
+ ],
32841
+ outputModalities: [
32842
+ "video"
32843
+ ],
32844
+ inputModes: [
32845
+ "video-depth"
32846
+ ],
32847
+ features: [
32848
+ "video-depth"
32849
+ ]
32850
+ },
32851
+ operations: [
32852
+ {
32853
+ operation: "video.depth",
32854
+ inputModalities: [
32855
+ "video"
32856
+ ],
32857
+ outputModalities: [
32858
+ "video"
32859
+ ],
32860
+ inputSchema: {
32861
+ $schema: "https://json-schema.org/draft/2020-12/schema",
32862
+ type: "object",
32863
+ properties: {
32864
+ content: {
32865
+ type: "array",
32866
+ minItems: 1,
32867
+ maxItems: 1,
32868
+ items: {
32869
+ oneOf: [
32870
+ {
32871
+ type: "object",
32872
+ properties: {
32873
+ type: {
32874
+ const: "video"
32875
+ },
32876
+ source: {
32877
+ oneOf: [
32878
+ {
32879
+ type: "string",
32880
+ minLength: 1,
32881
+ pattern: "^https://",
32882
+ maxLength: 4096
32883
+ },
32884
+ {
32885
+ type: "object",
32886
+ properties: {
32887
+ assetId: {
32888
+ type: "string",
32889
+ minLength: 1
32890
+ }
32891
+ },
32892
+ required: [
32893
+ "assetId"
32894
+ ],
32895
+ additionalProperties: false
32896
+ }
32897
+ ]
32898
+ },
32899
+ role: {
32900
+ type: "string",
32901
+ enum: [
32902
+ "source"
32903
+ ]
32904
+ }
32905
+ },
32906
+ required: [
32907
+ "type",
32908
+ "source",
32909
+ "role"
32910
+ ],
32911
+ additionalProperties: false
32912
+ }
32913
+ ]
32914
+ },
32915
+ "x-ui": {
32916
+ control: "content-parts",
32917
+ order: 0
32918
+ }
32919
+ },
32920
+ resolution: {
32921
+ type: "string",
32922
+ enum: [
32923
+ "480p",
32924
+ "720p"
32925
+ ],
32926
+ default: "720p",
32927
+ description: "Limit the source's long edge to 1280 pixels, then apply scale 2/3 at 480p or 1 at 720p. Output dimensions are rounded to even pixels.",
32928
+ title: "\u5206\u8FA8\u7387",
32929
+ "x-ui": {
32930
+ order: 10
32931
+ }
32932
+ }
32933
+ },
32934
+ required: [
32935
+ "content"
32936
+ ],
32937
+ additionalProperties: false
32938
+ },
32939
+ outputSchema: {},
32940
+ metering: {
32941
+ schemaVersion: 1,
32942
+ kind: "non_token",
32943
+ metrics: [
32944
+ {
32945
+ metric: "requests",
32946
+ requirement: "required"
32947
+ }
32948
+ ]
32949
+ }
32950
+ }
32951
+ ],
32952
+ endpoints: []
32953
+ },
32954
+ {
32955
+ id: "meta/sam-3.1",
32956
+ contractVersion: 1,
32957
+ developer: "meta",
32958
+ displayName: "SAM 3.1",
32959
+ summary: "Segment video objects by description or positive/negative points. Preview one frame, then track one selected object and export a mask, tracking preview and transparent foreground. Up to 30 seconds / 900 frames.",
32960
+ kind: "video",
32961
+ family: "Segment Anything",
32962
+ versionLabel: "3.1",
32963
+ aliases: [],
32964
+ capabilities: {
32965
+ inputModalities: [
32966
+ "text",
32967
+ "video"
32968
+ ],
32969
+ outputModalities: [
32970
+ "image",
32971
+ "video"
32972
+ ],
32973
+ inputModes: [
32974
+ "video-segment"
32975
+ ],
32976
+ features: [
32977
+ "video-segment"
32978
+ ]
32979
+ },
32980
+ operations: [
32981
+ {
32982
+ operation: "video.segment",
32983
+ inputModalities: [
32984
+ "text",
32985
+ "video"
32986
+ ],
32987
+ outputModalities: [
32988
+ "image",
32989
+ "video"
32990
+ ],
32991
+ inputSchema: {
32992
+ $schema: "https://json-schema.org/draft/2020-12/schema",
32993
+ type: "object",
32994
+ properties: {
32995
+ content: {
32996
+ type: "array",
32997
+ minItems: 1,
32998
+ maxItems: 2,
32999
+ items: {
33000
+ oneOf: [
33001
+ {
33002
+ type: "object",
33003
+ properties: {
33004
+ type: {
33005
+ const: "text"
33006
+ },
33007
+ text: {
33008
+ type: "string",
33009
+ minLength: 1,
33010
+ maxLength: 200,
33011
+ pattern: "\\S",
33012
+ title: "\u76EE\u6807\u63CF\u8FF0",
33013
+ description: "Describe the objects to segment and track, such as person or roller coaster."
33014
+ },
33015
+ role: {
33016
+ type: "string",
33017
+ enum: [
33018
+ "prompt"
33019
+ ]
33020
+ }
33021
+ },
33022
+ required: [
33023
+ "type",
33024
+ "text",
33025
+ "role"
33026
+ ],
33027
+ additionalProperties: false
33028
+ },
33029
+ {
33030
+ type: "object",
33031
+ properties: {
33032
+ type: {
33033
+ const: "video"
33034
+ },
33035
+ source: {
33036
+ oneOf: [
33037
+ {
33038
+ type: "string",
33039
+ minLength: 1,
33040
+ pattern: "^https://",
33041
+ maxLength: 4096
33042
+ },
33043
+ {
33044
+ type: "object",
33045
+ properties: {
33046
+ assetId: {
33047
+ type: "string",
33048
+ minLength: 1
33049
+ }
33050
+ },
33051
+ required: [
33052
+ "assetId"
33053
+ ],
33054
+ additionalProperties: false
33055
+ }
33056
+ ]
33057
+ },
33058
+ role: {
33059
+ type: "string",
33060
+ enum: [
33061
+ "source"
33062
+ ]
33063
+ }
33064
+ },
33065
+ required: [
33066
+ "type",
33067
+ "source",
33068
+ "role"
33069
+ ],
33070
+ additionalProperties: false
33071
+ }
33072
+ ]
33073
+ },
33074
+ "x-ui": {
33075
+ control: "content-parts",
33076
+ order: 0
33077
+ },
33078
+ allOf: [
33079
+ {
33080
+ contains: {
33081
+ type: "object",
33082
+ properties: {
33083
+ type: {
33084
+ const: "video"
33085
+ }
33086
+ },
33087
+ required: [
33088
+ "type"
33089
+ ]
33090
+ },
33091
+ minContains: 1,
33092
+ maxContains: 1
33093
+ },
33094
+ {
33095
+ contains: {
33096
+ type: "object",
33097
+ properties: {
33098
+ type: {
33099
+ const: "text"
33100
+ }
33101
+ },
33102
+ required: [
33103
+ "type"
33104
+ ]
33105
+ },
33106
+ minContains: 0,
33107
+ maxContains: 1
33108
+ }
33109
+ ],
33110
+ description: "One source video up to 30 seconds / 900 frames, with either an object description or normalized point prompts. Point preview returns two PNGs; tracking also returns a transparent foreground WebM."
33111
+ },
33112
+ resolution: {
33113
+ type: "string",
33114
+ enum: [
33115
+ "480p",
33116
+ "720p"
33117
+ ],
33118
+ default: "720p",
33119
+ description: "Limit the source's long edge to 1280 pixels, then apply scale 2/3 at 480p or 1 at 720p. Output dimensions are rounded to even pixels.",
33120
+ title: "\u5206\u8FA8\u7387",
33121
+ "x-ui": {
33122
+ order: 10
33123
+ }
33124
+ },
33125
+ mode: {
33126
+ type: "string",
33127
+ enum: [
33128
+ "preview",
33129
+ "track"
33130
+ ],
33131
+ description: "Point preview on one frame, or selected-object tracking across the clip. Omitted mode defaults to preview only when point prompts are supplied."
33132
+ },
33133
+ preview_time_ms: {
33134
+ type: "integer",
33135
+ minimum: 0,
33136
+ exclusiveMaximum: 3e4,
33137
+ description: "A prompted frame time to preview, in milliseconds."
33138
+ },
33139
+ prompts: {
33140
+ type: "array",
33141
+ minItems: 1,
33142
+ maxItems: 16,
33143
+ items: {
33144
+ type: "object",
33145
+ additionalProperties: false,
33146
+ required: [
33147
+ "time_ms",
33148
+ "points"
33149
+ ],
33150
+ properties: {
33151
+ time_ms: {
33152
+ type: "integer",
33153
+ minimum: 0,
33154
+ exclusiveMaximum: 3e4
33155
+ },
33156
+ points: {
33157
+ type: "array",
33158
+ minItems: 1,
33159
+ maxItems: 32,
33160
+ items: {
33161
+ type: "object",
33162
+ additionalProperties: false,
33163
+ required: [
33164
+ "x",
33165
+ "y",
33166
+ "label"
33167
+ ],
33168
+ properties: {
33169
+ x: {
33170
+ type: "number",
33171
+ minimum: 0,
33172
+ maximum: 1
33173
+ },
33174
+ y: {
33175
+ type: "number",
33176
+ minimum: 0,
33177
+ maximum: 1
33178
+ },
33179
+ label: {
33180
+ type: "integer",
33181
+ enum: [
33182
+ 0,
33183
+ 1
33184
+ ],
33185
+ description: "1 includes foreground; 0 excludes background."
33186
+ }
33187
+ }
33188
+ },
33189
+ contains: {
33190
+ type: "object",
33191
+ properties: {
33192
+ label: {
33193
+ const: 1
33194
+ }
33195
+ },
33196
+ required: [
33197
+ "label"
33198
+ ]
33199
+ },
33200
+ minContains: 1
33201
+ }
33202
+ }
33203
+ },
33204
+ description: "Unique frame times and normalized positive/negative points for one tracked object. Each frame requires a positive point."
33205
+ }
33206
+ },
33207
+ required: [
33208
+ "content"
33209
+ ],
33210
+ additionalProperties: false,
33211
+ oneOf: [
33212
+ {
33213
+ required: [
33214
+ "prompts",
33215
+ "preview_time_ms"
33216
+ ],
33217
+ properties: {
33218
+ content: {
33219
+ type: "array",
33220
+ minItems: 1,
33221
+ maxItems: 1
33222
+ }
33223
+ }
33224
+ },
33225
+ {
33226
+ not: {
33227
+ anyOf: [
33228
+ {
33229
+ required: [
33230
+ "mode"
33231
+ ]
33232
+ },
33233
+ {
33234
+ required: [
33235
+ "preview_time_ms"
33236
+ ]
33237
+ },
33238
+ {
33239
+ required: [
33240
+ "prompts"
33241
+ ]
33242
+ }
33243
+ ]
33244
+ },
33245
+ properties: {
33246
+ content: {
33247
+ type: "array",
33248
+ minItems: 2,
33249
+ maxItems: 2
33250
+ }
33251
+ }
33252
+ }
33253
+ ]
33254
+ },
33255
+ outputSchema: {
33256
+ type: "object",
33257
+ properties: {
33258
+ images: {
33259
+ type: "array",
33260
+ minItems: 2,
33261
+ maxItems: 2,
33262
+ prefixItems: [
33263
+ {
33264
+ type: "string",
33265
+ format: "uri",
33266
+ title: "Frame mask",
33267
+ "x-ui": {
33268
+ outputRole: "mask"
33269
+ }
33270
+ },
33271
+ {
33272
+ type: "string",
33273
+ format: "uri",
33274
+ title: "Selection overlay",
33275
+ "x-ui": {
33276
+ outputRole: "selection-overlay",
33277
+ defaultPreview: true
33278
+ }
33279
+ }
33280
+ ]
33281
+ },
33282
+ videos: {
33283
+ type: "array",
33284
+ minItems: 2,
33285
+ maxItems: 3,
33286
+ prefixItems: [
33287
+ {
33288
+ type: "string",
33289
+ format: "uri",
33290
+ title: "Segmentation mask",
33291
+ "x-ui": {
33292
+ outputRole: "mask"
33293
+ }
33294
+ },
33295
+ {
33296
+ type: "string",
33297
+ format: "uri",
33298
+ title: "Tracking preview",
33299
+ "x-ui": {
33300
+ outputRole: "tracking-preview",
33301
+ defaultPreview: true
33302
+ }
33303
+ },
33304
+ {
33305
+ type: "string",
33306
+ format: "uri",
33307
+ title: "Transparent foreground",
33308
+ "x-ui": {
33309
+ outputRole: "foreground"
33310
+ }
33311
+ }
33312
+ ]
33313
+ },
33314
+ metadata: {
33315
+ type: "object"
33316
+ }
33317
+ },
33318
+ anyOf: [
33319
+ {
33320
+ required: [
33321
+ "images"
33322
+ ]
33323
+ },
33324
+ {
33325
+ required: [
33326
+ "videos"
33327
+ ]
33328
+ }
33329
+ ],
33330
+ required: [
33331
+ "metadata"
33332
+ ],
33333
+ additionalProperties: false
33334
+ },
33335
+ metering: {
33336
+ schemaVersion: 1,
33337
+ kind: "non_token",
33338
+ metrics: [
33339
+ {
33340
+ metric: "requests",
33341
+ requirement: "required"
33342
+ }
33343
+ ]
33344
+ }
33345
+ }
33346
+ ],
33347
+ endpoints: []
33348
+ },
33349
+ {
33350
+ id: "kuaishou/kling-4.0",
33351
+ contractVersion: 1,
33352
+ developer: "kuaishou",
33353
+ displayName: "Kling 4.0",
33354
+ summary: "Generate, reference and edit video with keyframes, reusable elements and voices.",
33355
+ kind: "video",
33356
+ family: "Kling",
33357
+ versionLabel: "4.0",
33358
+ aliases: [
33359
+ "kling-4.0"
33360
+ ],
33361
+ capabilities: {
33362
+ inputModalities: [
33363
+ "text",
33364
+ "image",
33365
+ "video",
33366
+ "audio"
33367
+ ],
33368
+ outputModalities: [
33369
+ "video",
33370
+ "image",
33371
+ "audio"
33372
+ ],
33373
+ inputModes: [
33374
+ "text-to-video",
33375
+ "image-to-video",
33376
+ "video-to-video"
33377
+ ],
33378
+ features: [
33379
+ "first-frame",
33380
+ "first-last-frame",
33381
+ "reference-image",
33382
+ "reference-video",
33383
+ "voice-reference"
33384
+ ]
33385
+ },
33386
+ operations: [
33387
+ {
33388
+ operation: "video.generate",
33389
+ inputModalities: [
33390
+ "text",
33391
+ "image",
33392
+ "video",
33393
+ "audio"
33394
+ ],
33395
+ outputModalities: [
33396
+ "video"
33397
+ ],
33398
+ inputSchema: {
33399
+ $schema: "https://json-schema.org/draft/2020-12/schema",
33400
+ type: "object",
33401
+ properties: {
33402
+ content: {
33403
+ type: "array",
33404
+ minItems: 1,
33405
+ maxItems: 16,
33406
+ "x-ui": {
33407
+ media: {
33408
+ image: {
33409
+ maxItems: 10
33410
+ },
33411
+ video: {
33412
+ maxItems: 5
33413
+ },
33414
+ element: {
33415
+ maxItems: 7
33416
+ },
33417
+ voice: {
33418
+ maxItems: 3
33419
+ }
33420
+ },
33421
+ roleLimits: {
33422
+ first_frame: 1,
33423
+ last_frame: 1,
33424
+ base_video: 1
33425
+ },
33426
+ control: "content-parts",
33427
+ order: 0,
33428
+ defaultInputMode: "reference"
33429
+ },
33430
+ items: {
33431
+ oneOf: [
33432
+ {
33433
+ type: "object",
33434
+ properties: {
33435
+ type: {
33436
+ const: "text"
33437
+ },
33438
+ role: {
33439
+ const: "prompt"
33440
+ },
33441
+ text: {
33442
+ type: "string",
33443
+ minLength: 1,
33444
+ maxLength: 26e3
33445
+ }
33446
+ },
33447
+ required: [
33448
+ "type",
33449
+ "role",
33450
+ "text"
33451
+ ],
33452
+ additionalProperties: false
33453
+ },
33454
+ {
33455
+ type: "object",
33456
+ properties: {
33457
+ type: {
33458
+ const: "image"
33459
+ },
33460
+ role: {
33461
+ const: "first_frame"
33462
+ },
33463
+ source: {
33464
+ oneOf: [
33465
+ {
33466
+ type: "string",
33467
+ minLength: 1
33468
+ },
33469
+ {
33470
+ type: "object",
33471
+ properties: {
33472
+ assetId: {
33473
+ type: "string",
33474
+ minLength: 1
33475
+ }
33476
+ },
33477
+ required: [
33478
+ "assetId"
33479
+ ],
33480
+ additionalProperties: false
33481
+ }
33482
+ ]
33483
+ },
33484
+ name: {
33485
+ type: "string",
33486
+ minLength: 1
33487
+ }
33488
+ },
33489
+ required: [
33490
+ "type",
33491
+ "role",
33492
+ "source"
33493
+ ],
33494
+ additionalProperties: false
33495
+ },
33496
+ {
33497
+ type: "object",
33498
+ properties: {
33499
+ type: {
33500
+ const: "image"
33501
+ },
33502
+ role: {
33503
+ const: "middle_frame"
33504
+ },
33505
+ source: {
33506
+ oneOf: [
33507
+ {
33508
+ type: "string",
33509
+ minLength: 1
33510
+ },
33511
+ {
33512
+ type: "object",
33513
+ properties: {
33514
+ assetId: {
33515
+ type: "string",
33516
+ minLength: 1
33517
+ }
33518
+ },
33519
+ required: [
33520
+ "assetId"
33521
+ ],
33522
+ additionalProperties: false
33523
+ }
33524
+ ]
33525
+ },
33526
+ name: {
33527
+ type: "string",
33528
+ minLength: 1
33529
+ }
33530
+ },
33531
+ required: [
33532
+ "type",
33533
+ "role",
33534
+ "source"
33535
+ ],
33536
+ additionalProperties: false
33537
+ },
33538
+ {
33539
+ type: "object",
33540
+ properties: {
33541
+ type: {
33542
+ const: "image"
33543
+ },
33544
+ role: {
33545
+ const: "last_frame"
33546
+ },
33547
+ source: {
33548
+ oneOf: [
33549
+ {
33550
+ type: "string",
33551
+ minLength: 1
33552
+ },
33553
+ {
33554
+ type: "object",
33555
+ properties: {
33556
+ assetId: {
33557
+ type: "string",
33558
+ minLength: 1
33559
+ }
33560
+ },
33561
+ required: [
33562
+ "assetId"
33563
+ ],
33564
+ additionalProperties: false
33565
+ }
33566
+ ]
33567
+ },
33568
+ name: {
33569
+ type: "string",
33570
+ minLength: 1
33571
+ }
33572
+ },
33573
+ required: [
33574
+ "type",
33575
+ "role",
33576
+ "source"
33577
+ ],
33578
+ additionalProperties: false
33579
+ },
33580
+ {
33581
+ type: "object",
33582
+ properties: {
33583
+ type: {
33584
+ const: "image"
33585
+ },
33586
+ role: {
33587
+ const: "reference"
33588
+ },
33589
+ source: {
33590
+ oneOf: [
33591
+ {
33592
+ type: "string",
33593
+ minLength: 1
33594
+ },
33595
+ {
33596
+ type: "object",
33597
+ properties: {
33598
+ assetId: {
33599
+ type: "string",
33600
+ minLength: 1
33601
+ }
33602
+ },
33603
+ required: [
33604
+ "assetId"
33605
+ ],
33606
+ additionalProperties: false
33607
+ }
33608
+ ]
33609
+ },
33610
+ name: {
33611
+ type: "string",
33612
+ minLength: 1
33613
+ }
33614
+ },
33615
+ required: [
33616
+ "type",
33617
+ "role",
33618
+ "source"
33619
+ ],
33620
+ additionalProperties: false
33621
+ },
33622
+ {
33623
+ type: "object",
33624
+ properties: {
33625
+ type: {
33626
+ const: "video"
33627
+ },
33628
+ role: {
33629
+ const: "reference"
33630
+ },
33631
+ source: {
33632
+ oneOf: [
33633
+ {
33634
+ type: "string",
33635
+ minLength: 1
33636
+ },
33637
+ {
33638
+ type: "object",
33639
+ properties: {
33640
+ assetId: {
33641
+ type: "string",
33642
+ minLength: 1
33643
+ }
33644
+ },
33645
+ required: [
33646
+ "assetId"
33647
+ ],
33648
+ additionalProperties: false
33649
+ }
33650
+ ]
33651
+ },
33652
+ name: {
33653
+ type: "string",
33654
+ minLength: 1
33655
+ }
33656
+ },
33657
+ required: [
33658
+ "type",
33659
+ "role",
33660
+ "source"
33661
+ ],
33662
+ additionalProperties: false
33663
+ },
33664
+ {
33665
+ type: "object",
33666
+ properties: {
33667
+ type: {
33668
+ const: "video"
33669
+ },
33670
+ role: {
33671
+ const: "source"
33672
+ },
33673
+ source: {
33674
+ oneOf: [
33675
+ {
33676
+ type: "string",
33677
+ minLength: 1
33678
+ },
33679
+ {
33680
+ type: "object",
33681
+ properties: {
33682
+ assetId: {
33683
+ type: "string",
33684
+ minLength: 1
33685
+ }
33686
+ },
33687
+ required: [
33688
+ "assetId"
33689
+ ],
33690
+ additionalProperties: false
33691
+ }
33692
+ ]
33693
+ },
33694
+ name: {
33695
+ type: "string",
33696
+ minLength: 1
33697
+ }
33698
+ },
33699
+ required: [
33700
+ "type",
33701
+ "role",
33702
+ "source"
33703
+ ],
33704
+ additionalProperties: false
33705
+ },
33706
+ {
33707
+ type: "object",
33708
+ properties: {
33709
+ type: {
33710
+ const: "resource"
33711
+ },
33712
+ resource: {
33713
+ const: "element"
33714
+ },
33715
+ source: {
33716
+ type: "string",
33717
+ minLength: 1
33718
+ },
33719
+ name: {
33720
+ type: "string",
33721
+ minLength: 1
33722
+ }
33723
+ },
33724
+ required: [
33725
+ "type",
33726
+ "resource",
33727
+ "source",
33728
+ "name"
33729
+ ],
33730
+ additionalProperties: false
33731
+ },
33732
+ {
33733
+ type: "object",
33734
+ properties: {
33735
+ type: {
33736
+ const: "resource"
33737
+ },
33738
+ resource: {
33739
+ const: "voice"
33740
+ },
33741
+ source: {
33742
+ type: "string",
33743
+ minLength: 1
33744
+ },
33745
+ name: {
33746
+ type: "string",
33747
+ minLength: 1
33748
+ }
33749
+ },
33750
+ required: [
33751
+ "type",
33752
+ "resource",
33753
+ "source",
33754
+ "name"
33755
+ ],
33756
+ additionalProperties: false
33757
+ }
33758
+ ]
33759
+ },
33760
+ allOf: [
33761
+ {
33762
+ contains: {
33763
+ type: "object",
33764
+ properties: {
33765
+ type: {
33766
+ const: "image"
33767
+ }
33768
+ },
33769
+ required: [
33770
+ "type"
33771
+ ]
33772
+ },
33773
+ minContains: 0,
33774
+ maxContains: 10
33775
+ },
33776
+ {
33777
+ contains: {
33778
+ type: "object",
33779
+ properties: {
33780
+ type: {
33781
+ const: "video"
33782
+ }
33783
+ },
33784
+ required: [
33785
+ "type"
33786
+ ]
33787
+ },
33788
+ minContains: 0,
33789
+ maxContains: 5
33790
+ },
33791
+ {
33792
+ contains: {
33793
+ type: "object",
33794
+ properties: {
33795
+ type: {
33796
+ const: "resource"
33797
+ },
33798
+ resource: {
33799
+ const: "element"
33800
+ }
33801
+ },
33802
+ required: [
33803
+ "type",
33804
+ "resource"
33805
+ ]
33806
+ },
33807
+ minContains: 0,
33808
+ maxContains: 7
33809
+ },
33810
+ {
33811
+ contains: {
33812
+ type: "object",
33813
+ properties: {
33814
+ type: {
33815
+ const: "resource"
33816
+ },
33817
+ resource: {
33818
+ const: "voice"
33819
+ }
33820
+ },
33821
+ required: [
33822
+ "type",
33823
+ "resource"
33824
+ ]
33825
+ },
33826
+ minContains: 0,
33827
+ maxContains: 3
33828
+ },
33829
+ {
33830
+ contains: {
33831
+ type: "object",
33832
+ properties: {
33833
+ type: {
33834
+ const: "image"
33835
+ },
33836
+ role: {
33837
+ const: "first_frame"
33838
+ }
33839
+ },
33840
+ required: [
33841
+ "type",
33842
+ "role"
33843
+ ]
33844
+ },
33845
+ minContains: 0,
33846
+ maxContains: 1
33847
+ },
33848
+ {
33849
+ contains: {
33850
+ type: "object",
33851
+ properties: {
33852
+ type: {
33853
+ const: "image"
33854
+ },
33855
+ role: {
33856
+ const: "last_frame"
33857
+ }
33858
+ },
33859
+ required: [
33860
+ "type",
33861
+ "role"
33862
+ ]
33863
+ },
33864
+ minContains: 0,
33865
+ maxContains: 1
33866
+ },
33867
+ {
33868
+ contains: {
33869
+ type: "object",
33870
+ properties: {
33871
+ type: {
33872
+ const: "video"
33873
+ },
33874
+ role: {
33875
+ const: "source"
33876
+ }
33877
+ },
33878
+ required: [
33879
+ "type",
33880
+ "role"
33881
+ ]
33882
+ },
33883
+ minContains: 0,
33884
+ maxContains: 1
33885
+ }
33886
+ ]
33887
+ },
33888
+ resolution: {
33889
+ type: "string",
33890
+ enum: [
33891
+ "720p",
33892
+ "1080p"
33893
+ ],
33894
+ default: "1080p"
33895
+ },
33896
+ duration: {
33897
+ anyOf: [
33898
+ {
33899
+ const: -1
33900
+ },
33901
+ {
33902
+ type: "integer",
33903
+ minimum: 3,
33904
+ maximum: 30,
33905
+ description: "Omit to allow prompt/source duration inference; otherwise 3\u201330 seconds."
33906
+ }
33907
+ ],
33908
+ "x-ui": {
33909
+ control: "range-with-auto",
33910
+ autoValue: -1,
33911
+ minimum: 3,
33912
+ maximum: 30
33913
+ }
33914
+ },
33915
+ aspect_ratio: {
33916
+ type: "string",
33917
+ enum: [
33918
+ "21:9",
33919
+ "16:9",
33920
+ "9:16",
33921
+ "1:1",
33922
+ "adaptive"
33923
+ ]
33924
+ },
33925
+ watermark: {
33926
+ type: "boolean",
33927
+ const: false,
33928
+ "x-ui": {
33929
+ hidden: true
33930
+ }
33931
+ }
33932
+ },
33933
+ required: [
33934
+ "content"
33935
+ ],
33936
+ additionalProperties: false,
33937
+ allOf: [
33938
+ {
33939
+ if: {
33940
+ anyOf: [
33941
+ {
33942
+ required: [
33943
+ "aspect_ratio"
33944
+ ]
33945
+ },
33946
+ {
33947
+ properties: {
33948
+ content: {
33949
+ type: "array",
33950
+ contains: {
33951
+ anyOf: [
33952
+ {
33953
+ type: "object",
33954
+ properties: {
33955
+ type: {
33956
+ const: "image"
33957
+ },
33958
+ role: {
33959
+ const: "reference"
33960
+ },
33961
+ source: {
33962
+ oneOf: [
33963
+ {
33964
+ type: "string",
33965
+ minLength: 1
33966
+ },
33967
+ {
33968
+ type: "object",
33969
+ properties: {
33970
+ assetId: {
33971
+ type: "string",
33972
+ minLength: 1
33973
+ }
33974
+ },
33975
+ required: [
33976
+ "assetId"
33977
+ ],
33978
+ additionalProperties: false
33979
+ }
33980
+ ]
33981
+ },
33982
+ name: {
33983
+ type: "string",
33984
+ minLength: 1
33985
+ }
33986
+ },
33987
+ required: [
33988
+ "type",
33989
+ "role",
33990
+ "source"
33991
+ ],
33992
+ additionalProperties: false
33993
+ },
33994
+ {
33995
+ type: "object",
33996
+ properties: {
33997
+ type: {
33998
+ const: "video"
33999
+ },
34000
+ role: {
34001
+ const: "reference"
34002
+ },
34003
+ source: {
34004
+ oneOf: [
34005
+ {
34006
+ type: "string",
34007
+ minLength: 1
34008
+ },
34009
+ {
34010
+ type: "object",
34011
+ properties: {
34012
+ assetId: {
34013
+ type: "string",
34014
+ minLength: 1
34015
+ }
34016
+ },
34017
+ required: [
34018
+ "assetId"
34019
+ ],
34020
+ additionalProperties: false
34021
+ }
34022
+ ]
34023
+ },
34024
+ name: {
34025
+ type: "string",
34026
+ minLength: 1
34027
+ }
34028
+ },
34029
+ required: [
34030
+ "type",
34031
+ "role",
34032
+ "source"
34033
+ ],
34034
+ additionalProperties: false
34035
+ },
34036
+ {
34037
+ type: "object",
34038
+ properties: {
34039
+ type: {
34040
+ const: "video"
34041
+ },
34042
+ role: {
34043
+ const: "source"
34044
+ },
34045
+ source: {
34046
+ oneOf: [
34047
+ {
34048
+ type: "string",
34049
+ minLength: 1
34050
+ },
34051
+ {
34052
+ type: "object",
34053
+ properties: {
34054
+ assetId: {
34055
+ type: "string",
34056
+ minLength: 1
34057
+ }
34058
+ },
34059
+ required: [
34060
+ "assetId"
34061
+ ],
34062
+ additionalProperties: false
34063
+ }
34064
+ ]
34065
+ },
34066
+ name: {
34067
+ type: "string",
34068
+ minLength: 1
34069
+ }
34070
+ },
34071
+ required: [
34072
+ "type",
34073
+ "role",
34074
+ "source"
34075
+ ],
34076
+ additionalProperties: false
34077
+ },
34078
+ {
34079
+ type: "object",
34080
+ properties: {
34081
+ type: {
34082
+ const: "resource"
34083
+ },
34084
+ resource: {
34085
+ const: "element"
34086
+ },
34087
+ source: {
34088
+ type: "string",
34089
+ minLength: 1
34090
+ },
34091
+ name: {
34092
+ type: "string",
34093
+ minLength: 1
34094
+ }
34095
+ },
34096
+ required: [
34097
+ "type",
34098
+ "resource",
34099
+ "source",
34100
+ "name"
34101
+ ],
34102
+ additionalProperties: false
34103
+ },
34104
+ {
34105
+ type: "object",
34106
+ properties: {
34107
+ type: {
34108
+ const: "resource"
34109
+ },
34110
+ resource: {
34111
+ const: "voice"
34112
+ },
34113
+ source: {
34114
+ type: "string",
34115
+ minLength: 1
34116
+ },
34117
+ name: {
34118
+ type: "string",
34119
+ minLength: 1
34120
+ }
34121
+ },
34122
+ required: [
34123
+ "type",
34124
+ "resource",
34125
+ "source",
34126
+ "name"
34127
+ ],
34128
+ additionalProperties: false
34129
+ }
34130
+ ]
34131
+ }
34132
+ }
34133
+ },
34134
+ required: [
34135
+ "content"
34136
+ ]
34137
+ }
34138
+ ]
34139
+ },
34140
+ then: {
34141
+ properties: {
34142
+ content: {
34143
+ type: "array",
34144
+ contains: {
34145
+ type: "object",
34146
+ properties: {
34147
+ type: {
34148
+ const: "text"
34149
+ }
34150
+ },
34151
+ required: [
34152
+ "type"
34153
+ ]
34154
+ },
34155
+ minContains: 1,
34156
+ maxContains: 1
34157
+ }
34158
+ }
34159
+ }
34160
+ }
34161
+ ]
34162
+ },
34163
+ outputSchema: {},
34164
+ metering: {
34165
+ schemaVersion: 1,
34166
+ kind: "non_token",
34167
+ metrics: [
34168
+ {
34169
+ metric: "requests",
34170
+ requirement: "required"
34171
+ },
34172
+ {
34173
+ metric: "output_video_seconds",
34174
+ requirement: "required"
34175
+ },
34176
+ {
34177
+ metric: "input_video_seconds",
34178
+ requirement: "required"
34179
+ }
34180
+ ]
34181
+ }
34182
+ }
34183
+ ],
34184
+ endpoints: []
34185
+ },
32732
34186
  {
32733
34187
  id: "bytedance/video-super-resolution",
32734
34188
  contractVersion: 1,
32735
34189
  developer: "bytedance",
32736
34190
  displayName: "Volcengine Video Super Resolution",
32737
- summary: "Upscale a video through Volcengine VOD and save the output.",
34191
+ summary: "Upscale a video through Volcengine VOD.",
32738
34192
  kind: "video",
32739
34193
  family: "Volcengine Upscale",
32740
34194
  aliases: [],
@@ -32745,7 +34199,9 @@ var video_generated_default = [
32745
34199
  outputModalities: [
32746
34200
  "video"
32747
34201
  ],
32748
- inputModes: [],
34202
+ inputModes: [
34203
+ "video-upscale"
34204
+ ],
32749
34205
  features: []
32750
34206
  },
32751
34207
  operations: [
@@ -33150,7 +34606,8 @@ var video_generated_default = [
33150
34606
  minDurationSeconds: 2,
33151
34607
  maxDurationSeconds: 15
33152
34608
  }
33153
- }
34609
+ },
34610
+ defaultInputMode: "reference"
33154
34611
  },
33155
34612
  title: "\u8F93\u5165\u5185\u5BB9",
33156
34613
  description: "\u5728\u540C\u4E00\u4E2A\u5217\u8868\u4E2D\u7EC4\u5408\u6587\u672C\u3001\u56FE\u7247\u3001\u89C6\u9891\u548C\u97F3\u9891\u3002\u56FE\u7247\u6700\u591A 9 \u5F20\uFF0C\u89C6\u9891\u548C\u97F3\u9891\u5404\u6700\u591A 3 \u6BB5\uFF1B\u9996\u5C3E\u5E27\u4E0D\u80FD\u4E0E\u53C2\u8003\u7D20\u6750\u6DF7\u7528\uFF0C\u97F3\u9891\u9700\u642D\u914D\u53C2\u8003\u56FE\u7247\u6216\u89C6\u9891\u3002 \u8BF7\u6C42\u4F53\u4E0D\u8D85\u8FC7 64 MB\uFF1B\u5A92\u4F53\u6587\u4EF6\u7684\u65F6\u957F\u3001\u5C3A\u5BF8\u4E0E\u5927\u5C0F\u6700\u7EC8\u7531\u4E0A\u6E38\u6821\u9A8C\u3002",
@@ -33852,7 +35309,8 @@ var video_generated_default = [
33852
35309
  },
33853
35310
  "x-ui": {
33854
35311
  control: "content-parts",
33855
- order: 0
35312
+ order: 0,
35313
+ defaultInputMode: "reference"
33856
35314
  },
33857
35315
  title: "\u8F93\u5165\u5185\u5BB9",
33858
35316
  allOf: [
@@ -34914,7 +36372,8 @@ var video_generated_default = [
34914
36372
  },
34915
36373
  "x-ui": {
34916
36374
  control: "content-parts",
34917
- order: 0
36375
+ order: 0,
36376
+ defaultInputMode: "reference"
34918
36377
  },
34919
36378
  maxItems: 17,
34920
36379
  description: "Provide a prompt and at least one image, video or audio reference.",
@@ -35514,7 +36973,8 @@ var video_generated_default = [
35514
36973
  },
35515
36974
  "x-ui": {
35516
36975
  control: "content-parts",
35517
- order: 0
36976
+ order: 0,
36977
+ defaultInputMode: "reference"
35518
36978
  },
35519
36979
  allOf: [
35520
36980
  {
@@ -35905,7 +37365,8 @@ var video_generated_default = [
35905
37365
  },
35906
37366
  "x-ui": {
35907
37367
  control: "content-parts",
35908
- order: 0
37368
+ order: 0,
37369
+ defaultInputMode: "reference"
35909
37370
  },
35910
37371
  title: "\u8F93\u5165\u5185\u5BB9",
35911
37372
  allOf: [
@@ -36458,7 +37919,8 @@ var video_generated_default = [
36458
37919
  },
36459
37920
  "x-ui": {
36460
37921
  control: "content-parts",
36461
- order: 0
37922
+ order: 0,
37923
+ defaultInputMode: "reference"
36462
37924
  },
36463
37925
  title: "\u8F93\u5165\u5185\u5BB9",
36464
37926
  allOf: [
@@ -37009,7 +38471,8 @@ var video_generated_default = [
37009
38471
  },
37010
38472
  "x-ui": {
37011
38473
  control: "content-parts",
37012
- order: 0
38474
+ order: 0,
38475
+ defaultInputMode: "reference"
37013
38476
  },
37014
38477
  title: "\u8F93\u5165\u5185\u5BB9"
37015
38478
  },
@@ -37280,7 +38743,8 @@ var video_generated_default = [
37280
38743
  },
37281
38744
  "x-ui": {
37282
38745
  control: "content-parts",
37283
- order: 0
38746
+ order: 0,
38747
+ defaultInputMode: "reference"
37284
38748
  },
37285
38749
  title: "\u8F93\u5165\u5185\u5BB9",
37286
38750
  allOf: [
@@ -37831,7 +39295,8 @@ var video_generated_default = [
37831
39295
  },
37832
39296
  "x-ui": {
37833
39297
  control: "content-parts",
37834
- order: 0
39298
+ order: 0,
39299
+ defaultInputMode: "reference"
37835
39300
  },
37836
39301
  title: "\u8F93\u5165\u5185\u5BB9",
37837
39302
  allOf: [
@@ -39111,7 +40576,8 @@ var video_generated_default = [
39111
40576
  },
39112
40577
  "x-ui": {
39113
40578
  control: "content-parts",
39114
- order: 0
40579
+ order: 0,
40580
+ defaultInputMode: "reference"
39115
40581
  },
39116
40582
  title: "\u8F93\u5165\u5185\u5BB9",
39117
40583
  contains: {
@@ -39416,7 +40882,8 @@ var video_generated_default = [
39416
40882
  },
39417
40883
  "x-ui": {
39418
40884
  control: "content-parts",
39419
- order: 0
40885
+ order: 0,
40886
+ defaultInputMode: "reference"
39420
40887
  },
39421
40888
  title: "\u8F93\u5165\u5185\u5BB9",
39422
40889
  description: "\u4F7F\u7528\u63D0\u793A\u8BCD\u3001\u5355\u5F20\u9996\u5E27\u6216\u6700\u591A\u4E5D\u5F20\u53C2\u8003\u56FE\u7247\u751F\u6210\u89C6\u9891\u3002",
@@ -39849,7 +41316,8 @@ var video_generated_default = [
39849
41316
  },
39850
41317
  "x-ui": {
39851
41318
  control: "content-parts",
39852
- order: 0
41319
+ order: 0,
41320
+ defaultInputMode: "reference"
39853
41321
  },
39854
41322
  title: "\u8F93\u5165\u5185\u5BB9",
39855
41323
  description: "\u4F7F\u7528\u63D0\u793A\u8BCD\u3001\u5355\u5F20\u9996\u5E27\u6216\u6700\u591A\u4E5D\u5F20\u53C2\u8003\u56FE\u7247\u751F\u6210\u89C6\u9891\u3002",
@@ -40300,7 +41768,8 @@ var video_generated_default = [
40300
41768
  },
40301
41769
  "x-ui": {
40302
41770
  control: "content-parts",
40303
- order: 0
41771
+ order: 0,
41772
+ defaultInputMode: "reference"
40304
41773
  },
40305
41774
  maxItems: 3,
40306
41775
  allOf: [
@@ -40612,7 +42081,8 @@ var video_generated_default = [
40612
42081
  },
40613
42082
  "x-ui": {
40614
42083
  control: "content-parts",
40615
- order: 0
42084
+ order: 0,
42085
+ defaultInputMode: "reference"
40616
42086
  },
40617
42087
  title: "\u8F93\u5165\u5185\u5BB9",
40618
42088
  description: "\u63D0\u4F9B\u4E00\u5F20\u9996\u5E27\u56FE\u7247\uFF1B\u53EF\u9009\u6DFB\u52A0\u63D0\u793A\u8BCD\u3001\u8D1F\u9762\u63D0\u793A\u8BCD\u548C\u4E00\u6BB5\u9A71\u52A8\u97F3\u9891\u3002",
@@ -40961,7 +42431,8 @@ var video_generated_default = [
40961
42431
  },
40962
42432
  "x-ui": {
40963
42433
  control: "content-parts",
40964
- order: 0
42434
+ order: 0,
42435
+ defaultInputMode: "reference"
40965
42436
  },
40966
42437
  title: "\u8F93\u5165\u5185\u5BB9",
40967
42438
  description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\u3001\u9996\u5C3E\u5E27\u3001\u7EED\u5199\u89C6\u9891\u6216\u53C2\u8003\u7D20\u6750\uFF1B\u7EED\u5199\u89C6\u9891\u53EF\u642D\u914D\u5C3E\u5E27\uFF0C\u4E0D\u80FD\u642D\u914D\u9996\u5E27\u3001\u9A71\u52A8\u97F3\u9891\u6216\u53C2\u8003\u7D20\u6750\u3002",
@@ -41931,7 +43402,8 @@ var video_generated_default = [
41931
43402
  },
41932
43403
  "x-ui": {
41933
43404
  control: "content-parts",
41934
- order: 0
43405
+ order: 0,
43406
+ defaultInputMode: "reference"
41935
43407
  },
41936
43408
  title: "\u8F93\u5165\u5185\u5BB9",
41937
43409
  allOf: [
@@ -42529,7 +44001,8 @@ var video_generated_default = [
42529
44001
  },
42530
44002
  "x-ui": {
42531
44003
  control: "content-parts",
42532
- order: 0
44004
+ order: 0,
44005
+ defaultInputMode: "reference"
42533
44006
  },
42534
44007
  title: "\u8F93\u5165\u5185\u5BB9",
42535
44008
  allOf: [
@@ -43158,7 +44631,8 @@ var video_generated_default = [
43158
44631
  },
43159
44632
  "x-ui": {
43160
44633
  control: "content-parts",
43161
- order: 0
44634
+ order: 0,
44635
+ defaultInputMode: "reference"
43162
44636
  },
43163
44637
  title: "\u8F93\u5165\u5185\u5BB9",
43164
44638
  allOf: [
@@ -44259,7 +45733,8 @@ var video_generated_default = [
44259
45733
  minDurationSeconds: 2,
44260
45734
  maxDurationSeconds: 15
44261
45735
  }
44262
- }
45736
+ },
45737
+ defaultInputMode: "reference"
44263
45738
  },
44264
45739
  title: "\u8F93\u5165\u5185\u5BB9",
44265
45740
  description: "\u5728\u540C\u4E00\u4E2A\u5217\u8868\u4E2D\u7EC4\u5408\u6587\u672C\u3001\u56FE\u7247\u3001\u89C6\u9891\u548C\u97F3\u9891\u3002\u56FE\u7247\u6700\u591A 9 \u5F20\uFF0C\u89C6\u9891\u548C\u97F3\u9891\u5404\u6700\u591A 3 \u6BB5\uFF1B\u9996\u5C3E\u5E27\u4E0D\u80FD\u4E0E\u53C2\u8003\u7D20\u6750\u6DF7\u7528\uFF0C\u97F3\u9891\u9700\u642D\u914D\u53C2\u8003\u56FE\u7247\u6216\u89C6\u9891\u3002 \u8BF7\u6C42\u4F53\u4E0D\u8D85\u8FC7 64 MB\uFF1B\u5A92\u4F53\u6587\u4EF6\u7684\u65F6\u957F\u3001\u5C3A\u5BF8\u4E0E\u5927\u5C0F\u6700\u7EC8\u7531\u4E0A\u6E38\u6821\u9A8C\u3002",
@@ -44921,7 +46396,8 @@ var video_generated_default = [
44921
46396
  },
44922
46397
  "x-ui": {
44923
46398
  control: "content-parts",
44924
- order: 0
46399
+ order: 0,
46400
+ defaultInputMode: "reference"
44925
46401
  },
44926
46402
  title: "\u8F93\u5165\u5185\u5BB9",
44927
46403
  allOf: [
@@ -45550,7 +47026,8 @@ var video_generated_default = [
45550
47026
  },
45551
47027
  "x-ui": {
45552
47028
  control: "content-parts",
45553
- order: 0
47029
+ order: 0,
47030
+ defaultInputMode: "reference"
45554
47031
  },
45555
47032
  title: "\u8F93\u5165\u5185\u5BB9",
45556
47033
  allOf: [
@@ -46223,7 +47700,8 @@ var video_generated_default = [
46223
47700
  },
46224
47701
  "x-ui": {
46225
47702
  control: "content-parts",
46226
- order: 0
47703
+ order: 0,
47704
+ defaultInputMode: "reference"
46227
47705
  },
46228
47706
  title: "\u8F93\u5165\u5185\u5BB9",
46229
47707
  allOf: [
@@ -47200,7 +48678,8 @@ var video_generated_default = [
47200
48678
  },
47201
48679
  "x-ui": {
47202
48680
  control: "content-parts",
47203
- order: 0
48681
+ order: 0,
48682
+ defaultInputMode: "reference"
47204
48683
  },
47205
48684
  title: "\u8F93\u5165\u5185\u5BB9",
47206
48685
  description: "\u63D0\u4F9B\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u9996\u5E27\u3001\u9996\u5C3E\u5E27\u6216\u6700\u591A\u4E09\u5F20\u53C2\u8003\u56FE\u7247\u3002",
@@ -47621,7 +49100,8 @@ var video_generated_default = [
47621
49100
  },
47622
49101
  "x-ui": {
47623
49102
  control: "content-parts",
47624
- order: 0
49103
+ order: 0,
49104
+ defaultInputMode: "reference"
47625
49105
  },
47626
49106
  title: "\u8F93\u5165\u5185\u5BB9",
47627
49107
  description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\u3001\u9996\u5C3E\u5E27\u6216\u53C2\u8003\u56FE\u7247\uFF0C\u4E5F\u53EF\u7528\u63D0\u793A\u8BCD\u5EF6\u957F\u89C6\u9891\u3002\u9996\u5C3E\u5E27\u4E0E\u53C2\u8003\u56FE\u7247\u4E0D\u80FD\u6DF7\u7528\u3002",
@@ -48161,7 +49641,8 @@ var video_generated_default = [
48161
49641
  },
48162
49642
  "x-ui": {
48163
49643
  control: "content-parts",
48164
- order: 0
49644
+ order: 0,
49645
+ defaultInputMode: "reference"
48165
49646
  },
48166
49647
  title: "\u8F93\u5165\u5185\u5BB9",
48167
49648
  description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\u3001\u9996\u5C3E\u5E27\u6216\u53C2\u8003\u56FE\u7247\uFF0C\u4E5F\u53EF\u7528\u63D0\u793A\u8BCD\u5EF6\u957F\u89C6\u9891\u3002\u9996\u5C3E\u5E27\u4E0E\u53C2\u8003\u56FE\u7247\u4E0D\u80FD\u6DF7\u7528\u3002",
@@ -49197,7 +50678,8 @@ var video_generated_default = [
49197
50678
  },
49198
50679
  "x-ui": {
49199
50680
  control: "content-parts",
49200
- order: 0
50681
+ order: 0,
50682
+ defaultInputMode: "reference"
49201
50683
  },
49202
50684
  title: "\u8F93\u5165\u5185\u5BB9",
49203
50685
  description: "\u63D0\u4F9B\u4E00\u5F20\u4EBA\u7269\u56FE\u7247\uFF0C\u5E76\u5728\u53E3\u64AD\u6587\u6848\u4E0E\u5DF2\u5F55\u5236\u8BED\u97F3\u4E2D\u9009\u62E9\u4E00\u79CD\u9A71\u52A8\u65B9\u5F0F\u3002",
@@ -49673,7 +51155,8 @@ var video_generated_default = [
49673
51155
  },
49674
51156
  "x-ui": {
49675
51157
  control: "content-parts",
49676
- order: 0
51158
+ order: 0,
51159
+ defaultInputMode: "reference"
49677
51160
  },
49678
51161
  title: "\u8F93\u5165\u5185\u5BB9",
49679
51162
  description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u53C2\u8003\u56FE\u7247\u3001\u9996\u5C3E\u5E27\u6216\u4E00\u4E2A\u53C2\u8003\u89C6\u9891\u3002",
@@ -49826,7 +51309,7 @@ var video_generated_default = [
49826
51309
  },
49827
51310
  quality: {
49828
51311
  type: "string",
49829
- title: "\u751F\u6210\u6A21\u5F0F",
51312
+ title: "\u5206\u8FA8\u7387",
49830
51313
  enum: [
49831
51314
  "std",
49832
51315
  "pro",
@@ -50273,7 +51756,7 @@ var video_generated_default = [
50273
51756
  },
50274
51757
  quality: {
50275
51758
  type: "string",
50276
- title: "\u751F\u6210\u6A21\u5F0F",
51759
+ title: "\u5206\u8FA8\u7387",
50277
51760
  enum: [
50278
51761
  "std",
50279
51762
  "pro",
@@ -51099,7 +52582,8 @@ var video_generated_default = [
51099
52582
  },
51100
52583
  "x-ui": {
51101
52584
  control: "content-parts",
51102
- order: 0
52585
+ order: 0,
52586
+ defaultInputMode: "reference"
51103
52587
  },
51104
52588
  title: "\u8F93\u5165\u5185\u5BB9",
51105
52589
  description: "\u6309\u987A\u5E8F\u63D0\u4F9B\u63D0\u793A\u8BCD\uFF0C\u4EE5\u53CA\u53EF\u9009\u7684\u9996\u5C3E\u5E27\u6216\u53C2\u8003\u56FE\u7247\u3001\u89C6\u9891\u548C\u97F3\u9891\u3002",
@@ -52222,7 +53706,8 @@ var video_generated_default = [
52222
53706
  },
52223
53707
  "x-ui": {
52224
53708
  control: "content-parts",
52225
- order: 0
53709
+ order: 0,
53710
+ defaultInputMode: "reference"
52226
53711
  },
52227
53712
  title: "\u8F93\u5165\u5185\u5BB9",
52228
53713
  description: "\u63D0\u4F9B\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u6700\u591A\u4E03\u5F20\u5177\u540D\u4E3B\u4F53\u6216\u80CC\u666F\u53C2\u8003\u56FE\u3002",
@@ -52475,7 +53960,8 @@ var video_generated_default = [
52475
53960
  },
52476
53961
  "x-ui": {
52477
53962
  control: "content-parts",
52478
- order: 0
53963
+ order: 0,
53964
+ defaultInputMode: "reference"
52479
53965
  },
52480
53966
  title: "\u8F93\u5165\u5185\u5BB9",
52481
53967
  description: "\u4F7F\u7528\u63D0\u793A\u8BCD\u3001\u9996\u5C3E\u5E27\u6216\u6700\u591A\u4E03\u5F20\u53C2\u8003\u56FE\u7247\u751F\u6210\u89C6\u9891\u3002",
@@ -53014,7 +54500,8 @@ var video_generated_default = [
53014
54500
  },
53015
54501
  "x-ui": {
53016
54502
  control: "content-parts",
53017
- order: 0
54503
+ order: 0,
54504
+ defaultInputMode: "reference"
53018
54505
  },
53019
54506
  title: "\u8F93\u5165\u5185\u5BB9",
53020
54507
  description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\u3001\u9996\u5E27\u3001\u53C2\u8003\u56FE\u7247\u6216\u4E00\u4E2A\u7528\u4E8E\u7F16\u8F91/\u5EF6\u5C55\u7684\u6E90\u89C6\u9891\uFF1B\u5355\u5F20\u9996\u5E27\u751F\u6210\u53EF\u7701\u7565\u63D0\u793A\u8BCD\u3002",
@@ -53672,7 +55159,8 @@ var video_generated_default = [
53672
55159
  },
53673
55160
  "x-ui": {
53674
55161
  control: "content-parts",
53675
- order: 0
55162
+ order: 0,
55163
+ defaultInputMode: "reference"
53676
55164
  },
53677
55165
  title: "\u8F93\u5165\u5185\u5BB9",
53678
55166
  description: "\u53EF\u7EC4\u5408\u9996\u5C3E\u5E27\u3001\u7247\u5185\u5173\u952E\u5E27\u3001\u53C2\u8003\u56FE\u7247\u4E0E\u97F3\u8272\uFF1B\u672A\u63D0\u4F9B\u4EFB\u4F55\u5E27\u65F6\u5FC5\u987B\u63D0\u4F9B\u63D0\u793A\u8BCD\u3002\u7247\u5185\u5173\u952E\u5E27\u7684 timestamp \u4EE5\u79D2\u4E3A\u5355\u4F4D\u3002",
@@ -54262,7 +55750,8 @@ var video_generated_default = [
54262
55750
  },
54263
55751
  "x-ui": {
54264
55752
  control: "content-parts",
54265
- order: 0
55753
+ order: 0,
55754
+ defaultInputMode: "reference"
54266
55755
  },
54267
55756
  title: "\u8F93\u5165\u5185\u5BB9",
54268
55757
  description: "\u63D0\u4F9B\u63D0\u793A\u8BCD\u3001\u9996\u5C3E\u5E27\u6216\u53C2\u8003\u56FE\u7247\u3001\u89C6\u9891\u548C\u97F3\u9891\uFF1B\u9996\u5C3E\u5E27\u4E0E\u53C2\u8003\u7D20\u6750\u4E0D\u80FD\u6DF7\u7528\u3002",
@@ -55045,7 +56534,7 @@ var NexraWaitTimeoutError = class extends Error {
55045
56534
  };
55046
56535
 
55047
56536
  // src/generated/version.generated.ts
55048
- var SDK_VERSION = "0.1.0-alpha.44";
56537
+ var SDK_VERSION = "0.1.0-alpha.46";
55049
56538
 
55050
56539
  // src/transport.ts
55051
56540
  var DEFAULT_BASE_URL = "https://api.nexra-ai.com/v1";