Skip to main content
Marinara Engine is a self-hosted app for roleplay, conversations and story games. It can draw backgrounds, illustrations, character portraits and selfies, and read messages aloud. Both work with deAPI through an OpenAI-compatible address, with no plugin. The steps below were checked against Marinara Engine’s source (main branch, November 2026) by sending deAPI the exact requests Marinara builds.

Prerequisites

Marinara sends every request from the computer that runs it, and stores the key there.

Image generation

  1. Open Connections and click Add account.
  2. Choose OpenAI-compatible address.
  3. Enter the address and key, then click Connect:
  1. On the models step, switch to Image and star Flux_2_Klein_4B_BF16.
  2. In Connections → Jobs, set Images to that model.
Marinara adds /images/generations to the address itself.

Which model

Marinara asks for a different size for each kind of picture: 1280x720 for backgrounds and game scenes, 896x1280 for illustrations, 896x1152 for selfies and 1024x1024 for portraits. To use a model with a fixed list of sizes, open that image model’s settings and put this in Custom Parameters:
Marinara adds custom parameters to every request after its own fields, so every picture is then generated at that size. Without it, a background request answers size_not_supported.

Text-to-speech

  1. Open Connections, click Add account and choose Text to speech.
  2. Turn on Use text to speech.
  3. Fill in the fields:
To give characters different voices, choose Selected per character instead and assign a voice to each one. deAPI does not list voices at /audio/voices, so Marinara shows OpenAI’s voice names. All nine of them (alloy, ash, coral, echo, fable, nova, onyx, sage, shimmer) work on Kokoro. To use another voice, type its name, e.g. af_bella or bm_george. In testing, a short line took 5 to 10 seconds.
Kokoro voice mixes such as af_bella(0.5)+af_sarah(0.5), which Marinara suggests in the voice field, are not supported. deAPI answers This voice is not supported. Use one voice per character.
Keep Audio format on MP3: Kokoro returns MP3 only. Marinara’s speed slider goes from 0.25 to 4, but Kokoro accepts 0.5 to 2.0 and answers speed_out_of_range outside it.
Kokoro voices are tied to one language, set by the voice prefix: af_ and am_ are American English, bf_ and bm_ British English. The full list is in Text-to-speech.

Troubleshooting


Next steps

OpenAI Compatibility

Every endpoint, model and field the OpenAI-compatible API supports