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.
Step 1, open Github.
Read the original at https://www.4fsh.com
Step 2, use the following to search:
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
- Log into your account in the OpenAI Platform.

- Click on the gear icon next to your profile name

- Click API keys on the left panel, and then click "+ Create new secret key"

- Give your API a name, and if applicable, assign it to a project. We'll be using this for n8n for example

- 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.

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
- Log into your Perplexity account at Perplexity.ai

- Click on your profile icon on the left panel

- Click on API

- Click on API keys underneath the API group that pops up.

- Click "+ Create key" on the top right

- Enter a name for the API key and the "Create Key" button will light up

- 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
- Open the Anthropic Console and login to your account
- Click on Get API key when the dashboard opens up

- Click on "+ Create Key"

- Name your key then hit "Add"

- 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.