{"uid":"cap_9nLIjLiWGx5T7hTx8vV6u","slug":"pennyrail-text-normalize-whitespace-ef6d581d","name":"PennyRail Text Normalize Whitespace","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.normalize-whitespace--extra-spaces","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wHxRUj-oJ_NeNRJEIHr4y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes whitespace in a text string by removing or collapsing extra spaces","exampleAgentPrompt":"Can you clean up this text for me — it has a bunch of extra spaces and weird gaps between words: 'Hello   world,   this  is   a   test.'","exampleUseCases":[{"title":"Clean user-submitted form text","prompt":"A user just submitted a contact form and the message has loads of extra spaces between words — can you normalize all the whitespace so it reads cleanly? Here's the text: 'Dear   team,   I   wanted   to   reach  out   about   your   product.'"},{"title":"Preprocess text before NLP pipeline","prompt":"Before I run this paragraph through my sentiment model, can you strip out all the extra spaces so it's consistently formatted? The input is: 'The  product   was   great  but   shipping   was   slow.'"},{"title":"Fix copy-pasted text spacing","prompt":"I copy-pasted some content from a PDF and it came out with double and triple spaces everywhere — can you normalize the whitespace so it looks like normal text? Here it is: 'Annual   Report  2024   — Financial   Overview'"}],"resultDescription":"A JSON object containing the whitespace-normalized version of the input string, with consecutive spaces collapsed and leading/trailing whitespace removed.","failureModes":["Missing 'input' field returns a validation error","Empty string input may return an empty string or error","Very long strings may exceed size limits","Non-string input types may cause a type error"],"whenToPreferThis":"Use this endpoint when you need a simple, lightweight, pay-per-call text whitespace normalization without setting up a local library or NLP pipeline. Ideal for agent workflows that process untrusted or user-submitted text in small volumes where spinning up a full text-processing service is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:09:38.142Z","isFirstParty":false}