Text Management

Text summarization

Overview

Turns long texts into shorter versions, keeping the key information and reducing the time needed to read and understand the content.
It is useful for making documents, conversations, reports or editorial content easier to consult.


Endpoint

  • POST /api/v1/text/summarize

Use cases

  • Summarize customer care tickets and conversations
  • Summarize internal documents
  • Generate abstracts for articles, reports or editorial content
  • Extract the key points from long texts
  • Integrate automatic summarization 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/summarize' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"content": "Ciao, ci troviamo domani a cena? Vorrei proporre di incontrarci alle [orario] presso [luogo], dove potremo gustare un menù speciale con [piatto principale] e un dessert a base di [dessert]. Se hai preferenze alimentari o allergie, fammi sapere così posso informare il ristorante. Ti prego di confermare la tua presenza entro [data di conferma] rispondendo a questa email o inviandomi un messaggio. Non vedo l’ora di passare una serata piacevole insieme!",
"language": "it"
}'
Output
{
"content": "Invito a cena domani alle **[orario]** a **[luogo]** con menù speciale; conferma entro **[data di conferma]**.",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 546,
"completion_tokens": 277,
"total_tokens": 823
},
"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.