# MoneyTools Language Detection

> MoneyTools Language Detection is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Detects the language of a text string across 82 languages with ISO 639-3 and BCP 47 codes, distinguishing Traditional vs Simplified Chinese

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/lang-detect?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-language-detection-515fc20d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QIPUQfPjR3ZlWL8PZYD2a

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 moneytools-language-detection-515fc20d
```

Example prompt: What language is this text written in: '이것은 한국어로 작성된 문장입니다'? Also tell me if it uses a specific script variant.

## When to prefer this

Choose this endpoint when you need fast, inexpensive per-call language detection across a broad set of 82 languages with ISO 639-3/BCP 47 output and explicit Traditional vs Simplified Chinese discrimination. It is ideal for pay-per-use agent workflows via x402/USDC micropayments on Base with no subscription required, and when you need reliable no-charge-on-failure guarantees.

## Known failure modes

- Text shorter than recommended 20 characters may yield low-confidence or incorrect detection
- Unsupported or mixed-language text may return an ambiguous result
- Free tier limit (10/day) exceeded without payment credentials returns HTTP 402 with PAYMENT-REQUIRED
- Invalid or missing 'text' query parameter returns an error response
- Network or service unavailability returns a 5xx error; no charge is applied on failure

## How this service works

Language detection: Detect the language of a text (82 languages, ISO 639-3 + BCP 47), including Traditional vs Simplified Chinese. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing the detected language code (ISO 639-3 and BCP 47), confidence indicators, and for Chinese text the script variant (Traditional vs Simplified). The response also includes payment metadata fields: whether a charge was applied, the network, amount in USD, and transaction hash (null if free tier).

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "examples": [
        "這是一個測試句子，用來偵測語言。"
       ],
       "description": "text (20+ chars best)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-language-detection-515fc20d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
