openany-cli-dev 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +472 -2
  2. package/bin/openany.js +3 -0
  3. package/package.json +27 -4
  4. package/skills/openany/SKILL.md +353 -0
  5. package/skills/openany/SKILL.zh-CN.md +496 -0
  6. package/skills/openany-provider/SKILL.md +26 -0
  7. package/skills/openany-provider/SKILL.zh-CN.md +26 -0
  8. package/skills/openany-provider/references/apis.md +60 -0
  9. package/skills/openany-provider/references/apis.zh-CN.md +55 -0
  10. package/skills/openany-provider/references/application.md +49 -0
  11. package/skills/openany-provider/references/application.zh-CN.md +51 -0
  12. package/skills/openany-provider/references/auth.md +3 -0
  13. package/skills/openany-provider/references/auth.zh-CN.md +3 -0
  14. package/skills/openany-provider/references/connections.md +36 -0
  15. package/skills/openany-provider/references/connections.zh-CN.md +36 -0
  16. package/skills/openany-provider/references/imports.md +57 -0
  17. package/skills/openany-provider/references/imports.zh-CN.md +57 -0
  18. package/skills/openany-provider/references/listing.md +29 -0
  19. package/skills/openany-provider/references/listing.zh-CN.md +11 -0
  20. package/skills/openany-provider/references/login.md +57 -0
  21. package/skills/openany-provider/references/login.zh-CN.md +57 -0
  22. package/skills/openany-provider/references/model-import.md +11 -0
  23. package/skills/openany-provider/references/model-import.zh-CN.md +11 -0
  24. package/skills/openany-provider/references/models.md +107 -0
  25. package/skills/openany-provider/references/models.zh-CN.md +68 -0
  26. package/skills/openany-provider/references/publishing.md +40 -0
  27. package/skills/openany-provider/references/publishing.zh-CN.md +40 -0
  28. package/skills/openany-provider/references/reviews.md +22 -0
  29. package/skills/openany-provider/references/reviews.zh-CN.md +20 -0
  30. package/skills/openany-provider/templates/api-metadata.json +27 -0
  31. package/skills/openany-provider/templates/bindings.json +1 -0
  32. package/skills/openany-provider/templates/models-v2.json +545 -0
  33. package/skills/openany-provider/templates/models.json +10 -0
  34. package/skills/openany-provider/templates/provider-agent-api-template.json +697 -0
  35. package/skills/openany-provider/templates/seller-agent-api-import-template.json +822 -0
  36. package/skills/openany-provider/templates/seller-registration.json +26 -0
  37. package/src/auth-recovery.js +179 -0
  38. package/src/auth.js +1001 -0
  39. package/src/catalog.js +306 -0
  40. package/src/cli.js +605 -0
  41. package/src/config.js +260 -0
  42. package/src/errors.js +53 -0
  43. package/src/http.js +238 -0
  44. package/src/model-curl.js +359 -0
  45. package/src/model-materials.js +58 -0
  46. package/src/model-request.js +402 -0
  47. package/src/model-validation.js +56 -0
  48. package/src/models.js +188 -0
  49. package/src/native/config-acl.ps1 +34 -0
  50. package/src/native/connection-macos.js +109 -0
  51. package/src/native/connection-windows.ps1 +98 -0
  52. package/src/native/setup-macos.js +72 -0
  53. package/src/native/setup-windows.ps1 +83 -0
  54. package/src/native-prompt.js +85 -0
  55. package/src/payment-signing.js +362 -0
  56. package/src/prompt.js +69 -0
  57. package/src/provider-api-import-v2.js +72 -0
  58. package/src/provider-apis.js +3 -0
  59. package/src/provider-client.js +153 -0
  60. package/src/provider-connections.js +152 -0
  61. package/src/provider-import-format.js +289 -0
  62. package/src/provider-imports.js +402 -0
  63. package/src/provider-json.js +49 -0
  64. package/src/provider-model-import-v2.js +61 -0
  65. package/src/provider-models.js +253 -0
  66. package/src/provider-profile.js +65 -0
  67. package/src/provider-reviews.js +61 -0
  68. package/src/provider-state.js +176 -0
  69. package/src/provider.js +75 -0
  70. package/src/setup.js +201 -0
  71. package/src/tasks.js +53 -0
  72. package/src/topups.js +845 -0
  73. package/src/vendor/provider-apply/market-taxonomy.mjs +22 -0
  74. package/src/vendor/provider-apply/provenance.json +8 -0
  75. package/src/vendor/provider-apply/registration.mjs +151 -0
  76. package/src/vendor/provider-import/api-categories.json +29 -0
  77. package/src/vendor/provider-import/api-fields.json +33 -0
  78. package/src/vendor/provider-import/model-fields.json +44 -0
  79. package/src/wallet.js +213 -0
  80. package/src/windows-permissions.js +22 -0
