Docs/Text Utils/GET /v1/case-tools

GET /v1/case-toolsTransform text case (sentence, title, invert, alternating)

Text Utils lf-text-utils

Changes text between styles such as sentence case, title case, reversed case and alternating case. Transform text case (sentence, title, invert, alternating)

Query Parameters

ParameterTypeRequiredDescription
textstringYesText to convert
modestringNosentence, title, invert, or alternating

Response Schema

input (string): Original text
output (string): Converted text
mode (string): Mode applied

cURL Example

curl 'https://lf-text-utils.laminarforge.dev/v1/case-tools?text=<text>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-text-utils.laminarforge.dev/v1/case-tools'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'text': '<text>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())