utilpeek: detect the language of a text
detect_languageIdentify the language of a text and return ISO 639-1/639-3 codes, name, confidence, and alternatives; flag short or low-confidence text as unreliable.
Instructions
utilpeek: Detect the language of a text. To translate use translate_text. Returns the most likely language (ISO 639-1 and 639-3 code, name, confidence) and 3 alternatives, from an offline ensemble of lingua (Apache-2.0) and langid.py (BSD-2-Clause) over 75 languages; reliable is true only with at least 20 letters and confidence 0.6 or more. Short text is often flagged unreliable; text with no letters is a 422 no_text (not charged). Typically under 0.1 s (a few seconds on the worker's first call). Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/language-detection-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text (at most 20,000 characters). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| source | No | ||
| letters | No | ||
| language | No | ||
| reliable | No | ||
| alternatives | No | ||
| chars_analyzed | No | ||
| languages_supported | No |