Language Detection
languageLanguage detection: identify which of 20 common languages (or "other") a text is written in, with a confidence score. Powered by Jev, with an automatic Groq-hosted LLM fallback if Jev is slow or unavailable - under 4.5s guaranteed. Try GET /language/sample.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "language"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to classify, up to 4000 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The best-fitting label. | |
| engine | Yes | Which engine answered: Jev (primary) or the Groq-hosted LLM fallback. | |
| probability | Yes | Confidence in `label`, 0 to 1. | |
| x402_receipt | No | Billing and provenance receipt for this call. | |
| alternate_label | No | The second-best label, if any. | |
| alternate_probability | No | Confidence in `alternate_label`, if known. |