# M2M100 Multilingual Text Translation

> M2M100 Multilingual Text Translation is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Translates up to 5,000 characters of text between 100 languages using the M2M100 model, with automatic source language detection.

## Facts

- Endpoint: GET https://onchaincheck.dev/ai/translate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/m2m100-multilingual-text-translation-6ee3403b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__nYKuvvh1xuG9lEF15uoY

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 m2m100-multilingual-text-translation-6ee3403b
```

Example prompt: Translate this text into Japanese — 'Our new product launches next week and we're excited to share it with you' — and auto-detect the source language.

## When to prefer this

Choose this endpoint when you need fast, affordable machine translation across a wide range of 100 languages with automatic source language detection, especially in agentic workflows where low per-call cost ($0.003 USDC) and simplicity matter. Prefer it over heavyweight NLP APIs when you only need translation without additional NLP features.

## Known failure modes

- Missing required 'text' or 'to' parameter returns an error
- Invalid or unsupported ISO 639-1 language code causes a failure response
- Text exceeding 5,000 characters is rejected
- Ambiguous or very short text may result in inaccurate auto-detection of source language
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Translate text between 100 languages (m2m100): up to 5,000 characters, target language as an ISO 639-1 code; the source language is detected when not given.

## Output

Returns the translated text in the specified target language, along with the detected or confirmed source language identifier. Output is plain translated content ready for direct use.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "pattern": "^[a-z]{2,3}$",
       "description": "Target language (fr, es, de, ja, zh...)"
      },
      "from": {
       "type": "string",
       "pattern": "^[a-z]{2,3}$",
       "description": "Source language; detected when omitted"
      },
      "text": {
       "type": "string",
       "pattern": "^[\\s\\S]+$",
       "maxLength": 5000,
       "description": "Text to translate"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/m2m100-multilingual-text-translation-6ee3403b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
