@byte_fluffy/nexra-sdk 0.1.0-alpha.40 → 0.1.0-alpha.42

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-SIBYK5IX.js";
5
+ } from "./chunk-ESPUF2D4.js";
6
6
 
7
7
  // src/catalog/generated/audio.generated.json
8
8
  var audio_generated_default = [
@@ -2800,34 +2800,28 @@ var audio_generated_default = [
2800
2800
  // src/catalog/generated/image.generated.json
2801
2801
  var image_generated_default = [
2802
2802
  {
2803
- id: "google/gemini-nano-banana-2.1",
2803
+ id: "bytedance/image-enhancement",
2804
2804
  contractVersion: 1,
2805
- developer: "google",
2806
- displayName: "Banana 2.1",
2807
- summary: "Generate or edit 1K, 2K, or 4K images from text and up to fourteen reference images.",
2805
+ developer: "bytedance",
2806
+ displayName: "Volcengine Image Enhancement",
2807
+ summary: "Upscale an image with Volcengine CVProcess and save the output.",
2808
2808
  kind: "image",
2809
- family: "Gemini Nano Banana",
2810
- versionLabel: "2.1",
2809
+ family: "Volcengine Upscale",
2811
2810
  aliases: [],
2812
2811
  capabilities: {
2813
2812
  inputModalities: [
2814
- "text",
2815
2813
  "image"
2816
2814
  ],
2817
2815
  outputModalities: [
2818
2816
  "image"
2819
2817
  ],
2820
- inputModes: [
2821
- "text-to-image",
2822
- "image-to-image"
2823
- ],
2818
+ inputModes: [],
2824
2819
  features: []
2825
2820
  },
2826
2821
  operations: [
2827
2822
  {
2828
- operation: "image.generate",
2823
+ operation: "image.upscale",
2829
2824
  inputModalities: [
2830
- "text",
2831
2825
  "image"
2832
2826
  ],
2833
2827
  outputModalities: [
@@ -2840,31 +2834,9 @@ var image_generated_default = [
2840
2834
  content: {
2841
2835
  type: "array",
2842
2836
  minItems: 1,
2837
+ maxItems: 1,
2843
2838
  items: {
2844
2839
  oneOf: [
2845
- {
2846
- type: "object",
2847
- properties: {
2848
- type: {
2849
- const: "text"
2850
- },
2851
- text: {
2852
- type: "string",
2853
- minLength: 1
2854
- },
2855
- role: {
2856
- type: "string",
2857
- const: "prompt",
2858
- title: "\u7528\u9014"
2859
- }
2860
- },
2861
- required: [
2862
- "type",
2863
- "text",
2864
- "role"
2865
- ],
2866
- additionalProperties: false
2867
- },
2868
2840
  {
2869
2841
  type: "object",
2870
2842
  properties: {
@@ -2895,16 +2867,13 @@ var image_generated_default = [
2895
2867
  role: {
2896
2868
  type: "string",
2897
2869
  enum: [
2898
- "source",
2899
- "reference"
2900
- ],
2901
- title: "\u7528\u9014"
2870
+ "source"
2871
+ ]
2902
2872
  }
2903
2873
  },
2904
2874
  required: [
2905
2875
  "type",
2906
- "source",
2907
- "role"
2876
+ "source"
2908
2877
  ],
2909
2878
  additionalProperties: false
2910
2879
  }
@@ -2913,80 +2882,22 @@ var image_generated_default = [
2913
2882
  "x-ui": {
2914
2883
  control: "content-parts",
2915
2884
  order: 0
2916
- },
2917
- title: "\u8F93\u5165\u5185\u5BB9",
2918
- 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",
2919
- maxItems: 15,
2920
- allOf: [
2921
- {
2922
- contains: {
2923
- type: "object",
2924
- properties: {
2925
- type: {
2926
- const: "text"
2927
- }
2928
- },
2929
- required: [
2930
- "type"
2931
- ]
2932
- },
2933
- minContains: 0,
2934
- maxContains: 1
2935
- },
2936
- {
2937
- contains: {
2938
- type: "object",
2939
- properties: {
2940
- type: {
2941
- const: "image"
2942
- }
2943
- },
2944
- required: [
2945
- "type"
2946
- ]
2947
- },
2948
- minContains: 0,
2949
- maxContains: 14
2950
- }
2951
- ]
2952
- },
2953
- aspect_ratio: {
2954
- type: "string",
2955
- enum: [
2956
- "1:1",
2957
- "3:2",
2958
- "2:3",
2959
- "3:4",
2960
- "1:4",
2961
- "4:1",
2962
- "4:3",
2963
- "4:5",
2964
- "5:4",
2965
- "1:8",
2966
- "8:1",
2967
- "9:16",
2968
- "16:9",
2969
- "21:9",
2970
- "9:21"
2971
- ],
2972
- default: "1:1",
2973
- title: "\u753B\u9762\u6BD4\u4F8B",
2974
- "x-ui": {
2975
- control: "select",
2976
- order: 10
2977
2885
  }
2978
2886
  },
2979
2887
  resolution: {
2980
2888
  type: "string",
2981
2889
  enum: [
2982
- "1K",
2983
- "2K",
2984
- "4K"
2890
+ "144p",
2891
+ "240p",
2892
+ "360p",
2893
+ "480p",
2894
+ "540p",
2895
+ "720p",
2896
+ "1080p",
2897
+ "2k"
2985
2898
  ],
2986
- default: "1K",
2987
- title: "\u5206\u8FA8\u7387",
2899
+ default: "2k",
2988
2900
  "x-ui": {
2989
- control: "segmented",
2990
2901
  order: 11
2991
2902
  }
2992
2903
  }
@@ -2999,27 +2910,19 @@ var image_generated_default = [
2999
2910
  outputSchema: {},
3000
2911
  metering: {
3001
2912
  schemaVersion: 1,
3002
- kind: "token",
2913
+ kind: "non_token",
3003
2914
  metrics: [
3004
2915
  {
3005
2916
  metric: "requests",
3006
2917
  requirement: "required"
3007
2918
  },
3008
- {
3009
- metric: "input_tokens",
3010
- requirement: "required"
3011
- },
3012
- {
3013
- metric: "output_tokens",
3014
- requirement: "required"
3015
- },
3016
2919
  {
3017
2920
  metric: "input_images",
3018
- requirement: "informational"
2921
+ requirement: "required"
3019
2922
  },
3020
2923
  {
3021
2924
  metric: "output_images",
3022
- requirement: "informational"
2925
+ requirement: "required"
3023
2926
  }
3024
2927
  ]
3025
2928
  }
@@ -3028,18 +2931,15 @@ var image_generated_default = [
3028
2931
  endpoints: []
3029
2932
  },
3030
2933
  {
3031
- id: "openai/gpt-image-2.5-flare",
3032
- contractVersion: 2,
3033
- developer: "openai",
3034
- displayName: "GPT-Image-2.5 Flare",
3035
- summary: "GPT Image 2.5 Flare \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u56FE\u8F93\u5165\u53CA\u8499\u7248\u7F16\u8F91\u3002",
2934
+ id: "google/gemini-nano-banana-2.1",
2935
+ contractVersion: 1,
2936
+ developer: "google",
2937
+ displayName: "Banana 2.1",
2938
+ summary: "Generate or edit 1K, 2K, or 4K images from text and up to fourteen reference images.",
3036
2939
  kind: "image",
3037
- family: "GPT Image",
3038
- versionLabel: "2.5",
3039
- aliases: [
3040
- "gpt-image-2.5-flare",
3041
- "azure/gpt-image-2.5-flare"
3042
- ],
2940
+ family: "Gemini Nano Banana",
2941
+ versionLabel: "2.1",
2942
+ aliases: [],
3043
2943
  capabilities: {
3044
2944
  inputModalities: [
3045
2945
  "text",
@@ -3081,23 +2981,18 @@ var image_generated_default = [
3081
2981
  },
3082
2982
  text: {
3083
2983
  type: "string",
3084
- title: "\u63D0\u793A\u8BCD",
3085
- minLength: 1,
3086
- maxLength: 32e3,
3087
- description: "\u63CF\u8FF0\u8981\u751F\u6210\u7684\u56FE\u7247\uFF0C\u6216\u5BF9\u8F93\u5165\u56FE\u7247\u7684\u4FEE\u6539\u8981\u6C42\u3002",
3088
- "x-ui": {
3089
- order: 1,
3090
- control: "textarea"
3091
- }
2984
+ minLength: 1
3092
2985
  },
3093
2986
  role: {
2987
+ type: "string",
3094
2988
  const: "prompt",
3095
2989
  title: "\u7528\u9014"
3096
2990
  }
3097
2991
  },
3098
2992
  required: [
3099
2993
  "type",
3100
- "text"
2994
+ "text",
2995
+ "role"
3101
2996
  ],
3102
2997
  additionalProperties: false
3103
2998
  },
@@ -3111,9 +3006,7 @@ var image_generated_default = [
3111
3006
  oneOf: [
3112
3007
  {
3113
3008
  type: "string",
3114
- minLength: 1,
3115
- format: "uri",
3116
- pattern: "^(https?://|data:image/)"
3009
+ minLength: 1
3117
3010
  },
3118
3011
  {
3119
3012
  type: "object",
@@ -3134,15 +3027,15 @@ var image_generated_default = [
3134
3027
  type: "string",
3135
3028
  enum: [
3136
3029
  "source",
3137
- "reference",
3138
- "mask"
3030
+ "reference"
3139
3031
  ],
3140
3032
  title: "\u7528\u9014"
3141
3033
  }
3142
3034
  },
3143
3035
  required: [
3144
3036
  "type",
3145
- "source"
3037
+ "source",
3038
+ "role"
3146
3039
  ],
3147
3040
  additionalProperties: false
3148
3041
  }
@@ -3153,8 +3046,8 @@ var image_generated_default = [
3153
3046
  order: 0
3154
3047
  },
3155
3048
  title: "\u8F93\u5165\u5185\u5BB9",
3156
- description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u8F93\u5165\u56FE\u7247\u548C\u4E00\u5F20\u8499\u7248\u3002",
3157
- maxItems: 18,
3049
+ 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",
3050
+ maxItems: 15,
3158
3051
  allOf: [
3159
3052
  {
3160
3053
  contains: {
@@ -3168,25 +3061,6 @@ var image_generated_default = [
3168
3061
  "type"
3169
3062
  ]
3170
3063
  },
3171
- minContains: 1,
3172
- maxContains: 1
3173
- },
3174
- {
3175
- contains: {
3176
- type: "object",
3177
- properties: {
3178
- type: {
3179
- const: "image"
3180
- },
3181
- role: {
3182
- const: "mask"
3183
- }
3184
- },
3185
- required: [
3186
- "type",
3187
- "role"
3188
- ]
3189
- },
3190
3064
  minContains: 0,
3191
3065
  maxContains: 1
3192
3066
  },
@@ -3196,12 +3070,6 @@ var image_generated_default = [
3196
3070
  properties: {
3197
3071
  type: {
3198
3072
  const: "image"
3199
- },
3200
- role: {
3201
- enum: [
3202
- "source",
3203
- "reference"
3204
- ]
3205
3073
  }
3206
3074
  },
3207
3075
  required: [
@@ -3209,137 +3077,48 @@ var image_generated_default = [
3209
3077
  ]
3210
3078
  },
3211
3079
  minContains: 0,
3212
- maxContains: 16
3213
- },
3214
- {
3215
- if: {
3216
- contains: {
3217
- type: "object",
3218
- properties: {
3219
- type: {
3220
- const: "image"
3221
- },
3222
- role: {
3223
- const: "mask"
3224
- }
3225
- },
3226
- required: [
3227
- "type",
3228
- "role"
3229
- ]
3230
- },
3231
- minContains: 1
3232
- },
3233
- then: {
3234
- contains: {
3235
- type: "object",
3236
- properties: {
3237
- type: {
3238
- const: "image"
3239
- },
3240
- role: {
3241
- enum: [
3242
- "source",
3243
- "reference"
3244
- ]
3245
- }
3246
- },
3247
- required: [
3248
- "type"
3249
- ]
3250
- },
3251
- minContains: 1
3252
- }
3080
+ maxContains: 14
3253
3081
  }
3254
3082
  ]
3255
3083
  },
3256
- quality: {
3257
- type: "string",
3258
- title: "\u56FE\u7247\u8D28\u91CF",
3259
- enum: [
3260
- "auto",
3261
- "low",
3262
- "medium",
3263
- "high",
3264
- "xhigh",
3265
- "max"
3266
- ],
3267
- "x-ui": {
3268
- order: 12,
3269
- optionLabels: {
3270
- auto: "\u81EA\u52A8",
3271
- low: "\u4F4E",
3272
- medium: "\u4E2D",
3273
- high: "\u9AD8",
3274
- xhigh: "\u66F4\u9AD8",
3275
- max: "\u6700\u9AD8"
3276
- },
3277
- control: "segmented"
3278
- }
3279
- },
3280
- count: {
3281
- type: "integer",
3282
- title: "\u8F93\u51FA\u5F20\u6570",
3283
- minimum: 1,
3284
- maximum: 10,
3285
- "x-ui": {
3286
- order: 13,
3287
- control: "range"
3288
- }
3289
- },
3290
- output_format: {
3291
- type: "string",
3292
- description: "\u8F93\u51FA\u56FE\u7247\u7684\u7F16\u7801\u683C\u5F0F\u3002",
3293
- enum: [
3294
- "png",
3295
- "jpeg",
3296
- "webp"
3297
- ],
3298
- title: "\u56FE\u7247\u683C\u5F0F",
3299
- "x-ui": {
3300
- order: 14,
3301
- optionLabels: {
3302
- png: "PNG",
3303
- jpeg: "JPEG",
3304
- webp: "WebP"
3305
- },
3306
- control: "segmented"
3307
- }
3308
- },
3309
3084
  aspect_ratio: {
3310
3085
  type: "string",
3311
3086
  enum: [
3312
3087
  "1:1",
3313
- "16:9",
3314
- "9:16",
3315
- "4:3",
3316
- "3:4",
3317
3088
  "3:2",
3318
3089
  "2:3",
3090
+ "3:4",
3091
+ "1:4",
3092
+ "4:1",
3093
+ "4:3",
3094
+ "4:5",
3095
+ "5:4",
3096
+ "1:8",
3097
+ "8:1",
3098
+ "9:16",
3099
+ "16:9",
3319
3100
  "21:9",
3320
3101
  "9:21"
3321
3102
  ],
3322
3103
  default: "1:1",
3323
3104
  title: "\u753B\u9762\u6BD4\u4F8B",
3324
- description: "\u9009\u62E9\u8F93\u51FA\u753B\u9762\u7684\u5BBD\u9AD8\u6BD4\u4F8B\u3002",
3325
3105
  "x-ui": {
3326
- order: 10,
3327
- control: "segmented"
3106
+ control: "select",
3107
+ order: 10
3328
3108
  }
3329
3109
  },
3330
3110
  resolution: {
3331
3111
  type: "string",
3332
3112
  enum: [
3333
- "1k",
3334
- "2k",
3335
- "4k"
3113
+ "1K",
3114
+ "2K",
3115
+ "4K"
3336
3116
  ],
3337
- default: "1k",
3117
+ default: "1K",
3338
3118
  title: "\u5206\u8FA8\u7387",
3339
- description: "\u9009\u62E9\u8F93\u51FA\u56FE\u7247\u7684\u5206\u8FA8\u7387\u6863\u4F4D\u3002",
3340
3119
  "x-ui": {
3341
- order: 11,
3342
- control: "segmented"
3120
+ control: "segmented",
3121
+ order: 11
3343
3122
  }
3344
3123
  }
3345
3124
  },
@@ -3365,10 +3144,6 @@ var image_generated_default = [
3365
3144
  metric: "output_tokens",
3366
3145
  requirement: "required"
3367
3146
  },
3368
- {
3369
- metric: "cached_input_tokens",
3370
- requirement: "informational"
3371
- },
3372
3147
  {
3373
3148
  metric: "input_images",
3374
3149
  requirement: "informational"
@@ -3384,17 +3159,17 @@ var image_generated_default = [
3384
3159
  endpoints: []
3385
3160
  },
3386
3161
  {
3387
- id: "openai/gpt-image-2.5-sunburst",
3162
+ id: "openai/gpt-image-2.5-flare",
3388
3163
  contractVersion: 2,
3389
3164
  developer: "openai",
3390
- displayName: "GPT-Image-2.5 Sunburst",
3391
- summary: "GPT Image 2.5 Sunburst \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u56FE\u8F93\u5165\u53CA\u8499\u7248\u7F16\u8F91\u3002",
3165
+ displayName: "GPT-Image-2.5 Flare",
3166
+ summary: "GPT Image 2.5 Flare \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u56FE\u8F93\u5165\u53CA\u8499\u7248\u7F16\u8F91\u3002",
3392
3167
  kind: "image",
3393
3168
  family: "GPT Image",
3394
3169
  versionLabel: "2.5",
3395
3170
  aliases: [
3396
- "gpt-image-2.5-sunburst",
3397
- "azure/gpt-image-2.5-sunburst"
3171
+ "gpt-image-2.5-flare",
3172
+ "azure/gpt-image-2.5-flare"
3398
3173
  ],
3399
3174
  capabilities: {
3400
3175
  inputModalities: [
@@ -3740,14 +3515,18 @@ var image_generated_default = [
3740
3515
  endpoints: []
3741
3516
  },
3742
3517
  {
3743
- id: "agnes/agnes-image-2-0-flash",
3744
- contractVersion: 1,
3745
- developer: "agnes",
3746
- displayName: "Agnes Image 2.0 Flash",
3747
- summary: "Agnes \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u5F20\u53C2\u8003\u56FE\u548C\u4E0D\u540C\u8F93\u51FA\u5C3A\u5BF8\u3002",
3518
+ id: "openai/gpt-image-2.5-sunburst",
3519
+ contractVersion: 2,
3520
+ developer: "openai",
3521
+ displayName: "GPT-Image-2.5 Sunburst",
3522
+ summary: "GPT Image 2.5 Sunburst \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u56FE\u8F93\u5165\u53CA\u8499\u7248\u7F16\u8F91\u3002",
3748
3523
  kind: "image",
3749
- family: "Agnes Image",
3750
- aliases: [],
3524
+ family: "GPT Image",
3525
+ versionLabel: "2.5",
3526
+ aliases: [
3527
+ "gpt-image-2.5-sunburst",
3528
+ "azure/gpt-image-2.5-sunburst"
3529
+ ],
3751
3530
  capabilities: {
3752
3531
  inputModalities: [
3753
3532
  "text",
@@ -3789,23 +3568,23 @@ var image_generated_default = [
3789
3568
  },
3790
3569
  text: {
3791
3570
  type: "string",
3792
- minLength: 1,
3793
3571
  title: "\u63D0\u793A\u8BCD",
3572
+ minLength: 1,
3573
+ maxLength: 32e3,
3574
+ description: "\u63CF\u8FF0\u8981\u751F\u6210\u7684\u56FE\u7247\uFF0C\u6216\u5BF9\u8F93\u5165\u56FE\u7247\u7684\u4FEE\u6539\u8981\u6C42\u3002",
3794
3575
  "x-ui": {
3795
- control: "textarea",
3796
- order: 0
3576
+ order: 1,
3577
+ control: "textarea"
3797
3578
  }
3798
3579
  },
3799
3580
  role: {
3800
- type: "string",
3801
3581
  const: "prompt",
3802
3582
  title: "\u7528\u9014"
3803
3583
  }
3804
3584
  },
3805
3585
  required: [
3806
3586
  "type",
3807
- "text",
3808
- "role"
3587
+ "text"
3809
3588
  ],
3810
3589
  additionalProperties: false
3811
3590
  },
@@ -3840,14 +3619,17 @@ var image_generated_default = [
3840
3619
  },
3841
3620
  role: {
3842
3621
  type: "string",
3843
- const: "reference",
3622
+ enum: [
3623
+ "source",
3624
+ "reference",
3625
+ "mask"
3626
+ ],
3844
3627
  title: "\u7528\u9014"
3845
3628
  }
3846
3629
  },
3847
3630
  required: [
3848
3631
  "type",
3849
- "source",
3850
- "role"
3632
+ "source"
3851
3633
  ],
3852
3634
  additionalProperties: false
3853
3635
  }
@@ -3858,7 +3640,8 @@ var image_generated_default = [
3858
3640
  order: 0
3859
3641
  },
3860
3642
  title: "\u8F93\u5165\u5185\u5BB9",
3861
- description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u6309\u987A\u5E8F\u6DFB\u52A0\u53C2\u8003\u56FE\u7247\u3002",
3643
+ description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u9009\u6DFB\u52A0\u8F93\u5165\u56FE\u7247\u548C\u4E00\u5F20\u8499\u7248\u3002",
3644
+ maxItems: 18,
3862
3645
  allOf: [
3863
3646
  {
3864
3647
  contains: {
@@ -3866,9 +3649,24 @@ var image_generated_default = [
3866
3649
  properties: {
3867
3650
  type: {
3868
3651
  const: "text"
3652
+ }
3653
+ },
3654
+ required: [
3655
+ "type"
3656
+ ]
3657
+ },
3658
+ minContains: 1,
3659
+ maxContains: 1
3660
+ },
3661
+ {
3662
+ contains: {
3663
+ type: "object",
3664
+ properties: {
3665
+ type: {
3666
+ const: "image"
3869
3667
  },
3870
3668
  role: {
3871
- const: "prompt"
3669
+ const: "mask"
3872
3670
  }
3873
3671
  },
3874
3672
  required: [
@@ -3876,20 +3674,154 @@ var image_generated_default = [
3876
3674
  "role"
3877
3675
  ]
3878
3676
  },
3879
- minContains: 1,
3677
+ minContains: 0,
3880
3678
  maxContains: 1
3679
+ },
3680
+ {
3681
+ contains: {
3682
+ type: "object",
3683
+ properties: {
3684
+ type: {
3685
+ const: "image"
3686
+ },
3687
+ role: {
3688
+ enum: [
3689
+ "source",
3690
+ "reference"
3691
+ ]
3692
+ }
3693
+ },
3694
+ required: [
3695
+ "type"
3696
+ ]
3697
+ },
3698
+ minContains: 0,
3699
+ maxContains: 16
3700
+ },
3701
+ {
3702
+ if: {
3703
+ contains: {
3704
+ type: "object",
3705
+ properties: {
3706
+ type: {
3707
+ const: "image"
3708
+ },
3709
+ role: {
3710
+ const: "mask"
3711
+ }
3712
+ },
3713
+ required: [
3714
+ "type",
3715
+ "role"
3716
+ ]
3717
+ },
3718
+ minContains: 1
3719
+ },
3720
+ then: {
3721
+ contains: {
3722
+ type: "object",
3723
+ properties: {
3724
+ type: {
3725
+ const: "image"
3726
+ },
3727
+ role: {
3728
+ enum: [
3729
+ "source",
3730
+ "reference"
3731
+ ]
3732
+ }
3733
+ },
3734
+ required: [
3735
+ "type"
3736
+ ]
3737
+ },
3738
+ minContains: 1
3739
+ }
3881
3740
  }
3882
3741
  ]
3883
3742
  },
3743
+ quality: {
3744
+ type: "string",
3745
+ title: "\u56FE\u7247\u8D28\u91CF",
3746
+ enum: [
3747
+ "auto",
3748
+ "low",
3749
+ "medium",
3750
+ "high",
3751
+ "xhigh",
3752
+ "max"
3753
+ ],
3754
+ "x-ui": {
3755
+ order: 12,
3756
+ optionLabels: {
3757
+ auto: "\u81EA\u52A8",
3758
+ low: "\u4F4E",
3759
+ medium: "\u4E2D",
3760
+ high: "\u9AD8",
3761
+ xhigh: "\u66F4\u9AD8",
3762
+ max: "\u6700\u9AD8"
3763
+ },
3764
+ control: "segmented"
3765
+ }
3766
+ },
3767
+ count: {
3768
+ type: "integer",
3769
+ title: "\u8F93\u51FA\u5F20\u6570",
3770
+ minimum: 1,
3771
+ maximum: 10,
3772
+ "x-ui": {
3773
+ order: 13,
3774
+ control: "range"
3775
+ }
3776
+ },
3777
+ output_format: {
3778
+ type: "string",
3779
+ description: "\u8F93\u51FA\u56FE\u7247\u7684\u7F16\u7801\u683C\u5F0F\u3002",
3780
+ enum: [
3781
+ "png",
3782
+ "jpeg",
3783
+ "webp"
3784
+ ],
3785
+ title: "\u56FE\u7247\u683C\u5F0F",
3786
+ "x-ui": {
3787
+ order: 14,
3788
+ optionLabels: {
3789
+ png: "PNG",
3790
+ jpeg: "JPEG",
3791
+ webp: "WebP"
3792
+ },
3793
+ control: "segmented"
3794
+ }
3795
+ },
3796
+ aspect_ratio: {
3797
+ type: "string",
3798
+ enum: [
3799
+ "1:1",
3800
+ "16:9",
3801
+ "9:16",
3802
+ "4:3",
3803
+ "3:4",
3804
+ "3:2",
3805
+ "2:3",
3806
+ "21:9",
3807
+ "9:21"
3808
+ ],
3809
+ default: "1:1",
3810
+ title: "\u753B\u9762\u6BD4\u4F8B",
3811
+ description: "\u9009\u62E9\u8F93\u51FA\u753B\u9762\u7684\u5BBD\u9AD8\u6BD4\u4F8B\u3002",
3812
+ "x-ui": {
3813
+ order: 10,
3814
+ control: "segmented"
3815
+ }
3816
+ },
3884
3817
  resolution: {
3885
3818
  type: "string",
3886
3819
  enum: [
3887
- "1K",
3888
- "2K",
3889
- "3K",
3890
- "4K"
3820
+ "1k",
3821
+ "2k",
3822
+ "4k"
3891
3823
  ],
3892
- default: "1K",
3824
+ default: "1k",
3893
3825
  title: "\u5206\u8FA8\u7387",
3894
3826
  description: "\u9009\u62E9\u8F93\u51FA\u56FE\u7247\u7684\u5206\u8FA8\u7387\u6863\u4F4D\u3002",
3895
3827
  "x-ui": {
@@ -3906,19 +3838,31 @@ var image_generated_default = [
3906
3838
  outputSchema: {},
3907
3839
  metering: {
3908
3840
  schemaVersion: 1,
3909
- kind: "non_token",
3841
+ kind: "token",
3910
3842
  metrics: [
3911
3843
  {
3912
3844
  metric: "requests",
3913
3845
  requirement: "required"
3914
3846
  },
3915
3847
  {
3916
- metric: "input_images",
3848
+ metric: "input_tokens",
3917
3849
  requirement: "required"
3918
3850
  },
3919
3851
  {
3920
- metric: "output_images",
3852
+ metric: "output_tokens",
3921
3853
  requirement: "required"
3854
+ },
3855
+ {
3856
+ metric: "cached_input_tokens",
3857
+ requirement: "informational"
3858
+ },
3859
+ {
3860
+ metric: "input_images",
3861
+ requirement: "informational"
3862
+ },
3863
+ {
3864
+ metric: "output_images",
3865
+ requirement: "informational"
3922
3866
  }
3923
3867
  ]
3924
3868
  }
@@ -3927,10 +3871,10 @@ var image_generated_default = [
3927
3871
  endpoints: []
3928
3872
  },
3929
3873
  {
3930
- id: "agnes/agnes-image-2-1-flash",
3874
+ id: "agnes/agnes-image-2-0-flash",
3931
3875
  contractVersion: 1,
3932
3876
  developer: "agnes",
3933
- displayName: "Agnes Image 2.1 Flash",
3877
+ displayName: "Agnes Image 2.0 Flash",
3934
3878
  summary: "Agnes \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u5F20\u53C2\u8003\u56FE\u548C\u4E0D\u540C\u8F93\u51FA\u5C3A\u5BF8\u3002",
3935
3879
  kind: "image",
3936
3880
  family: "Agnes Image",
@@ -4068,25 +4012,6 @@ var image_generated_default = [
4068
4012
  }
4069
4013
  ]
4070
4014
  },
4071
- aspect_ratio: {
4072
- type: "string",
4073
- enum: [
4074
- "1:1",
4075
- "3:4",
4076
- "4:3",
4077
- "16:9",
4078
- "9:16",
4079
- "2:3",
4080
- "3:2",
4081
- "21:9"
4082
- ],
4083
- default: "1:1",
4084
- title: "\u5BBD\u9AD8\u6BD4",
4085
- "x-ui": {
4086
- order: 10,
4087
- control: "select"
4088
- }
4089
- },
4090
4015
  resolution: {
4091
4016
  type: "string",
4092
4017
  enum: [
@@ -4133,11 +4058,11 @@ var image_generated_default = [
4133
4058
  endpoints: []
4134
4059
  },
4135
4060
  {
4136
- id: "agnes/agnes-image-2-5-flash",
4061
+ id: "agnes/agnes-image-2-1-flash",
4137
4062
  contractVersion: 1,
4138
4063
  developer: "agnes",
4139
- displayName: "Agnes Image 2.5 Flash",
4140
- summary: "Agnes \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u5F20\u53C2\u8003\u56FE\u53CA 1K \u81F3 4K \u8F93\u51FA\u3002",
4064
+ displayName: "Agnes Image 2.1 Flash",
4065
+ summary: "Agnes \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u5F20\u53C2\u8003\u56FE\u548C\u4E0D\u540C\u8F93\u51FA\u5C3A\u5BF8\u3002",
4141
4066
  kind: "image",
4142
4067
  family: "Agnes Image",
4143
4068
  aliases: [],
@@ -4339,17 +4264,14 @@ var image_generated_default = [
4339
4264
  endpoints: []
4340
4265
  },
4341
4266
  {
4342
- id: "alibaba/qwen-image-edit-plus",
4343
- contractVersion: 2,
4344
- developer: "alibaba",
4345
- displayName: "Qwen Image Edit Plus",
4346
- summary: "Qwen Image Edit Plus \u56FE\u7247\u7F16\u8F91\uFF0C\u652F\u6301 1\uFF5E3 \u5F20\u8F93\u5165\u56FE\u7247\u3002",
4267
+ id: "agnes/agnes-image-2-5-flash",
4268
+ contractVersion: 1,
4269
+ developer: "agnes",
4270
+ displayName: "Agnes Image 2.5 Flash",
4271
+ summary: "Agnes \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u591A\u5F20\u53C2\u8003\u56FE\u53CA 1K \u81F3 4K \u8F93\u51FA\u3002",
4347
4272
  kind: "image",
4348
- family: "Qwen Image Edit Plus",
4349
- aliases: [
4350
- "aliyun/qwen-image-edit-plus",
4351
- "qwen-image"
4352
- ],
4273
+ family: "Agnes Image",
4274
+ aliases: [],
4353
4275
  capabilities: {
4354
4276
  inputModalities: [
4355
4277
  "text",
@@ -4359,6 +4281,7 @@ var image_generated_default = [
4359
4281
  "image"
4360
4282
  ],
4361
4283
  inputModes: [
4284
+ "text-to-image",
4362
4285
  "image-to-image"
4363
4286
  ],
4364
4287
  features: []
@@ -4379,7 +4302,7 @@ var image_generated_default = [
4379
4302
  properties: {
4380
4303
  content: {
4381
4304
  type: "array",
4382
- minItems: 2,
4305
+ minItems: 1,
4383
4306
  items: {
4384
4307
  oneOf: [
4385
4308
  {
@@ -4390,44 +4313,25 @@ var image_generated_default = [
4390
4313
  },
4391
4314
  text: {
4392
4315
  type: "string",
4393
- minLength: 1
4316
+ minLength: 1,
4317
+ title: "\u63D0\u793A\u8BCD",
4318
+ "x-ui": {
4319
+ control: "textarea",
4320
+ order: 0
4321
+ }
4394
4322
  },
4395
4323
  role: {
4396
4324
  type: "string",
4397
- enum: [
4398
- "prompt",
4399
- "negative_prompt"
4400
- ],
4325
+ const: "prompt",
4401
4326
  title: "\u7528\u9014"
4402
4327
  }
4403
4328
  },
4404
4329
  required: [
4405
4330
  "type",
4406
- "text"
4331
+ "text",
4332
+ "role"
4407
4333
  ],
4408
- additionalProperties: false,
4409
- allOf: [
4410
- {
4411
- if: {
4412
- properties: {
4413
- role: {
4414
- const: "negative_prompt"
4415
- }
4416
- },
4417
- required: [
4418
- "role"
4419
- ]
4420
- },
4421
- then: {
4422
- properties: {
4423
- text: {
4424
- type: "string",
4425
- maxLength: 500
4426
- }
4427
- }
4428
- }
4429
- }
4430
- ]
4334
+ additionalProperties: false
4431
4335
  },
4432
4336
  {
4433
4337
  type: "object",
@@ -4441,7 +4345,7 @@ var image_generated_default = [
4441
4345
  type: "string",
4442
4346
  minLength: 1,
4443
4347
  format: "uri",
4444
- pattern: "^(https?://|data:image/|oss://)"
4348
+ pattern: "^(https?://|data:image/)"
4445
4349
  },
4446
4350
  {
4447
4351
  type: "object",
@@ -4456,21 +4360,18 @@ var image_generated_default = [
4456
4360
  ],
4457
4361
  additionalProperties: false
4458
4362
  }
4459
- ],
4460
- title: "\u56FE\u7247\u6765\u6E90"
4363
+ ]
4461
4364
  },
4462
4365
  role: {
4463
4366
  type: "string",
4464
- enum: [
4465
- "source",
4466
- "reference"
4467
- ],
4367
+ const: "reference",
4468
4368
  title: "\u7528\u9014"
4469
4369
  }
4470
4370
  },
4471
4371
  required: [
4472
4372
  "type",
4473
- "source"
4373
+ "source",
4374
+ "role"
4474
4375
  ],
4475
4376
  additionalProperties: false
4476
4377
  }
@@ -4481,8 +4382,7 @@ var image_generated_default = [
4481
4382
  order: 0
4482
4383
  },
4483
4384
  title: "\u8F93\u5165\u5185\u5BB9",
4484
- description: "\u4E00\u6761\u63D0\u793A\u8BCD\u3001\u53EF\u9009\u8D1F\u9762\u63D0\u793A\u8BCD\uFF0C\u4EE5\u53CA 1\uFF5E3 \u5F20\u5F85\u7F16\u8F91\u56FE\u7247\u3002",
4485
- maxItems: 5,
4385
+ description: "\u4E00\u6761\u63D0\u793A\u8BCD\uFF0C\u53EF\u6309\u987A\u5E8F\u6DFB\u52A0\u53C2\u8003\u56FE\u7247\u3002",
4486
4386
  allOf: [
4487
4387
  {
4488
4388
  contains: {
@@ -4495,46 +4395,13 @@ var image_generated_default = [
4495
4395
  const: "prompt"
4496
4396
  }
4497
4397
  },
4498
- required: [
4499
- "type"
4500
- ]
4501
- },
4502
- minContains: 1,
4503
- maxContains: 1
4504
- },
4505
- {
4506
- contains: {
4507
- type: "object",
4508
- properties: {
4509
- type: {
4510
- const: "text"
4511
- },
4512
- role: {
4513
- const: "negative_prompt"
4514
- }
4515
- },
4516
4398
  required: [
4517
4399
  "type",
4518
4400
  "role"
4519
4401
  ]
4520
4402
  },
4521
- minContains: 0,
4522
- maxContains: 1
4523
- },
4524
- {
4525
- contains: {
4526
- type: "object",
4527
- properties: {
4528
- type: {
4529
- const: "image"
4530
- }
4531
- },
4532
- required: [
4533
- "type"
4534
- ]
4535
- },
4536
4403
  minContains: 1,
4537
- maxContains: 3
4404
+ maxContains: 1
4538
4405
  }
4539
4406
  ]
4540
4407
  },
@@ -4542,32 +4409,36 @@ var image_generated_default = [
4542
4409
  type: "string",
4543
4410
  enum: [
4544
4411
  "1:1",
4412
+ "3:4",
4413
+ "4:3",
4545
4414
  "16:9",
4546
4415
  "9:16",
4547
- "4:3",
4548
- "3:4",
4549
- "3:2",
4550
4416
  "2:3",
4417
+ "3:2",
4551
4418
  "21:9"
4552
4419
  ],
4553
- title: "\u753B\u9762\u6BD4\u4F8B",
4554
- description: "\u53EF\u9009\uFF1B\u7701\u7565\u65F6\u7531\u4E0A\u6E38\u6839\u636E\u6700\u540E\u4E00\u5F20\u8F93\u5165\u56FE\u786E\u5B9A\u6BD4\u4F8B\u3002",
4420
+ default: "1:1",
4421
+ title: "\u5BBD\u9AD8\u6BD4",
4555
4422
  "x-ui": {
4556
4423
  order: 10,
4557
- control: "segmented"
4424
+ control: "select"
4558
4425
  }
4559
4426
  },
4560
- count: {
4561
- type: "integer",
4562
- title: "\u8F93\u51FA\u5F20\u6570",
4563
- minimum: 1,
4564
- maximum: 6,
4565
- description: "\u8F93\u51FA 1\uFF5E6 \u5F20\uFF0C\u7701\u7565\u65F6\u4E3A 1\u3002",
4427
+ resolution: {
4428
+ type: "string",
4429
+ enum: [
4430
+ "1K",
4431
+ "2K",
4432
+ "3K",
4433
+ "4K"
4434
+ ],
4435
+ default: "1K",
4436
+ title: "\u5206\u8FA8\u7387",
4437
+ description: "\u9009\u62E9\u8F93\u51FA\u56FE\u7247\u7684\u5206\u8FA8\u7387\u6863\u4F4D\u3002",
4566
4438
  "x-ui": {
4567
- order: 13,
4568
- control: "number"
4569
- },
4570
- default: 1
4439
+ order: 11,
4440
+ control: "segmented"
4441
+ }
4571
4442
  }
4572
4443
  },
4573
4444
  required: [
@@ -4586,7 +4457,7 @@ var image_generated_default = [
4586
4457
  },
4587
4458
  {
4588
4459
  metric: "input_images",
4589
- requirement: "informational"
4460
+ requirement: "required"
4590
4461
  },
4591
4462
  {
4592
4463
  metric: "output_images",
@@ -4599,15 +4470,17 @@ var image_generated_default = [
4599
4470
  endpoints: []
4600
4471
  },
4601
4472
  {
4602
- id: "alibaba/wan2.7-image-pro",
4473
+ id: "alibaba/qwen-image-edit-plus",
4603
4474
  contractVersion: 2,
4604
4475
  developer: "alibaba",
4605
- displayName: "Wan 2.7 Image Pro",
4606
- summary: "Wan 2.7 Image Pro \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u6700\u591A 9 \u5F20\u53C2\u8003\u56FE\u548C\u6700\u9AD8 4K \u6587\u751F\u56FE\u3002",
4476
+ displayName: "Qwen Image Edit Plus",
4477
+ summary: "Qwen Image Edit Plus \u56FE\u7247\u7F16\u8F91\uFF0C\u652F\u6301 1\uFF5E3 \u5F20\u8F93\u5165\u56FE\u7247\u3002",
4607
4478
  kind: "image",
4608
- family: "Wan Image Pro",
4609
- versionLabel: "2.7",
4610
- aliases: [],
4479
+ family: "Qwen Image Edit Plus",
4480
+ aliases: [
4481
+ "aliyun/qwen-image-edit-plus",
4482
+ "qwen-image"
4483
+ ],
4611
4484
  capabilities: {
4612
4485
  inputModalities: [
4613
4486
  "text",
@@ -4617,7 +4490,6 @@ var image_generated_default = [
4617
4490
  "image"
4618
4491
  ],
4619
4492
  inputModes: [
4620
- "text-to-image",
4621
4493
  "image-to-image"
4622
4494
  ],
4623
4495
  features: []
@@ -4638,7 +4510,7 @@ var image_generated_default = [
4638
4510
  properties: {
4639
4511
  content: {
4640
4512
  type: "array",
4641
- minItems: 1,
4513
+ minItems: 2,
4642
4514
  items: {
4643
4515
  oneOf: [
4644
4516
  {
@@ -4649,11 +4521,14 @@ var image_generated_default = [
4649
4521
  },
4650
4522
  text: {
4651
4523
  type: "string",
4652
- minLength: 1,
4653
- description: "\u63CF\u8FF0\u56FE\u7247\u5185\u5BB9\u3001\u98CE\u683C\u548C\u6784\u56FE\u3002\u6700\u591A 5000 \u4E2A\u5B57\u7B26\uFF0C\u8D85\u51FA\u90E8\u5206\u7531\u4E0A\u6E38\u622A\u65AD\u3002"
4524
+ minLength: 1
4654
4525
  },
4655
4526
  role: {
4656
- const: "prompt",
4527
+ type: "string",
4528
+ enum: [
4529
+ "prompt",
4530
+ "negative_prompt"
4531
+ ],
4657
4532
  title: "\u7528\u9014"
4658
4533
  }
4659
4534
  },
@@ -4661,7 +4536,29 @@ var image_generated_default = [
4661
4536
  "type",
4662
4537
  "text"
4663
4538
  ],
4664
- additionalProperties: false
4539
+ additionalProperties: false,
4540
+ allOf: [
4541
+ {
4542
+ if: {
4543
+ properties: {
4544
+ role: {
4545
+ const: "negative_prompt"
4546
+ }
4547
+ },
4548
+ required: [
4549
+ "role"
4550
+ ]
4551
+ },
4552
+ then: {
4553
+ properties: {
4554
+ text: {
4555
+ type: "string",
4556
+ maxLength: 500
4557
+ }
4558
+ }
4559
+ }
4560
+ }
4561
+ ]
4665
4562
  },
4666
4563
  {
4667
4564
  type: "object",
@@ -4675,7 +4572,7 @@ var image_generated_default = [
4675
4572
  type: "string",
4676
4573
  minLength: 1,
4677
4574
  format: "uri",
4678
- pattern: "^(https?://|data:image/)"
4575
+ pattern: "^(https?://|data:image/|oss://)"
4679
4576
  },
4680
4577
  {
4681
4578
  type: "object",
@@ -4690,7 +4587,241 @@ var image_generated_default = [
4690
4587
  ],
4691
4588
  additionalProperties: false
4692
4589
  }
4693
- ]
4590
+ ],
4591
+ title: "\u56FE\u7247\u6765\u6E90"
4592
+ },
4593
+ role: {
4594
+ type: "string",
4595
+ enum: [
4596
+ "source",
4597
+ "reference"
4598
+ ],
4599
+ title: "\u7528\u9014"
4600
+ }
4601
+ },
4602
+ required: [
4603
+ "type",
4604
+ "source"
4605
+ ],
4606
+ additionalProperties: false
4607
+ }
4608
+ ]
4609
+ },
4610
+ "x-ui": {
4611
+ control: "content-parts",
4612
+ order: 0
4613
+ },
4614
+ title: "\u8F93\u5165\u5185\u5BB9",
4615
+ description: "\u4E00\u6761\u63D0\u793A\u8BCD\u3001\u53EF\u9009\u8D1F\u9762\u63D0\u793A\u8BCD\uFF0C\u4EE5\u53CA 1\uFF5E3 \u5F20\u5F85\u7F16\u8F91\u56FE\u7247\u3002",
4616
+ maxItems: 5,
4617
+ allOf: [
4618
+ {
4619
+ contains: {
4620
+ type: "object",
4621
+ properties: {
4622
+ type: {
4623
+ const: "text"
4624
+ },
4625
+ role: {
4626
+ const: "prompt"
4627
+ }
4628
+ },
4629
+ required: [
4630
+ "type"
4631
+ ]
4632
+ },
4633
+ minContains: 1,
4634
+ maxContains: 1
4635
+ },
4636
+ {
4637
+ contains: {
4638
+ type: "object",
4639
+ properties: {
4640
+ type: {
4641
+ const: "text"
4642
+ },
4643
+ role: {
4644
+ const: "negative_prompt"
4645
+ }
4646
+ },
4647
+ required: [
4648
+ "type",
4649
+ "role"
4650
+ ]
4651
+ },
4652
+ minContains: 0,
4653
+ maxContains: 1
4654
+ },
4655
+ {
4656
+ contains: {
4657
+ type: "object",
4658
+ properties: {
4659
+ type: {
4660
+ const: "image"
4661
+ }
4662
+ },
4663
+ required: [
4664
+ "type"
4665
+ ]
4666
+ },
4667
+ minContains: 1,
4668
+ maxContains: 3
4669
+ }
4670
+ ]
4671
+ },
4672
+ aspect_ratio: {
4673
+ type: "string",
4674
+ enum: [
4675
+ "1:1",
4676
+ "16:9",
4677
+ "9:16",
4678
+ "4:3",
4679
+ "3:4",
4680
+ "3:2",
4681
+ "2:3",
4682
+ "21:9"
4683
+ ],
4684
+ title: "\u753B\u9762\u6BD4\u4F8B",
4685
+ description: "\u53EF\u9009\uFF1B\u7701\u7565\u65F6\u7531\u4E0A\u6E38\u6839\u636E\u6700\u540E\u4E00\u5F20\u8F93\u5165\u56FE\u786E\u5B9A\u6BD4\u4F8B\u3002",
4686
+ "x-ui": {
4687
+ order: 10,
4688
+ control: "segmented"
4689
+ }
4690
+ },
4691
+ count: {
4692
+ type: "integer",
4693
+ title: "\u8F93\u51FA\u5F20\u6570",
4694
+ minimum: 1,
4695
+ maximum: 6,
4696
+ description: "\u8F93\u51FA 1\uFF5E6 \u5F20\uFF0C\u7701\u7565\u65F6\u4E3A 1\u3002",
4697
+ "x-ui": {
4698
+ order: 13,
4699
+ control: "number"
4700
+ },
4701
+ default: 1
4702
+ }
4703
+ },
4704
+ required: [
4705
+ "content"
4706
+ ],
4707
+ additionalProperties: false
4708
+ },
4709
+ outputSchema: {},
4710
+ metering: {
4711
+ schemaVersion: 1,
4712
+ kind: "non_token",
4713
+ metrics: [
4714
+ {
4715
+ metric: "requests",
4716
+ requirement: "required"
4717
+ },
4718
+ {
4719
+ metric: "input_images",
4720
+ requirement: "informational"
4721
+ },
4722
+ {
4723
+ metric: "output_images",
4724
+ requirement: "required"
4725
+ }
4726
+ ]
4727
+ }
4728
+ }
4729
+ ],
4730
+ endpoints: []
4731
+ },
4732
+ {
4733
+ id: "alibaba/wan2.7-image-pro",
4734
+ contractVersion: 2,
4735
+ developer: "alibaba",
4736
+ displayName: "Wan 2.7 Image Pro",
4737
+ summary: "Wan 2.7 Image Pro \u56FE\u7247\u751F\u6210\u4E0E\u7F16\u8F91\uFF0C\u652F\u6301\u6700\u591A 9 \u5F20\u53C2\u8003\u56FE\u548C\u6700\u9AD8 4K \u6587\u751F\u56FE\u3002",
4738
+ kind: "image",
4739
+ family: "Wan Image Pro",
4740
+ versionLabel: "2.7",
4741
+ aliases: [],
4742
+ capabilities: {
4743
+ inputModalities: [
4744
+ "text",
4745
+ "image"
4746
+ ],
4747
+ outputModalities: [
4748
+ "image"
4749
+ ],
4750
+ inputModes: [
4751
+ "text-to-image",
4752
+ "image-to-image"
4753
+ ],
4754
+ features: []
4755
+ },
4756
+ operations: [
4757
+ {
4758
+ operation: "image.generate",
4759
+ inputModalities: [
4760
+ "text",
4761
+ "image"
4762
+ ],
4763
+ outputModalities: [
4764
+ "image"
4765
+ ],
4766
+ inputSchema: {
4767
+ $schema: "https://json-schema.org/draft/2020-12/schema",
4768
+ type: "object",
4769
+ properties: {
4770
+ content: {
4771
+ type: "array",
4772
+ minItems: 1,
4773
+ items: {
4774
+ oneOf: [
4775
+ {
4776
+ type: "object",
4777
+ properties: {
4778
+ type: {
4779
+ const: "text"
4780
+ },
4781
+ text: {
4782
+ type: "string",
4783
+ minLength: 1,
4784
+ description: "\u63CF\u8FF0\u56FE\u7247\u5185\u5BB9\u3001\u98CE\u683C\u548C\u6784\u56FE\u3002\u6700\u591A 5000 \u4E2A\u5B57\u7B26\uFF0C\u8D85\u51FA\u90E8\u5206\u7531\u4E0A\u6E38\u622A\u65AD\u3002"
4785
+ },
4786
+ role: {
4787
+ const: "prompt",
4788
+ title: "\u7528\u9014"
4789
+ }
4790
+ },
4791
+ required: [
4792
+ "type",
4793
+ "text"
4794
+ ],
4795
+ additionalProperties: false
4796
+ },
4797
+ {
4798
+ type: "object",
4799
+ properties: {
4800
+ type: {
4801
+ const: "image"
4802
+ },
4803
+ source: {
4804
+ oneOf: [
4805
+ {
4806
+ type: "string",
4807
+ minLength: 1,
4808
+ format: "uri",
4809
+ pattern: "^(https?://|data:image/)"
4810
+ },
4811
+ {
4812
+ type: "object",
4813
+ properties: {
4814
+ assetId: {
4815
+ type: "string",
4816
+ minLength: 1
4817
+ }
4818
+ },
4819
+ required: [
4820
+ "assetId"
4821
+ ],
4822
+ additionalProperties: false
4823
+ }
4824
+ ]
4694
4825
  },
4695
4826
  role: {
4696
4827
  type: "string",
@@ -32592,6 +32723,1740 @@ var language_generated_default = [
32592
32723
 
32593
32724
  // src/catalog/generated/video.generated.json
32594
32725
  var video_generated_default = [
32726
+ {
32727
+ id: "bytedance/video-super-resolution",
32728
+ contractVersion: 1,
32729
+ developer: "bytedance",
32730
+ displayName: "Volcengine Video Super Resolution",
32731
+ summary: "Upscale a video through Volcengine VOD and save the output.",
32732
+ kind: "video",
32733
+ family: "Volcengine Upscale",
32734
+ aliases: [],
32735
+ capabilities: {
32736
+ inputModalities: [
32737
+ "video"
32738
+ ],
32739
+ outputModalities: [
32740
+ "video"
32741
+ ],
32742
+ inputModes: [],
32743
+ features: []
32744
+ },
32745
+ operations: [
32746
+ {
32747
+ operation: "video.upscale",
32748
+ inputModalities: [
32749
+ "video"
32750
+ ],
32751
+ outputModalities: [
32752
+ "video"
32753
+ ],
32754
+ inputSchema: {
32755
+ $schema: "https://json-schema.org/draft/2020-12/schema",
32756
+ type: "object",
32757
+ properties: {
32758
+ content: {
32759
+ type: "array",
32760
+ minItems: 1,
32761
+ maxItems: 1,
32762
+ items: {
32763
+ oneOf: [
32764
+ {
32765
+ type: "object",
32766
+ properties: {
32767
+ type: {
32768
+ const: "video"
32769
+ },
32770
+ source: {
32771
+ oneOf: [
32772
+ {
32773
+ type: "string",
32774
+ minLength: 1
32775
+ },
32776
+ {
32777
+ type: "object",
32778
+ properties: {
32779
+ assetId: {
32780
+ type: "string",
32781
+ minLength: 1
32782
+ }
32783
+ },
32784
+ required: [
32785
+ "assetId"
32786
+ ],
32787
+ additionalProperties: false
32788
+ }
32789
+ ]
32790
+ },
32791
+ role: {
32792
+ type: "string",
32793
+ enum: [
32794
+ "source"
32795
+ ]
32796
+ }
32797
+ },
32798
+ required: [
32799
+ "type",
32800
+ "source"
32801
+ ],
32802
+ additionalProperties: false
32803
+ }
32804
+ ]
32805
+ },
32806
+ "x-ui": {
32807
+ control: "content-parts",
32808
+ order: 0
32809
+ }
32810
+ },
32811
+ source_duration: {
32812
+ type: "number",
32813
+ exclusiveMinimum: 0,
32814
+ description: "Upper bound on source duration in seconds, verified before enhancement."
32815
+ },
32816
+ resolution: {
32817
+ type: "string",
32818
+ enum: [
32819
+ "720p",
32820
+ "1080p",
32821
+ "2k",
32822
+ "4k"
32823
+ ],
32824
+ default: "1080p"
32825
+ }
32826
+ },
32827
+ required: [
32828
+ "content",
32829
+ "source_duration"
32830
+ ],
32831
+ additionalProperties: false
32832
+ },
32833
+ outputSchema: {},
32834
+ metering: {
32835
+ schemaVersion: 1,
32836
+ kind: "non_token",
32837
+ metrics: [
32838
+ {
32839
+ metric: "requests",
32840
+ requirement: "required"
32841
+ },
32842
+ {
32843
+ metric: "input_video_seconds",
32844
+ requirement: "required"
32845
+ },
32846
+ {
32847
+ metric: "output_video_seconds",
32848
+ requirement: "required"
32849
+ }
32850
+ ]
32851
+ }
32852
+ }
32853
+ ],
32854
+ endpoints: []
32855
+ },
32856
+ {
32857
+ id: "dolphin/seedance-2-0",
32858
+ contractVersion: 1,
32859
+ developer: "bytedance",
32860
+ displayName: "Dolphin Seedance 2.0",
32861
+ summary: "\u901A\u8FC7 Dolphin AI \u751F\u6210 Seedance 2.0 \u89C6\u9891\uFF0C\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u89C6\u9891\u548C\u97F3\u9891\u53C2\u8003\u8F93\u5165\u3002",
32862
+ kind: "video",
32863
+ family: "Dolphin Seedance",
32864
+ versionLabel: "2.0",
32865
+ aliases: [],
32866
+ capabilities: {
32867
+ inputModalities: [
32868
+ "text",
32869
+ "image",
32870
+ "video",
32871
+ "audio"
32872
+ ],
32873
+ outputModalities: [
32874
+ "video"
32875
+ ],
32876
+ inputModes: [
32877
+ "text-to-video",
32878
+ "image-to-video",
32879
+ "video-to-video",
32880
+ "audio-to-video"
32881
+ ],
32882
+ features: []
32883
+ },
32884
+ operations: [
32885
+ {
32886
+ operation: "video.generate",
32887
+ inputModalities: [
32888
+ "text",
32889
+ "image",
32890
+ "video",
32891
+ "audio"
32892
+ ],
32893
+ outputModalities: [
32894
+ "video"
32895
+ ],
32896
+ inputSchema: {
32897
+ $schema: "https://json-schema.org/draft/2020-12/schema",
32898
+ type: "object",
32899
+ properties: {
32900
+ content: {
32901
+ type: "array",
32902
+ minItems: 1,
32903
+ items: {
32904
+ oneOf: [
32905
+ {
32906
+ type: "object",
32907
+ properties: {
32908
+ type: {
32909
+ const: "text"
32910
+ },
32911
+ text: {
32912
+ type: "string",
32913
+ minLength: 1,
32914
+ title: "\u63D0\u793A\u8BCD",
32915
+ description: "\u63CF\u8FF0\u753B\u9762\u3001\u52A8\u4F5C\u548C\u58F0\u97F3\uFF1B\u53EF\u5728\u63D0\u793A\u8BCD\u4E2D\u5F15\u7528\u7D20\u6750\u3002"
32916
+ },
32917
+ role: {
32918
+ type: "string",
32919
+ const: "prompt"
32920
+ }
32921
+ },
32922
+ required: [
32923
+ "type",
32924
+ "text"
32925
+ ],
32926
+ additionalProperties: false,
32927
+ title: "\u6587\u672C"
32928
+ },
32929
+ {
32930
+ type: "object",
32931
+ properties: {
32932
+ type: {
32933
+ const: "image"
32934
+ },
32935
+ source: {
32936
+ oneOf: [
32937
+ {
32938
+ type: "string",
32939
+ minLength: 1,
32940
+ title: "\u7D20\u6750\u5730\u5740",
32941
+ description: "\u516C\u7F51 URL\u3001data:image/\u2026;base64,\u2026 \u6216 asset:// \u7D20\u6750 ID\u3002\u652F\u6301 jpeg/png/webp/bmp/tiff/gif/heic/heif\uFF1B\u5355\u56FE\u5C0F\u4E8E 30 MB\uFF0C\u5BBD\u9AD8 300\uFF5E6000 px\uFF0C\u5BBD\u9AD8\u6BD4 0.4\uFF5E2.5\u3002",
32942
+ pattern: "^(https?://|asset://|data:image/)"
32943
+ },
32944
+ {
32945
+ type: "object",
32946
+ properties: {
32947
+ assetId: {
32948
+ type: "string",
32949
+ minLength: 1
32950
+ }
32951
+ },
32952
+ required: [
32953
+ "assetId"
32954
+ ],
32955
+ additionalProperties: false
32956
+ }
32957
+ ],
32958
+ title: "\u7D20\u6750\u5730\u5740",
32959
+ description: "\u516C\u7F51 URL\u3001data:image/\u2026;base64,\u2026 \u6216 asset:// \u7D20\u6750 ID\u3002\u652F\u6301 jpeg/png/webp/bmp/tiff/gif/heic/heif\uFF1B\u5355\u56FE\u5C0F\u4E8E 30 MB\uFF0C\u5BBD\u9AD8 300\uFF5E6000 px\uFF0C\u5BBD\u9AD8\u6BD4 0.4\uFF5E2.5\u3002"
32960
+ },
32961
+ role: {
32962
+ type: "string",
32963
+ title: "\u7D20\u6750\u7528\u9014",
32964
+ enum: [
32965
+ "first_frame",
32966
+ "last_frame",
32967
+ "reference"
32968
+ ],
32969
+ description: "\u9996\u5E27\u3001\u5C3E\u5E27\u6216\u53C2\u8003\u56FE\uFF1B\u7701\u7565\u65F6\u6309\u5355\u5F20\u9996\u5E27\u5904\u7406\u3002",
32970
+ "x-ui": {
32971
+ optionLabels: {
32972
+ first_frame: "\u9996\u5E27",
32973
+ last_frame: "\u5C3E\u5E27",
32974
+ reference: "\u53C2\u8003"
32975
+ }
32976
+ }
32977
+ }
32978
+ },
32979
+ required: [
32980
+ "type",
32981
+ "source"
32982
+ ],
32983
+ additionalProperties: false,
32984
+ title: "\u56FE\u7247"
32985
+ },
32986
+ {
32987
+ type: "object",
32988
+ properties: {
32989
+ type: {
32990
+ const: "video"
32991
+ },
32992
+ source: {
32993
+ oneOf: [
32994
+ {
32995
+ type: "string",
32996
+ minLength: 1,
32997
+ title: "\u7D20\u6750\u5730\u5740",
32998
+ description: "\u516C\u7F51 URL \u6216 asset:// \u7D20\u6750 ID\uFF0C\u4E0D\u652F\u6301 Base64\u3002mp4/mov\uFF1B\u6BCF\u6BB5 2\uFF5E15 \u79D2\uFF0C\u5408\u8BA1\u4E0D\u8D85\u8FC7 15 \u79D2\uFF0C\u5355\u6BB5\u4E0D\u8D85\u8FC7 200 MB\uFF1B\u5E27\u7387 24\uFF5E60 fps\u3002",
32999
+ pattern: "^(https?://|asset://)"
33000
+ },
33001
+ {
33002
+ type: "object",
33003
+ properties: {
33004
+ assetId: {
33005
+ type: "string",
33006
+ minLength: 1
33007
+ }
33008
+ },
33009
+ required: [
33010
+ "assetId"
33011
+ ],
33012
+ additionalProperties: false
33013
+ }
33014
+ ],
33015
+ title: "\u7D20\u6750\u5730\u5740",
33016
+ description: "\u516C\u7F51 URL \u6216 asset:// \u7D20\u6750 ID\uFF0C\u4E0D\u652F\u6301 Base64\u3002mp4/mov\uFF1B\u6BCF\u6BB5 2\uFF5E15 \u79D2\uFF0C\u5408\u8BA1\u4E0D\u8D85\u8FC7 15 \u79D2\uFF0C\u5355\u6BB5\u4E0D\u8D85\u8FC7 200 MB\uFF1B\u5E27\u7387 24\uFF5E60 fps\u3002"
33017
+ },
33018
+ role: {
33019
+ type: "string",
33020
+ title: "\u7D20\u6750\u7528\u9014",
33021
+ enum: [
33022
+ "reference"
33023
+ ],
33024
+ description: "\u7528\u4E8E\u5168\u80FD\u53C2\u8003\u3002",
33025
+ "x-ui": {
33026
+ optionLabels: {
33027
+ first_frame: "\u9996\u5E27",
33028
+ last_frame: "\u5C3E\u5E27",
33029
+ reference: "\u53C2\u8003"
33030
+ }
33031
+ }
33032
+ }
33033
+ },
33034
+ required: [
33035
+ "type",
33036
+ "source"
33037
+ ],
33038
+ additionalProperties: false,
33039
+ title: "\u89C6\u9891"
33040
+ },
33041
+ {
33042
+ type: "object",
33043
+ properties: {
33044
+ type: {
33045
+ const: "audio"
33046
+ },
33047
+ source: {
33048
+ oneOf: [
33049
+ {
33050
+ type: "string",
33051
+ minLength: 1,
33052
+ title: "\u7D20\u6750\u5730\u5740",
33053
+ description: "\u516C\u7F51 URL\u3001data:audio/\u2026;base64,\u2026 \u6216 asset:// \u7D20\u6750 ID\u3002wav/mp3\uFF1B\u6BCF\u6BB5 2\uFF5E15 \u79D2\uFF0C\u5408\u8BA1\u4E0D\u8D85\u8FC7 15 \u79D2\uFF0C\u5355\u6BB5\u4E0D\u8D85\u8FC7 15 MB\u3002",
33054
+ pattern: "^(https?://|asset://|data:audio/)"
33055
+ },
33056
+ {
33057
+ type: "object",
33058
+ properties: {
33059
+ assetId: {
33060
+ type: "string",
33061
+ minLength: 1
33062
+ }
33063
+ },
33064
+ required: [
33065
+ "assetId"
33066
+ ],
33067
+ additionalProperties: false
33068
+ }
33069
+ ],
33070
+ title: "\u7D20\u6750\u5730\u5740",
33071
+ description: "\u516C\u7F51 URL\u3001data:audio/\u2026;base64,\u2026 \u6216 asset:// \u7D20\u6750 ID\u3002wav/mp3\uFF1B\u6BCF\u6BB5 2\uFF5E15 \u79D2\uFF0C\u5408\u8BA1\u4E0D\u8D85\u8FC7 15 \u79D2\uFF0C\u5355\u6BB5\u4E0D\u8D85\u8FC7 15 MB\u3002"
33072
+ },
33073
+ role: {
33074
+ type: "string",
33075
+ title: "\u7D20\u6750\u7528\u9014",
33076
+ enum: [
33077
+ "reference"
33078
+ ],
33079
+ description: "\u7528\u4E8E\u5168\u80FD\u53C2\u8003\u3002",
33080
+ "x-ui": {
33081
+ optionLabels: {
33082
+ first_frame: "\u9996\u5E27",
33083
+ last_frame: "\u5C3E\u5E27",
33084
+ reference: "\u53C2\u8003"
33085
+ }
33086
+ }
33087
+ }
33088
+ },
33089
+ required: [
33090
+ "type",
33091
+ "source"
33092
+ ],
33093
+ additionalProperties: false,
33094
+ title: "\u97F3\u9891"
33095
+ }
33096
+ ]
33097
+ },
33098
+ "x-ui": {
33099
+ control: "content-parts",
33100
+ order: 0,
33101
+ media: {
33102
+ image: {
33103
+ maxBytes: 31457280
33104
+ },
33105
+ video: {
33106
+ maxBytes: 209715200,
33107
+ minDurationSeconds: 2,
33108
+ maxDurationSeconds: 15
33109
+ },
33110
+ audio: {
33111
+ maxBytes: 15728640,
33112
+ minDurationSeconds: 2,
33113
+ maxDurationSeconds: 15
33114
+ }
33115
+ }
33116
+ },
33117
+ title: "\u8F93\u5165\u5185\u5BB9",
33118
+ 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",
33119
+ allOf: [
33120
+ {
33121
+ description: "\u56FE\u7247\u6700\u591A 9 \u5F20\u3002",
33122
+ contains: {
33123
+ type: "object",
33124
+ properties: {
33125
+ type: {
33126
+ const: "image"
33127
+ }
33128
+ },
33129
+ required: [
33130
+ "type"
33131
+ ]
33132
+ },
33133
+ minContains: 0,
33134
+ maxContains: 9
33135
+ },
33136
+ {
33137
+ description: "\u89C6\u9891\u6700\u591A 3 \u6BB5\u3002",
33138
+ contains: {
33139
+ type: "object",
33140
+ properties: {
33141
+ type: {
33142
+ const: "video"
33143
+ }
33144
+ },
33145
+ required: [
33146
+ "type"
33147
+ ]
33148
+ },
33149
+ minContains: 0,
33150
+ maxContains: 3
33151
+ },
33152
+ {
33153
+ description: "\u97F3\u9891\u6700\u591A 3 \u6BB5\u3002",
33154
+ contains: {
33155
+ type: "object",
33156
+ properties: {
33157
+ type: {
33158
+ const: "audio"
33159
+ }
33160
+ },
33161
+ required: [
33162
+ "type"
33163
+ ]
33164
+ },
33165
+ minContains: 0,
33166
+ maxContains: 3
33167
+ },
33168
+ {
33169
+ description: "\u97F3\u9891\u5FC5\u987B\u642D\u914D\u81F3\u5C11\u4E00\u5F20\u53C2\u8003\u56FE\u7247\u6216\u4E00\u6BB5\u53C2\u8003\u89C6\u9891\uFF0C\u4E0D\u80FD\u5355\u72EC\u8F93\u5165\u97F3\u9891\u3002",
33170
+ if: {
33171
+ contains: {
33172
+ type: "object",
33173
+ properties: {
33174
+ type: {
33175
+ const: "audio"
33176
+ }
33177
+ },
33178
+ required: [
33179
+ "type"
33180
+ ]
33181
+ }
33182
+ },
33183
+ then: {
33184
+ contains: {
33185
+ anyOf: [
33186
+ {
33187
+ type: "object",
33188
+ properties: {
33189
+ type: {
33190
+ const: "image"
33191
+ },
33192
+ role: {
33193
+ const: "reference"
33194
+ }
33195
+ },
33196
+ required: [
33197
+ "type",
33198
+ "role"
33199
+ ]
33200
+ },
33201
+ {
33202
+ type: "object",
33203
+ properties: {
33204
+ type: {
33205
+ const: "video"
33206
+ }
33207
+ },
33208
+ required: [
33209
+ "type"
33210
+ ]
33211
+ }
33212
+ ]
33213
+ }
33214
+ }
33215
+ },
33216
+ {
33217
+ description: "\u9996\u5C3E\u5E27\u6A21\u5F0F\u4E0D\u80FD\u4E0E\u53C2\u8003\u56FE\u7247\u3001\u89C6\u9891\u3001\u97F3\u9891\u6DF7\u7528\u3002",
33218
+ if: {
33219
+ contains: {
33220
+ type: "object",
33221
+ properties: {
33222
+ type: {
33223
+ const: "image"
33224
+ },
33225
+ role: {
33226
+ enum: [
33227
+ "first_frame",
33228
+ "last_frame"
33229
+ ]
33230
+ }
33231
+ },
33232
+ required: [
33233
+ "type"
33234
+ ]
33235
+ }
33236
+ },
33237
+ then: {
33238
+ items: {
33239
+ anyOf: [
33240
+ {
33241
+ type: "object",
33242
+ properties: {
33243
+ type: {
33244
+ const: "text"
33245
+ }
33246
+ },
33247
+ required: [
33248
+ "type"
33249
+ ]
33250
+ },
33251
+ {
33252
+ type: "object",
33253
+ properties: {
33254
+ type: {
33255
+ const: "image"
33256
+ },
33257
+ role: {
33258
+ enum: [
33259
+ "first_frame",
33260
+ "last_frame"
33261
+ ]
33262
+ }
33263
+ },
33264
+ required: [
33265
+ "type"
33266
+ ]
33267
+ }
33268
+ ]
33269
+ }
33270
+ }
33271
+ },
33272
+ {
33273
+ description: "\u5C3E\u5E27\u5FC5\u987B\u642D\u914D\u660E\u786E\u6807\u8BB0\u4E3A first_frame \u7684\u9996\u5E27\u3002",
33274
+ if: {
33275
+ contains: {
33276
+ type: "object",
33277
+ properties: {
33278
+ type: {
33279
+ const: "image"
33280
+ },
33281
+ role: {
33282
+ const: "last_frame"
33283
+ }
33284
+ },
33285
+ required: [
33286
+ "type",
33287
+ "role"
33288
+ ]
33289
+ }
33290
+ },
33291
+ then: {
33292
+ contains: {
33293
+ type: "object",
33294
+ properties: {
33295
+ type: {
33296
+ const: "image"
33297
+ },
33298
+ role: {
33299
+ const: "first_frame"
33300
+ }
33301
+ },
33302
+ required: [
33303
+ "type",
33304
+ "role"
33305
+ ]
33306
+ }
33307
+ }
33308
+ },
33309
+ {
33310
+ description: "\u9996\u5E27\u6700\u591A\u4E00\u5F20\u3002",
33311
+ contains: {
33312
+ type: "object",
33313
+ properties: {
33314
+ type: {
33315
+ const: "image"
33316
+ },
33317
+ role: {
33318
+ const: "first_frame"
33319
+ }
33320
+ },
33321
+ required: [
33322
+ "type",
33323
+ "role"
33324
+ ]
33325
+ },
33326
+ minContains: 0,
33327
+ maxContains: 1
33328
+ },
33329
+ {
33330
+ description: "\u5C3E\u5E27\u6700\u591A\u4E00\u5F20\u3002",
33331
+ contains: {
33332
+ type: "object",
33333
+ properties: {
33334
+ type: {
33335
+ const: "image"
33336
+ },
33337
+ role: {
33338
+ const: "last_frame"
33339
+ }
33340
+ },
33341
+ required: [
33342
+ "type",
33343
+ "role"
33344
+ ]
33345
+ },
33346
+ minContains: 0,
33347
+ maxContains: 1
33348
+ },
33349
+ {
33350
+ description: "\u7701\u7565\u56FE\u7247 role \u65F6\u53EA\u652F\u6301\u5355\u5F20\u9996\u5E27\u3002",
33351
+ if: {
33352
+ contains: {
33353
+ type: "object",
33354
+ properties: {
33355
+ type: {
33356
+ const: "image"
33357
+ }
33358
+ },
33359
+ required: [
33360
+ "type"
33361
+ ],
33362
+ not: {
33363
+ required: [
33364
+ "role"
33365
+ ]
33366
+ }
33367
+ }
33368
+ },
33369
+ then: {
33370
+ contains: {
33371
+ type: "object",
33372
+ properties: {
33373
+ type: {
33374
+ const: "image"
33375
+ }
33376
+ },
33377
+ required: [
33378
+ "type"
33379
+ ]
33380
+ },
33381
+ minContains: 1,
33382
+ maxContains: 1
33383
+ }
33384
+ }
33385
+ ]
33386
+ },
33387
+ aspect_ratio: {
33388
+ type: "string",
33389
+ title: "\u753B\u9762\u6BD4\u4F8B",
33390
+ enum: [
33391
+ "adaptive",
33392
+ "16:9",
33393
+ "4:3",
33394
+ "1:1",
33395
+ "3:4",
33396
+ "9:16",
33397
+ "21:9"
33398
+ ],
33399
+ default: "adaptive",
33400
+ "x-ui": {
33401
+ order: 10,
33402
+ optionLabels: {
33403
+ adaptive: "\u81EA\u52A8",
33404
+ "16:9": "\u6A2A\u5C4F",
33405
+ "4:3": "4:3",
33406
+ "1:1": "\u65B9\u5F62",
33407
+ "3:4": "3:4",
33408
+ "9:16": "\u7AD6\u5C4F",
33409
+ "21:9": "21:9"
33410
+ },
33411
+ control: "segmented"
33412
+ }
33413
+ },
33414
+ resolution: {
33415
+ type: "string",
33416
+ title: "\u5206\u8FA8\u7387",
33417
+ enum: [
33418
+ "480p",
33419
+ "720p",
33420
+ "1080p",
33421
+ "4k"
33422
+ ],
33423
+ default: "720p",
33424
+ "x-ui": {
33425
+ order: 11,
33426
+ control: "segmented"
33427
+ }
33428
+ },
33429
+ duration: {
33430
+ type: "integer",
33431
+ title: "\u89C6\u9891\u65F6\u957F",
33432
+ description: "\u6307\u5B9A 4\uFF5E15 \u79D2\uFF0C\u6216\u7528 -1 \u8BA9\u6A21\u578B\u81EA\u52A8\u9009\u62E9\u3002",
33433
+ anyOf: [
33434
+ {
33435
+ const: -1
33436
+ },
33437
+ {
33438
+ type: "integer",
33439
+ minimum: 4,
33440
+ maximum: 15
33441
+ }
33442
+ ],
33443
+ "x-ui": {
33444
+ order: 13,
33445
+ control: "range-with-auto",
33446
+ minimum: 4,
33447
+ maximum: 15,
33448
+ autoValue: -1,
33449
+ unit: "\u79D2",
33450
+ step: 1
33451
+ }
33452
+ },
33453
+ generate_audio: {
33454
+ type: "boolean",
33455
+ title: "\u751F\u6210\u58F0\u97F3",
33456
+ description: "\u4E3A\u751F\u6210\u7684\u89C6\u9891\u540C\u6B65\u751F\u6210\u58F0\u97F3\uFF1B\u5173\u95ED\u5219\u751F\u6210\u65E0\u58F0\u89C6\u9891\u3002",
33457
+ default: true,
33458
+ "x-ui": {
33459
+ order: 14,
33460
+ control: "switch"
33461
+ }
33462
+ }
33463
+ },
33464
+ required: [
33465
+ "content"
33466
+ ],
33467
+ additionalProperties: false,
33468
+ allOf: [
33469
+ {
33470
+ not: {
33471
+ anyOf: [
33472
+ {
33473
+ required: [
33474
+ "texts"
33475
+ ]
33476
+ },
33477
+ {
33478
+ required: [
33479
+ "images"
33480
+ ]
33481
+ },
33482
+ {
33483
+ required: [
33484
+ "videos"
33485
+ ]
33486
+ },
33487
+ {
33488
+ required: [
33489
+ "audios"
33490
+ ]
33491
+ },
33492
+ {
33493
+ required: [
33494
+ "with_audio"
33495
+ ]
33496
+ },
33497
+ {
33498
+ required: [
33499
+ "seed"
33500
+ ]
33501
+ },
33502
+ {
33503
+ required: [
33504
+ "frames"
33505
+ ]
33506
+ },
33507
+ {
33508
+ required: [
33509
+ "camera_fixed"
33510
+ ]
33511
+ },
33512
+ {
33513
+ required: [
33514
+ "draft"
33515
+ ]
33516
+ },
33517
+ {
33518
+ required: [
33519
+ "output_format"
33520
+ ]
33521
+ },
33522
+ {
33523
+ required: [
33524
+ "task_type"
33525
+ ]
33526
+ }
33527
+ ]
33528
+ }
33529
+ }
33530
+ ]
33531
+ },
33532
+ outputSchema: {},
33533
+ metering: {
33534
+ schemaVersion: 1,
33535
+ kind: "token",
33536
+ metrics: [
33537
+ {
33538
+ metric: "requests",
33539
+ requirement: "required"
33540
+ },
33541
+ {
33542
+ metric: "output_tokens",
33543
+ requirement: "required"
33544
+ }
33545
+ ]
33546
+ }
33547
+ }
33548
+ ],
33549
+ endpoints: []
33550
+ },
33551
+ {
33552
+ id: "dolphin/seedance-2-5",
33553
+ contractVersion: 1,
33554
+ developer: "bytedance",
33555
+ displayName: "Dolphin Seedance 2.5",
33556
+ summary: "\u901A\u8FC7 Dolphin AI \u751F\u6210 Seedance 2.5 \u89C6\u9891\uFF0C\u652F\u6301\u6700\u957F 30 \u79D2\u53CA\u56FE\u50CF\u3001\u89C6\u9891\u548C\u97F3\u9891\u53C2\u8003\u3002",
33557
+ kind: "video",
33558
+ family: "Dolphin Seedance",
33559
+ versionLabel: "2.5",
33560
+ aliases: [],
33561
+ capabilities: {
33562
+ inputModalities: [
33563
+ "text",
33564
+ "image",
33565
+ "video",
33566
+ "audio"
33567
+ ],
33568
+ outputModalities: [
33569
+ "video"
33570
+ ],
33571
+ inputModes: [
33572
+ "text-to-video",
33573
+ "image-to-video",
33574
+ "video-to-video",
33575
+ "audio-to-video"
33576
+ ],
33577
+ features: [
33578
+ "max-duration-30s",
33579
+ "multimodal-reference",
33580
+ "draft-preview"
33581
+ ]
33582
+ },
33583
+ operations: [
33584
+ {
33585
+ operation: "video.generate",
33586
+ inputModalities: [
33587
+ "text",
33588
+ "image",
33589
+ "video",
33590
+ "audio"
33591
+ ],
33592
+ outputModalities: [
33593
+ "video"
33594
+ ],
33595
+ inputSchema: {
33596
+ $schema: "https://json-schema.org/draft/2020-12/schema",
33597
+ type: "object",
33598
+ properties: {
33599
+ content: {
33600
+ type: "array",
33601
+ minItems: 1,
33602
+ items: {
33603
+ oneOf: [
33604
+ {
33605
+ type: "object",
33606
+ properties: {
33607
+ type: {
33608
+ const: "text"
33609
+ },
33610
+ text: {
33611
+ type: "string",
33612
+ minLength: 1
33613
+ },
33614
+ role: {
33615
+ type: "string",
33616
+ const: "prompt"
33617
+ }
33618
+ },
33619
+ required: [
33620
+ "type",
33621
+ "text"
33622
+ ],
33623
+ additionalProperties: false,
33624
+ title: "\u6587\u672C"
33625
+ },
33626
+ {
33627
+ type: "object",
33628
+ properties: {
33629
+ type: {
33630
+ const: "image"
33631
+ },
33632
+ source: {
33633
+ oneOf: [
33634
+ {
33635
+ type: "string",
33636
+ minLength: 1
33637
+ },
33638
+ {
33639
+ type: "object",
33640
+ properties: {
33641
+ assetId: {
33642
+ type: "string",
33643
+ minLength: 1
33644
+ }
33645
+ },
33646
+ required: [
33647
+ "assetId"
33648
+ ],
33649
+ additionalProperties: false
33650
+ }
33651
+ ]
33652
+ },
33653
+ role: {
33654
+ type: "string",
33655
+ title: "\u7D20\u6750\u7528\u9014",
33656
+ enum: [
33657
+ "first_frame",
33658
+ "reference",
33659
+ "last_frame"
33660
+ ],
33661
+ description: "\u901A\u8FC7 role \u6307\u5B9A\u9996\u5E27\u3001\u5C3E\u5E27\u6216\u53C2\u8003\u56FE\u3002",
33662
+ "x-ui": {
33663
+ optionLabels: {
33664
+ first_frame: "\u9996\u5E27",
33665
+ last_frame: "\u5C3E\u5E27",
33666
+ reference_image: "\u53C2\u8003\u56FE",
33667
+ reference_video: "\u53C2\u8003\u89C6\u9891",
33668
+ reference_audio: "\u53C2\u8003\u97F3\u9891"
33669
+ }
33670
+ }
33671
+ }
33672
+ },
33673
+ required: [
33674
+ "type",
33675
+ "source"
33676
+ ],
33677
+ additionalProperties: false,
33678
+ title: "\u56FE\u7247"
33679
+ },
33680
+ {
33681
+ type: "object",
33682
+ properties: {
33683
+ type: {
33684
+ const: "video"
33685
+ },
33686
+ source: {
33687
+ oneOf: [
33688
+ {
33689
+ type: "string",
33690
+ minLength: 1
33691
+ },
33692
+ {
33693
+ type: "object",
33694
+ properties: {
33695
+ assetId: {
33696
+ type: "string",
33697
+ minLength: 1
33698
+ }
33699
+ },
33700
+ required: [
33701
+ "assetId"
33702
+ ],
33703
+ additionalProperties: false
33704
+ }
33705
+ ]
33706
+ },
33707
+ role: {
33708
+ type: "string",
33709
+ title: "\u7D20\u6750\u7528\u9014",
33710
+ enum: [
33711
+ "reference"
33712
+ ],
33713
+ description: "\u53C2\u8003\u7D20\u6750\u7684\u7528\u9014\u3002",
33714
+ "x-ui": {
33715
+ optionLabels: {
33716
+ first_frame: "\u9996\u5E27",
33717
+ last_frame: "\u5C3E\u5E27",
33718
+ reference_image: "\u53C2\u8003\u56FE",
33719
+ reference_video: "\u53C2\u8003\u89C6\u9891",
33720
+ reference_audio: "\u53C2\u8003\u97F3\u9891"
33721
+ }
33722
+ }
33723
+ }
33724
+ },
33725
+ required: [
33726
+ "type",
33727
+ "source"
33728
+ ],
33729
+ additionalProperties: false,
33730
+ title: "\u89C6\u9891"
33731
+ },
33732
+ {
33733
+ type: "object",
33734
+ properties: {
33735
+ type: {
33736
+ const: "audio"
33737
+ },
33738
+ source: {
33739
+ oneOf: [
33740
+ {
33741
+ type: "string",
33742
+ minLength: 1
33743
+ },
33744
+ {
33745
+ type: "object",
33746
+ properties: {
33747
+ assetId: {
33748
+ type: "string",
33749
+ minLength: 1
33750
+ }
33751
+ },
33752
+ required: [
33753
+ "assetId"
33754
+ ],
33755
+ additionalProperties: false
33756
+ }
33757
+ ]
33758
+ },
33759
+ role: {
33760
+ type: "string",
33761
+ title: "\u7D20\u6750\u7528\u9014",
33762
+ enum: [
33763
+ "reference"
33764
+ ],
33765
+ description: "\u53C2\u8003\u7D20\u6750\u7684\u7528\u9014\u3002",
33766
+ "x-ui": {
33767
+ optionLabels: {
33768
+ first_frame: "\u9996\u5E27",
33769
+ last_frame: "\u5C3E\u5E27",
33770
+ reference_image: "\u53C2\u8003\u56FE",
33771
+ reference_video: "\u53C2\u8003\u89C6\u9891",
33772
+ reference_audio: "\u53C2\u8003\u97F3\u9891"
33773
+ }
33774
+ }
33775
+ }
33776
+ },
33777
+ required: [
33778
+ "type",
33779
+ "source"
33780
+ ],
33781
+ additionalProperties: false,
33782
+ title: "\u97F3\u9891"
33783
+ },
33784
+ {
33785
+ type: "object",
33786
+ properties: {
33787
+ type: {
33788
+ const: "draft_task"
33789
+ },
33790
+ draft_task: {
33791
+ type: "object",
33792
+ properties: {
33793
+ id: {
33794
+ type: "string",
33795
+ minLength: 1,
33796
+ title: "\u6837\u7247\u4EFB\u52A1 ID",
33797
+ description: "\u539F\u751F\u63A5\u53E3\u586B\u5199\u4E0A\u6E38 Draft \u4EFB\u52A1 ID\uFF1BNexra \u6258\u7BA1\u4EFB\u52A1\u987B\u5F15\u7528\u5F53\u524D\u7528\u6237 7 \u5929\u5185\u6210\u529F\u751F\u6210\u7684 480p \u6837\u7247\u3002"
33798
+ }
33799
+ },
33800
+ required: [
33801
+ "id"
33802
+ ],
33803
+ additionalProperties: false
33804
+ }
33805
+ },
33806
+ required: [
33807
+ "type",
33808
+ "draft_task"
33809
+ ],
33810
+ additionalProperties: false,
33811
+ title: "Draft \u6837\u7247\u4EFB\u52A1"
33812
+ }
33813
+ ]
33814
+ },
33815
+ "x-ui": {
33816
+ control: "content-parts",
33817
+ order: 0
33818
+ },
33819
+ title: "\u8F93\u5165\u5185\u5BB9",
33820
+ allOf: [
33821
+ {
33822
+ description: "\u56FE\u7247\u6700\u591A 30 \u5F20\u3002",
33823
+ contains: {
33824
+ type: "object",
33825
+ properties: {
33826
+ type: {
33827
+ const: "image"
33828
+ }
33829
+ },
33830
+ required: [
33831
+ "type"
33832
+ ]
33833
+ },
33834
+ minContains: 0,
33835
+ maxContains: 30
33836
+ },
33837
+ {
33838
+ description: "\u89C6\u9891\u6700\u591A 10 \u6BB5\u3002",
33839
+ contains: {
33840
+ type: "object",
33841
+ properties: {
33842
+ type: {
33843
+ const: "video"
33844
+ }
33845
+ },
33846
+ required: [
33847
+ "type"
33848
+ ]
33849
+ },
33850
+ minContains: 0,
33851
+ maxContains: 10
33852
+ },
33853
+ {
33854
+ description: "\u97F3\u9891\u6700\u591A 10 \u6BB5\u3002",
33855
+ contains: {
33856
+ type: "object",
33857
+ properties: {
33858
+ type: {
33859
+ const: "audio"
33860
+ }
33861
+ },
33862
+ required: [
33863
+ "type"
33864
+ ]
33865
+ },
33866
+ minContains: 0,
33867
+ maxContains: 10
33868
+ },
33869
+ {
33870
+ description: "\u9996\u5C3E\u5E27\u6A21\u5F0F\u4E0D\u80FD\u4E0E\u53C2\u8003\u56FE\u7247\u3001\u89C6\u9891\u3001\u97F3\u9891\u6DF7\u7528\u3002",
33871
+ if: {
33872
+ contains: {
33873
+ type: "object",
33874
+ properties: {
33875
+ type: {
33876
+ const: "image"
33877
+ },
33878
+ role: {
33879
+ enum: [
33880
+ "first_frame",
33881
+ "last_frame"
33882
+ ]
33883
+ }
33884
+ },
33885
+ required: [
33886
+ "type",
33887
+ "role"
33888
+ ]
33889
+ }
33890
+ },
33891
+ then: {
33892
+ items: {
33893
+ anyOf: [
33894
+ {
33895
+ type: "object",
33896
+ properties: {
33897
+ type: {
33898
+ const: "text"
33899
+ }
33900
+ },
33901
+ required: [
33902
+ "type"
33903
+ ]
33904
+ },
33905
+ {
33906
+ type: "object",
33907
+ properties: {
33908
+ type: {
33909
+ const: "image"
33910
+ },
33911
+ role: {
33912
+ enum: [
33913
+ "first_frame",
33914
+ "last_frame"
33915
+ ]
33916
+ }
33917
+ },
33918
+ required: [
33919
+ "type",
33920
+ "role"
33921
+ ]
33922
+ }
33923
+ ]
33924
+ }
33925
+ }
33926
+ },
33927
+ {
33928
+ description: "\u5C3E\u5E27\u5FC5\u987B\u642D\u914D\u660E\u786E\u6807\u8BB0\u4E3A first_frame \u7684\u9996\u5E27\u3002",
33929
+ if: {
33930
+ contains: {
33931
+ type: "object",
33932
+ properties: {
33933
+ type: {
33934
+ const: "image"
33935
+ },
33936
+ role: {
33937
+ const: "last_frame"
33938
+ }
33939
+ },
33940
+ required: [
33941
+ "type",
33942
+ "role"
33943
+ ]
33944
+ }
33945
+ },
33946
+ then: {
33947
+ contains: {
33948
+ type: "object",
33949
+ properties: {
33950
+ type: {
33951
+ const: "image"
33952
+ },
33953
+ role: {
33954
+ const: "first_frame"
33955
+ }
33956
+ },
33957
+ required: [
33958
+ "type",
33959
+ "role"
33960
+ ]
33961
+ }
33962
+ }
33963
+ },
33964
+ {
33965
+ description: "\u9996\u5E27\u6700\u591A\u4E00\u5F20\u3002",
33966
+ contains: {
33967
+ type: "object",
33968
+ properties: {
33969
+ type: {
33970
+ const: "image"
33971
+ },
33972
+ role: {
33973
+ const: "first_frame"
33974
+ }
33975
+ },
33976
+ required: [
33977
+ "type",
33978
+ "role"
33979
+ ]
33980
+ },
33981
+ minContains: 0,
33982
+ maxContains: 1
33983
+ },
33984
+ {
33985
+ description: "\u5C3E\u5E27\u6700\u591A\u4E00\u5F20\u3002",
33986
+ contains: {
33987
+ type: "object",
33988
+ properties: {
33989
+ type: {
33990
+ const: "image"
33991
+ },
33992
+ role: {
33993
+ const: "last_frame"
33994
+ }
33995
+ },
33996
+ required: [
33997
+ "type",
33998
+ "role"
33999
+ ]
34000
+ },
34001
+ minContains: 0,
34002
+ maxContains: 1
34003
+ },
34004
+ {
34005
+ description: "\u7701\u7565 role \u7684\u56FE\u7247\u53EA\u80FD\u4F5C\u4E3A\u5355\u5F20\u9996\u5E27\uFF0C\u4E0D\u80FD\u4E0E\u5176\u4ED6\u56FE\u7247\u3001\u89C6\u9891\u6216\u97F3\u9891\u6DF7\u7528\u3002",
34006
+ if: {
34007
+ contains: false
34008
+ },
34009
+ then: {
34010
+ items: {
34011
+ anyOf: [
34012
+ {
34013
+ type: "object",
34014
+ properties: {
34015
+ type: {
34016
+ const: "text"
34017
+ }
34018
+ },
34019
+ required: [
34020
+ "type"
34021
+ ]
34022
+ },
34023
+ false
34024
+ ]
34025
+ },
34026
+ contains: {
34027
+ type: "object",
34028
+ properties: {
34029
+ type: {
34030
+ const: "image"
34031
+ }
34032
+ },
34033
+ required: [
34034
+ "type"
34035
+ ]
34036
+ },
34037
+ minContains: 1,
34038
+ maxContains: 1
34039
+ }
34040
+ }
34041
+ ]
34042
+ },
34043
+ task_type: {
34044
+ type: "string",
34045
+ enum: [
34046
+ "auto",
34047
+ "reference",
34048
+ "edit",
34049
+ "extend"
34050
+ ],
34051
+ title: "\u5168\u6A21\u6001\u4EFB\u52A1\u7C7B\u578B",
34052
+ default: "auto",
34053
+ description: "\u6307\u5B9A\u5168\u6A21\u6001\u53C2\u8003\u751F\u89C6\u9891\u7684\u4EFB\u52A1\u7C7B\u578B\uFF1Bauto \u7531\u6A21\u578B\u5224\u65AD\uFF0Creference\u3001edit\u3001extend \u4F1A\u5728\u63D0\u4EA4\u65F6\u6821\u9A8C\u5BF9\u5E94\u9650\u5236\u3002",
34054
+ "x-ui": {
34055
+ order: 8,
34056
+ control: "segmented",
34057
+ optionLabels: {
34058
+ auto: "\u81EA\u52A8",
34059
+ reference: "\u53C2\u8003\u751F\u6210",
34060
+ edit: "\u89C6\u9891\u7F16\u8F91",
34061
+ extend: "\u89C6\u9891\u5EF6\u957F"
34062
+ }
34063
+ }
34064
+ },
34065
+ watermark: {
34066
+ type: "boolean",
34067
+ title: "\u89C6\u9891\u6C34\u5370",
34068
+ default: false,
34069
+ "x-ui": {
34070
+ hidden: true,
34071
+ order: 7
34072
+ },
34073
+ const: false
34074
+ },
34075
+ aspect_ratio: {
34076
+ type: "string",
34077
+ enum: [
34078
+ "adaptive",
34079
+ "16:9",
34080
+ "9:16",
34081
+ "1:1",
34082
+ "4:3",
34083
+ "3:4",
34084
+ "21:9"
34085
+ ],
34086
+ title: "\u753B\u9762\u6BD4\u4F8B",
34087
+ default: "adaptive",
34088
+ "x-ui": {
34089
+ order: 10,
34090
+ control: "segmented",
34091
+ optionLabels: {
34092
+ adaptive: "\u81EA\u52A8",
34093
+ "16:9": "\u6A2A\u5C4F",
34094
+ "9:16": "\u7AD6\u5C4F",
34095
+ "1:1": "\u65B9\u5F62",
34096
+ "4:3": "4:3",
34097
+ "3:4": "3:4",
34098
+ "21:9": "21:9"
34099
+ }
34100
+ }
34101
+ },
34102
+ resolution: {
34103
+ type: "string",
34104
+ enum: [
34105
+ "480p",
34106
+ "720p",
34107
+ "1080p"
34108
+ ],
34109
+ title: "\u5206\u8FA8\u7387",
34110
+ default: "720p",
34111
+ "x-ui": {
34112
+ order: 11,
34113
+ control: "segmented"
34114
+ }
34115
+ },
34116
+ duration: {
34117
+ anyOf: [
34118
+ {
34119
+ const: -1
34120
+ },
34121
+ {
34122
+ type: "integer",
34123
+ minimum: 4,
34124
+ maximum: 30
34125
+ }
34126
+ ],
34127
+ title: "\u89C6\u9891\u65F6\u957F",
34128
+ "x-ui": {
34129
+ order: 13,
34130
+ control: "range-with-auto",
34131
+ minimum: 4,
34132
+ maximum: 30,
34133
+ step: 1,
34134
+ unit: "\u79D2",
34135
+ autoValue: -1
34136
+ },
34137
+ type: "integer",
34138
+ default: -1,
34139
+ description: "\u6307\u5B9A 4\uFF5E30 \u79D2\uFF0C\u6216\u7528 -1 \u8BA9\u6A21\u578B\u81EA\u52A8\u9009\u62E9\u3002"
34140
+ },
34141
+ generate_audio: {
34142
+ type: "boolean",
34143
+ title: "\u751F\u6210\u58F0\u97F3",
34144
+ default: true,
34145
+ "x-ui": {
34146
+ order: 14,
34147
+ control: "switch"
34148
+ },
34149
+ description: "\u4E3A\u751F\u6210\u7684\u89C6\u9891\u540C\u6B65\u751F\u6210\u58F0\u97F3\uFF1B\u5173\u95ED\u5219\u751F\u6210\u65E0\u58F0\u89C6\u9891\u3002"
34150
+ },
34151
+ output_format: {
34152
+ type: "string",
34153
+ enum: [
34154
+ "mp4",
34155
+ "mov"
34156
+ ],
34157
+ title: "\u8F93\u51FA\u683C\u5F0F",
34158
+ "x-ui": {
34159
+ order: 15,
34160
+ control: "segmented",
34161
+ optionLabels: {
34162
+ mp4: "mp4",
34163
+ mov: "mov"
34164
+ }
34165
+ },
34166
+ default: "mp4"
34167
+ },
34168
+ draft: {
34169
+ type: "boolean",
34170
+ title: "Draft \u6837\u7247\u6A21\u5F0F",
34171
+ description: "\u5148\u751F\u6210 480p \u6837\u7247\uFF1B\u6837\u7247\u4E0E\u968F\u540E\u5355\u72EC\u53D1\u8D77\u7684 1080p \u6B63\u5F0F\u7248\u5206\u522B\u8BA1\u8D39\u3002",
34172
+ "x-ui": {
34173
+ order: 4
34174
+ }
34175
+ }
34176
+ },
34177
+ required: [
34178
+ "content"
34179
+ ],
34180
+ additionalProperties: false,
34181
+ allOf: [
34182
+ {
34183
+ not: {
34184
+ anyOf: [
34185
+ {
34186
+ required: [
34187
+ "texts"
34188
+ ]
34189
+ },
34190
+ {
34191
+ required: [
34192
+ "images"
34193
+ ]
34194
+ },
34195
+ {
34196
+ required: [
34197
+ "videos"
34198
+ ]
34199
+ },
34200
+ {
34201
+ required: [
34202
+ "audios"
34203
+ ]
34204
+ },
34205
+ {
34206
+ required: [
34207
+ "with_audio"
34208
+ ]
34209
+ }
34210
+ ]
34211
+ }
34212
+ },
34213
+ {
34214
+ description: "\u9996\u5C3E\u5E27\u6A21\u5F0F\u4E0B\uFF0C\u753B\u9762\u6BD4\u4F8B\u4EC5\u652F\u6301 adaptive\u3002",
34215
+ if: {
34216
+ properties: {
34217
+ content: {
34218
+ type: "array",
34219
+ contains: {
34220
+ type: "object",
34221
+ properties: {
34222
+ type: {
34223
+ const: "image"
34224
+ },
34225
+ role: {
34226
+ enum: [
34227
+ "first_frame",
34228
+ "last_frame"
34229
+ ]
34230
+ }
34231
+ },
34232
+ required: [
34233
+ "type",
34234
+ "role"
34235
+ ]
34236
+ }
34237
+ }
34238
+ },
34239
+ required: [
34240
+ "content"
34241
+ ]
34242
+ },
34243
+ then: {
34244
+ properties: {
34245
+ aspect_ratio: {
34246
+ const: "adaptive"
34247
+ }
34248
+ }
34249
+ }
34250
+ },
34251
+ {
34252
+ description: "\u89C6\u9891\u7F16\u8F91\u5FC5\u987B\u5305\u542B\u53C2\u8003\u89C6\u9891\uFF0C\u5E76\u4F7F\u7528\u81EA\u52A8\u65F6\u957F\u548C\u81EA\u52A8\u6BD4\u4F8B\u3002",
34253
+ if: {
34254
+ required: [
34255
+ "task_type"
34256
+ ],
34257
+ properties: {
34258
+ task_type: {
34259
+ const: "edit"
34260
+ }
34261
+ }
34262
+ },
34263
+ then: {
34264
+ required: [
34265
+ "content",
34266
+ "duration",
34267
+ "aspect_ratio"
34268
+ ],
34269
+ properties: {
34270
+ content: {
34271
+ type: "array",
34272
+ contains: {
34273
+ type: "object",
34274
+ required: [
34275
+ "type",
34276
+ "role"
34277
+ ],
34278
+ properties: {
34279
+ type: {
34280
+ const: "video"
34281
+ },
34282
+ role: {
34283
+ const: "reference"
34284
+ }
34285
+ }
34286
+ }
34287
+ },
34288
+ duration: {
34289
+ const: -1
34290
+ },
34291
+ aspect_ratio: {
34292
+ const: "adaptive"
34293
+ }
34294
+ }
34295
+ }
34296
+ },
34297
+ {
34298
+ description: "\u89C6\u9891\u5EF6\u957F\u5FC5\u987B\u5305\u542B\u53C2\u8003\u89C6\u9891\uFF0C\u5E76\u4F7F\u7528\u81EA\u52A8\u6BD4\u4F8B\u3002",
34299
+ if: {
34300
+ required: [
34301
+ "task_type"
34302
+ ],
34303
+ properties: {
34304
+ task_type: {
34305
+ const: "extend"
34306
+ }
34307
+ }
34308
+ },
34309
+ then: {
34310
+ required: [
34311
+ "content",
34312
+ "aspect_ratio"
34313
+ ],
34314
+ properties: {
34315
+ content: {
34316
+ type: "array",
34317
+ contains: {
34318
+ type: "object",
34319
+ required: [
34320
+ "type",
34321
+ "role"
34322
+ ],
34323
+ properties: {
34324
+ type: {
34325
+ const: "video"
34326
+ },
34327
+ role: {
34328
+ const: "reference"
34329
+ }
34330
+ }
34331
+ }
34332
+ },
34333
+ aspect_ratio: {
34334
+ const: "adaptive"
34335
+ }
34336
+ }
34337
+ }
34338
+ },
34339
+ {
34340
+ if: {
34341
+ properties: {
34342
+ draft: {
34343
+ const: true
34344
+ }
34345
+ },
34346
+ required: [
34347
+ "draft"
34348
+ ]
34349
+ },
34350
+ then: {
34351
+ required: [
34352
+ "resolution"
34353
+ ],
34354
+ properties: {
34355
+ resolution: {
34356
+ const: "480p"
34357
+ },
34358
+ content: {
34359
+ not: {
34360
+ type: "array",
34361
+ contains: {
34362
+ type: "object",
34363
+ properties: {
34364
+ type: {
34365
+ const: "draft_task"
34366
+ }
34367
+ },
34368
+ required: [
34369
+ "type"
34370
+ ]
34371
+ }
34372
+ }
34373
+ }
34374
+ }
34375
+ }
34376
+ },
34377
+ {
34378
+ if: {
34379
+ properties: {
34380
+ content: {
34381
+ type: "array",
34382
+ contains: {
34383
+ type: "object",
34384
+ properties: {
34385
+ type: {
34386
+ const: "draft_task"
34387
+ }
34388
+ },
34389
+ required: [
34390
+ "type"
34391
+ ]
34392
+ }
34393
+ }
34394
+ },
34395
+ required: [
34396
+ "content"
34397
+ ]
34398
+ },
34399
+ then: {
34400
+ required: [
34401
+ "resolution"
34402
+ ],
34403
+ properties: {
34404
+ resolution: {
34405
+ const: "1080p"
34406
+ },
34407
+ draft: {
34408
+ const: false
34409
+ },
34410
+ content: {
34411
+ type: "array",
34412
+ minItems: 1,
34413
+ maxItems: 1
34414
+ },
34415
+ duration: false,
34416
+ aspect_ratio: false,
34417
+ seed: false,
34418
+ generate_audio: false,
34419
+ task_type: false
34420
+ },
34421
+ propertyNames: {
34422
+ enum: [
34423
+ "model",
34424
+ "content",
34425
+ "resolution",
34426
+ "draft",
34427
+ "return_last_frame",
34428
+ "output_format",
34429
+ "watermark",
34430
+ "service_tier",
34431
+ "execution_expires_after",
34432
+ "priority",
34433
+ "callback_url",
34434
+ "safety_identifier"
34435
+ ]
34436
+ }
34437
+ }
34438
+ }
34439
+ ]
34440
+ },
34441
+ outputSchema: {},
34442
+ metering: {
34443
+ schemaVersion: 1,
34444
+ kind: "token",
34445
+ metrics: [
34446
+ {
34447
+ metric: "requests",
34448
+ requirement: "required"
34449
+ },
34450
+ {
34451
+ metric: "output_tokens",
34452
+ requirement: "required"
34453
+ }
34454
+ ]
34455
+ }
34456
+ }
34457
+ ],
34458
+ endpoints: []
34459
+ },
32595
34460
  {
32596
34461
  id: "yadan/minimax-h3-local",
32597
34462
  contractVersion: 3,
@@ -53143,7 +55008,7 @@ var NexraWaitTimeoutError = class extends Error {
53143
55008
  };
53144
55009
 
53145
55010
  // src/generated/version.generated.ts
53146
- var SDK_VERSION = "0.1.0-alpha.40";
55011
+ var SDK_VERSION = "0.1.0-alpha.42";
53147
55012
 
53148
55013
  // src/transport.ts
53149
55014
  var DEFAULT_BASE_URL = "https://api.nexra-ai.com/v1";