Translates content into a target language, with automatic detection of the source language.
It is useful for multilingual platforms, international applications and localization workflows that require consistent content in multiple languages.
Overview
Endpoint
- POST /api/v1/text/translate
Use cases
- Translate application content
- Localize messages, notifications and communications
- Support multilingual SaaS platforms
- Manage user-generated content in different languages
- Integrate automatic translation into application flows via API
Technical specifications
- INPUT: content | language
- OUTPUT: content
- 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/translate' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"content": "Ciao, domani sei libero alle 18? avrei bisogno di chiamarti per discutere alcuni dettagli riferiti al progetto AI.",
"language": "en"
}'
Output
{
"content": "Hi, are you free tomorrow at 6 pm? I would need to call you to discuss some details regarding the AI project.",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 243,
"completion_tokens": 275,
"total_tokens": 518
},
"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.