{"uid":"cap_gA46MSu-Nxwib03v0CJAo","slug":"primeapi-ai-similarity-50b0d55f","name":"PrimeAPI AI Similarity","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://prime-api-seven.vercel.app/api/ai/similarity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.097567","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.097567/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.097567","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.097567","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vVejG9BsmK1sGm_fE1vPr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.097567","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes semantic similarity between a query string and other content, returning a similarity score or ranked results.","exampleAgentPrompt":"How similar are these two sentences semantically: 'The stock market crashed today' and 'Equity prices fell sharply this morning'? Use the AI similarity endpoint to score them.","exampleUseCases":[{"title":"Dedup social media posts","prompt":"I'm getting flooded with similar tweets about the same news story. Can you use the similarity API to find and group all the near-duplicate posts so I can filter out the noise and keep just the unique perspectives?"},{"title":"Match customer support tickets","prompt":"We have thousands of support tickets in our queue. Can you run each new incoming ticket against our existing ones using semantic similarity to find if we've already solved this problem before?"},{"title":"Rank search results by relevance","prompt":"I have a bunch of crypto project descriptions and someone just asked me about projects that do 'decentralized finance protocols.' Use the similarity endpoint to rank all our projects by how closely they match that query so I can show the most relevant ones first."}],"resultDescription":"Returns a similarity score or ranked similarity results indicating how semantically close the query is to other content, likely as a numeric value between 0 and 1.","failureModes":["Empty or missing query field returns a validation error","Overly long query string may be truncated or rejected","Payment failure in USDC on Base results in 402 response","Ambiguous or very short queries may yield low-confidence similarity scores","Service downtime on Vercel returns 503"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call semantic similarity computation without managing API keys or embeddings infrastructure. Best for lightweight agent workflows that need similarity scoring on demand in USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:37:29.246Z","isFirstParty":false,"canonicalSlug":"primeapi-ai-similarity-50b0d55f"}