# text-language-detect

> text-language-detect is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Detects the language of a given text string, returning the identified language and a confidence score, covering 12 European languages plus Japanese, Chinese, Korean, Arabic, and Russian.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/language-text
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-language-detect-6f39c0c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qT4m8fJacOSN6h9TcKdHx

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 text-language-detect-6f39c0c5
```

Example prompt: What language is this text written in, and how confident are you? Here's the text: 'Les champs de lavande de Provence sont magnifiques en été.'

## When to prefer this

Choose this endpoint when you need fast, low-cost language identification with a confidence signal across a well-defined set of 17 languages (European + CJK + Arabic + Russian), especially to route text to the appropriate translation or NLP model. Prefer this over general-purpose NLP APIs when cost per call ($0.01) and breadth of script-level detection for non-Latin scripts (Arabic, Russian, CJK) are priorities.

## Known failure modes

- Very short text snippets may yield low confidence scores or incorrect detection
- Mixed-language text may produce ambiguous or incorrect results
- Languages outside the supported set (12 European + Japanese, Chinese, Korean, Arabic, Russian) will not be correctly identified
- Empty input string may return an error or null result
- Transliterated text or text in non-native scripts may reduce accuracy

## How this service works

Language detection for text you send: one of 12 European languages plus Japanese, Chinese, Korean, Arabic and Russian by script, with a confidence score. Route text to the right model or translator. $0.01 per call.

## Output

Returns the detected language name (e.g. 'French', 'Japanese', 'Arabic') and a confidence score indicating how certain the model is about the classification, enabling downstream routing or validation decisions.

## 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",
     "properties": {}
    }
   },
   "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/text-language-detect-6f39c0c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
