Text
Smart quotes API
Converts straight quotes, apostrophes, double dashes and ellipses to typographic equivalents (curly quotes, em dash, …), or reverses smart punctuation back to ASCII. Answers 'how do I add typographic quotes?', 'how do I convert -- to an em dash?'.
Price$0.02per request
MethodPOST
Route/v1/text/smart-quotes
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
textsmart-quotestypographycurly-quotesem-dashpunctuationformattingascii
API URL
Integration docshttps://x402.hexl.dev/v1/text/smart-quotesExample request
{
"text": "\"hello\" it's a test -- really..."
}Example response
{
"result": "“hello” it’s a test — really…",
"mode": "to-smart"
}Input schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"examples": [
"\"hello\" it's a test -- really..."
]
},
"reverse": {
"type": "boolean"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}