{"uid":"cap_sx1x5TIj3HrqDUp1Dp09I","slug":"tanship-payai-console-text-similarity-api-d8076181","name":"Tanship PayAI Console — Text Similarity API","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/ai/similarity","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_35akcUkW2_b4Cojg07j_p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes semantic similarity scores between text inputs using payment-gated AI, requiring USDC microtransaction per call via x402 protocol on Base","exampleAgentPrompt":"Tell me how semantically similar these two sentences are: 'The quick brown fox jumps over the lazy dog' and 'A fast auburn fox leaps above a sleepy hound' — use Tanship's similarity endpoint and pay the microfee in USDC.","exampleUseCases":[{"title":"Duplicate product description detection","prompt":"Check if these two product descriptions mean essentially the same thing: 'Wireless noise-cancelling over-ear headphones with 30hr battery' vs 'Bluetooth headphones with active noise cancellation and long battery life' — give me a similarity score."},{"title":"FAQ answer relevance scoring","prompt":"Score how semantically similar this user question is to our stored FAQ entry: question is 'How do I cancel my subscription?' and the FAQ entry is 'What are the steps to terminate my account membership?'"},{"title":"Paraphrase detection for content moderation","prompt":"I need to know if these two user-submitted comments are essentially paraphrases of each other — compare 'This product is absolutely terrible and I want a refund' with 'Awful item, I expect my money back' and tell me the similarity score."}],"resultDescription":"A numeric similarity score (typically 0–1 cosine similarity) indicating how semantically close two text inputs are, computed via edge AI on the Tanship platform after a $0.004 USDC payment is processed on Base via x402 v2.","failureModes":["Payment not provided or insufficient USDC — returns HTTP 402 with x402 payment requirements","Malformed request body (missing required 'input' field or incorrect bodyType enum) — returns 400 Bad Request","Network or edge AI inference failure — returns 500 Internal Server Error","Invalid x402 payment scheme or wrong chain (not Base eip155:8453) — payment rejected, request blocked"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call semantic text similarity without managing API keys or subscriptions — ideal for agents that compare text infrequently and want trustless micropayment billing via USDC on Base. Prefer over embedding-based DIY pipelines when you want a single similarity score rather than raw embedding vectors.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:18.942Z","isFirstParty":false}