How to Use Hy-MT2-30B-A3B in Gemini CLI
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.
Prompts to try with Hy-MT2-30B-A3B in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
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 Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Hy-MT2-30B-A3B
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-30b-a3b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Gemini CLI finds Hy-MT2-30B-A3B on Spiral, shows the price and runs it.
Hy-MT2-30B-A3B providers and prices
Spiral runs Hy-MT2-30B-A3B through OpenRouter. Open a card for today's price, with every fee included.
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
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Max tokens | 1 to 4096 | The most output tokens to generate. | |
| Temperature | 0 to 2 |
Every API field of Tencent: Hy-MT2-30B-A3B is on its tool page: open its card above.
What can you do with Hy-MT2-30B-A3B in Gemini CLI?
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.
More on Hy-MT2-30B-A3B and Gemini CLI
Overview
Hy-MT2-30B-A3B in other agents
More Gemini CLI guides
Questions about Hy-MT2-30B-A3B in Gemini CLI
Can Gemini CLI use Hy-MT2-30B-A3B?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Hy-MT2-30B-A3B like any built-in tool.
How much does Hy-MT2-30B-A3B cost in Gemini CLI?
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 Gemini CLI plan is separate.
Do I need an OpenRouter account to use Hy-MT2-30B-A3B in Gemini CLI?
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 Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Hy-MT2-30B-A3B runs?
Hy-MT2-30B-A3B runs in the background. Gemini CLI 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.
Start using Hy-MT2-30B-A3B in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


