credentials
•
18.08.2025
Credentials for OpenAI

Step 1. Create and connect an API key
Let's go to the OpenAI website: https://openai.com/ and register an account if you don't already have one.
Next, go to your profile

and go to the API Keys section

Press Create new secret key, name it and select it - Default project
Permissions - all
Create a key
The next step is to connect Credentials to n8n:
- In the OpenAI block in n8n, click on “Credentials to connect with”
- In the list that appears, select “Create new credential”.

- Fill in the connection details: in the “API Key” field, insert your API key obtained in your OpenAI account.
- Save Credentials: Click Save to save your settings.
Step 2. Setting up an OpenAAI account
For AI assistants to work properly in n8n, you need to set up payments in your OpenAI account.
To do this, go to the Billing section https://platform.openai.com/settings/organization/billing/overview
Click on add payment method and fill in your bank card details.
Then you top up your balance:

It's done. Your AI assistants can get to work.