AI Text Cleaner API
Remove hidden characters, smart punctuation and other artefacts from AI-generated text.
POST /api/v1/tools/llm-text-cleanerMCP llm_text_cleanerText & WritingClean text from ChatGPT, Claude or Gemini: strip zero-width and invisible characters, fix odd spaces, straighten quotes, swap em dashes and remove markdown symbols.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- The text to clean. (string, required)
curl https://pithlab.com/api/v1/tools/llm-text-cleaner \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"Here’s the plan — simple, clear."}'Example response
{
"ok": true,
"result": {
"output": "Here's the plan, simple, clear.",
"changes": 3,
"counts": {
"invisible": 1,
"spaces": 0,
"quotes": 1,
"dashes": 1,
"ellipsis": 0,
"emphasis": 0,
"headings": 0,
"bullets": 0,
"codeFences": 0,
"trailingWhitespace": 0
}
}
}