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
| Field | Type | Required | What it is |
|---|---|---|---|
text | string | Yes | Text to translate |
source_language | string | No | Source language (optional, auto-detected) |
target_language | string | Yes | Target language (e.g. English, Swedish, French) |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
confidence | string | Always (present in every successful answer) |
source_language | string | Always (present in every successful answer) |
target_language | string | Always (present in every successful answer) |
translated_text | string | Always (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
}' {
"tool": "strale_execute",
"arguments": {
"slug": "translate",
"inputs": {
"text": "This is a test input for automated capability testing.",
"source_language": "en",
"target_language": "en"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "translate",
inputs: {
"text": "This is a test input for automated capability testing.",
"source_language": "en",
"target_language": "en"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="translate",
inputs={
"text": "This is a test input for automated capability testing.",
"source_language": "en",
"target_language": "en",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/translate?text=This+is+a+test+input+for+automated+capability+testing.&source_language=en&target_language=en' 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
- Sentiment Analysis €0.05
- Text Classification €0.05
- Text Summary €0.05