Jump to content

GrokImagine: AI Image Generation via x.ai


Recommended Posts

Posted

Hi everyone,

I’m excited to share a new module I’ve been working on: GrokImagine.

It integrates the x.ai (Grok) API directly into the admin interface, allowing you to generate AI images on the fly for your Pageimage fields. Instead of leaving the CMS to generate assets, you can now do it right where you need them.

Key Features:

  • Progressive Loading: Unlike many AI modules that make you wait for the whole batch, this one loads images one-by-one as soon as they are ready.
  • Batch & Variety: Generate up to 4 variations. The module intelligently tweaks prompts for batch requests to ensure you get different angles and compositions rather than duplicates.
  • Aspect Ratio Control: Built-in selector for 16:9, 1:1, 9:16, and 4:3.
  • Model/Resolution Settings: Support for both grok-imagine-image-pro and standard models, plus 1k/2k resolution toggles.
  • Seamless Integration: Enable it only for specific image fields via the module settings.

How it works:

  1. Enter your API Key from console.x.ai in the module config.
  2. Go to any page with an enabled image field.
  3. Type a prompt, hit "Generate," and watch the "skeletons" fill up with images.
  4. Click the ones you like (blue checkmark) and save the page—the module handles the WireHttp download and adds them to your field automatically.

GitHub Repository:

https://github.com/mxmsmnv/GrokImagine

Installation:

  1. Download or clone into /site/modules/GrokImagine.
  2. Install via the Admin Modules dashboard.

I’d love to hear your feedback or any suggestions for future features! 🍀

  • Like 5

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...