Use Metrion as a drop-in proxy for OpenAI’s API. Point the OpenAI SDK at Metrion’s endpoint and use yourDocumentation Index
Fetch the complete documentation index at: https://metrion.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
sk-metrion-xxx token as the API key. Everything else stays the same.
Prerequisites
- A Metrion account with your
sk-metrion-xxxtoken (find it on the Integrate page) - An OpenAI API key saved in Metrion’s Integrate page
Setup
Set
baseURL to Metrion’s OpenAI proxy and pass your sk-metrion-xxx token as apiKey. The proxy forwards requests to https://api.openai.com/v1/chat/completions and logs usage to your dashboard.Direct HTTP
Supported models
| Model ID | Notes |
|---|---|
gpt-4o | Latest multimodal flagship |
gpt-4o-mini | Fast and cost-efficient |
gpt-4-turbo | High-context window |
gpt-3.5-turbo | Low-cost general purpose |
o1 | Advanced reasoning |
o3-mini | Compact reasoning model |
gpt-4o-mini-2024-07-18 resolves to gpt-4o-mini pricing).
Pass-through mode
To use your own OpenAI key without storing it in Metrion, pass it inAuthorization: Bearer and identify your Metrion account with the x-metrion-token header:
In pass-through mode, your OpenAI key is forwarded directly to OpenAI’s API and is never stored by Metrion.
Track requests by user or service
Add the optionalx-metrion-user header to tag individual requests. These labels appear in your Metrion logs and dashboards.