The latest WordPress 7.0 update includes a new feature that lets you easily integrate Gemini AI into WordPress. You can use it to effortlessly create images for articles, tags, categories, titles, and even post summaries.
By default, there are three AI providers available: Anthropic (Claude), Google (Gemini), and OpenAI (ChatGPT). However, since the free API version is only available for Gemini, you can use Gemini if you do not have a subscription for the Claude or ChatGPT APIs.
How to Integrate Gemini AI in WordPress 7.0
To integrate Gemini AI in WordPress, make sure you have updated to WordPress 7.0, as this feature is available starting in that version. Once updated, you can proceed to the first step of this tutorial:
1. Install and Activate the AI plugin
Although you can connect AI directly using a connector by default, the AI plugin helps with further management, such as creating featured images, generating summaries, creating images, and more.
To install the AI plugin, you can open the menu Settings > Connectors, then click the button Install the AI Plugin and Install as well as Google.
2. Get a Google API Key
After the AI Plugin and Google are installed, you need to get a Google API Key from the page aistudio.google.com. When you first access AI Studio, you need to agree to the terms first
Once the terms are accepted, you can create an API Key by clicking the Create API Key button on the Get API Key page
Give the API Key you are creating a name, for example WPGan-WordPress, and for the Project, you can just use the default Project.
After the API Key is successfully created, you can copy the API Key to use in WordPress. You can save or ignore the other information
3. Add the API Key to WordPress
Now return to the Connectors section in WordPress, then click Activate Google to add the API Key you obtained
Simply paste your API Key, then click the Save button
If successful, there will be a badge Connected on the provider you selected
4. Enable AI
For AI to work in WordPress, you need to enable AI in WordPress first and choose which features you want to activate. To enable AI, you can open the menu Settings > AI, then turn on the Enable AI toggle
After activating the AI feature, make sure to also enable all features or the specific ones you need
5. Test AI
Finally, you can test the AI, such as creating the right title, generating a summary, creating an excerpt, and more from the WordPress editor page
For example, if you want to create a Title, the title will not change automatically. Instead, you will see information about the right title to use for the article you are creating, or you can choose to regenerate it
That is how easy it is to integrate Gemini AI in WordPress 7.0, so even while using WordPress, you can remain productive by utilizing AI features.
COMMENTS
Loading...