Azure OpenAI API Key Tester

Test any AI or API key in your browser — instantly see if it's valid, and why it isn't. Nothing is stored.

Test your Azure OpenAI resource key against your endpoint's models list (uses the api-key header, not Bearer)

Data verified 2026-07-13

Key format & how to get one

Example: 32-char hex (e.g. 0123456789abcdef0123456789abcdef) Azure OpenAI keys are 32-character hexadecimal strings sent via the 'api-key' header (NOT 'Authorization: Bearer'). Replace YOUR-RESOURCE with your resource name. 1. Open the Azure Portal and go to your Azure OpenAI resource 2. Under 'Keys and Endpoint', copy KEY 1 (or KEY 2) and your endpoint host 3. Your endpoint looks like https://YOUR-RESOURCE.openai.azure.com

How to test

  1. Copy KEY 1 and the endpoint host from your Azure OpenAI resource (Keys and Endpoint).
  2. Replace YOUR-RESOURCE in the command above with your resource name, then run it in your terminal.
  3. A 200 response listing models means the key works; a 401 means the key is invalid for that resource.

Common errors

CauseFix
Invalid key, or the key doesn't belong to that resource.Copy KEY 1/KEY 2 from your resource's 'Keys and Endpoint' page and match the resource host.
Wrong resource host or api-version.Confirm the YOUR-RESOURCE host and a current api-version (e.g. 2024-10-21).
Rate limit or quota exceeded.Wait and retry, or raise your deployment quota in the Azure Portal.

Azure OpenAI API docs →

Cannot test this key from your browser

This provider blocks in-browser requests or requires a server-side secret. Test it from a terminal instead:

curl -sS 'https://YOUR-RESOURCE.openai.azure.com/openai/models?api-version=2024-10-21' -H 'api-key: {{KEY}}'

Related tools

Building with AI APIs? Elegant Atomics turns AI capability into B2B SaaS growth. Work with us →