[GH-ISSUE #522] [Feature]: OpenRouter image generation #238

Closed
opened 2026-10-20 17:26:40 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Allow using OpenRouter as a source of image generation

Proposed solution

Implement OpenRouter's API for image generation

Alternatives considered

It doesn't work through the OpenAI option currently available, and self-hosting proved lacking.

Additional context

I have seen #249, but since that died I'd like to make an issue to formalize the request :3

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 @lyssieth on GitHub (May 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/522 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Allow using OpenRouter as a source of image generation ## Proposed solution Implement OpenRouter's [API for image generation](https://openrouter.ai/docs/guides/overview/multimodal/image-generation) ## Alternatives considered It doesn't work through the OpenAI option currently available, and self-hosting proved lacking. ## Additional context I have seen #249, but since that died I'd like to make an issue to formalize the request :3 ## 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-20 17:26:40 +07:00
Author
Owner

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

Triage note: labeling this as normal-scope because OpenRouter image generation is a focused provider addition for an existing image-generation workflow, rather than a new product area.

This can stay in the normal enhancement backlog, with the first slice routed through the existing image provider flow instead of creating a parallel generation workflow.

<!-- gh-comment-id:4407812578 --> @cha1latte commented on GitHub (May 8, 2026): Triage note: labeling this as `normal-scope` because OpenRouter image generation is a focused provider addition for an existing image-generation workflow, rather than a new product area. This can stay in the normal enhancement backlog, with the first slice routed through the existing image provider flow instead of creating a parallel generation workflow.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Sure.

<!-- gh-comment-id:4414978151 --> @SpicyMarinara commented on GitHub (May 10, 2026): Sure.
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Implemented in the local v1.5.9 issue sweep.

  • Added OpenRouter as an image_generation service option.
  • Routed OpenRouter image requests through /chat/completions with image modalities, matching OpenRouter’s image-generation API.
  • Parses generated images from message.images[].image_url.url data URLs, with the existing markdown/URL fallback still supported.
  • Added OpenRouter image model discovery via /models?output_modalities=image.
  • Added several current OpenRouter image-output models to the image model list.
  • Added the release note to CHANGELOG.md.

Validation:

  • pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/image-generation-local.test.ts
  • pnpm --filter @marinara-engine/server lint.
<!-- gh-comment-id:4415099207 --> @SpicyMarinara commented on GitHub (May 10, 2026): Implemented in the local v1.5.9 issue sweep. - Added OpenRouter as an `image_generation` service option. - Routed OpenRouter image requests through `/chat/completions` with image modalities, matching OpenRouter’s image-generation API. - Parses generated images from `message.images[].image_url.url` data URLs, with the existing markdown/URL fallback still supported. - Added OpenRouter image model discovery via `/models?output_modalities=image`. - Added several current OpenRouter image-output models to the image model list. - Added the release note to `CHANGELOG.md`. Validation: - `pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/image-generation-local.test.ts` - `pnpm --filter @marinara-engine/server lint`.
Author
Owner

@lyssieth commented on GitHub (May 10, 2026):

Thanks! <3

<!-- gh-comment-id:4415182530 --> @lyssieth commented on GitHub (May 10, 2026): Thanks! <3
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#238
No description provided.