Skip to main content
Glama

Translate Text

translate
Read-onlyIdempotent

Translate up to 200 text segments in a single call - the same result that would otherwise take 200 separate calls to translate a whole file. Markdown, HTML and {x} placeholders preserved per segment, order and count kept intact, source language auto-detected, automatic fallback across multiple models for uptime, providers that train on submitted prompts excluded. A single string also works. No account, no API key. Try GET /translate/sample.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to translate - a single string, or an array of up to 200 segments to translate together in one call (batch/bulk translation), preserving order and count.
source_langNoSource language code. Omit to auto-detect.
target_langYesTarget language as an ISO 639-1 code, e.g. 'en', 'fr', 'ja'.
preserve_formatNoKeep markdown syntax, HTML tags and {x}/{{x}} placeholders unchanged, translating only the surrounding natural-language text - useful for localizing UI strings or templated content.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoThe original input text or segments.
target_langYes
model_servedNoNeutral model tag for this call (also present on x402_receipt.model_served).
x402_receiptNoBilling and provenance receipt, including segments_processed for batch calls.
translated_textYesTranslated text - a string, or an array aligned with the input segments for batch requests.
detected_source_langNoAuto-detected source language, when not supplied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / model_served
      Added value: +{
      +  "description": "Neutral model tag for this call (also present on x402_receipt.model_served)."
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / preserve_format / description
      Added value: +"Keep markdown syntax, HTML tags and {x}/{{x}} placeholders unchanged, translating only the surrounding natural-language text - useful for localizing UI strings or templated content."
    • addedInput schema / properties / source_lang / description
      Added value: +"Source language code. Omit to auto-detect."
    • addedInput schema / properties / target_lang / description
      Added value: +"Target language as an ISO 639-1 code, e.g. 'en', 'fr', 'ja'."
    • addedInput schema / properties / text / description
      Added value: +"Text to translate - a single string, or an array of up to 200 segments to translate together in one call (batch/bulk translation), preserving order and count."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "detected_source_lang": {
      +      "description": "Auto-detected source language, when not supplied."
      +    },
      +    "target_lang": {
      +      "type": "string"
      +    },
      +    "text": {
      +      "description": "The original input text or segments."
      +    },
      +    "translated_text": {
      +      "description": "Translated text - a string, or an array aligned with the input segments for batch requests."
      +    },
      +    "x402_receipt": {
      +      "description": "Billing and provenance receipt, including segments_processed for batch calls.",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "target_lang",
      +    "translated_text"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.