/v1/messages endpoint, not the OpenAI-compatible path.
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.