# Pocket Network Semantic Similarity Scoring

> Pocket Network Semantic Similarity Scoring is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Computes a cosine similarity score between two text inputs using a fixed embedding model, returning a deterministic JSON similarity value per request.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/semantic-similarity?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-semantic-similarity-scoring-3353dbe1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UMcQfgdBDruaM_mJOCBuf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pocket-network-semantic-similarity-scoring-3353dbe1 -d '<json body>'
```

Example prompt: 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'?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call access to Pocket Network services. No account, no API key.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text_a": {
   "type": "string",
   "description": "First text."
  },
  "text_b": {
   "type": "string",
   "description": "Second text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "portal": {
   "serviceId": "semantic-similarity",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-semantic-similarity-scoring-3353dbe1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
