Anthropic
Instructions for Testing Locally
You can also test your Anthropic 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://api.anthropic.com/v1/models \
-H "x-api-key: sk-ant-..." \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01"
Direct Anthropic API request (read-only endpoint) to verify your key configuration.