Catalog/text-title-case

Text

AP/Chicago title case API

Applies AP/Chicago title-case rules, capitalizing significant words while keeping articles, conjunctions and short prepositions lowercase (except first/last). Answers 'how do I title-case a headline correctly?', 'which small words stay lowercase?'.

Price$0.02per request
MethodPOST
Route/v1/text/title-case
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
texttitle-caseheadlineap-stylechicagocapitalizeformattingcase
API URLhttps://x402.hexl.dev/v1/text/title-case
Integration docs
Example request
{
  "text": "the lord of the rings"
}
Example response
{
  "titleCased": "The Lord of the Rings",
  "style": "ap"
}
Input schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "examples": [
        "the lord of the rings"
      ]
    },
    "style": {
      "type": "string",
      "enum": [
        "ap",
        "chicago"
      ],
      "examples": [
        "ap"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}