[GH-ISSUE #3130] [Feature]: Add xAI image reference support #1678

Closed
opened 2026-10-21 05:41:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @thetopham on GitHub (Jul 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3130

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

xAI image generation currently does not accept reference images through Marinara's image provider path, so features that pass character or scene references cannot use xAI for reference-guided generation.

Proposed solution

  • Allow xAI image requests to include one or more reference images.
  • Use xAI's image edit endpoint when reference images are present.
  • Keep normal text-only generation on the generation endpoint.
  • Reuse Marinara's existing reference image normalization.
  • Cap xAI reference inputs to a small supported set.

Alternatives considered

Keep xAI as a text-only image provider and require users to switch providers when they need reference-guided character or scene images. That preserves current behavior but leaves xAI inconsistent with other reference-capable provider paths.

Additional context

Implementation PR: #3127

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 @thetopham on GitHub (Jul 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3130 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? xAI image generation currently does not accept reference images through Marinara's image provider path, so features that pass character or scene references cannot use xAI for reference-guided generation. ## Proposed solution - Allow xAI image requests to include one or more reference images. - Use xAI's image edit endpoint when reference images are present. - Keep normal text-only generation on the generation endpoint. - Reuse Marinara's existing reference image normalization. - Cap xAI reference inputs to a small supported set. ## Alternatives considered Keep xAI as a text-only image provider and require users to switch providers when they need reference-guided character or scene images. That preserves current behavior but leaves xAI inconsistent with other reference-capable provider paths. ## Additional context Implementation PR: #3127 ## 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.
bsakaguchi 2026-10-21 05:41:38 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 2, 2026):

Fixed in staging by PR #3127 (commit 745320a9).

<!-- gh-comment-id:4864502340 --> @SpicyMarinara commented on GitHub (Jul 2, 2026): Fixed in staging by PR #3127 (commit 745320a9).
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#1678
No description provided.