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