Avelyn Documentation Center
Troubleshooting

Fixing API Key Validation Errors

Resolving 401 Unauthorized, rate-limiting, and credit exhaustion issues.

Common API Key Issues

  • HTTP 401 Invalid Key: Verify that your API key string does not contain leading spaces.
  • HTTP 402 Insufficient Credits: Top up your OpenRouter credits balance.
  • HTTP 429 Rate Limited: Enable Smart Fallback to failover to local models.