Creating OpenAI API Key
To integrate WP AI Block with OpenAI, follow these steps to generate an API key:
- Go to OpenAI’s Website
- Visit https://platform.openai.com/signup and sign up or log in to your account.
- Access API Keys
- Click on Start building to get access to your API keys – fill out the required information
- Generate a New Key
- Click Generate API Key to generate a new key.
- Copy and Save Your Key
- Make sure to copy and securely store your API key, as it will not be displayed again.
- Enter the Key in WP AI Block
- Go to WP AI Block > Settings in your WordPress dashboard.
- Paste your OpenAI API key into the OpenAI API Key field and save the settings.
Creating Gemini API Key
If you want to use Google’s Gemini AI, follow these steps to obtain an API key:
- Go to Google AI Studio
- Visit https://aistudio.google.com and log in with your Google account.
- Access API Settings
- Navigate to the Get API key on the left menu
- Generate a New Key
- Click Create API Key to generate a new key for Gemini AI.
- Copy and Store Your Key
- Ensure that you copy and save the key securely, as you will need it for WP AI Block.
- Enter the Key in WP AI Block
- Go to WP AI Block > Settings in your WordPress dashboard.
- Paste your Gemini API key into the Gemini API Key field and save the settings.