OpenRouter
Instructions for Testing Locally
You can also test your OpenRouter API key from your own machine using curl. This is useful for debugging or when you want to test API key authentication programmatically.
curl -X GET https://openrouter.ai/api/v1/key \
-H "Authorization: Bearer sk-or-v1-..." \
-H "Content-Type: application/json"
Direct OpenRouter API request (read-only endpoint) to verify your key configuration.