Spiral gives your agent every tool with one account. Browse the tools →

Claude Code · LLMReleased 2026-08-20

How to Use Hy-MT2-1.8B in Claude Code

Hy-MT2-1.8B translates text with instructions for terminology, tone, and formatting. It uses 1.8 billion parameters compared with 7 billion in Hy-MT2-7B, but scores lower on Tencent's complex translation instruction tests.

Prompts to try with Hy-MT2-1.8B in Claude Code

Copy an example into Claude Code, or ask in your own words.

Use Hy-MT2-1.8B to translate the project's English interface strings into German. Translate visible values only, preserve keys and interpolation placeholders, and check that the resulting JSON parses.

Hy-MT2-1.8BClaude Code
Try asking
  • Use Hy-MT2-1.8B to translate the README introduction into Japanese. Protect commands, URLs, and code blocks, and show the proposed documentation diff.

  • Use Hy-MT2-1.8B to translate the checkout page's visible HTML text into French. Preserve tags and attributes, then check that the markup structure matches the original.

  • Use Hy-MT2-1.8B to translate the latest release notes into Spanish in a formal style. Preserve version numbers and code identifiers, and return the proposed translated section.

  • Use Hy-MT2-1.8B to translate one help article into Chinese. Read the project's terminology guide first, supply the relevant approved translations, and process the article section by section.

How to set up Hy-MT2-1.8B in Claude Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Hy-MT2-1.8B

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "tencent/hy-mt2-1.8b",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Claude Code finds Hy-MT2-1.8B on Spiral, shows the price and runs it.

Hy-MT2-1.8B providers and prices

Spiral runs Hy-MT2-1.8B through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Tencent: Hy-MT2-1.8B
tencent/hy-mt2-1.8b

Settings you can ask for

Ask Claude Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Max tokens1 to 4096

The most output tokens to generate.

Temperature0 to 2

Every API field of Tencent: Hy-MT2-1.8B is on its tool page: open its card above.

What can you do with Hy-MT2-1.8B in Claude Code?

Translate application copy and documentation directly from the project with Hy-MT2. Have the coding agent extract the text, protect code and identifiers, and validate the translated result.

Localize interface strings

Translate visible JSON values while protecting keys, nesting, and interpolation placeholders. Validate the translated data before adding it to an application.

Translate support replies

Prepare replies in the customer's language with an explicit tone instruction and approved translations for product terms.

Translate product descriptions

Translate catalog copy with a supplied glossary. Identify brand names and product identifiers that must remain unchanged.

Localize website text

Translate visible HTML text while asking for tags and attributes to remain intact. Check the resulting markup before publication.

Translate technical documentation

Work through documentation section by section, supplying approved technical terms and protecting code examples.

Translate meeting excerpts

Supply a short description of the discussion before translating an excerpt, so ambiguous words have context.

Adapt announcement tone

Translate announcements with a stated style, such as formal business language or friendly customer communication.

Questions about Hy-MT2-1.8B in Claude Code

Can Claude Code use Hy-MT2-1.8B?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Hy-MT2-1.8B like any built-in tool.

How much does Hy-MT2-1.8B cost in Claude Code?

Up to $0.000946 per run at the default inputs. $0.0572 per 1M input tokens, $0.2301 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

Do I need an OpenRouter account to use Hy-MT2-1.8B in Claude Code?

No. Spiral runs Hy-MT2-1.8B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Hy-MT2-1.8B in Claude Code?

About two minutes: add the hosted server, then sign in.

Does Claude Code wait while Hy-MT2-1.8B runs?

Hy-MT2-1.8B runs in the background. Claude Code starts the run, checks on it and gives you the text, json when it's ready.

What is Hy-MT2 best used for?

Use Hy-MT2 for translation with specific terminology, tone, or formatting requirements. Useful tasks include product text, support replies, documentation, and structured localization content.

Which languages does Hy-MT2 support?

Tencent reports translation among 33 languages, including English, Chinese, French, Spanish, Japanese, and German. Write language names in full in your instructions.

How do I keep technical terms consistent?

Put a short glossary of source terms and approved translations before the text. Explicitly identify product names or terms that should stay unchanged.

Can Hy-MT2 preserve JSON and HTML during translation?

Tencent provides prompts for translating visible text while preserving structure, keys, tags, and placeholders. Request those protections explicitly, then validate the result before using it.

How should I handle long documents and generation settings?

Tencent documents an 8,192-token context and recommends temperature 0.7 with a 4,096-token output budget for Hy-MT2-1.8B. Translate long documents section by section, leaving room for instructions, context, and the translation.

Get started

Start using Hy-MT2-1.8B in Claude Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Claude Code:

Set up Claude Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options