By default, Valiqor uses its own OpenAI API key for LLM-based evaluations, security audits, and failure analysis. With BYOK (Bring Your Own Key), you can provide your own OpenAI API key so that LLM judge calls are billed to your OpenAI account instead.Documentation Index
Fetch the complete documentation index at: https://docs.valiqor.com/llms.txt
Use this file to discover all available pages before exploring further.
Why use BYOK?
| Benefit | Description |
|---|---|
| No shared quota limits | Avoid hitting Valiqor’s per-org LLM token quotas |
| Faster processing | Your key won’t be rate-limited by other users’ traffic |
| Cost control | Pay OpenAI directly, track costs in your OpenAI dashboard |
| Data handling | LLM judge calls go through your own OpenAI account |
Setting your OpenAI key
You can set your key at four levels, in priority order:1. Per-method (highest priority)
2. Per-client (constructor)
.eval, .security, .failure_analysis).
3. Environment variable
4. .valiqorrc file (lowest priority)
Resolution order
How it works
When you provide an OpenAI key, the SDK includes it in the JSON request body:- Request-scoped — not persisted by the backend
- Sent in the request body — not as a header
- Used only for LLM judge calls — your Valiqor API key (
vq_...) is still used for authentication
Supported methods
BYOK is supported in all LLM-based operations:| Module | Methods |
|---|---|
| Failure Analysis | run(), run_async() |
| Evaluation | evaluate(), evaluate_trace(), evaluate_async() |
| Security | audit(), audit_trace(), red_team(), audit_async(), red_team_async() |
Heuristic metrics (
contains, levenshtein, equals, regex_match) don’t use LLM judges and therefore don’t use your OpenAI key.Example: CI/CD with BYOK
Verifying BYOK is active
When you provide an OpenAI key, the backend uses it for all LLM judge calls in that request. You can verify by checking your OpenAI usage dashboard for corresponding API calls. If your key is invalid or has insufficient credits, the backend will return an error. The SDK raises anAPIError in that case.
Configuration →
Full config reference: env vars, .valiqorrc, and more.
Rate Limits →
Understand quotas and how BYOK affects them.