[GH-ISSUE #6464] [Feature]: Add MuAPI as an OpenAI-compatible image service #3619

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

Originally created by @Anil-matcha on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6464

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Marinara supports several hosted image backends, but users of MuAPI cannot select MuAPI as a first-class image service or discover the image models available to their account.

Proposed solution

  • Add MuAPI to the Image Generation service picker with its default https://api.muapi.ai/v1 base URL.
  • Discover models through MuAPI's OpenAI-compatible GET /v1/models endpoint.
  • Send text-to-image requests through POST /v1/images/generations, preserve custom JSON parameters, and download URL or base64 results through Marinara's existing safety path.
  • Document that the initial integration is text-to-image only and does not send reference images.

Scope

This is a focused provider integration. It does not change existing providers or add a separate video transport.

Verification

The implementation will include an offline regression for endpoint construction, model-response parsing, and source inference, plus the normal server/client checks. No live or billable MuAPI generation request is needed to validate the integration.

Template check

  • I read this template and provided the requested details.
Originally created by @Anil-matcha on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6464 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Marinara supports several hosted image backends, but users of MuAPI cannot select MuAPI as a first-class image service or discover the image models available to their account. ## Proposed solution - Add MuAPI to the Image Generation service picker with its default `https://api.muapi.ai/v1` base URL. - Discover models through MuAPI's OpenAI-compatible `GET /v1/models` endpoint. - Send text-to-image requests through `POST /v1/images/generations`, preserve custom JSON parameters, and download URL or base64 results through Marinara's existing safety path. - Document that the initial integration is text-to-image only and does not send reference images. ## Scope This is a focused provider integration. It does not change existing providers or add a separate video transport. ## Verification The implementation will include an offline regression for endpoint construction, model-response parsing, and source inference, plus the normal server/client checks. No live or billable MuAPI generation request is needed to validate the integration. ## Template check - [x] I read this template and provided the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 21, 2026):

Thanks for the suggestion and the PR! We're going to decline a separate MuAPI service. We want providers using an existing supported API format to reuse that connection with a custom Base URL, rather than adding a separate provider entry and implementation for each service.

For the text-to-image scope proposed here, the existing setup is:

  1. Choose Image Generation, then OpenAI (DALL-E) as the service.
  2. Set Base URL to https://api.muapi.ai/v1 and enter your MuAPI API key.
  3. Type a MuAPI model ID, such as flux-schnell, into the manual model field. Use a size supported by MuAPI, such as 1024x1024.

MuAPI documents the OpenAI-compatible image endpoint and bearer authentication. Our existing image adapter already sends that request format, supports custom JSON parameters, and handles URL or base64 image responses through the existing result path. This is the image connection, rather than the Custom OpenAI-compatible text/chat connection.

There is one shared bug worth distinguishing: Fetch Models currently omits /models for generic image connections because their configured models endpoint is empty. So manual model entry is the available route here; we should fix discovery in the shared OpenAI-compatible image path, rather than add MuAPI-specific discovery and generation branches.

This assessment is based on the documented API, current staging code, and the passing local image/custom-parameters regression. No live MuAPI generation was performed. It covers text-to-image, not reference-image editing or video.

Closing this request as not planned and declining #6465. Thank you for the effort!

<!-- gh-comment-id:5757905742 --> @SpicyMarinara commented on GitHub (Sep 21, 2026): Thanks for the suggestion and the PR! We're going to decline a separate MuAPI service. We want providers using an existing supported API format to reuse that connection with a custom Base URL, rather than adding a separate provider entry and implementation for each service. For the text-to-image scope proposed here, the existing setup is: 1. Choose **Image Generation**, then **OpenAI (DALL-E)** as the service. 2. Set **Base URL** to `https://api.muapi.ai/v1` and enter your MuAPI API key. 3. Type a MuAPI model ID, such as `flux-schnell`, into the manual model field. Use a size supported by MuAPI, such as `1024x1024`. [MuAPI documents the OpenAI-compatible image endpoint and bearer authentication](https://muapi.ai/docs/openai-compatible). Our [existing image adapter](https://github.com/Pasta-Devs/Marinara-Engine/blob/b79762cd759b8406ba2dc449956bd9d2c7483347/packages/server/src/services/image/image-generation.ts#L1176-L1244) already sends that request format, supports custom JSON parameters, and handles URL or base64 image responses through the existing result path. This is the image connection, rather than the Custom OpenAI-compatible text/chat connection. There is one shared bug worth distinguishing: **Fetch Models** currently omits `/models` for generic image connections because their configured models endpoint is empty. So manual model entry is the available route here; we should fix discovery in the shared OpenAI-compatible image path, rather than add MuAPI-specific discovery and generation branches. This assessment is based on the documented API, current staging code, and the passing local image/custom-parameters regression. No live MuAPI generation was performed. It covers text-to-image, not reference-image editing or video. Closing this request as not planned and declining #6465. Thank you for the effort!
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#3619
No description provided.