Skip to content
cosmodev ~/tools/text-translator

AI 文本翻译器

AI & Agents

使用 LLM 在 24 种语言之间翻译任意文本——自动检测或手动指定源语言——使用你自己的免费 Groq 密钥,直接在浏览器中完成。

输入上限为 12000 个字符。格式和代码块会保留。

试试:

此工具使用你自己的免费 API 密钥调用 Groq —— 只需在此浏览器中保存一次:

Your key stays in this browser (localStorage) and is sent only to api.groq.com — never to CosmoDev servers. Get a free Groq key

粘贴文本并选择语言进行翻译。

(文档为英文)

AI Text Translator

What it does

Translates pasted text between 24 common languages using an LLM (Groq’s Llama models). Pick the source language — or leave it on auto-detect and let the model identify it — pick the target, and get the translation with paragraphs, formatting, and code blocks preserved. The ⇄ button swaps direction and carries a finished translation back into the input for a round trip.

This is an AI Studio tool: it calls the model directly from your browser with your own free Groq API key. Nothing passes through CosmoDev servers, and we store nothing.

How to use

  1. Save your free Groq API key once — the panel keeps it in this browser’s localStorage. Get a key at console.groq.com/keys.
  2. Paste your text (up to 12,000 characters — longer inputs are truncated).
  3. Choose From (Auto-detect is the default) and To.
  4. Press Translate, then copy the result.

Selecting the same language for From and To blocks the button with an explanation — the model is never asked for a no-op.

Examples

Input with From = Auto-detect, To = English:

Sehr geehrtes Team, hiermit kündige ich meinen Vertrag zum Ende des Quartals. Bitte bestätigen Sie den Erhalt dieser Nachricht.

Output:

Dear team, I hereby terminate my contract at the end of the quarter. Please confirm receipt of this message.

A finished translation plus ⇄ Swap languages becomes the new input — translate it back to check fidelity, or onward into a third language.

Good to know

  • Key custody: your key lives only in this browser (localStorage, namespaced cosmodev:aistudio.groq) and is sent only to api.groq.com as a request header — never to CosmoDev, never in a URL. The key panel has a Remove key button that wipes it.
  • Free tier: Groq’s free tier makes this genuinely free — see /ai-studio for every BYO-key tool and your key status.
  • Rate limits: if Groq rate-limits the call (HTTP 429), the tool stops and shows the error with a manual Retry button — it never retries automatically.
  • Faithfulness: LLM translation is strong but not certified — verify legal, medical, or contractual wording with a professional translator before it matters.
  • Privacy: your text goes only from your browser to Groq. CosmoDev has no backend in the path — the same egress model as every AI Studio tool.
源代码14 种语言

Runs in your browser · your text goes straight to api.groq.com using YOUR key (BYO). CosmoDev has no backend in the path and stores nothing. 觉得好用?分享给同事吧。