Models Hub
Agent Tools

Use LunaTranslator with Models Hub: LLM Interface Setup

Add an LLM interface in LunaTranslator pointed at Models Hub, enter the API URL and key, and translate visual novels on your Models Hub balance, with recommended models and error fixes.

Edit this page

LunaTranslator is a free, open-source visual novel (GalGame) translator that extracts game text via HOOK and supports many translation engines. It has a built-in "Generic LLM Interface" that connects to any OpenAI-compatible translation service; point it at Models Hub and in-game text translation draws on your Models Hub balance. This page covers only the connection step — see the official documentation for HOOK, OCR, and other features.

Three things you need

A Models Hub API key, the endpoint https://modelsok.com/v1, and a model name.

Prerequisites

Game text translation requests are frequent and add up quickly, so model choice directly affects cost — start with something cheap and fast; switch to a stronger model when you want better handling of context and character tone.

Use caseModelPricingLive status
Default for everyday game translation, fastgpt-5.4-miniPriceAvailability and latency
Cheap and fast, alternativeclaude-haiku-4-5PriceAvailability and latency
Long sentences or complex context needing better fitclaude-sonnet-4-6PriceAvailability and latency

Model names are authoritative on the pricing page.

Setup

Option 1: One-click redirect from the Tokens page (if available)

Some Models Hub sites show a shortcut next to each token on the Tokens page that redirects to LunaTranslator and automatically fills in the API URL and key. Whether this shows up depends on a site-level setting — go by what you actually see, and use manual setup below if it's not there.

Copying the API key from the Models Hub Token Management page

Option 2: Manual setup

  1. In LunaTranslator, go to Settings → Translation Settings → LLM and click "Add".

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

    Copying the Generic LLM Interface template to add a new interface

  3. In the new interface, fill in:

    FieldWhat to enter
    API URLhttps://modelsok.com/v1
    API KeyYour Models Hub API key

    Filling in the API URL and API key in the new interface

  4. Click the refresh button next to the model dropdown to fetch the model list, select or type one of the recommended model names above, then click OK to save.

    Refreshing the model list and selecting a model

  5. Make sure the toggle next to the new interface is on; if not, enable it.

Verify

Once enabled, trigger a HOOK translation in the game, or use the interface's test-translate option. Seeing a translated result means you're connected. Then check Usage logs in the Models Hub console; a request under that model name appears within seconds, confirming traffic went through Models Hub.

Common errors

SymptomCauseFix
Empty translation result or interface errorWrong API URL, most often missing /v1Use https://modelsok.com/v1
Invalid key message / 401Incomplete key, or a disabled tokenRe-copy from the Tokens page
Model dropdown refresh returns nothingThe API URL can't be reached, or the key is invalidDouble-check the URL and key, then refresh again
Model not foundMisspelled model name, or the token's group can't access itCheck the spelling on the pricing page
Configured but not used in-gameThe toggle next to the new interface isn't onEnable the toggle

More in Troubleshooting, or see the LunaTranslator documentation - LLM Translation Interface.

FAQ

How is it billed? Per input and output token actually consumed per translation request, at the price on each model's pricing page. Game text is usually short, so per-line cost is low.

How is this different from using OpenAI's official endpoint directly? Same fields, just a different API URL. You don't need to sign up for an OpenAI account.

How do I switch models? Reopen the interface, refresh the model dropdown and pick another one, or type a different model name from the table.

On this page