TextActive

Text Translation

Translate text between 100+ languages. Max 500 characters per call. Returns translated_text and confidence (0-1). Set target_lang to IETF code: 'de' (German), 'fr' (French), 'es' (Spanish), 'ja' (Japanese), 'zh-CN' (Chinese Simplified), 'ar' (Arabic), 'pt' (Portuguese), 'it' (Italian), 'nl' (Dutch). source_lang defaults to auto-detect.

Endpointx402 Payment Required

POST

https://agentsvc.io/api/v1/proxy/translate

Price

$0.002 USDC

Latency P99

~500ms

Provider

agentsvc.io

Input Schema

{ "type": "object", "required": [ "text", "target_lang" ], "properties": { "text": { "type": "string", "description": "Text to translate (max 500 characters per call)" }, "target_lang": { "type": "string", "description": "Target language code (e.g. 'de' for German, 'fr' for French, 'es' for Spanish, 'ja' for Japanese, 'zh' for Chinese). Use ISO 639-1 codes." }, "source_lang": { "type": "string", "default": "auto", "description": "Source language code. Default: 'auto' (auto-detect). Use ISO 639-1 codes." } } }

Output Schema

{ "type": "object", "required": [ "original_text", "translated_text", "source_lang", "target_lang" ], "properties": { "original_text": { "type": "string", "description": "The original input text" }, "translated_text": { "type": "string", "description": "The translated text in the target language" }, "source_lang": { "type": "string", "description": "Detected or specified source language code" }, "target_lang": { "type": "string", "description": "Target language code as specified" }, "confidence": { "type": "number", "description": "Translation confidence score (0.0-1.0)" }, "service": { "type": "string", "description": "Translation service used. Always: 'MyMemory'" } }, "example": { "original_text": "Hello, how are you?", "translated_text": "Hallo, wie geht es Ihnen?", "source_lang": "en", "target_lang": "de", "confidence": 1, "service": "MyMemory" } }

Code Examples

# Step 1: Call without payment → receive 402 with requirements
curl -X POST "https://agentsvc.io/api/v1/proxy/translate" \
  -H "Content-Type: application/json" \
  -d '{
  "text": "your_text",
  "target_lang": "your_target_lang",
  "source_lang": "auto"
}'

# Step 2: Sign payment using x402 SDK, then retry
curl -X POST "https://agentsvc.io/api/v1/proxy/translate" \
  -H "Content-Type: application/json" \
  -H "X-Payment: x402 usdc base <your-signed-payment>" \
  -d '{
  "text": "your_text",
  "target_lang": "your_target_lang",
  "source_lang": "auto"
}'

Tags

#translate#language#nlp#text#multilingual#i18n

Service Info

Service IDsvc_translate_10
Categorytext
StatusActive
ChainBase (USDC)
Protocolx402
Read API Documentation →