# Language and Script Detection

> Language and Script Detection is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-03).

Detects the language and writing script of an input text, returning language identification results.

## Facts

- Endpoint: POST https://twin.unykorn.org/ai/language-detect?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/language-and-script-detection-74f7c7ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2a_UdZZhn8wZfAK1RywkE

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-and-script-detection-74f7c7ff -d '<json body>'
```

Example prompt: What language and script is this text written in: 'Привет, как дела?'

## When to prefer this

Choose this endpoint when you need lightweight, fast language and script identification from raw text, especially in agent pipelines that need to route, filter, or pre-process multilingual content before translation or localization steps. It is priced at $0.002 USDC per call, making it cost-effective for moderate-frequency use. Prefer it over a full NLP pipeline when you only need language/script metadata, not full linguistic analysis.

## Known failure modes

- Empty or missing text input returns an error
- Very short text (single character or word) may yield low-confidence or ambiguous results
- Mixed-language text may return only the dominant language
- Rare or under-resourced languages may not be identified accurately
- Malformed request body without the required params.text field returns a validation error

## How this service works

Detect the language and script of a text — Genesis402 / UnyKorn Operator Network

## Output

Returns the detected language (e.g. ISO language code or language name) and the writing script (e.g. Latin, Cyrillic, Arabic, Devanagari) of the provided text, likely with a confidence score or probability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "text": {
     "type": "string",
     "description": "required"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "language-detect",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.002,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/language-and-script-detection-74f7c7ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
