code402 / tools / context-distill

Context distill — pay-per-call API

$0.000999 per call · 20 free calls/day · no signup · pay with card credits or a signed USDC voucher (x402)

Deterministic text digest: word count, top-5 most frequent meaningful words (stop words excluded), first sentence, and a keccak-256 content hash. Pure function — no external calls, no ML.

Honest scope: Pure deterministic function of the input text: no ML, no external calls, reproducible byte-for-byte.

Try it (first 20 calls/day free)

curl -X POST https://code402.dev/v1/tools/context-distill/call \
  -H "content-type: application/json" \
  -d '{"text":"The landlord demanded the deposit before the viewing. The deposit was paid before any viewing of the property."}'

No key needed for the free tier. When the free quota is used up, the API replies HTTP 402 with the exact price — agents sign the x402 voucher and retry; humans buy card credits. Every paid response carries a signed receipt you can verify offline.

Run it in the playground (free)Pay by card — credits, no crypto

Input parameters

FieldTypeMeaning
text (required)stringArbitrary text to distill (any length; hashing is over the exact input).

Response

Top-level fields: tool, valid, word_count, meaningful_word_count, top_words, first_sentence, content_hash, scope. Paid responses also carry a signed XDR-1 receipt.

All code402 tools

iban-checklei-checkvat-mod97-checkcompany-number-formatswift-bic-checkaba-routing-checkein-format-checkifsc-checkabn-checkgstin-checkisin-checksedol-checkisbn-checkean13-checkluhn-checke164-checkpre-disbursement-guardvendor-onboarding-packrent-deposit-guardrental-listing-riskrental-verdictsettlement-history-checkbalance-checkerc20-balancetx-activityblock-infobatch-validatecrypto-ticker

Machine-readable catalog: llms-full.txt · MCP manifest · OpenAPI. Operated by JUANA LIMITED (UK Co. No. 14043409). Non-custodial: USDC settles payer→seller directly on Base.