@genai-cms/gemini-content-generator
v0.0.7
Published
Plugin to generate conten using Google Gemeni AI service
Maintainers
Readme
gemeni-content-generator
Plugin that will add a custom Text AI field to Strapi Admin panel based on Google Gemeni AI service. The custom filed can use like any other field to generate content using Gen AI capabilities.
With this plugin, content authors can seamlessly generate high-quality content directly within the Strapi admin interface. By leveraging AI-powered suggestions, the plugin streamlines the content creation process, enabling users to quickly draft, edit, and enhance their entries without leaving Strapi.
Installation
npm install @genai-cms/gemini-content-generatorConfiguration
Enable Plugin
Add the plugin to your config/plugins.js or config/plugins.ts:
module.exports = {
'gemeni-content-generator': {
enabled: true
},
};Creating a Gemini API Key
- Visit the Google AI Studio and sign in with your Google account.
- Click on "Create API key" and follow the prompts.
- Copy the generated API key.
- Add the API key to your
.envfile as shown below:GEMINI_API_KEY=<YOUR GEMENI API KEY>
Usage
After the plugin installation and configuration, you can access the Text AI field under CUSTOM fields tab. You can use this field to generate content for your collection types using the Google Gemini AI service. Below screenshot shows the custom Text AI.

For more details, refer to the plugin documentation or the Strapi marketplace page.
Example Strapi Project
There is an example strapi projec (strapi-genai-plugin-example) in the example folder. Follow below steps:
Navigate to the
example/strapi-genai-plugin-exampledirectory:cd example/strapi-genai-plugin-exampleInstall dependencies:
npm installCopy the
.env.examplefile to.envand update theGEMINI_API_KEYwith your Gemini API key:cp .env.example .envStart the Strapi development server:
npm run developOpen your browser and go to http://localhost:1337/admin to access the Strapi admin panel and test the plugin.
use the sample user [email protected] and password:
StrapiDemo123
Sample Screen
Create new collection type

Add fields (custom and regular) to the collection


Use the custom Text AI fields to generate content (using a prompt)

