Hugging Face
Instructions for Testing Locally
You can also test your Hugging Face 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://huggingface.co/api/models \
-H "Authorization: Bearer hf_..." \
-H "Content-Type: application/json"
Direct Hugging Face API request (read-only endpoint) to verify your key configuration.