Text Management

Generate text

Overview

Creates structured text from a prompt or input content.
It is useful for producing drafts, descriptions, application messages, editorial content or texts to integrate into automated workflows.


Endpoint

  • POST /api/v1/text/generate

Use cases

  • Generate product descriptions for e-commerce and catalogues
  • Create texts for notifications, interfaces and automated messages
  • Produce drafts for editorial or marketing content
  • Generate dynamic content within applications
  • Integrate text generation into application flows via API

Technical specifications

  • INPUT: prompt
  • 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/generate' \
--header 'Content-Type: application/json' \
--header 'ai-platform-key: ••••••' \
--header 'conversation-id: ••••••' \
--header 'Authorization: ••••••' \
--data '{
"prompt": "Organizza una call con wolmer"
}'
Output
{
"content": "Ho organizzato una call con Wolmer.",
"ai_platform_usage": {
"service": "text-management",
"namespace": "ai-platform",
"prompt_tokens": 494,
"completion_tokens": 178,
"total_tokens": 672
},
"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.