Text Management

Detect the language

Overview

Automatically identifies the language of a content item.
It is useful as a preliminary step for translation, classification, content routing or multilingual workflow management.


Endpoint

  • POST /api/v1/text/language/detect

Use cases

  • Automatically route multilingual tickets
  • Detect the language before translation
  • Manage user-generated content in different languages
  • Support international workflows
  • Integrate language detection into application flows via API

Technical specifications

  • INPUT: content
  • OUTPUT: language
  • ACCESS: API REST
  • CHANNELS: Cloud Management Platform, API Platform

Implementation examples

Input
curl --location 'https://api.ai.devops.aruba.it/api/services/textmanagement/v1/text/language/detect' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"content": "Ciao, domani sei libero alle 18?"
}'
Output
{
"language": "it",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 196,
"completion_tokens": 45,
"total_tokens": 241
},
"ai_generated": true
}

Cost

0,0318 € + VAT / 1M token (input)
0,1533 € + VAT / 1M token (output)

NOTE

Submitted data is not used to train the models.