Version: 1.7.5
Author: Maxim Alex
Website: smnv.org
Email: maxim@smnv.org
Release Date: February 21, 2026
License: MIT
GrokImagine is a ProcessWire module that allows you to generate high-quality AI images directly within your Pageimage fields using the x.ai (Grok) API.
Features
- Progressive Loading: Images appear one-by-one as they are generated.
- Batch Generation: Generate up to 4 variations at once with a single prompt.
- Smart Variations: Automatically adds subtle prompt differences to ensure variety in batch results.
- Format Support: Choose between 16:9, 1:1, 9:16, and 4:3 aspect ratios.
- Model Selection: Supports
grok-imagine-image-pro and grok-imagine-image. - Resolution Control: Toggle between 1k and 2k resolutions.
- Interactive UI: Preview results, select the ones you like, and save them directly to the page.
Installation
- Upload the
GrokImagine folder to your /site/modules/ directory. - In the ProcessWire admin, go to Modules > Refresh.
- Find Grok Imagine and click Install.
Configuration
- Go to the module settings.
- Enter your x.ai API Key (obtainable at console.x.ai).
- Select which image fields should have the Grok Imagine interface enabled.
- Choose your preferred default model and resolution.
How to Use
- Open a page for editing that contains an enabled image field.
- Locate the Grok Imagine bar below the image field.
- Enter a prompt, select your desired aspect ratio and quantity.
- Click Generate.
- Once images appear, click on the ones you want to keep (a blue checkmark will appear).
- Save the page to download and store the selected images.
License
MIT License - Free to use in personal and commercial projects.