Anthropic 兼容协议
针对 Anthropic 协议客户端(如 Claude Code),网关提供 Anthropic 兼容入口。
端点
POST https://gateway.admesh.ai/v1/messages
请求结构
{
"model": "anthropic/claude-sonnet",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Hello" }
]
}
认证
x-api-key: $ADMESH_API_KEY
anthropic-version: 2023-06-01
说明
- 模型 ID 使用
anthropic/*命名空间。 - 具体可用模型与上下文窗口以 模型列表 为准。