sagelib
v1.0.0List, compare, and call 68 LLMs with live pricing through one Chinese API gateway.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_models
列出本站当前在架的大模型:模型标识、名称、类型、上下文长度、输入/输出单价。可按类型(text/image/audio/video)或关键词过滤。
| Parameter | Type | Description |
|---|---|---|
app_type | string | text / image / audio / video,留空返回全部 |
keyword | string | 按模型标识或显示名模糊匹配 |
limit | integer | 最多返回多少条,默认 30 |
compare_models
对比指定模型:上下文长度、类型、输入/输出单价。传入 2–6 个模型标识。
| Parameter | Type | Description |
|---|---|---|
codes * | array | 模型标识列表,如 ["claude-sonnet-5-5","gpt-6-sol"] |
call_model
通过本站网关调用指定模型(OpenAI 兼容接口)。必须提供用户自己的网关令牌 api_key,服务端不保存密钥。
| Parameter | Type | Description |
|---|---|---|
api_key * | string | 本站令牌(sk- 开头),仅用于本次请求 |
model * | string | 模型标识,如 claude-sonnet-5-5 |
prompt * | string | 用户提示词 |
max_tokens | integer | 可选,最大输出 token |
system | string | 可选,系统提示词 |