# Translate Text (M2M100, 100 Languages)

> Translate Text (M2M100, 100 Languages) is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-19).

Translates text between ~100 languages using Meta's M2M100 1.2B model, with automatic source language detection and sentence-level splitting for long texts.

## Facts

- Endpoint: GET https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/translate?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/translate-text-m2m100-100-languages-f49d4171
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n5K93BnAAZ00mL8CZw8xi

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 translate-text-m2m100-100-languages-f49d4171
```

Example prompt: Translate this text to French using the M2M100 model: 'The weather is beautiful today and I hope it stays this way all weekend.'

## When to prefer this

Choose this endpoint when you need fast, no-account multilingual text translation across a wide range of ~100 languages, especially for short-to-medium texts up to 2000 characters. Ideal for agents that need quick localization without API key setup, with automatic source language detection and pay-per-use pricing at $0.005 per call.

## Known failure modes

- Text exceeds 2000 character limit — request rejected or truncated
- Unsupported or misspelled language code/name — translation fails or returns error
- Source language detection fails on very short or ambiguous input
- Service unavailable or payment not processed — no charge applied if translation not delivered

## How this service works

Translates text between about 100 languages with Meta M2M100 1.2B: pass the text and the target language (ISO code like es, fr, de, zh, ja, or its English name); the source language is detected if omitted. Long texts are split by sentence, so paragraphs keep their order and line breaks. Up to 2000 characters per call. Pairs with speech-to-text: translate a transcript, then read it aloud. You are only charged if the translation is delivered. No API key, no account.

## Output

Returns the translated text in the target language, preserving paragraph structure and line breaks. Long inputs are split by sentence and reassembled in order.

## 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",
       "description": "Target language: ISO code (es, fr, de, zh, ja...) or English name (spanish)."
      },
      "from": {
       "type": "string",
       "description": "Optional source language; detected when omitted."
      },
      "text": {
       "type": "string",
       "description": "What to translate, up to 2000 characters."
      }
     }
    }
   },
   "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/translate-text-m2m100-100-languages-f49d4171/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
