Get a Proxy API Key
Generate an API key from the Avaliar Dashboard.
- Navigate to Settings → API Keys
- Click Create API Key
- Select the Proxy scope
- Copy the generated key — you won’t be able to see it again
Update Your Endpoint URL
Replace your LLM provider’s endpoint URL with the corresponding Avaliar Proxy URL, and add your
Your existing provider API key (OpenAI key, Anthropic key, etc.) stays in the request body exactly where it was. Just add
api_key to the request body.The proxy has a dedicated endpoint per provider:| Provider | Proxy Endpoint |
|---|---|
| OpenAI | POST https://proxy.avaliar.ai/api/openai_service/chat_completion |
| Anthropic | POST https://proxy.avaliar.ai/api/anthropic_service/chat_completion |
| Google Gemini | POST https://proxy.avaliar.ai/api/gemini_service/chat_completion |
api_key alongside it.If you omit your provider API key (e.g.
openai_api_key), the proxy will use a server-side key. Contact support to confirm whether this is enabled for your plan.View Traces in the Dashboard
Open the Avaliar Dashboard to see your traces appear in real time.Each trace includes:
- Full prompt and response content
- Provider, model, and token counts
- End-to-end latency and proxy overhead
- Safety detection results and any identified issues
- Cost estimates
Request Parameters
All proxy endpoints accept the same parameters as the underlying LLM provider, plus a few Avaliar-specific ones.Avaliar-Specific Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your Avaliar API key, generated from the dashboard |
is_confidential | boolean | No | If true, the prompt and response are not stored in traces. Defaults to false |
Provider API Key Parameters
| Parameter | Provider | Description |
|---|---|---|
openai_api_key | OpenAI | Your OpenAI API key. If omitted, the proxy uses a server-side key |
anthropic_api_key | Anthropic | Your Anthropic API key. If omitted, the proxy uses a server-side key |
gemini_api_key | Gemini | Your Google Gemini API key. If omitted, the proxy uses a server-side key |
Confidential Requests
If a request contains sensitive information that should not be stored, setis_confidential: true. The proxy will still forward the request to the LLM provider and count it in your usage metrics, but the prompt and response content will not be saved to Avaliar.
Detection does not run on confidential requests. Token counts and latency are still tracked.
Error Handling
If the proxy rejects a request, it returns a JSON error response:| Status | Cause |
|---|---|
401 | Invalid, expired, or revoked Avaliar API key |
400 | Missing required parameters or invalid request body |
422 | Request body failed schema validation |
403 | Request blocked — prompt injection detected |
500 | Internal error or LLM provider failure |