mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5750] OpenRouter: route images-API-only models (qwen-image, muse-image, …) to /api/v1/images #3177
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nelathan on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5750
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Several image-only models on OpenRouter are served exclusively through the
/api/v1/imagesendpoint and reject/chat/completions. Marinara only routeskrea/andbytedance-seed/seedream-there (usesOpenRouterImagesApi()inpackages/server/src/services/image/image-generation.ts), so the rest fallthrough to the chat path and fail.
Repro
Configure an OpenRouter
image_generationconnection and generate with, e.g.,qwen/qwen-image-3,meta/muse-image:Observed live on 2026-09-02.
microsoft/mai-image-2.5,x-ai/grok-imagine-image-2.0,and
black-forest-labs/flux.2-*do work on the chat path, so this is per-model,not per-vendor.
Scope
Separate from #5747, which fixes the output-modalities list for the chat path.
This issue is only about endpoint selection: deciding which models must use
/api/v1/images(generateOpenRouterImageApi) instead of/chat/completions.Possible direction
GET /api/v1/modelsreturnsarchitecture.modality/output_modalitiespermodel;
usesOpenRouterImagesApi()could consult a cached copy of that ratherthan a hardcoded prefix list. Needs its own design discussion.
AI assisted
https://claude.ai/code/session_01QkQf21yjsdbNhzcAf77XM6
@SpicyMarinara commented on GitHub (Sep 5, 2026):
Owner: @SpicyMarinara, implementation by Codex in Issue Sweep PR #5865. I have read the issue and all current comments. Work will target staging, reuse existing code, and include focused regression proof; unrelated open/draft PRs remain untouched.
@SpicyMarinara commented on GitHub (Sep 5, 2026):
Completed on staging in #5865 (merge
314a71a586).Routed known images-only OpenRouter models through the existing Images API adapter, with a bounded fallback for explicit wrong-endpoint errors. Mock HTTP routing passes; live provider availability is not claimed.
Focused regression proof and manual verification boundaries are documented in the PR. Required checks and the full final regression matrix passed; CodeRabbit completed review with all threads resolved. Closing as completed on staging, not a main release.