开源网关将列出的规范模型 ID 路由到经过验证的自定义推理提供商,同时保留 OpenAI 兼容的聊天响应。
#提出请求
curl https://api.agihalo.com/qwen/v1/chat/completions \
-H "Authorization: Bearer $HALO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.6-35b-a3b",
"messages": [{"role": "user", "content": "Reply with OK"}],
"max_tokens": 16,
"stream": false
}'import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.HALO_API_KEY,
baseURL: "https://api.agihalo.com/v1",
});
const response = await client.chat.completions.create({
model: "qwen/qwen3.6-35b-a3b",
messages: [{ role: "user", content: "Reply with OK" }],
});This SDK base URL accepts configured OpenAI and official DeepSeek model IDs as well as listed open-model IDs. HALO selects exactly one runtime from the canonical model value.
#运行时合约
- 纯文本消息和可见的助手输出。
n和best_of(如果存在)必须为 1。- 工具、函数声明、工具角色消息、音频、图像和多模式内容在提供商调度之前被拒绝。
- 运行时标准化为
stream: false并将输出上限限制为 32,768 个令牌。
#模型系列
生产目录对 Qwen、Llama、DeepSeek 中列出的模型进行分组, Kimi、Mistral、Gemma、GLM、MiniMax、Nemotron、MiMo、GPT-OSS 和 AllenAI 系列。使用仪表板的“模型”页面获取当前项目可见的 ID。
Family-bound base URLs are /qwen/v1,/llama/v1, /deepseek/v1,/kimi/v1, /mistral/v1,/gemma/v1, /glm/v1,/minimax/v1, /nemotron/v1,/mimo/v1, /gpt-oss/v1, and/allenai/v1. A family URL rejects a canonical model ID belonging to another family.
#提供推理
如果您操作兼容 OpenAI 的 HTTPS 端点,请在注册前阅读 Keeper 合同。模型发现、基线检查、有界运行状况探测、确定性计量和支付规则适用。