OCR-A API Keys
HLM-27 · ADR-0076 · Keys are tried in creation order. On HTTP 402, the key is auto-deprecated and the next available key is used — no restart required.
How it works
- Keys are fetched from DB at call time (30 s cache) — no container restart needed.
- On HTTP 402 (credit quota exceeded), the key is auto-deprecated and the next active key is tried within the same request.
- Restore a deprecated key after topping up its credit balance with the Restore button.
- If the pool is empty, the engine falls back to
LANDING_AI_API_KEYenv var.