OpenAI
Instructions for Testing Locally
You can also test your OpenAI 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.openai.com/v1/models \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json"
Direct OpenAI API request (read-only endpoint) to verify your key configuration.