# Inference402 Machine Translation

> Inference402 Machine Translation is a paid API for AI agents from inference402.worlddata402.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Translates text between languages using Meta's M2M100 model, with support for Egyptian Arabic and other languages, paid per-call via USDC on Base.

## Facts

- Endpoint: GET https://inference402.worlddata402.workers.dev/v1/translate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/inference402-machine-translation-e58d8596
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_exMDWehBF20s2IksErnzj

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 inference402-machine-translation-e58d8596
```

Example prompt: Translate this text from English to French using the Inference402 pay-per-call translator: 'The meeting has been moved to Thursday morning.'

## When to prefer this

Choose this endpoint when you need pay-as-you-go machine translation with no API key or account setup, particularly for agents that require occasional translation calls billed in USDC on Base. Well-suited for Egyptian Arabic and other languages supported by M2M100. Prefer this over subscription-based translation APIs when cost predictability at the per-call level is important, or when operating in a crypto-native payment context via x402.

## Known failure modes

- Unsupported language pair returns an error or empty translation
- Text exceeding 5000 characters is rejected
- Missing or invalid ISO 639-1 language code causes a bad request
- Payment failure (insufficient USDC balance) blocks the request with a 402 response
- Low-resource languages may produce lower-quality translations

## How this service works

Pay-per-call AI inference for agents: chat (Llama 3.3 70B / 3.1 8B), structured JSON, summarize, translate (incl. Egyptian Arabic), extract, classify, sentiment, keywords, rewrite, embeddings, moderation, vision and speech-to-text. USDC on Base mainnet over x402. No API key, no account.

## Output

Returns a JSON object containing the translated text string, the source language code used, the target language code, and the model identifier (e.g. @cf/meta/m2m100-1.2b). Example: {model: '@cf/meta/m2m100-1.2b', source: 'en', target: 'fr', translated_text: 'La réunion est déplacée à jeudi matin.'}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 5000
  },
  "source": {
   "type": "string",
   "default": "en",
   "description": "ISO 639-1 source language code"
  },
  "target": {
   "type": "string",
   "description": "ISO 639-1 target language code"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/meta/m2m100-1.2b",
  "source": "en",
  "target": "fr",
  "translated_text": "La réunion est déplacée à jeudi matin."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inference402-machine-translation-e58d8596/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from inference402.worlddata402.workers.dev](https://www.zero.xyz/host/inference402.worlddata402.workers.dev/llms.txt)
