Skip to main content
Route your Anthropic requests through the Inference Catalyst gateway to get cost tracking, latency monitoring, and analytics. Anthropic uses its native SDK and the /v1/messages endpoint, not the OpenAI-compatible path.
Prefer automatic setup? Run inf instrument to instrument your codebase in seconds. Learn more

Setup

1

Get your API keys

You need two keys:
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.