by Jacob Schweitzer on WordPress.org
Includes a Gutenberg block to insert a prompt that generates an image and inserts an image block into the current post.
Edit a post
Insert an image block
Click the “KaiGen” button in the block toolbar
Put a prompt into the input box
Click the Generate Image button
View/Edit the inserted image block (the alt text contains the prompt)
Use “Generate Alt Text” in the block inspector to describe the image
Text to image generation times vary by quality, low quality can be ~1 second, medium quality ~10 seconds, and high quality ~30 seconds or more.
Image to image generation times can take up to 2 minutes.
This plugin connects to third-party AI services to generate images and alt text. No data is sent to these services without your explicit action – images are only generated when you click “Generate Image”, and alt text is only generated when you click “Generate Alt Text”.
Important: You must obtain your own API keys from these services and are responsible for complying with their respective terms of service and privacy policies. The plugin does not collect, store, or transmit any of your data to any other parties.
All compressed/minified JavaScript files have their human-readable source code available:
Compressed Files → Source Files:
* build/index.js → Source files in src/ directory
* build/admin.js → src/admin.js
Source Code Location:
The complete human-readable source code is available in the src/ directory of this plugin and on GitHub: https://github.com/jacobschweitzer/KaiGen
Build Process:
This plugin uses @wordpress/scripts build system. To build from source:
1. Install Node.js and npm
2. Run: npm install
3. Run: npm run build
The build/ directory is committed and used by WordPress at runtime; do not edit it directly.
For development: npm run start
For more details see the README.md file.