LiteLLM validates provider-specific API key env vars before making calls. When using custom headers, auto-set ANTHROPIC_API_KEY or OPENAI_API_KEY to pass validation (actual auth still uses extra_headers). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>