How to find your AI API keys

Learn where to get your API keys for OpenAI, Anthropic, and Perplexity, so you can connect it to your automation.

Aug 31, 2025 - 11:00
 4
How to find your AI API keys
How to find your AI API keys

Step 1, open Github.

Read the original at https://www.4fsh.com

Step 2, use the following to search:

(path:.xml OR path:.json OR path:.properties OR path:.sql OR path:.txt OR path:.log OR path:.tmp OR path:.backup OR path:.bak OR path:.enc OR path:.yml OR path:.yaml OR path:.toml OR path:.ini OR path:.config OR path:.conf OR path:*.cfg ....

Actually, that would be to find out if your API key was leaked by AI if you were vibe coding. With over 7,000 API keys for OpenAI alone, if you don't know what you are doing, you might end up being one of them.

What is an API key?

An API (Application Programming Interface) is basically a shared handshake. If you get the API key for Google Maps, then when you use that API key with another tool, you are giving that tool permission to use Google Maps.

Similarly, if you're building automation, like with Make or n8n, you need to use an API key to create the handshake between the AI tool you want to use and the script you want to build.

How do I find my API key for AI?

It's pretty easy. All it takes is an account with the provider of choice (you don't need to sign up on their plan to use their APIs). Some providers, like Perplexity, will give you $5 in API credits with their pro subscriptions. So you might have unused API credits that you don't know about.

OpenAI API Key

  1. Log into your account in the OpenAI Platform.
How to find your AI API keys
  1. Click on the gear icon next to your profile name
How to find your AI API keys
  1. Click API keys on the left panel, and then click "+ Create new secret key"
How to find your AI API keys
  1. Give your API a name, and if applicable, assign it to a project. We'll be using this for n8n for example
How to find your AI API keys
  1. Save your secret key, as you won't be able to view it again. If you lost it, you'll need to create a new one.
How to find your AI API keys

And done. Now you'll have an API key that you an use for your tool of choice. Personally I prefer doing a different API key for different tools. That way we know where the money is flowing.

Make sure to add credit to the balance over in "Billing", so that way you can run OpenAI tools in your automations or whatever.

Perplexity API Key

  1. Log into your Perplexity account at Perplexity.ai
How to find your AI API keys
  1. Click on your profile icon on the left panel
How to find your AI API keys
  1. Click on API
How to find your AI API keys
  1. Click on API keys underneath the API group that pops up.
How to find your AI API keys
  1. Click "+ Create key" on the top right
How to find your AI API keys
  1. Enter a name for the API key and the "Create Key" button will light up
How to find your AI API keys
  1. And that's it. For Perplexity, you can copy the API key as many times as you want, you just can't see anything beyond the name until you paste it somewhere.

Anthropic API Key

  1. Open the Anthropic Console and login to your account
  2. Click on Get API key when the dashboard opens up
How to find your AI API keys
  1. Click on "+ Create Key"
How to find your AI API keys
  1. Name your key then hit "Add"
How to find your AI API keys
  1. Copy and save the key in the popup that comes after that. Just like the ones for OpenAI, you won't be able to view it again after copying.

And that's it.

Now that you have your API keys, you can use them in your automation tools. Just make sure to add credits so they can run first.