{"uid":"cap_UMcQfgdBDruaM_mJOCBuf","slug":"pocket-network-semantic-similarity-scoring-3353dbe1","name":"Pocket Network Semantic Similarity Scoring","description":"Pay-per-call access to Pocket Network services. No account, no API key.","url":"https://agent.pocket.network/v1/semantic-similarity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text_a":{"type":"string","description":"First text."},"text_b":{"type":"string","description":"Second text."}}},"responseSchema":{"type":"json","example":{"data":{},"portal":{"serviceId":"semantic-similarity","provenance":"third-party-supplier","schemaCheck":"passed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I6F5eTFQLmUK04mL14n2P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a cosine similarity score between two text inputs using a fixed embedding model, returning a deterministic JSON similarity value per request.","exampleAgentPrompt":"Can you tell me how semantically similar these two sentences are: 'The quick brown fox jumps over the lazy dog' and 'A fast auburn fox leaps over a sleepy canine'?","exampleUseCases":[{"title":"Deduplicating support ticket queue","prompt":"I have two customer support tickets — ticket A says 'My payment failed at checkout' and ticket B says 'I couldn't complete my purchase, the transaction didn't go through.' Are these describing the same issue? Give me a similarity score."},{"title":"RAG retrieval relevance check","prompt":"Before passing this chunk to the user, I need to know how relevant it is to their query. The query is 'best practices for container security' and the chunk starts with 'Docker hardening techniques include minimizing image layers and using non-root users.' Score their semantic similarity."},{"title":"Plagiarism detection in submissions","prompt":"Check whether these two essay paragraphs are essentially the same content: the first says 'Climate change accelerates the melting of polar ice caps, raising sea levels globally' and the second says 'The warming climate is causing Arctic and Antarctic ice to melt faster, leading to rising oceans worldwide.'"}],"resultDescription":"A single JSON object containing a cosine similarity score (a float between 0 and 1) representing how semantically related the two input texts are. Higher values indicate greater similarity. The result is deterministic — identical inputs always yield the same score.","failureModes":["Missing text_a or text_b fields returns a 400 validation error","Empty string inputs may return a zero or undefined similarity score","Extremely long texts may be truncated or rejected depending on model token limits","Payment failure (insufficient USDC) results in a 402 Payment Required response","Network errors or provider downtime return 5xx responses"],"whenToPreferThis":"Prefer this endpoint when you need a fast, deterministic, pay-per-call semantic similarity score with no account setup or API key — ideal for deduplication pipelines, RAG relevance checks, or any workflow where reproducible cosine similarity at a fixed model precision is required. Choose this over OpenAI embeddings or other similarity APIs when you want stateless, per-request USDC micropayment billing without subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:41:35.627Z","isFirstParty":false,"canonicalSlug":"pocket-network-semantic-similarity-scoring-3353dbe1"}