Skip to main content

AI text cleaner API

Paste text from ChatGPT, Claude or any AI writer. The cleaner swaps em dashes for commas, straightens quotes, removes zero-width characters and stray markdown, and points out phrases like delve so you can rewrite them yourself.

  • Endpoint: POST https://postboost.co/app/api/tools/ai-text-cleaner (operationId cleanText)
  • Web tool: postboost.co/tools/ai-text-cleaner
  • Token: optional (limits)
  • MCP: tool clean-text on https://postboost.co/mcp/tools

Request​

FieldTypeDefaultDescription
textstring
dashesstring: comma, hyphen, spaced, keep"comma"What replaces an em or en dash between words: ", " (comma), "-" (hyphen), " - " (spaced) or nothing (keep). Number ranges like 2020–2024 always get a hyphen.
quotesbooleantrueCurly quotes and apostrophes to straight ones.
invisiblebooleantrueRemove zero-width characters and soft hyphens; turn non-breaking and thin spaces into normal spaces.
spacesbooleantrueCollapse double spaces between words and remove spaces at line ends.
ellipsisbooleantrueThe ellipsis character to three dots.
markdownbooleantrueStrip bold, bold, italic and italic markers, keeping the words.
flag_phrasesbooleantrueList common AI phrases (e.g. "delve") with their offsets. They are never changed.

Call it​

curl -X POST https://postboost.co/app/api/tools/ai-text-cleaner \
-H 'Content-Type: application/json' \
-d '{"text":"Fast — reliable… and “simple”."}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"text": "Fast, reliable... and \"simple\".",
"changes": [
{
"type": "dashes",
"count": 1
},
{
"type": "quotes",
"count": 2
},
{
"type": "ellipsis",
"count": 1
}
],
"flags": []
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Clean AI-written text: dashes, quotes, invisible characters, markdown with the PostBoost clean-text tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.