Detect the language of text with confidence scores. Supports batch detection for multiple texts.
curl --request POST \
--url https://api.case.dev/translate/v1/detect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "Bonjour, comment allez-vous?"
}
'{
"data": {
"detections": [
[
{
"language": "fr",
"confidence": 0.98,
"isReliable": true
}
]
]
}
}Was this page helpful?
curl --request POST \
--url https://api.case.dev/translate/v1/detect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "Bonjour, comment allez-vous?"
}
'{
"data": {
"detections": [
[
{
"language": "fr",
"confidence": 0.98,
"isReliable": true
}
]
]
}
}