# Saylor Innovations Language Detection

> Saylor Innovations Language Detection is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Detects the language of input text across 15 Latin-script languages and identifies the script (Cyrillic, Arabic, Hebrew, Indic, Thai, Greek, Korean, Japanese, Chinese) with a confidence score

## Facts

- Endpoint: GET https://saylorinnovations.com/api/text/language-detect?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-language-detection-943b969e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dhrNhsSJ8E1lWMZoJFRGK

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 saylor-innovations-language-detection-943b969e
```

Example prompt: What language is this text written in, and how confident are you? Here's the snippet: 'Bonjour, comment puis-je vous aider aujourd'hui?'

## When to prefer this

Choose this endpoint when you need lightweight, fast language identification with an explicit confidence score and reliability flag, especially for Latin-script languages or script-level detection (Cyrillic, Arabic, Hebrew, Indic, Thai, Greek, Korean, Japanese, Chinese). It is well-suited for pre-processing pipelines that route or filter multilingual text before translation, moderation, or further analysis. Prefer it over full translation APIs when you only need to know the language, not convert it.

## Known failure modes

- Text shorter than 8 characters or longer than 3000 characters will be rejected
- Very short inputs may return reliable=false with low confidence
- Mixed-language text may produce ambiguous or low-confidence results
- Languages outside the 15 supported Latin-script languages may not be identified correctly
- Closely related languages (e.g. Spanish vs Portuguese) may yield low confidence scores

## How this service works

Detect the language of a text across 15 Latin-script languages and the script of Cyrillic, Arabic, Hebrew, Indic, Thai, Greek, Korean, Japanese and Chinese text

## Output

Returns the detected language name (e.g. 'French'), its language code (e.g. 'fr'), a confidence score from 0 to 1, the detected script (e.g. 'Latin', 'Cyrillic'), a reliability boolean indicating if the sample was long enough for a dependable result, optional candidate language scores, character and letter counts, and contextual notes or method information.

## 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",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to identify, 8-3000 characters"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "language",
      "language_code",
      "confidence"
     ],
     "properties": {
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "method": {
       "type": "string",
       "description": "Method used"
      },
      "scores": {
       "type": "array",
       "description": "Candidate languages with share of matching words"
      },
      "script": {
       "type": "string",
       "description": "Writing system detected"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "letters": {
       "type": [
        "number",
        "null"
       ],
       "description": "Letters in the input"
      },
      "language": {
       "type": "string",
       "description": "Language"
      },
      "reliable": {
       "type": "boolean",
       "description": "True when there was enough text for a dependable result"
      },
      "characters": {
       "type": [
        "number",
        "null"
       ],
       "description": "Characters in the input"
      },
      "confidence": {
       "type": "number",
       "description": "Confidence of the top language from 0 to 1"
      },
      "language_code": {
       "type": "string",
       "description": "Language code"
      },
      "language_group": {
       "type": [
        "string",
        "null"
       ],
       "description": "Language group"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-language-detection-943b969e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
