[PR #6465] [CLOSED] feat: add MuAPI image generation service #7189

Closed
opened 2026-10-23 04:17:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6465
Author: @Anil-matcha
Created: 9/20/2026
Status: ❌ Closed

Base: staging ← Head: add-muapi-image-provider


📝 Commits (1)

  • ee323d4 feat: add MuAPI image generation service

📊 Changes

10 files changed (+201 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 docs/connections/providers-reference.md (+1 -1)
📝 docs/media/image-providers.md (+5 -0)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+25 -23)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/server/src/routes/connections.routes.ts (+30 -0)
📝 packages/server/src/services/image/image-generation.ts (+34 -3)
➕ packages/server/src/services/image/muapi-image.ts (+64 -0)
📝 packages/shared/src/constants/model-lists.ts (+9 -0)
➕ scripts/regressions/muapi-image.regression.ts (+28 -0)

📄 Description

Linked issue

Closes #6464

Why this change

Marinara has several hosted image backends, but MuAPI users cannot select MuAPI as a first-class image service or discover the image models available to their account. The integration follows MuAPI's documented OpenAI-compatible image contract and keeps the initial change limited to text-to-image generation.

What changed

  • Added MuAPI to the Image Generation service picker with the default https://api.muapi.ai/v1 base URL and API-key link.
  • Added account model discovery through GET /v1/models.
  • Added text-to-image generation through POST /v1/images/generations, preserving custom JSON parameters and Marinara's existing image-result safety checks.
  • Added provider documentation, changelog coverage, and an offline regression for endpoint construction, model parsing, and source inference.
  • Reference-image requests fail with an explicit message because this focused integration does not implement an edit endpoint.

Validation

  • Focused offline regression: node scripts/run-regressions.mjs --filter scripts/regressions/muapi-image.regression.ts
  • Root TypeScript check: corepack pnpm check:e2e-types
  • Server lint/type checks: corepack pnpm --filter @marinara-engine/server lint
  • Client lint/type checks: corepack pnpm --filter @marinara-engine/client lint
  • Server and client production builds
  • Localization, formatting, token-estimation, and impeccable-context checks
  • Container (Docker / Podman) built and ran without issue
  • Ran the app and clicked through the changes manually
  • Checked visual edge cases in a browser (light/dark mode, mobile viewport, empty states)
  • Read and followed CONTRIBUTING.md

Manual verification notes

The automated checks above passed. A live MuAPI generation request, Docker run, and interactive browser session were not performed; no paid provider request was made.

Docs and release impact

  • No docs changes needed
  • Updated docs and CHANGELOG for the new provider
  • Translated docs on the docs-i18n branch updated or a follow-up issue opened
  • Version/release files updated (no version bump in this PR)

UI evidence

The UI change adds the provider to the existing service picker and API-key link path; no new layout or visual component was introduced. The client production build and lint/type checks passed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6465 **Author:** [@Anil-matcha](https://github.com/Anil-matcha) **Created:** 9/20/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `add-muapi-image-provider` --- ### 📝 Commits (1) - [`ee323d4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee323d4febe6c53cae9ed380808e6f1cd9e46b38) feat: add MuAPI image generation service ### 📊 Changes **10 files changed** (+201 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/connections/providers-reference.md` (+1 -1) 📝 `docs/media/image-providers.md` (+5 -0) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+25 -23) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+30 -0) 📝 `packages/server/src/services/image/image-generation.ts` (+34 -3) ➕ `packages/server/src/services/image/muapi-image.ts` (+64 -0) 📝 `packages/shared/src/constants/model-lists.ts` (+9 -0) ➕ `scripts/regressions/muapi-image.regression.ts` (+28 -0) </details> ### 📄 Description ## Linked issue Closes #6464 ## Why this change Marinara has several hosted image backends, but MuAPI users cannot select MuAPI as a first-class image service or discover the image models available to their account. The integration follows MuAPI's documented OpenAI-compatible image contract and keeps the initial change limited to text-to-image generation. ## What changed - Added MuAPI to the Image Generation service picker with the default `https://api.muapi.ai/v1` base URL and API-key link. - Added account model discovery through `GET /v1/models`. - Added text-to-image generation through `POST /v1/images/generations`, preserving custom JSON parameters and Marinara's existing image-result safety checks. - Added provider documentation, changelog coverage, and an offline regression for endpoint construction, model parsing, and source inference. - Reference-image requests fail with an explicit message because this focused integration does not implement an edit endpoint. ## Validation - [x] Focused offline regression: `node scripts/run-regressions.mjs --filter scripts/regressions/muapi-image.regression.ts` - [x] Root TypeScript check: `corepack pnpm check:e2e-types` - [x] Server lint/type checks: `corepack pnpm --filter @marinara-engine/server lint` - [x] Client lint/type checks: `corepack pnpm --filter @marinara-engine/client lint` - [x] Server and client production builds - [x] Localization, formatting, token-estimation, and impeccable-context checks - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app and clicked through the changes manually - [ ] Checked visual edge cases in a browser (light/dark mode, mobile viewport, empty states) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes The automated checks above passed. A live MuAPI generation request, Docker run, and interactive browser session were not performed; no paid provider request was made. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs and CHANGELOG for the new provider - [ ] Translated docs on the `docs-i18n` branch updated or a follow-up issue opened - [ ] Version/release files updated (no version bump in this PR) ## UI evidence The UI change adds the provider to the existing service picker and API-key link path; no new layout or visual component was introduced. The client production build and lint/type checks passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:21 +07:00
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#7189
No description provided.