[Integrations](https://spiral.ai/integrations) › [Google Antigravity](https://spiral.ai/integrations/antigravity) › [Hy-MT2-7B](https://spiral.ai/integrations/antigravity/hy-mt2-7b)

# How to Use Hy-MT2-7B in Google Antigravity

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.

|  |  |
| --- | --- |
| Model | Hy-MT2-7B |
| 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-7B in Google Antigravity

- 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 Google Antigravity

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

### Use Spiral's MCP server

1. **Open the MCP config**: * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit `~/.gemini/config/mcp_config.json`.

2. **Add the server**: Add Spiral under `mcpServers`:

```json
{
  "mcpServers": {
    "spiral": {
      "serverUrl": "https://api.spiral.ai/mcp"
    }
  }
}
```

3. **Sign in**: In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

### Use the Spiral skill

1. **Send Google Antigravity 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-7B**: 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-7b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Google Antigravity finds Hy-MT2-7B on Spiral, shows the price and runs it.

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

## Hy-MT2-7B tools and prices

- [Tencent: Hy-MT2-7B](https://spiral.ai/tools/openrouter/tencent/hy-mt2-7b) (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-7B in Google Antigravity?

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.

## Overview

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

## Hy-MT2-7B in other agents

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

## More Google Antigravity guides

- [Hy-MT2-30B-A3B](https://spiral.ai/integrations/antigravity/hy-mt2-30b-a3b)
- [Hy3](https://spiral.ai/integrations/antigravity/hy3)
- [Hy-MT2-1.8B](https://spiral.ai/integrations/antigravity/hy-mt2-1-8b)
- [Hy4](https://spiral.ai/integrations/antigravity/hy4)
- [Hermes 4 405B](https://spiral.ai/integrations/antigravity/hermes-4-405b)
- [Hy4 Flash](https://spiral.ai/integrations/antigravity/hy4-flash)

## Questions about Hy-MT2-7B in Google Antigravity

**Can Google Antigravity use Hy-MT2-7B?**

Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run Hy-MT2-7B like any built-in tool.

**How much does Hy-MT2-7B cost in Google Antigravity?**

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 Google Antigravity plan is separate.

**Do I need an OpenRouter account to use Hy-MT2-7B in Google Antigravity?**

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 Google Antigravity?**

About two minutes: open the MCP config, then add the server, then sign in.

**Does Google Antigravity wait while Hy-MT2-7B runs?**

Hy-MT2-7B runs in the background. Google Antigravity 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.

