sagelib

v1.0.0
io.github.aixingzhe/sagelib Checked 4 days ago Published 22 days ago

List, 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)或关键词过滤。

ParameterTypeDescription
app_typestringtext / image / audio / video,留空返回全部
keywordstring按模型标识或显示名模糊匹配
limitinteger最多返回多少条,默认 30

compare_models

对比指定模型:上下文长度、类型、输入/输出单价。传入 2–6 个模型标识。

ParameterTypeDescription
codes *array模型标识列表,如 ["claude-sonnet-5-5","gpt-6-sol"]

call_model

通过本站网关调用指定模型(OpenAI 兼容接口)。必须提供用户自己的网关令牌 api_key,服务端不保存密钥。

ParameterTypeDescription
api_key *string本站令牌(sk- 开头),仅用于本次请求
model *string模型标识,如 claude-sonnet-5-5
prompt *string用户提示词
max_tokensinteger可选,最大输出 token
systemstring可选,系统提示词