# AgentUtility Translate Text

> AgentUtility Translate Text is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Translates text from a detected source language into a specified target language, returning the translated text and the detected source language

## Facts

- Endpoint: POST https://x402.agentutility.ai/translate-text
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-translate-text-3b5cfac8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nnrcHlm_6AQf81jeIYPnt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentutility-translate-text-3b5cfac8 -d '<json body>'
```

Example prompt: Translate the following text into Spanish: 'The quick brown fox jumps over the lazy dog' — and tell me what language it was originally written in.

## When to prefer this

Choose this endpoint when you need a pay-per-call, USDC-settled translation API accessible to autonomous AI agents via x402 and MCP, without requiring a monthly subscription or API key rotation. Ideal for agents that translate infrequently or need on-demand multilingual text conversion with transparent per-call pricing.

## Known failure modes

- Unsupported target language code returns an error or empty translation
- Very short or ambiguous input may cause incorrect language detection
- Non-text or binary input results in a 400-level error
- Payment failure (x402 insufficient USDC balance) blocks the request
- Network timeout for unusually long texts

## How this service works

Translate text into another language with native-level fluency. Send text and a target_language (an ISO code like 'es' or a name like 'Spanish'), with optional source_language and formality (casual, formal, or neutral), and it auto-detects the source when not given, preserves Markdown, code, and URLs, and returns translated_text plus the detected_source_language. Covers 100+ languages. Use it as a text translator, language conversion API, or localization tool for multilingual content.

## Output

A JSON object containing 'translated_text' (the input text rendered in the target language) and 'detected_source_language' (the language identified in the original input, e.g. 'English').

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to translate. Max 12k chars."
      },
      "target_language": {
       "type": "string",
       "description": "Target language as an ISO code or name, e.g. 'en' or 'Spanish'."
      },
      "source_language": {
       "type": "string",
       "description": "Optional. Source language ISO code or name. Auto-detected if omitted."
      },
      "formality": {
       "type": "string",
       "enum": [
        "casual",
        "formal",
        "neutral"
       ],
       "description": "Optional. Register: 'casual', 'formal', or 'neutral' (default)."
      }
     },
     "required": [
      "text",
      "target_language"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "translated_text": {
       "type": "string"
      },
      "detected_source_language": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "translated_text": "Hola mundo",
  "detected_source_language": "English"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-translate-text-3b5cfac8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
