diff --git a/general/scx-ai.json b/general/scx-ai.json new file mode 100644 index 000000000..dbb8c4f7f --- /dev/null +++ b/general/scx-ai.json @@ -0,0 +1,80 @@ +{ + "name": "scx-ai", + "description": "", + "default": { + "params": [ + { + "key": "max_tokens", + "defaultValue": 1024, + "minValue": 1, + "maxValue": 131072 + }, + { + "key": "temperature", + "defaultValue": 1, + "minValue": 0, + "maxValue": 2 + }, + { + "key": "top_p", + "defaultValue": 1, + "minValue": 0, + "maxValue": 1 + }, + { + "key": "stop", + "defaultValue": null, + "type": "array-of-strings", + "skipValues": [null, []] + }, + { + "key": "stream", + "defaultValue": true, + "type": "boolean" + } + ], + "messages": { + "options": ["system", "user", "assistant"] + }, + "type": { + "primary": "chat", + "supported": [] + } + }, + "GLM-5.2": { + "params": [ + { + "key": "max_tokens", + "maxValue": 131072 + } + ], + "type": { + "primary": "chat", + "supported": ["tools"] + } + }, + "qwen3.8-max": { + "params": [ + { + "key": "max_tokens", + "maxValue": 131072 + } + ], + "type": { + "primary": "chat", + "supported": ["tools", "image"] + } + }, + "GLM-5.2-Fast": { + "params": [ + { + "key": "max_tokens", + "maxValue": 131072 + } + ], + "type": { + "primary": "chat", + "supported": ["tools"] + } + } +} diff --git a/pricing/scx-ai.json b/pricing/scx-ai.json new file mode 100644 index 000000000..dea8461c2 --- /dev/null +++ b/pricing/scx-ai.json @@ -0,0 +1,84 @@ +{ + "default": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0 + }, + "response_token": { + "price": 0 + } + }, + "calculate": { + "request": { + "operation": "multiply", + "operands": [ + { + "value": "input_tokens" + }, + { + "value": "rates.request_token" + } + ] + }, + "response": { + "operation": "multiply", + "operands": [ + { + "value": "output_tokens" + }, + { + "value": "rates.response_token" + } + ] + } + }, + "currency": "USD" + } + }, + "GLM-5.2": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 6.1e-5 + }, + "response_token": { + "price": 0.000198 + }, + "cache_read_input_token": { + "price": 2.2e-5 + } + } + } + }, + "qwen3.8-max": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.000165 + }, + "response_token": { + "price": 0.000499 + }, + "cache_read_input_token": { + "price": 0.000021 + } + } + } + }, + "GLM-5.2-Fast": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.000199 + }, + "response_token": { + "price": 0.000616 + }, + "cache_read_input_token": { + "price": 0.00004 + } + } + } + } +}