Text Management

Expand content

Overview

Adapts the length of a text while preserving its original meaning and enriching it with details, examples and context.


Endpoint

  • POST /api/v1/text/expand

Use cases

  • Create extended versions from concise texts
  • Lengthen content that is too short
  • Adapt texts to different spaces, channels or formats
  • Generate variants of the same content at different lengths
  • Integrate text expansion 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/expand' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"content": "Ciao, domani sei libero alle 18?"
}
Output
{
"content": "Ciao, domani sei libero alle 18? Se sì, potremmo incontrarci al bar vicino al centro e prendere un caffè. Fammi sapere!",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 435,
"completion_tokens": 422,
"total_tokens": 857
},
"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.