$ man translate
/translate
PRICE / CALL
$0.002
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
wordmintCATEGORY
ai
STATUS
● live
NAME
translate — translate agent messages, support replies, and documentation into a target language without breaking markdown, code blocks, urls, or prop…
SYNOPSIS
POST https://x402.agentutility.ai/translate
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Translate agent messages, support replies, and documentation into a target language without breaking Markdown, code blocks, URLs, or proper nouns. Send text and target_language, optionally supply source_language and casual, formal, or neutral formality, then get translated_text and detected_source_language. The latency-tuned route auto-detects the source and falls back across 100+ languages. Use it as a translation API, support reply translator, document translation service, or localization API for recurring agent workflows.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| text | string | Text to translate. Max 12k chars. | required |
| target_language | string | Target language as an ISO code ('es') or name ('Spanish'). | required |
| source_language | string | Source language as an ISO code or name. Optional, auto-detected if omitted. | optional |
| formality | string | Register of the translation: casual, formal, or neutral. Optional, default neutral. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| translated_text | string | Translated string in the target language, with Markdown, code blocks, and URLs preserved from the input. |
| target_language | string | ISO 639-1 code or language name the text was translated into, as resolved from the request. |
| source_language | string | ISO 639-1 code or language name of the input, echoed back when explicitly provided in the request. |
| detected_source_language | string | ISO 639-1 code auto-detected from the input when no source language was supplied. |
| formality | string | Tone applied to the translation, such as formal, informal, or default for the target language. |
| input_chars | number | Character count of the source text submitted for translation. |
| output_chars | number | Character count of the translated text returned in this response. |
| model | string | Identifier of the AI model that produced the translation. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/translate \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the translate tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- translatetranslationi18nlanguageai
- env
- VENICE_API_KEY
- methods
- POST
- cluster
- wordmint
- price
- $0.002 USDC per call
ADJACENT — other endpoints in wordmint
| endpoint | description | price |
|---|---|---|
| contract-translate | Translates contract excerpts and commercial terms, preserving numbering, defined terms, clause references, dates, and party names. | $0.002 |
| cron-explain | Cron expression parser. | $0.002 |
| customer-review-translate | Translates customer reviews, ratings comments, and voice-of-customer excerpts, preserving product names, SKUs, and star ratings. | $0.002 |
| education-course-translate | Translates course outlines, assignments, quiz instructions, and LMS copy, preserving placeholders and numbering. | $0.002 |
| finance-report-translate | Translates finance reports: market commentary, investor letters, earnings notes, and finance summaries, preserving tickers and numbers. | $0.002 |
| game-localization-translate | Translates game content: dialogue, item descriptions, UI strings, and patch notes, preserving tokens. | $0.002 |
| immigration-document-translate | Translates immigration form excerpts, appointment instructions, evidence checklists, and application notes, preserving names, dates, IDs,… | $0.002 |
| invoice-translate | Translates invoice notes, payment terms, receipt line descriptions, and billing messages, preserving amounts, invoice IDs, and dates. | $0.002 |
SEE ALSO