Detect language
detect_languageDetect the language of up to 20,000 characters. Uses a local Unicode-script + stopword/diacritic heuristic; no upstream call. Returns a language code, confidence, reliability flag and alternatives. Billing: free by default (COST_DETECT_LANGUAGE=0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to identify. Up to 20,000 characters; longer samples improve accuracy. | |
| idempotency_key | No | Optional per-job key; relevant when COST_DETECT_LANGUAGE is above 0 (gateway billing). |