# x402 AI Text Translator (Claude Haiku)

> x402 AI Text Translator (Claude Haiku) is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Translates up to 8000 characters of text into any target language using Claude Haiku 4.5, returning the translated text as JSON.

## Facts

- Endpoint: POST https://x402-seller-0ay3.onrender.com/api/ai/translate
- 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/x402-ai-text-translator-claude-haiku-58006b40
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gWAiI87LbPizYRK4RBTKn

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 x402-ai-text-translator-claude-haiku-58006b40 -d '<json body>'
```

Example prompt: Can you translate this text into Japanese: 'Where is the nearest train station? I need to catch my connecting flight in 30 minutes.'

## When to prefer this

Choose this endpoint when you need quick, general-purpose text translation powered by a large language model (Claude Haiku) that handles natural, nuanced phrasing better than dictionary-based translators. It accepts both language names and ISO codes, supports a wide range of languages, and costs only $0.01 USDC per call with no API key required — ideal for agents that need on-demand translation without managing separate NLP service credentials.

## Known failure modes

- Text exceeds 8000 character limit — request rejected or truncated
- Unrecognized or ambiguous target language code — translation may fail or default unexpectedly
- Claude Haiku API unavailability — 5xx error from upstream
- Malformed JSON body (missing required fields) — 400 bad request
- Very rare or low-resource languages may yield low-quality translations
- Render cold-start latency on first call after inactivity

## How this service works

Translate text into any target language, via Claude Haiku 4.5. JSON body: {text: string (max 8000 chars), target_lang: string (e.g. French, es, Japanese)}.

## Output

Returns a JSON object containing the target language identifier (as provided) and the translated text string. Example: {"target_lang": "French", "translated_text": "Où est la gare la plus proche ?"}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to translate (max 8000 chars)."
  },
  "target_lang": {
   "type": "string",
   "description": "Target language (name or code, e.g. French, es, Japanese)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "target_lang": "French",
  "translated_text": "Où est la gare la plus proche ?"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-text-translator-claude-haiku-58006b40/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
