# Delx Commerce — Semver Compare Lite

> Delx Commerce — Semver Compare Lite 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).

Compares two semantic version strings and returns a numeric comparison result (-1, 0, or 1) indicating their relative order.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/semver-compare-lite?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-semver-compare-lite-bcdbc8ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TrmOuJ-VBzAcYnZLYdv8f

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-semver-compare-lite-bcdbc8ee -d '<json body>'
```

Example prompt: Compare semantic version 1.4.2 against 2.0.0 and tell me which one is greater.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call semver comparison without setting up an SDK or authentication — ideal for agent workflows that sporadically need version ordering logic, or when you want verifiable, auditable computation paid in USDC with no subscription overhead.

## Known failure modes

- Malformed or non-semver input strings may return an error or unexpected cmp result
- Missing required fields 'a' or 'b' will likely produce a validation error
- Pre-release and build metadata edge cases (e.g. 1.0.0-alpha vs 1.0.0) may not be handled in the 'lite' variant
- Payment failure via x402 protocol will prevent the call from completing

## How this service works

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

## Output

Returns a JSON object with 'ok' (boolean success flag), 'cmp' (integer: -1 if a < b, 0 if a == b, 1 if a > b), and 'schema' (a versioned schema identifier string like 'delx/util-semver-compare-lite/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string",
   "description": "Input field: a."
  },
  "b": {
   "type": "string",
   "description": "Input field: b."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "cmp": -1,
  "schema": "delx/util-semver-compare-lite/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-semver-compare-lite-bcdbc8ee/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)
