Translation

Translate text between all major languages, detecting the source language. Returns the translation with a confidence level.

Pay by wallet (x402) AI-generated translate

Example

Input
{
  "text": "This is a test input for automated capability testing.",
  "source_language": "en",
  "target_language": "en"
}
Answer
{
  "confidence": "high",
  "source_language": "en",
  "target_language": "en",
  "translated_text": "This is a test input for automated capability testing."
}

Inputs

FieldTypeRequiredWhat it is
textstringYesText to translate
source_languagestringNoSource language (optional, auto-detected)
target_languagestringYesTarget language (e.g. English, Swedish, French)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
confidencestringAlways (present in every successful answer)
source_languagestringAlways (present in every successful answer)
target_languagestringAlways (present in every successful answer)
translated_textstringAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "translate",
    "inputs": {
      "text": "This is a test input for automated capability testing.",
      "source_language": "en",
      "target_language": "en"
    },
    "max_price_cents": 5
  }'

Limitations

  • Specialist terminology can be translated imprecisely

    AI translation — technical terminology, legal language, and domain-specific jargon may be translated imprecisely

    What to do instead: Provide a glossary of key terms in the input or use the domain parameter to improve translation of specialized vocabulary

Related tools