Anthropic-compatible API
For Anthropic-protocol clients such as Claude Code, the gateway exposes an Anthropic-compatible entry.
Endpoint
POST https://gateway.admesh.ai/v1/messages
Request body
{
"model": "anthropic/claude-sonnet",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Hello" }
]
}
Auth
x-api-key: $ADMESH_API_KEY
anthropic-version: 2023-06-01
Notes
- Model IDs use the
anthropic/*namespace. - See the model list for available models and context windows.