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 OpenAI API key with the models endpoint
Data verified 2026-07-13
Key format & how to get one
Prefix: sk- Example: sk-proj-abc123...xyz Modern keys start with sk-proj-; classic user keys start with sk-. Both work. 1. Sign in at https://platform.openai.com 2. Open API keys (https://platform.openai.com/api-keys) 3. Click 'Create new secret key' and copy it 4. Keys start with sk- (newer project keys start with sk-proj-)
How to test
- Copy your API key from platform.openai.com/api-keys.
- Paste it into the tester above and click Test Key.
- A green result means the key is valid; a red result shows the exact error and fix.
Common errors
| Cause | Fix |
|---|---|
| The key is invalid, revoked, or from a different organization. | Create a fresh key at platform.openai.com/api-keys and paste the new one. |
| Your account has no remaining credit or hit its usage cap. | Add billing/credit at platform.openai.com/account/billing, then retry. |
| Too many requests in a short window (rate limit). | Wait a few seconds and test again, or raise your rate-limit tier. |
Related tools
Building with AI APIs? Elegant Atomics turns AI capability into B2B SaaS growth. Work with us →