[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Hy-MT2-30B-A3B](https://spiral.ai/integrations/opencode/hy-mt2-30b-a3b)

# How to Use Hy-MT2-30B-A3B in opencode

Hy-MT2-30B-A3B translates text with terminology, tone, and formatting constraints. It uses a mixture-of-experts design and scored higher than Hy-MT2-7B on Tencent's translation instruction-following benchmark.

|  |  |
| --- | --- |
| Model | Hy-MT2-30B-A3B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.001575 per run at the default inputs. $0.0962 per 1M input tokens, $0.3835 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Hy-MT2-30B-A3B in opencode

- Use Hy-MT2-30B-A3B to translate the visible string values in locales/en.json into German. Preserve keys, nesting, and placeholders, then validate the resulting JSON.
- Use Hy-MT2-30B-A3B to translate the introduction of README.md into Japanese. Keep code blocks, commands, URLs, and product names unchanged; return the translation for review.
- Use Hy-MT2-30B-A3B to translate the checkout interface strings into French. Translate 'shopping cart' as 'panier' and preserve every interpolation placeholder.
- Use Hy-MT2-30B-A3B to translate the release notes into Spanish, one section at a time. Retain version numbers, issue references, Markdown structure, and code identifiers.
- Use Hy-MT2-30B-A3B to translate the visible text on the project's help page into Korean. Preserve HTML tags and attributes, then compare the markup before and after.

## How to set up Hy-MT2-30B-A3B in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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.

```bash
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-30B-A3B**: One request; the result comes back by polling or a webhook.

```bash
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-30b-a3b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Hy-MT2-30B-A3B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Hy-MT2-30B-A3B tools and prices

- [Tencent: Hy-MT2-30B-A3B](https://spiral.ai/tools/openrouter/tencent/hy-mt2-30b-a3b) (OpenRouter): Up to $0.001575 per run at the default inputs. $0.0962 per 1M input tokens, $0.3835 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| stop |  | — |  |
| max_tokens | 1 to 4096 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |
| response_format |  | — |  |

## What can you do with Hy-MT2-30B-A3B in opencode?

Localize interface text and documentation with Hy-MT2 while preserving the surrounding code structure. Your coding agent can select text from project files and check keys, placeholders, and syntax afterward.

### App text localization

Translate visible interface strings while requesting unchanged keys and interpolation placeholders. Validate the returned structure before adding it to the app.

### Website translation

Translate page copy with explicit instructions to preserve markup, links, and product names.

### Support response translation

Translate a prepared reply using a specified tone and approved product terminology.

### Product description translation

Supply a glossary for product categories and features, then translate descriptions in small batches.

### Meeting transcript translation

Translate transcript excerpts with background context and instructions to retain speaker labels and separators.

### Technical documentation localization

Translate explanatory prose while keeping code examples, identifiers, and approved technical terms unchanged.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Hy-MT2-30B-A3B in other agents

- [Amp](https://spiral.ai/integrations/amp/hy-mt2-30b-a3b)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/hy-mt2-30b-a3b)
- [Claude](https://spiral.ai/integrations/claude-desktop/hy-mt2-30b-a3b)
- [Claude Code](https://spiral.ai/integrations/claude-code/hy-mt2-30b-a3b)
- [Cline](https://spiral.ai/integrations/cline/hy-mt2-30b-a3b)
- [Codex](https://spiral.ai/integrations/codex/hy-mt2-30b-a3b)
- [Cursor](https://spiral.ai/integrations/cursor/hy-mt2-30b-a3b)
- [Devin](https://spiral.ai/integrations/devin/hy-mt2-30b-a3b)
- [dots](https://spiral.ai/integrations/dots/hy-mt2-30b-a3b)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/hy-mt2-30b-a3b)
- [Gemini](https://spiral.ai/integrations/gemini/hy-mt2-30b-a3b)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/hy-mt2-30b-a3b)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/hy-mt2-30b-a3b)
- [goose](https://spiral.ai/integrations/goose/hy-mt2-30b-a3b)
- [Grok](https://spiral.ai/integrations/grok/hy-mt2-30b-a3b)
- [Grok Build](https://spiral.ai/integrations/grok-build/hy-mt2-30b-a3b)
- [Hermes](https://spiral.ai/integrations/hermes/hy-mt2-30b-a3b)
- [Instinct](https://spiral.ai/integrations/instinct/hy-mt2-30b-a3b)
- [Manus](https://spiral.ai/integrations/manus/hy-mt2-30b-a3b)
- [Muse](https://spiral.ai/integrations/muse/hy-mt2-30b-a3b)
- [Muse Code](https://spiral.ai/integrations/muse-code/hy-mt2-30b-a3b)
- [n8n](https://spiral.ai/integrations/n8n/hy-mt2-30b-a3b)
- [Notion](https://spiral.ai/integrations/notion/hy-mt2-30b-a3b)
- [OpenClaw](https://spiral.ai/integrations/openclaw/hy-mt2-30b-a3b)
- [Perplexity](https://spiral.ai/integrations/perplexity/hy-mt2-30b-a3b)
- [Raycast](https://spiral.ai/integrations/raycast/hy-mt2-30b-a3b)
- [VS Code](https://spiral.ai/integrations/vscode/hy-mt2-30b-a3b)
- [Windsurf](https://spiral.ai/integrations/windsurf/hy-mt2-30b-a3b)
- [Zapier](https://spiral.ai/integrations/zapier/hy-mt2-30b-a3b)

## More opencode guides

- [Hy-MT2-1.8B](https://spiral.ai/integrations/opencode/hy-mt2-1-8b)
- [Hy-MT2-7B](https://spiral.ai/integrations/opencode/hy-mt2-7b)
- [Hermes 4 405B](https://spiral.ai/integrations/opencode/hermes-4-405b)
- [Hy3](https://spiral.ai/integrations/opencode/hy3)
- [Grok Latest](https://spiral.ai/integrations/opencode/grok-latest)
- [Hy4](https://spiral.ai/integrations/opencode/hy4)

## Questions about Hy-MT2-30B-A3B in opencode

**Can opencode use Hy-MT2-30B-A3B?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Hy-MT2-30B-A3B like any built-in tool.

**How much does Hy-MT2-30B-A3B cost in opencode?**

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

**Do I need an OpenRouter account to use Hy-MT2-30B-A3B in opencode?**

No. Spiral runs Hy-MT2-30B-A3B 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-30B-A3B in opencode?**

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

**Does opencode wait while Hy-MT2-30B-A3B runs?**

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

**What is Hy-MT2 best suited for?**

Translation with explicit requirements: approved terminology, a particular tone, background context, or formatting to preserve. Give it the source text and the constraints together.

**How many languages does Hy-MT2 support?**

Tencent documents translation among 33 languages. Check the supported-language table before planning a translation into a less common language.

**Can Hy-MT2 translate structured text?**

Structured-data and code or tag preservation are explicit evaluation targets. Specify which text to translate and which keys, placeholders, tags, and separators must stay unchanged; validate the result before using it.

**How much text should I translate at once?**

Tencent documents an 8,192-token context and recommends a 4,096-token generation budget. Split long documents at section boundaries, leaving room for instructions, context, and the translation.

**Where does Hy-MT2 need extra checking?**

Combining several translation constraints is harder than following a single constraint in Tencent's evaluation. Check terminology and formatting separately, and restate requirements in each request instead of relying on a long conversation.

