API Hub 公益
全新架构上线 · QQ群 1085997048

All models.
One endpoint.

统一的 API 接口,兼容 OpenAI / Claude 双协议,开箱即用。

接入文档

可用模型

自动同步服务端配置

接入指南

替换 Base URL 和 Key 即可无缝迁移

OpenAI 协议

Base URL
https://huige.appleinc.cn
Chat
/v1/chat/completions
Models
/v1/models
Auth
Authorization: Bearer sk-xxx

Claude 协议

Base URL
https://huige.appleinc.cn
Messages
/v1/messages
Auth
x-api-key: sk-xxx
Version
anthropic-version: 2023-06-01

参数

参数 类型 必填 说明
model string 模型 ID
messages array 消息数组
stream boolean 流式输出

代码示例

curl https://huige.appleinc.cn/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-huigefreeK3mR7xW2pN" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      {"role": "system", "content": "你是一个有帮助的助手。"},
      {"role": "user", "content": "你好"}
    ],
    "stream": true
  }'

客户端配置

Codex CLI
provider: openai
api_base: https://huige.appleinc.cn/v1
api_key: sk-xxx
Cursor
Base URL: https://huige.appleinc.cn/v1
API Key: sk-xxx
ChatBox / NextChat / LobeChat
API 地址: https://huige.appleinc.cn
API Key: sk-xxx

FAQ

两种协议的区别?

鉴权和路径不同,模型相同。选熟悉的协议用就行。

报 401?

OpenAI 填 Bearer sk-xxx,Claude 直接填 sk-xxx

stream 有什么用?

设为 true 逐字返回(打字机效果),推荐开启。

还有问题?

QQ 群 1085997048