{"uid":"cap_B-Vvfp-o6NOsUE8felNz0","slug":"delx-normalize-whitespace-5ad6de9b","name":"Delx Normalize Whitespace","description":"Normalize whitespace in text for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.delx.ai/api/v1/x402/normalize-whitespace?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"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_dOtUlISwswhZtplFTKy2s","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 given text string, collapsing or standardizing spaces, tabs, and newlines for $0.001 USDC per call.","exampleAgentPrompt":"Can you normalize the whitespace in this text for me: 'Hello   world,\\t this  is  a    test   string with  irregular   spacing'?","exampleUseCases":[{"title":"Clean scraped web text before indexing","prompt":"I scraped some HTML content and it has tons of irregular spacing and tab characters everywhere — can you normalize all the whitespace so it's clean before I store it?"},{"title":"Preprocess user input for NLP pipeline","prompt":"Before I run sentiment analysis on this user comment, can you clean up the whitespace? It has a bunch of extra spaces and newlines: 'The product   was   great   but  shipping   took   forever...'"},{"title":"Standardize text before embedding generation","prompt":"I need to normalize the whitespace in this paragraph before generating embeddings from it — the text came from a PDF and has all sorts of weird spacing artifacts."}],"resultDescription":"Returns the input text with whitespace normalized — multiple consecutive spaces, tabs, and newlines collapsed into single spaces, and leading/trailing whitespace trimmed, yielding a clean, consistently spaced string.","failureModes":["Empty or missing text input returns an error","Extremely long text strings may be rejected or truncated","Payment failure (insufficient USDC balance) blocks the request","Malformed request body returns a 400 error","Network timeout for very large payloads"],"whenToPreferThis":"Choose this endpoint when you need a simple, low-cost ($0.001 USDC) text whitespace normalization step, especially in agent pipelines where clean text is required before downstream operations like embedding, NLP, or storage. Ideal for preprocessing scraped, PDF-extracted, or user-submitted text with irregular spacing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:49:04.300Z","isFirstParty":false,"canonicalSlug":"delx-normalize-whitespace-5ad6de9b"}