# Delx Commerce Similarity API

> Delx Commerce Similarity API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes semantic similarity between two inputs via a pay-per-result HTTP API settled in USDC on Base or Solana

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/similarity?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-similarity-api-fb6db3e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OSFpB7Rl65999yKMcWt3q

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 delx-commerce-similarity-api-fb6db3e1 -d '<json body>'
```

Example prompt: Compare these two product descriptions and give me a similarity score — 'Ultra-light running shoes with foam sole' versus 'Lightweight athletic sneakers with cushioned base' — I need to know how semantically close they are so I can deduplicate my catalog.

## When to prefer this

Choose this endpoint when you need a lightweight, no-signup, pay-per-call semantic similarity score settled instantly in USDC on Base or Solana via x402. Prefer it over hosted embedding APIs when you want verifiable per-result billing without a subscription, or when operating in an agentic context where crypto micropayments are already in the workflow.

## Known failure modes

- Missing required fields 'input' or 'output' returns a 400 validation error
- Invalid bodyType enum value causes request rejection
- Payment failure or insufficient USDC balance returns 402 Payment Required
- Malformed JSON body returns parsing error
- Empty or null body fields may return a low-confidence or error result
- Network timeout on the Base/Solana payment settlement layer

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing a similarity score (typically a float between 0 and 1) indicating how semantically close the two provided inputs are, along with any additional metadata returned by the service.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-similarity-api-fb6db3e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
