[GH-ISSUE #751] [Feature]: Support Grok image generation #357

Closed
opened 2026-10-20 17:27:58 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/751

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

A user wants to try Grok/Imagine for SFW image generation through Marinara Engine, but it does not currently work cleanly with the existing OpenAI-style image generation path.

The reported blocker is that Grok expects a different format for image size parameters, so the request almost works but fails or cannot be configured correctly without provider-specific handling.

Priority from the user report: low / nice to have.

Proposed solution

Add support for Grok image generation by handling Grok's expected image-size format in the image generation request path.

Suggested scope:

  • Detect or configure Grok/xAI image generation as a supported provider/model path.
  • Map Marinara's existing image size/aspect-ratio options to whatever size format Grok expects.
  • Keep the existing OpenAI-compatible behavior intact for providers that already work.
  • Surface a clear validation/error message if a selected size is not supported by Grok.

Alternatives considered

Users may be able to work around this manually by using an external image tool or a custom API proxy, but that makes Grok image generation unavailable from Marinara's built-in image workflows.

Additional context

Original user report, 13 May 2026:

I've been trying out the different frontier models to see what is good and what isn't. Grok's Imagine is good at SFW stuff, and I wanted to give it a try, and see what kind of costs it gets up to. It almost works through Open AI, except that grok wants a different format for size. Not a super high priority, but would be nice to have.

Duplicate check before filing:

  • No open or closed GitHub issues found for Grok, Grok image generation, Grok Imagine, or xAI image.
  • No matching open/closed PRs found for Grok image.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (May 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/751 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? A user wants to try Grok/Imagine for SFW image generation through Marinara Engine, but it does not currently work cleanly with the existing OpenAI-style image generation path. The reported blocker is that Grok expects a different format for image size parameters, so the request almost works but fails or cannot be configured correctly without provider-specific handling. Priority from the user report: low / nice to have. ## Proposed solution Add support for Grok image generation by handling Grok's expected image-size format in the image generation request path. Suggested scope: - Detect or configure Grok/xAI image generation as a supported provider/model path. - Map Marinara's existing image size/aspect-ratio options to whatever size format Grok expects. - Keep the existing OpenAI-compatible behavior intact for providers that already work. - Surface a clear validation/error message if a selected size is not supported by Grok. ## Alternatives considered Users may be able to work around this manually by using an external image tool or a custom API proxy, but that makes Grok image generation unavailable from Marinara's built-in image workflows. ## Additional context Original user report, 13 May 2026: > I've been trying out the different frontier models to see what is good and what isn't. Grok's Imagine is good at SFW stuff, and I wanted to give it a try, and see what kind of costs it gets up to. It almost works through Open AI, except that grok wants a different format for size. Not a super high priority, but would be nice to have. Duplicate check before filing: - No open or closed GitHub issues found for `Grok`, `Grok image generation`, `Grok Imagine`, or `xAI image`. - No matching open/closed PRs found for `Grok image`. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@cha1latte commented on GitHub (May 12, 2026):

Triage note: labeling this as normal-scope because it is a focused provider-compatibility improvement for an existing image generation workflow.

The least risky next step is to map Marinara's existing image-size options to Grok's expected format while keeping the current OpenAI-compatible path unchanged.

<!-- gh-comment-id:4432573553 --> @cha1latte commented on GitHub (May 12, 2026): Triage note: labeling this as `normal-scope` because it is a focused provider-compatibility improvement for an existing image generation workflow. The least risky next step is to map Marinara's existing image-size options to Grok's expected format while keeping the current OpenAI-compatible path unchanged.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#357
No description provided.