| # | 邮箱 | 状态 | 剩余额度 | 最后使用 |
|---|---|---|---|---|
| 加载中... | ||||
兼容 OpenAI SDK / ChatBox / Cherry Studio 等客户端
curl http://localhost:9090/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello"}
]
}'
添加 stream: true 开启 SSE 流式输出
curl http://localhost:9090/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'
兼容 Anthropic SDK 的 Messages API
curl http://localhost:9090/v1/messages \
-H "Content-Type: application/json" \
-d '{
"model": "claude-4.6-sonnet",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello"}
]
}'
在 Cherry Studio / ChatBox 等客户端中配置:
API 地址: http://localhost:9090
API Key: 留空 (无需认证)
模型: 点击“获取模型列表”自动拉取
支持的接口:
OpenAI: POST /v1/chat/completions
Anthropic: POST /v1/messages
模型列表: GET /v1/models