# Language Detector API

> Language Detector API is a paid API for AI agents from language-detector.api.klymax402.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Detects the language of input text, returning confidence scores and script identification

## Facts

- Endpoint: GET https://language-detector.api.klymax402.com/api/detect
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/language-detector-api-klymax402-com-c1091795
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7TFR6IVg6U8Gbm76wU1Df

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 language-detector-api-klymax402-com-c1091795
```

Example prompt: What language is this text written in, and how confident are you? Here's the text: 'Bonjour, comment allez-vous aujourd'hui? J'espère que vous passez une bonne journée.'

## When to prefer this

Use this endpoint when you need to programmatically identify the language of an arbitrary text string along with a confidence score and script type — ideal for routing multilingual user input, filtering content by language, or pre-processing text before translation or NLP pipelines

## Known failure modes

- Text shorter than 10 characters may produce inaccurate or low-confidence results
- Ambiguous or mixed-language text may yield low confidence scores
- Very short or numeric-only inputs may fail to identify a language
- Unsupported or rare languages may return generic or incorrect results
- Invalid or missing 'text' parameter returns an error

## How this service works

Detect the language of input text with confidence scores and script identification

## Output

Returns the detected language (name and/or ISO code), a confidence score indicating how certain the detection is, and script identification (e.g. Latin, Cyrillic, Arabic) for the input text

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to detect language for (min 10 characters for accuracy)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/language-detector-api-klymax402-com-c1091795/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from language-detector.api.klymax402.com](https://www.zero.xyz/host/language-detector.api.klymax402.com/llms.txt)
