# DevX Voice Machine Translation

> DevX Voice Machine Translation is a paid API for AI agents from voice.madebydevx.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Translates text (up to 5,000 characters) between 100 languages using the M2M100 1.2B model, billed per 1,000 characters via USDC on Base.

## Facts

- Endpoint: POST https://voice.madebydevx.com/v1/translate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/devx-voice-machine-translation-6fa22c09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s3RBmp_Tvr8Z27r54M0BD

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 devx-voice-machine-translation-6fa22c09 -d '<json body>'
```

Example prompt: Translate this text into German for me: 'Good morning, how are you today?' — auto-detect the source language.

## When to prefer this

Choose this endpoint when you need pay-per-use machine translation across up to 100 languages with no subscription, billed only for successful translations at $0.001 USDC per 1,000 characters. It is ideal for AI agents that need on-demand, cost-accountable translation with auto language detection, idempotency support, and compatibility with both DevX-native and LibreTranslate-style ({q, source, target}) request formats.

## Known failure modes

- Text exceeds 5,000 character limit — request rejected without charge
- Invalid or unsupported target_lang enum value — validation error returned
- Source text is empty or missing — request rejected
- Network or model inference failure — not charged, error response returned
- Invalid idempotency key format — request rejected with schema validation error

## How this service works

Machine translation for agents between 100 languages: send text (up to 5,000 chars), target_lang and optional source_lang (auto-detect by default) and get the translation. $0.001 USDC per started 1,000 characters on Base; failures are not charged. LibreTranslate/dTelecom-style {q, source, target} also accepted at /v1/translation. M2M100 1.2B. By DevX.

## Output

Returns a JSON object containing the translated text, the source and target language codes, character count, number of billed units, the model used (m2m100-1.2b), an operation ID, and payment confirmation details including transaction hash and amount paid in USDC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string"
  },
  "text": {
   "type": "string",
   "maxLength": 5000,
   "minLength": 1,
   "description": "Text to translate (alias q)"
  },
  "source": {
   "type": "string"
  },
  "target": {
   "type": "string"
  },
  "requestKey": {
   "type": "string",
   "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$",
   "maxLength": 128,
   "minLength": 8,
   "description": "Optional idempotency key: the same payer + requestKey + input within 7 days returns the stored result without a second charge."
  },
  "source_lang": {
   "type": "string",
   "description": "Source language ISO 639-1 or \"auto\" (default; alias source)"
  },
  "target_lang": {
   "enum": [
    "af",
    "am",
    "ar",
    "ast",
    "az",
    "ba",
    "be",
    "bg",
    "bn",
    "br",
    "bs",
    "ca",
    "ceb",
    "cs",
    "cy",
    "da",
    "de",
    "el",
    "en",
    "es",
    "et",
    "fa",
    "ff",
    "fi",
    "fr",
    "fy",
    "ga",
    "gd",
    "gl",
    "gu",
    "ha",
    "he",
    "hi",
    "hr",
    "ht",
    "hu",
    "hy",
    "id",
    "ig",
    "ilo",
    "is",
    "it",
    "ja",
    "jv",
    "ka",
    "kk",
    "km",
    "kn",
    "ko",
    "lb",
    "lg",
    "ln",
    "lo",
    "lt",
    "lv",
    "mg",
    "mk",
    "ml",
    "mn",
    "mr",
    "ms",
    "my",
    "ne",
    "nl",
    "no",
    "ns",
    "oc",
    "or",
    "pa",
    "pl",
    "ps",
    "pt",
    "ro",
    "ru",
    "sd",
    "si",
    "sk",
    "sl",
    "so",
    "sq",
    "sr",
    "ss",
    "su",
    "sv",
    "sw",
    "ta",
    "th",
    "tl",
    "tn",
    "tr",
    "uk",
    "ur",
    "uz",
    "vi",
    "wo",
    "xh",
    "yi",
    "yo",
    "zh",
    "zu"
   ],
   "type": "string",
   "description": "Target language, ISO 639-1 (alias target)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "model": "m2m100-1.2b",
   "characters": 26,
   "source_lang": "en",
   "target_lang": "de",
   "billed_units": 1,
   "translated_text": "Guten Morgen, wie geht es Ihnen?",
   "detected_language": null
  },
  "status": "paid",
  "payment": {
   "status": "paid",
   "network": "eip155:8453",
   "tx_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
   "amount_raw": "1000"
  },
  "operation_id": "9b3e7a12-4c5d-4e6f-8a9b-0c1d2e3f4a5b"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/devx-voice-machine-translation-6fa22c09/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from voice.madebydevx.com](https://www.zero.xyz/host/voice.madebydevx.com/llms.txt)
