# NetIntel Semantic Rank

> NetIntel Semantic Rank is a paid API for AI agents from netintel-production-440c.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Ranks a list of candidate strings by semantic similarity to a query using OpenAI text embeddings, returning results sorted best-first with cosine similarity scores.

## Facts

- Endpoint: POST https://netintel-production-440c.up.railway.app/semantic/rank
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-semantic-rank-648f8100
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NkXBFh2IdZrUVdsiyFNyJ

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 netintel-semantic-rank-648f8100 -d '<json body>'
```

Example prompt: Rank these five support articles by how relevant they are to the question 'how do I reset my password?': ['Use the Forgot Password link', 'Refunds are accepted within 30 days', 'Contact support by email', 'Your account settings are under Profile', 'Two-factor authentication setup guide'] — return only the top 3 results.

## When to prefer this

Use this endpoint when you have a known query and a bounded list of candidate strings (up to 100) that need to be ranked by semantic relevance rather than keyword overlap. It is ideal for reranking retrieved documents in a RAG pipeline, surfacing the best FAQ match for a user question, or scoring candidate answers. Prefer this over keyword search when meaning matters more than exact word match. No API key or signup required — pay $0.02 USDC per call via x402 micropayments, and failed or errored calls are not billed.

## Known failure modes

- Input validation failure (missing query or candidates field) — not billed
- Candidates array exceeds 100 items or 64000 character limit — rejected with validation error
- OpenAI upstream failure — not billed per NetIntel policy
- Empty candidates array — likely returns empty results array
- min_score set outside -1 to 1 range — may cause validation rejection
- model name typo or unsupported model string — upstream error, not billed

## How this service works

Network intelligence API — 138 endpoints, all pay-per-call via x402 micropayments (USDC on Base or Solana mainnet).

NetIntel is agent fair-trade aligned: transparent per-call pricing in USDC on Base or Solana via x402, no API keys or signup, and automatic no-charge on server errors, upstream failures, and input-validation rejections — failed calls are never billed across NetIntel's network, domain, and data-intelligence endpoints.

## Output

A JSON object containing: the embedding model used, token usage (prompt_tokens), the method ('embedding_similarity'), provider ('openai'), vector dimensions, a normalized flag, and a results array ranked best-first. Each result includes the original index in the candidate list, the cosine similarity score (between -1 and 1), and the candidate text. Optional top_k and min_score filters are applied before returning.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "query": {
       "type": "string",
       "description": "The text to rank candidates against."
      },
      "candidates": {
       "type": "array",
       "description": "1-100 candidate strings to rank (64000 chars total on the default model).",
       "items": {
        "type": "string"
       }
      },
      "model": {
       "type": "string",
       "description": "text-embedding-3-small (default) or text-embedding-3-large"
      },
      "top_k": {
       "type": "number",
       "description": "Return only the best N results. Optional."
      },
      "min_score": {
       "type": "number",
       "description": "Drop results scoring below this (-1 to 1). Optional."
      }
     },
     "required": [
      "query",
      "candidates"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "results": {
       "type": "array",
       "description": "Ranked best-first: [{index (original position), score, text}]"
      },
      "method": {
       "type": "string",
       "description": "Always 'embedding_similarity'"
      },
      "provider": {
       "type": "string"
      },
      "model": {
       "type": "string"
      },
      "dimensions": {
       "type": "number"
      },
      "normalized": {
       "type": "boolean"
      },
      "usage": {
       "type": "object",
       "description": "prompt_tokens (input-only)"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "text-embedding-3-small",
  "usage": {
   "prompt_tokens": 36
  },
  "method": "embedding_similarity",
  "results": [
   {
    "text": "Use the Forgot Password link to recover your account.",
    "index": 0,
    "score": 0.5361
   },
   {
    "text": "Refunds are accepted within 30 days.",
    "index": 1,
    "score": 0.1399
   }
  ],
  "provider": "openai",
  "dimensions": 1536,
  "normalized": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-semantic-rank-648f8100/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel-production-440c.up.railway.app](https://www.zero.xyz/host/netintel-production-440c.up.railway.app/llms.txt)
