# translate.btoven.net — Translation API > Machine translation (argos engine, LibreTranslate fallback) with build-time > i18n SDKs, an async job queue and an MCP endpoint. Free tier, no AI at > runtime. Placeholders of the shape `{GL 0}` / `{TYPE N}` are preserved > through the edge (split + reassembly) — safe to use for interpolation. ## Endpoints - `POST /translate` — translate text or a batch: `q` is a string or an array (recommended ≤45 items / 45k chars per request). - `POST /detect` — detect the language of a text. - `GET /languages` — installed languages and target pairs. - `GET /health` — engine name + `models` (capability probe: which pairs are installed). - `POST /jobs/translate` → `202 {job_id, status_url}` — async queue; `GET /jobs/` → `{status: queued|running|done|error, result?}`. - `POST /mcp` — MCP JSON-RPC (stateless): `initialize`, `tools/list`, `tools/call` with tools `translate`, `detect_language`, `list_languages`, `health_check`. Health: `GET /mcp/health`. - `GET /llms.txt` — this file. ## Authentication (optional today — three accepted forms) - `X-API-Key: ` header - `Authorization: Bearer ` header (normalized upstream) - `"api_key": ""` JSON body field Keys are never forwarded as query parameters (they would land in engine access logs). ## Errors (shared envelope) - `429` rate limited: `{"error":"rate_limited","message":"...","retry_after_s":N,"retry":true}` plus a `Retry-After: ` header — honor it and back off. - `400` bad input or no model for the pair: `{"error":"no model for en->it","message":"..."}`. - `413` body too large (default cap 2 MB). - `502` no backend available: `{"error":"all engines failed","retry_after_s":5,"retry":true}`. ## Rate limits (edge) Default **300 requests/minute per IP** (`LT_RATE_LIMIT`, `0` disables) → `429` + `Retry-After` as above. ## MCP configuration Remote (HTTP, stateless JSON-RPC): ```json {"mcpServers": {"translate": {"url": "https://translate.btoven.net/mcp"}}} ``` Local stdio (full toolset:20 tools incl. PII protector and feedback): ```bash pip install btoven-translate-mcp ``` ```json {"mcpServers": {"translate": {"command": "btoven-translate-mcp", "env": {"LT_URL": "https://translate.btoven.net"}}}} ``` Multi-service alternative: the `btoven-mcp` aggregator exposes `translate_text` and `list_languages` on top of17 tools across the BTOVEN network — `https://agents.btoven.net/mcp` (own rate limit and cache; this endpoint is the direct path to the translation stack). ## SDKs (source on git.btoven.net) - **Rust** — `btoven-translate` crate + `btoven-i18n` CLI (`extract → translate → validate`, hash manifest, `--glossary-file`, `--overrides`) → https://git.btoven.net/translate/rust-sdk - **Astro** — `@btoven/translate-astro`, build-time i18n pipeline → https://git.btoven.net/translate/astro-sdk - **MCP (stdio)** — `btoven-translate-mcp`,20 tools incl. PII protector → https://git.btoven.net/translate/mcp (PyPI publish pending) - **CLI (Node)** — https://git.btoven.net/translate/cli - **Middleware / Python** — `btoven-translate` (engine router, jobs, x402) → https://git.btoven.net/translate/btoven-translate - **Full stack** (this API + engines + SDKs) → https://git.btoven.net/btoven/translate The MCP endpoint also exposes `list_sdks` for programmatic discovery. Planned: python-sdk, node-sdk, next-sdk, go-sdk, php-sdk.