Models Hub
Agent Tools

LunaTranslator

An open-source GalGame translator that can be configured with OpenAI-compatible translation services.

Edit this page

Chat settings option

In the Models Hub console, under System Settings -> Chat Settings, you can add the following shortcut option to enable one-click filling into LunaTranslator from the token management page:

{ "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" }

LunaTranslator is a free, open-source visual novel (GalGame) translator dedicated to delivering a native-language-level visual novel experience.

Features

  • HOOK Primarily uses HOOK to extract game text, with compatibility for nearly all common and obscure visual novels

  • Embedded translation For some games, translations can be embedded directly into the game for an immersive experience

  • HOOK emulator For most games on NS/PSP/PSV/PS2, the HOOK emulator can read game text directly

  • OCR A built-in high-accuracy OCR model, plus support for many other online & offline OCR engines, for flexibly reading any text

  • Rich translation interfaces Supports almost all translation engines, including large language model translation and offline translation

  • Language learning Supports Japanese word segmentation and kana annotation, AnkiConnect, and the Yomitan plugin

  • Text-to-speech Supports a large number of online & offline TTS engines

  • Speech recognition On Windows 10 and Windows 11, you can use Windows speech recognition.

Installation

Download and install from LunaTranslator Documentation - Download & Launch & Update.

Connecting LunaTranslator to Models Hub

LunaTranslator supports connecting to both a locally deployed Models Hub and third-party Models Hub services built with Models Hub.

One-click configuration

  1. In the Models Hub console, under System Settings -> Chat Settings, add the following shortcut option:

    { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" }

    add_config

  2. In the Models Hub -> Console -> Token Management tab, select the token you want to use in LunaTranslator, click the dropdown next to the chat button, and choose LunaTranslator. This redirects you to LunaTranslator and automatically configures the API URL and API Key

    Redirect to LunaTranslator

  3. In LunaTranslator -> Settings -> Translation Settings -> LLM, a new LLM interface configuration appears. Click to edit it

    Set API

  4. Click the refresh button next to the model dropdown to fetch the model list from the Models Hub platform, select or type a model name, then click OK to save

    Set model

  5. Check whether the toggle next to the new_api LLM interface configuration is on; if it isn't enabled, enable the interface to start using it

    Enable configuration

Manual configuration

  1. In the Models Hub -> Console -> Token Management tab, get your API Key

    Get API Key

  2. In LunaTranslator -> Settings - Translation Settings -> LLM, choose to add one

    Add API

  3. Copy the Generic LLM Interface template to add a new interface

    Add API2

  4. In the newly added interface, fill in the corresponding API URL and API Key

    Set API1

    Set API2

  5. Click the refresh button next to the model dropdown to fetch the model list from the Models Hub platform, select or type a model name, then click OK to save

    Set API3

  6. Click the toggle next to Models Hub to enable the interface and start using it

    Enable API

For more usage details, see the official LunaTranslator documentation: LunaTranslator Documentation - LLM Translation Interface

On this page