How to Use Hy-MT2-7B in Claude Code
Hy-MT2-7B translates text with glossary, tone, and formatting instructions. Its 7-billion-parameter size sits between Hy-MT2-1.8B and Hy-MT2-30B-A3B.
Prompts to try with Hy-MT2-7B in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use Hy-MT2-7B to translate the visible values in locales/en.json into French. Preserve keys and placeholders exactly, use espace de travail for workspace, and validate that the translated JSON parses.
Use Hy-MT2-7B to translate docs/getting-started.md into Japanese, one section at a time. Preserve code blocks, links, and command names. Return only the translated document text for each section.
Use Hy-MT2-7B to translate the latest release notes into German. Keep version numbers and feature names unchanged, preserve bullets, and use a direct professional tone. Show the resulting diff.
Use Hy-MT2-7B to translate visible text in the project's help-page HTML into Spanish. Preserve tags and attributes exactly, then check that the markup structure matches the source.
Use Hy-MT2-7B to translate the English onboarding strings into Portuguese using the project's glossary. Process short batches, preserve interpolation tokens, and compare source and output keys before saving.
How to set up Hy-MT2-7B in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Send Claude Code 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-7B
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-7b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Claude Code finds Hy-MT2-7B on Spiral, shows the price and runs it.
Hy-MT2-7B providers and prices
Spiral runs Hy-MT2-7B 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 Claude Code 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-7B is on its tool page: open its card above.
What can you do with Hy-MT2-7B in Claude Code?
Translate application strings and documentation while keeping code identifiers and placeholders intact. Have the coding agent select text from the project, supply glossary instructions, and validate the translated files.
Application text localization
Translate visible strings in JSON or other structured text. Specify which keys, placeholders, and tags must stay unchanged, then validate the result.
Product descriptions
Translate descriptions with approved product terminology and a consistent tone. Supply exact translations for recurring feature names.
Customer support replies
Translate a drafted reply into the customer's language. Include brief issue context and request a polite, direct tone.
Help center articles
Translate articles section by section with a shared glossary. Explicitly preserve headings, links, and product names.
Release notes
Translate update announcements while retaining version numbers, feature names, and list structure. Specify the tone used in previous announcements.
Webpage text translation
Translate visible text in supplied HTML while asking to preserve tags and attributes. Check the markup before using the output.
Internal communications
Translate meeting notes or team announcements with context for company terminology. Request the same headings and bullet structure.
More on Hy-MT2-7B and Claude Code
Overview
Hy-MT2-7B in other agents
More Claude Code guides
Questions about Hy-MT2-7B in Claude Code
Can Claude Code use Hy-MT2-7B?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Hy-MT2-7B like any built-in tool.
How much does Hy-MT2-7B cost in Claude Code?
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 Claude Code plan is separate.
Do I need an OpenRouter account to use Hy-MT2-7B in Claude Code?
No. Spiral runs Hy-MT2-7B 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-7B in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Hy-MT2-7B runs?
Hy-MT2-7B 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 that needs specific terminology, a requested tone, or preserved structure. Examples include product copy, support replies, and application text.
Which languages does Hy-MT2 support?
Tencent describes translation among 33 languages. Its published language list includes English, Chinese, Spanish, French, Portuguese, Japanese, German, Arabic, Korean, and Hindi.
How should I write a translation prompt?
Write the target language in full, provide the source text, and ask for only the translation. Add exact glossary translations, the desired tone, and brief background when those details matter.
Can Hy-MT2 translate text inside structured data?
Tencent provides instructions for translating visible text while preserving structure, keys, tags, and variable placeholders. Ask for those constraints explicitly, then validate the returned structure.
How should I handle long documents?
Tencent's inference guide specifies an 8,192-token context and recommends a 4,096-token output budget. Translate sections separately, leaving room for the output and repeating the glossary where needed.
Start using Hy-MT2-7B 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 https://spiral.ai/SKILL.md


