Identify the language of text with confidence scores. Useful for routing multilingual content or determining if translation is needed.Documentation Index
Fetch the complete documentation index at: https://docs.case.dev/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Response
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string or string[] | Yes | Text to detect language for. Can be a single string or array for batch detection. |
Response
The response contains an array of detections. Each detection includes:| Field | Type | Description |
|---|---|---|
language | string | Detected language code (ISO 639-1) |
confidence | number | Confidence score from 0 to 1 |
isReliable | boolean | Whether the detection is considered reliable |
Batch detection
Detect languages for multiple texts in a single request:Examples
Route content by language
Filter by language confidence
Identify mixed-language documents
Pricing: $0.05 per 1,000 characters, same as translation.

