https://www.metrion.dev/api/proxy, Metrion logs the usage, and the response comes back unchanged.
Prerequisites
- A Metrion account with your
sk-metrion-xxxtoken (find it on the Integrate page) - An Anthropic API key saved in Metrion’s Integrate page
Setup
1
Install the Anthropic SDK
2
TypeScript
Python
3
Configure the client
4
Replace the default Anthropic base URL with Metrion’s proxy and use your
sk-metrion-xxx token as the API key. The SDK automatically appends /v1/messages to the baseURL.5
TypeScript
Python
6
Send a request
7
TypeScript
Python
Direct HTTP
If you prefer to call the API without a SDK,POST directly to the messages endpoint:
Supported models
Metrion uses prefix matching, so versioned model IDs (e.g.
claude-opus-4-6) are automatically mapped to the correct pricing tier.
Pass-through mode
If you want to manage your Anthropic key yourself instead of storing it in Metrion, use pass-through mode. Pass your Anthropic key inx-api-key and your Metrion token in x-metrion-token:
In pass-through mode, your Anthropic key is forwarded directly to Anthropic’s API and is never stored by Metrion.
Track requests by user or service
Add the optionalx-metrion-user header to tag individual requests with a user ID, agent name, or service label. These labels appear in your Metrion logs and dashboards.