gate402 · Dedup

by gate402

POSTBaseSolanaArbitrumPolygon

$0.003

per call · USD Coin on Base

Semantic vector cache: exact-match Map shortcut, then 0.88 cosine similarity on hash embeddings. Sub-10ms hits.

Endpoint

POST https://gate402.app/v1/dedup

2

Calls / 30d

2

Unique payers / 30d

Aug 26

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://gate402.app/v1/dedup", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "query": "hello world",
    "storeOnMiss": true
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://gate402.app/v1/dedup" \
  -H "Content-Type: application/json" \
  -d '{"query":"hello world","storeOnMiss":true}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "cache": "hit",
  "latencyMs": 3.2,
  "similarity": 0.94,
  "vector": [
    0.01,
    -0.02
  ]
}

Payment details

Pay to0x8e57bfde053dbb6862991759c19affc5f383d5d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from gate402 & similar services