/v1/messages endpoint, not the OpenAI-compatible path.
This page is for routing to Anthropic’s own Claude models with your Anthropic API key. To call Inference-hosted models like
glm-5.2 with the Anthropic SDK, see Anthropic SDK. That only needs your Inference API key.Prefer automatic setup? Run
inf instrument to instrument your codebase in seconds. Learn moreSetup
1
Get your API keys
You need two keys:
- Inference Catalyst project API key — from your dashboard under API Keys
- Anthropic API key — from your Anthropic console
2
Set environment variables
3
Update your code
Point the SDK at the gateway. Because the Anthropic SDK sends
apiKey as the x-api-key header, you pass your Anthropic key there and add the Inference project key as an Authorization header.