# Agent Toolbox – Text Translation

> Agent Toolbox – Text Translation is a paid API for AI agents from agent-toolbox.zafermemon87.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-17).

Translates text from one language to another using the m2m100-1.2b model, with configurable source and target languages

## Facts

- Endpoint: POST https://agent-toolbox.zafermemon87.workers.dev/v1/translate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-toolbox-text-translation-534ad943
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ys5YmdfCdNFnR_oO38O4M

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 agent-toolbox-text-translation-534ad943 -d '<json body>'
```

Example prompt: Translate 'Where is the train station?' from English to French for me.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call translation API without a subscription or API key setup, especially inside an AI agent workflow where micropayments via x402 are already supported. It is ideal for single-sentence or short-paragraph translations across a wide range of languages, billed at $0.002 USDC per call. Prefer alternatives like DeepL or Google Translate APIs for high-volume production use or when translation quality is critical for professional publishing.

## Known failure modes

- Unsupported language code or name returns an error or untranslated output
- Very long text inputs may be truncated or rejected
- Ambiguous source language without specifying source_lang may yield incorrect translation
- Payment failure via x402 results in 402 response before translation occurs
- Low-resource languages may produce lower quality translations with m2m100-1.2b

## How this service works

Translate text (up to 5,000 characters) between 100 languages with M2M100 1.2B.

## Output

A JSON object containing the translated text, the model used (m2m100-1.2b), the detected or specified source language, and the target language. Example: {"model":"m2m100-1.2b","plain":"Où se trouve la gare ?","source_lang":"english","target_lang":"french","translated_text":"Où se trouve la gare ?"}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "source_lang": {
   "type": "string",
   "description": "Default english"
  },
  "target_lang": {
   "type": "string",
   "description": "Language name or code, e.g. french or fr"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "m2m100-1.2b",
  "plain": "Où se trouve la gare ?",
  "source_lang": "english",
  "target_lang": "french",
  "translated_text": "Où se trouve la gare ?"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-toolbox-text-translation-534ad943/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-toolbox.zafermemon87.workers.dev](https://www.zero.xyz/host/agent-toolbox.zafermemon87.workers.dev/llms.txt)
