{"uid":"cap_BZ-W3C4hWM0ianr4dDHA3","slug":"finmath-pii-redact-4dafce25","name":"finmath PII Redact","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/pii_redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"text"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"text":"John Smith earned $50,000 in Q1 2024 and has a credit card ending in 4532. His phone is 555-0123."},"response":{"meta":{"tool":"pii_redact","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"counts":{},"redacted":"John Smith earned $50,000 in Q1 2024 and has a credit card ending in 4532. His phone is 555-0123."}}},"exampleRequest":{"text":"John Smith earned $50,000 in Q1 2024 and has a credit card ending in 4532. His phone is 555-0123."},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LzA730rfVb63obIRnZfS3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts personally identifiable information (PII) from text input, returning a sanitized version with sensitive data removed or masked.","exampleAgentPrompt":"Can you redact any PII from this text before I store it: 'John Smith called from 555-867-5309, his SSN is 123-45-6789 and he lives at 42 Maple Street, Boston MA'?","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the sanitized text with PII replaced or masked, and a 'meta' field with processing metadata such as what was redacted.","failureModes":["Missing 'text' field in request body returns a validation error","Empty string input may return unchanged or minimal result","Very long text inputs may hit worker payload limits","Network timeout if Cloudflare Worker is overloaded","Payment failure (402) if USDC balance is insufficient for the $0.002 per-call charge"],"whenToPreferThis":"Use this endpoint when you need deterministic, server-side PII redaction before passing text to downstream systems, logging pipelines, or AI models — especially when you cannot trust LLM-based redaction for compliance purposes. It is priced per-call at $0.002 USDC and suited for automated agent workflows requiring reliable anonymization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:42:07.517Z","isFirstParty":false,"canonicalSlug":"finmath-pii-redact-4dafce25"}