Proxy API
Route your LLM calls through Avaliar’s endpoint. No SDK, no decorators —
swap your provider URL and add your Avaliar key. Works with any language.
Best for: quick setup, non-Python apps, blocking prompt injection.
Best for: quick setup, non-Python apps, blocking prompt injection.
Python SDK
Wrap your LLM functions with the
Best for: Python apps, the free plan, fine-grained tracing.
@traceable decorator. Code-native and
gives you local or cloud detection.
Best for: Python apps, the free plan, fine-grained tracing.
Which should I use?
| Proxy API | Python SDK | |
|---|---|---|
| How you integrate | Change your endpoint URL | Add a @traceable decorator |
| Language | Any (HTTP) | Python |
| Code changes | None beyond the URL | Decorate your LLM functions |
| Detection | Cloud | Local or Cloud |
| Blocks prompt injection | Yes (before it reaches the LLM) | No |
| Plan required | Pro | Free |
Set up your method
Both paths start with an API key from the Avaliar Dashboard under Settings → API Keys — the only difference is the scope you pick.- Proxy API
- Python SDK
Create a Proxy API key
- Open Settings → API Keys in the dashboard.
- Click Create Key and select the
proxyscope. - Copy the key — you won’t be able to see it again.
Point your requests at the proxy
Replace your provider’s endpoint with the matching Avaliar Proxy URL and
add your
api_key to the request body. Your existing provider key
(OpenAI, Anthropic, …) stays in the body exactly where it was.| 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 |
Detection runs automatically on every proxy request — there’s nothing
extra to enable. See Proxy Setup for all parameters,
confidential requests, and error handling.
View in the dashboard
Open app.avaliar.ai/traces to see your
traces, detected issues, latency, and cost in real time — a trace
appears within a few seconds of the call.
Next Steps
Proxy Integration
Full proxy reference — supported models, confidential mode, and the request pipeline.
@traceable Decorator
All decorator options: span types, custom metadata, and nested traces.
Detection
Configure detectors, choose local vs cloud mode, and set severity thresholds.