@@ -0,0 +1,545 @@
1
+ {
2
+ "schemaVersion": "seller-model-config-v2",
3
+ "description": "Place the model configurations you fill in under models. templateGuide and fieldGuide are instructions and are not submitted as model configurations.",
4
+ "templateGuide": {
5
+ "title": "Model configuration import template",
6
+ "howToFill": [
7
+ "Edit only the configuration values in models. fieldGuide contains filling instructions.",
8
+ "Enter amounts as strings in the currency specified by priceCurrency, with at most 6 decimal places.",
9
+ "When usageUnit (mapped to billingUnit) is not token, outputPrice (mapped to actualCompletion) must be the string \"0\", meaning actualCompletion must be 0.",
10
+ "In this example, inputPrice=\"1.000000\" means USD 1 per million input tokens.",
11
+ "Select the upstream connection on the import page. Never enter real API keys in this template.",
12
+ "Replace the domain, model ID, and route.provider in example requests with your actual configuration."
13
+ ],
14
+ "timeExample": "UTC 01:00-04:00 corresponds to 09:00-12:00 China Standard Time (UTC+8)."
15
+ },
16
+ "fieldGuide": {
17
+ "schemaVersion": {
18
+ "label": "Template version",
19
+ "type": "string",
20
+ "required": true,
21
+ "description": "Identifies the new field format. Do not modify.",
22
+ "constraints": "Must be seller-model-config-v2.",
23
+ "example": "seller-model-config-v2"
24
+ },
25
+ "models": {
26
+ "label": "Models to import",
27
+ "type": "array<object>",
28
+ "required": true,
29
+ "description": "Each object represents one model.",
30
+ "constraints": "At least one item is required. The file must not exceed 2 MiB. Model identifiers must be unique."
31
+ },
32
+ "models[].modelId": {
33
+ "label": "Upstream model ID",
34
+ "type": "string",
35
+ "required": true,
36
+ "description": "The model ID recognized by the upstream service.",
37
+ "constraints": "A non-empty string.",
38
+ "example": "qwen3.8-max"
39
+ },
40
+ "models[].publicModelId": {
41
+ "label": "Public model ID",
42
+ "type": "string",
43
+ "required": false,
44
+ "description": "The ID callers provide in the request's model field.",
45
+ "constraints": "Must be non-empty when provided. Defaults to the upstream model ID when omitted.",
46
+ "example": "openany-qwen3.8-max"
47
+ },
48
+ "models[].modelDescription": {
49
+ "label": "Model description",
50
+ "type": "string",
51
+ "required": true,
52
+ "description": "Describe core capabilities, how to call the model, and use cases.",
53
+ "constraints": "At least 150 characters after trimming leading and trailing whitespace.",
54
+ "example": "This model processes conversational text and generates responses for user questions and drafting tasks. Call it through the configured model endpoint with a model ID and messages. Use it for customer support, document drafting, and knowledge assistance where its supported capabilities fit."
55
+ },
56
+ "models[].overviewHtml": {
57
+ "label": "Overview",
58
+ "type": "string",
59
+ "required": false,
60
+ "description": "Optional rich-text overview as an HTML string.",
61
+ "constraints": "At most 32 KiB. Use supported HTML tags and links. Omit the field or leave it empty for no overview.",
62
+ "example": ""
63
+ },
64
+ "models[].providerLogoUrl": {
65
+ "label": "Provider logo URL",
66
+ "type": "string",
67
+ "required": false,
68
+ "description": "URL of the provider's logo image.",
69
+ "constraints": "Use an empty string if no image is available.",
70
+ "example": ""
71
+ },
72
+ "models[].modelReleaseDate": {
73
+ "label": "Model release date",
74
+ "type": "string|null",
75
+ "required": false,
76
+ "description": "The date the model was released.",
77
+ "constraints": "Use YYYY-MM-DD. Use null or omit if unknown.",
78
+ "example": "2026-10-29"
79
+ },
80
+ "models[].modelDescriptionTranslations": {
81
+ "label": "Localized model descriptions",
82
+ "type": "object",
83
+ "required": false,
84
+ "description": "Keys are language codes; values are descriptions in the corresponding languages.",
85
+ "constraints": "For example, {\"en\":\"English description\"}. Use {} if no translations are available.",
86
+ "example": {}
87
+ },
88
+ "models[].inputCapabilities": {
89
+ "label": "Input capabilities",
90
+ "type": "array<string>",
91
+ "required": false,
92
+ "description": "Select the input capabilities supported by the model.",
93
+ "constraints": "Select only values listed in allowedValues.",
94
+ "example": [
95
+ "chat",
96
+ "coding",
97
+ "reasoning"
98
+ ],
99
+ "allowedValues": [
100
+ "chat",
101
+ "coding",
102
+ "reasoning",
103
+ "image",
104
+ "video",
105
+ "music",
106
+ "audio",
107
+ "embedding",
108
+ "rerank",
109
+ "tts",
110
+ "stt"
111
+ ]
112
+ },
113
+ "models[].outputCapabilities": {
114
+ "label": "Output capabilities",
115
+ "type": "array<string>",
116
+ "required": false,
117
+ "description": "Select the output capabilities supported by the model.",
118
+ "constraints": "Select only values listed in allowedValues. Defaults to inputCapabilities when omitted.",
119
+ "example": [
120
+ "chat"
121
+ ],
122
+ "allowedValues": [
123
+ "chat",
124
+ "coding",
125
+ "reasoning",
126
+ "image",
127
+ "video",
128
+ "music",
129
+ "audio",
130
+ "embedding",
131
+ "rerank",
132
+ "tts",
133
+ "stt"
134
+ ]
135
+ },
136
+ "models[].supportedFeatures": {
137
+ "label": "Supported features",
138
+ "type": "array<string>",
139
+ "required": false,
140
+ "description": "Select features such as tool calling and caching.",
141
+ "constraints": "Select only values listed in allowedValues. Use [] if none apply.",
142
+ "example": [
143
+ "tool_calling"
144
+ ],
145
+ "allowedValues": [
146
+ "tool_calling",
147
+ "reasoning",
148
+ "content_caching",
149
+ "structured_outputs",
150
+ "json_mode",
151
+ "vision",
152
+ "image_generation",
153
+ "audio_input",
154
+ "audio_output",
155
+ "embeddings",
156
+ "reranking"
157
+ ]
158
+ },
159
+ "models[].maxContextTokens": {
160
+ "label": "Maximum context tokens",
161
+ "type": "integer|null",
162
+ "required": false,
163
+ "description": "The context capacity supported by the model for one request.",
164
+ "constraints": "Enter a positive integer. Use null or omit if unknown.",
165
+ "example": 168000
166
+ },
167
+ "models[].maxOutputTokens": {
168
+ "label": "Maximum output tokens",
169
+ "type": "integer|null",
170
+ "required": false,
171
+ "description": "The maximum number of tokens generated in one response.",
172
+ "constraints": "Enter a positive integer. Use null or omit if unknown.",
173
+ "example": 125000
174
+ },
175
+ "models[].endpoints": {
176
+ "label": "Upstream endpoints",
177
+ "type": "array<object>",
178
+ "required": false,
179
+ "description": "Specify the upstream endpoints used by the model.",
180
+ "constraints": "Each item contains operationType, upstreamPath, and httpMethod.",
181
+ "example": [
182
+ {
183
+ "operationType": "generations",
184
+ "upstreamPath": "/v1/chat/completions",
185
+ "httpMethod": "POST"
186
+ }
187
+ ]
188
+ },
189
+ "models[].requestBodySchema": {
190
+ "label": "Request body schema",
191
+ "type": "object|array",
192
+ "required": false,
193
+ "description": "Describe the structure and constraints of request parameters, not their actual values.",
194
+ "constraints": "Use {} if no schema is available. Preserve business field names inside the schema.",
195
+ "example": {}
196
+ },
197
+ "models[].requestCurlExample": {
198
+ "label": "Example cURL request",
199
+ "type": "string",
200
+ "required": true,
201
+ "description": "Provide an example request for this model. The model field must match publicModelId.",
202
+ "constraints": "A non-empty string. Use environment variable placeholders for keys; never include real keys.",
203
+ "example": "curl 'https://api-dev.openany.si/v1/chat/completions' \\\n -H \"Authorization: Bearer $OPENANY_DEV_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data-raw '{\n \"model\": \"openany-qwen3.8-max\",\n \"route\": {\n \"provider\": \"hong1230test\"\n },\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello!\"\n }\n ]\n}'"
204
+ },
205
+ "models[].priceCurrency": {
206
+ "label": "Price currency",
207
+ "type": "string",
208
+ "required": true,
209
+ "description": "The currency used for all prices.",
210
+ "constraints": "Only USD or CNY. Amounts are not in micro-USD.",
211
+ "example": "USD",
212
+ "allowedValues": [
213
+ "USD",
214
+ "CNY"
215
+ ]
216
+ },
217
+ "models[].billingMode": {
218
+ "label": "Billing mode",
219
+ "type": "string",
220
+ "required": true,
221
+ "description": "Choose flat token pricing, tiered token pricing, or billing per request, image, or duration.",
222
+ "constraints": "Valid combinations: usage_flat/token; usage_tiered/token; per_request/request; per_image/image; duration/second or duration/minute.",
223
+ "example": "usage_flat",
224
+ "allowedValues": [
225
+ "usage_flat",
226
+ "usage_tiered",
227
+ "per_request",
228
+ "per_image",
229
+ "duration"
230
+ ]
231
+ },
232
+ "models[].usageUnit": {
233
+ "label": "Usage unit",
234
+ "type": "string",
235
+ "required": true,
236
+ "description": "The usage unit to which prices apply.",
237
+ "constraints": "Must be compatible with billingMode. When usageUnit (mapped to billingUnit) is not token, outputPrice (mapped to actualCompletion) must be the string \"0\", meaning actualCompletion must be 0.",
238
+ "example": "token",
239
+ "allowedValues": [
240
+ "token",
241
+ "request",
242
+ "image",
243
+ "second",
244
+ "minute"
245
+ ]
246
+ },
247
+ "models[].priceUnitQuantity": {
248
+ "label": "Usage quantity per price",
249
+ "type": "string",
250
+ "required": true,
251
+ "description": "Specifies the usage quantity covered by inputPrice and the other prices.",
252
+ "constraints": "Must be \"1000000\" when usageUnit=token, or \"1\" for other supported units. Custom quantities and automatic conversion are not supported.",
253
+ "example": "1000000"
254
+ },
255
+ "models[].inputPrice": {
256
+ "label": "Input price",
257
+ "type": "string",
258
+ "required": true,
259
+ "description": "The input amount per priceUnitQuantity units of usageUnit.",
260
+ "constraints": "A non-negative decimal string with at most 6 decimal places. Scientific notation is not allowed. Subject to the backend amount limit.",
261
+ "example": "1.000000"
262
+ },
263
+ "models[].outputPrice": {
264
+ "label": "Output price",
265
+ "type": "string",
266
+ "required": true,
267
+ "description": "The output amount per priceUnitQuantity units of usageUnit.",
268
+ "constraints": "Uses the same precision and units as inputPrice. When usageUnit (mapped to billingUnit) is not token, outputPrice (mapped to actualCompletion) must be the string \"0\", meaning actualCompletion must be 0.",
269
+ "example": "2.000000"
270
+ },
271
+ "models[].cacheWritePrice": {
272
+ "label": "Cache write price",
273
+ "type": "string|null",
274
+ "required": false,
275
+ "description": "The price for writing input content to the cache.",
276
+ "constraints": "Uses the same precision and units as inputPrice. Use null or omit if not configured; \"0\" means free.",
277
+ "example": "1.000000"
278
+ },
279
+ "models[].cacheReadPrice": {
280
+ "label": "Cache read price",
281
+ "type": "string|null",
282
+ "required": false,
283
+ "description": "The price for reading cached input.",
284
+ "constraints": "Uses the same precision and units as inputPrice. Use null or omit if not configured; \"0\" means free.",
285
+ "example": "0.100000"
286
+ },
287
+ "models[].tieredPricingRules": {
288
+ "label": "Tiered pricing rules",
289
+ "type": "array<object>",
290
+ "required": false,
291
+ "description": "Set prices for different usage ranges.",
292
+ "constraints": "Use [] for regular usage pricing. Non-empty rules are validated against the existing tiered billing rules.",
293
+ "example": []
294
+ },
295
+ "models[].scheduledPricingRules": {
296
+ "label": "Scheduled pricing rules",
297
+ "type": "array<object>",
298
+ "required": false,
299
+ "description": "Apply alternative prices on specified UTC weekdays and time windows.",
300
+ "constraints": "Only supported for usage_flat/token. Cannot be combined with non-empty tieredPricingRules. Time windows must not overlap.",
301
+ "example": [
302
+ {
303
+ "ruleName": "PEAK1",
304
+ "applicableWeekdaysUtc": [
305
+ 1,
306
+ 2,
307
+ 3,
308
+ 4,
309
+ 5,
310
+ 6
311
+ ],
312
+ "startMinuteOfDayUtc": 60,
313
+ "endMinuteOfDayUtc": 240,
314
+ "inputPrice": "1.000000",
315
+ "outputPrice": "2.000000",
316
+ "cacheWritePrice": "1.000000",
317
+ "cacheReadPrice": "0.100000"
318
+ }
319
+ ]
320
+ },
321
+ "models[].endpoints[].operationType": {
322
+ "label": "Endpoint operation type",
323
+ "type": "string",
324
+ "required": true,
325
+ "description": "The operation performed by this endpoint.",
326
+ "constraints": "A non-empty string, such as generations.",
327
+ "example": "generations"
328
+ },
329
+ "models[].endpoints[].upstreamPath": {
330
+ "label": "Upstream endpoint path",
331
+ "type": "string",
332
+ "required": true,
333
+ "description": "Specify the path of the upstream request.",
334
+ "constraints": "Must start with / and must not include a domain.",
335
+ "example": "/v1/chat/completions"
336
+ },
337
+ "models[].endpoints[].httpMethod": {
338
+ "label": "Request method",
339
+ "type": "string",
340
+ "required": false,
341
+ "description": "The HTTP request method.",
342
+ "constraints": "For example, POST. Defaults to POST when omitted.",
343
+ "example": "POST"
344
+ },
345
+ "models[].scheduledPricingRules[].ruleName": {
346
+ "label": "Scheduled rule name",
347
+ "type": "string",
348
+ "required": false,
349
+ "description": "Interpreted in UTC, not the browser's local time zone.",
350
+ "constraints": "A readable name, such as PEAK1.",
351
+ "example": "PEAK1"
352
+ },
353
+ "models[].scheduledPricingRules[].applicableWeekdaysUtc": {
354
+ "label": "Applicable UTC weekdays",
355
+ "type": "array<integer>",
356
+ "required": false,
357
+ "description": "Interpreted in UTC, not the browser's local time zone.",
358
+ "constraints": "1=Monday, 7=Sunday. Omit to apply every day.",
359
+ "example": [
360
+ 1,
361
+ 2,
362
+ 3,
363
+ 4,
364
+ 5,
365
+ 6
366
+ ]
367
+ },
368
+ "models[].scheduledPricingRules[].startMinuteOfDayUtc": {
369
+ "label": "UTC start minute",
370
+ "type": "integer",
371
+ "required": true,
372
+ "description": "Interpreted in UTC, not the browser's local time zone.",
373
+ "constraints": "0-1439. A value of 60 means UTC 01:00.",
374
+ "example": 60
375
+ },
376
+ "models[].scheduledPricingRules[].endMinuteOfDayUtc": {
377
+ "label": "UTC end minute",
378
+ "type": "integer",
379
+ "required": true,
380
+ "description": "Interpreted in UTC, not the browser's local time zone.",
381
+ "constraints": "1-1440. Must be greater than the start minute. A value of 240 means UTC 04:00. The end time is exclusive.",
382
+ "example": 240
383
+ },
384
+ "models[].scheduledPricingRules[].inputPrice": {
385
+ "label": "Input price",
386
+ "type": "string",
387
+ "required": true,
388
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
389
+ "constraints": "A non-negative decimal string with at most 6 decimal places. Scientific notation is not allowed. Subject to the backend amount limit.",
390
+ "example": "1.000000"
391
+ },
392
+ "models[].scheduledPricingRules[].outputPrice": {
393
+ "label": "Output price",
394
+ "type": "string",
395
+ "required": true,
396
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
397
+ "constraints": "Uses the same precision and units as inputPrice.",
398
+ "example": "2.000000"
399
+ },
400
+ "models[].scheduledPricingRules[].cacheWritePrice": {
401
+ "label": "Cache write price",
402
+ "type": "string|null",
403
+ "required": false,
404
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
405
+ "constraints": "Uses the same precision and units as inputPrice. Use null or omit if not configured; \"0\" means free.",
406
+ "example": "1.000000"
407
+ },
408
+ "models[].scheduledPricingRules[].cacheReadPrice": {
409
+ "label": "Cache read price",
410
+ "type": "string|null",
411
+ "required": false,
412
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
413
+ "constraints": "Uses the same precision and units as inputPrice. Use null or omit if not configured; \"0\" means free.",
414
+ "example": "0.100000"
415
+ },
416
+ "models[].tieredPricingRules[].inputPrice": {
417
+ "label": "Input price",
418
+ "type": "string",
419
+ "required": true,
420
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
421
+ "constraints": "A non-negative decimal string with at most 6 decimal places. Scientific notation is not allowed. Subject to the backend amount limit.",
422
+ "example": "1.000000"
423
+ },
424
+ "models[].tieredPricingRules[].outputPrice": {
425
+ "label": "Output price",
426
+ "type": "string",
427
+ "required": true,
428
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
429
+ "constraints": "Uses the same precision and units as inputPrice.",
430
+ "example": "2.000000"
431
+ },
432
+ "models[].tieredPricingRules[].cacheWritePrice": {
433
+ "label": "Cache write price",
434
+ "type": "string|null",
435
+ "required": false,
436
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
437
+ "constraints": "Uses the same precision and units as inputPrice. Use null or omit if not configured; \"0\" means free.",
438
+ "example": "1.000000"
439
+ },
440
+ "models[].tieredPricingRules[].cacheReadPrice": {
441
+ "label": "Cache read price",
442
+ "type": "string|null",
443
+ "required": false,
444
+ "description": "The price for this rule. Currency, usage unit, and priceUnitQuantity are inherited from the model configuration.",
445
+ "constraints": "Uses the same precision and units as inputPrice. Use null or omit if not configured; \"0\" means free.",
446
+ "example": "0.100000"
447
+ },
448
+ "models[].tieredPricingRules[].label": {
449
+ "label": "Tier name",
450
+ "type": "string",
451
+ "required": false,
452
+ "description": "Tiered billing condition.",
453
+ "constraints": "An optional string. Use an empty string if no condition applies."
454
+ },
455
+ "models[].tieredPricingRules[].resolution": {
456
+ "label": "Resolution condition",
457
+ "type": "string",
458
+ "required": false,
459
+ "description": "Tiered billing condition.",
460
+ "constraints": "An optional string. Use an empty string if no condition applies."
461
+ },
462
+ "models[].tieredPricingRules[].inputMode": {
463
+ "label": "Input mode condition",
464
+ "type": "string",
465
+ "required": false,
466
+ "description": "Tiered billing condition.",
467
+ "constraints": "An optional string. Use an empty string if no condition applies."
468
+ },
469
+ "models[].tieredPricingRules[].rangeStart": {
470
+ "label": "Range start",
471
+ "type": "integer",
472
+ "required": true,
473
+ "description": "Tiered billing condition.",
474
+ "constraints": "Use non-negative integers for range bounds. rangeEnd=null means no upper limit."
475
+ },
476
+ "models[].tieredPricingRules[].rangeEnd": {
477
+ "label": "Range end",
478
+ "type": "integer|null",
479
+ "required": true,
480
+ "description": "Tiered billing condition.",
481
+ "constraints": "Use non-negative integers for range bounds. rangeEnd=null means no upper limit."
482
+ }
483
+ },
484
+ "models": [
485
+ {
486
+ "modelId": "qwen3.8-max",
487
+ "publicModelId": "openany-qwen3.8-max",
488
+ "modelDescription": "This model processes conversational text and generates responses to user questions and drafting requests. Call it through the configured chat endpoint with its model ID and a messages array. Use it for customer support, document drafting, and knowledge assistance where the selected provider route supports these tasks.",
489
+ "overviewHtml": "",
490
+ "providerLogoUrl": "",
491
+ "modelReleaseDate": "2026-10-29",
492
+ "modelDescriptionTranslations": {},
493
+ "inputCapabilities": [
494
+ "chat",
495
+ "coding",
496
+ "reasoning"
497
+ ],
498
+ "outputCapabilities": [
499
+ "chat"
500
+ ],
501
+ "supportedFeatures": [
502
+ "tool_calling"
503
+ ],
504
+ "maxContextTokens": 168000,
505
+ "maxOutputTokens": 125000,
506
+ "endpoints": [
507
+ {
508
+ "operationType": "generations",
509
+ "upstreamPath": "/v1/chat/completions",
510
+ "httpMethod": "POST"
511
+ }
512
+ ],
513
+ "requestBodySchema": {},
514
+ "requestCurlExample": "curl 'https://api-dev.openany.si/v1/chat/completions' \\\n -H \"Authorization: Bearer $OPENANY_DEV_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n --data-raw '{\n \"model\": \"openany-qwen3.8-max\",\n \"route\": {\n \"provider\": \"hong1230test\"\n },\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello!\"\n }\n ]\n}'",
515
+ "priceCurrency": "USD",
516
+ "billingMode": "usage_flat",
517
+ "usageUnit": "token",
518
+ "inputPrice": "1.000000",
519
+ "outputPrice": "2.000000",
520
+ "cacheWritePrice": "1.000000",
521
+ "cacheReadPrice": "0.100000",
522
+ "tieredPricingRules": [],
523
+ "scheduledPricingRules": [
524
+ {
525
+ "ruleName": "PEAK1",
526
+ "applicableWeekdaysUtc": [
527
+ 1,
528
+ 2,
529
+ 3,
530
+ 4,
531
+ 5,
532
+ 6
533
+ ],
534
+ "startMinuteOfDayUtc": 60,
535
+ "endMinuteOfDayUtc": 240,
536
+ "inputPrice": "1.000000",
537
+ "outputPrice": "2.000000",
538
+ "cacheWritePrice": "1.000000",
539
+ "cacheReadPrice": "0.100000"
540
+ }
541
+ ],
542
+ "priceUnitQuantity": "1000000"
543
+ }
544
+ ]
545
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "items": [{
4
+ "itemId": "supplier-model-1",
5
+ "configuration": {
6
+ "price": {"model": "REPLACE_UPSTREAM_MODEL_ID", "description": "", "providerLogoUrl": "", "modelReleaseDate": null, "descriptionTranslations": {}, "modalities": [], "outModalities": [], "supportedFeatures": [], "contextWindowTokens": null, "maxOutputTokens": null, "upstreamPath": [], "bodySchema": {}, "curlExample": "", "currency": "USD", "billingType": "usage_flat", "billingUnit": "token", "actualPrompt": "REPLACE_QUOTE", "actualCompletion": "REPLACE_QUOTE"},
7
+ "routes": [{"publicModel": "REPLACE_OPENANY_ROUTE_MODEL_ID", "familyId": null, "upstreamKeyId": null, "status": "active", "matchRules": {}, "operations": []}]
8
+ }
9
+ }]
10
+ }