工具接入教程
Claude Code 接入
Claude Code 或 Anthropic-compatible 工具接入顶级AI的填写口径。
Anthropic 协议单独走
Claude Code 或 Anthropic-compatible 工具应该走 /v1/messages。顶级AI 不会把 Anthropic 请求自动转换成 OpenAI 请求。
工具里怎么填
Base URL:填写https://dingjiai.com,或按工具要求填写到/v1。API Key:填写顶级AI用户 API Key。Model:填写顶级AI开放给 Anthropic Messages 的公开模型名。
接口验证
curl https://dingjiai.com/v1/messages \
-H "x-api-key: YOUR_USER_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "从顶级AI复制的 Claude/Anthropic 入口模型名",
"max_tokens": 256,
"messages": [
{ "role": "user", "content": "你好" }
]
}'注意事项
- 如果工具要求 Anthropic API Key,仍然填顶级AI用户 API Key。
Anthropic-Version可以按工具默认值保留。- 如果模型目录里没有 Anthropic 可用模型,说明后台暂时没有开放对应入口。