Reformulates a text to make the tone more formal and professional, so it is better suited to the target audience.
Overview
Endpoint
- POST /api/v1/text/formalize
Use cases
- Adapt messages to audiences and channels that require a formal tone
- Turn technical texts into communications better suited to a senior audience.
- Align tone across business channels
- Prepare content for customer care and official communications.
- Integrate tone formalization into application flows via API
Technical specifications
- INPUT: content
- 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/formalize' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"content": "Ciao, domani sei libero alle 18?"
}'
Output
{
"content": "Salve, domani è disponibile alle ore 18?",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 478,
"completion_tokens": 228,
"total_tokens": 706
},
"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.