{"uid":"cap_lpxy1JzPFIa2VX31WyMOF","slug":"delx-commerce-levenshtein-distance-api-76a71c48","name":"Delx Commerce — Levenshtein Distance API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/levenshtein?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_KXMsbFWKH3bL-IwQN5ck7","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":"Computes the Levenshtein (edit) distance between two strings, paid per-result via USDC on Base or Solana using the x402 protocol.","exampleAgentPrompt":"What's the Levenshtein distance between 'kitten' and 'sitting'? Pay for the result with USDC.","exampleUseCases":[{"title":"Fuzzy product name deduplication","prompt":"I have two product names — 'Apple iPhone 14 Pro' and 'Apple iPhone14Pro' — can you compute the Levenshtein distance so I can decide if they're the same item?"},{"title":"Spell-check candidate scoring","prompt":"I'm building a spell checker. Can you find the edit distance between the misspelled word 'recieve' and the correct word 'receive' so I can rank correction candidates?"},{"title":"User input fuzzy matching","prompt":"A user typed 'Jonh Smith' in a form — how many character edits away is that from 'John Smith'? I want to decide whether to auto-correct it."}],"resultDescription":"A JSON object containing the computed Levenshtein edit distance (integer) between the two input strings — representing the minimum number of single-character insertions, deletions, or substitutions required to transform one string into the other.","failureModes":["Missing 'input' or 'output' fields returns a 400 validation error","Non-string body values may cause computation errors or unexpected results","Payment failure via x402 (insufficient USDC balance or wrong chain) prevents execution","Extremely long strings may time out or exceed processing limits","Malformed JSON body returns a parsing error"],"whenToPreferThis":"Choose this endpoint when you need a simple, verifiable, pay-per-call Levenshtein distance computation without signing up for a service or managing API keys — ideal for AI agents that need on-demand string similarity scoring with transparent USDC micropayment pricing via x402 on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:06.180Z","isFirstParty":false,"canonicalSlug":"delx-commerce-levenshtein-distance-api-76a71c48"}