Skip to main content
POST
/
ai-agent
/
transform-text
Transform text
curl --request POST \
  --url https://app.myhero.so/ai-agent/transform-text \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>"
}
'
{
  "text": "<string>",
  "usage": {
    "promptTokens": 1,
    "completionTokens": 1,
    "totalTokens": 1
  }
}

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
text
string
required
Minimum string length: 1
operation
enum<string>
required
Available options:
rephrase,
restructure,
keypoints,
fixGrammar,
simplify,
professionalize,
bloggify,
emojify,
translate,
extend,
shorten,
complete,
summarize,
tldr
language
enum<string>
Available options:
FR,
EN

Response

200 response

text
string
required
usage
object