Text Management

Correct and improve drafts

Overview

Improves a text by working on grammar, spelling, clarity and stylistic consistency.
It is useful for turning rough drafts into cleaner, more readable content suited to the publication or delivery context.


Endpoint

  • POST /api/v1/text/refine

Use cases

  • Review emails and business communications
  • Improve texts entered by users
  • Correct editorial content
  • Standardize the style of business texts
  • Integrate text review into application flows via API

Technical specifications

  • INPUT: prompt | 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/refine' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"prompt": "Aggiungi qualche dettaglio",
"content": "Ciao, sei libero domani alle 18?"
}'
Output
{
"content": "Ciao, sei libero domani alle 18? Vorrei incontrarti al bar vicino al parco per parlare del progetto.",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 458,
"completion_tokens": 206,
"total_tokens": 664
},
"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.