# Chemistry Spectrum Peak Comparison

> Chemistry Spectrum Peak Comparison is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.049001/call, status unknown (last checked 2026-10-21).

Compares observed and reference peak lists from spectra (IR, MS, NMR) under a declared numerical tolerance and returns match boundaries.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/micro/chemistry-spectrum-peak-comparison?utm_source=zero.xyz
- Price: $0.049001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chemistry-spectrum-peak-comparison-ae86e8d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x2YP8-xmukLceqT_moyCC

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 chemistry-spectrum-peak-comparison-ae86e8d6 -d '<json body>'
```

Example prompt: Compare my observed IR peaks [1720, 2950, 3300] against reference peaks [1715, 2945, 3310] using a tolerance of 15 cm^-1 — treat the data as synthetic and tell me which ones match.

## When to prefer this

Choose this endpoint when you need a deterministic, auditable peak-list comparison with a declared numerical tolerance for spectroscopic data (IR, MS, NMR). It is not a compound identification service — use it when you already have both observed and reference peak lists and want to know which peaks match within a given tolerance window. Prefer it over manual comparison or general-purpose LLMs when you need reproducible digests for audit trails or payment-backed accountability.

## Known failure modes

- Empty or mismatched peak arrays (minItems:1 violated)
- Arrays exceeding 128 peaks (maxItems:128 exceeded)
- Invalid unit value outside enum [cm^-1, m/z, ppm]
- Tolerance outside allowed range 0–1e12
- Invalid dataClass value outside enum [public, synthetic]
- Malformed JSON body or wrong bodyType

## How this service works

Match supplied reference and sample peak lists under declared tolerances. For spectrum-data comparison; no unique compound identification from peaks alone.

## Output

Returns a result object with matched/unmatched boundary pairs for each observed peak against the reference list, along with a version identifier, offer ID, input digest for reproducibility, and receipt digest for payment verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "dataClass",
      "observed",
      "reference",
      "tolerance",
      "unit"
     ],
     "properties": {
      "unit": {
       "enum": [
        "cm^-1",
        "m/z",
        "ppm"
       ],
       "type": "string"
      },
      "observed": {
       "type": "array",
       "maxItems": 128,
       "minItems": 1
      },
      "dataClass": {
       "enum": [
        "public",
        "synthetic"
       ],
       "type": "string"
      },
      "reference": {
       "type": "array",
       "maxItems": 128,
       "minItems": 1
      },
      "tolerance": {
       "type": "number",
       "maximum": 1000000000000,
       "minimum": 0
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "offerId",
      "amountBaseUnits",
      "inputDigest",
      "result",
      "boundaries",
      "receiptDigest"
     ],
     "properties": {
      "result": {
       "type": "object"
      },
      "offerId": {
       "enum": [
        "chemistry-spectrum-peak-comparison"
       ],
       "type": "string"
      },
      "version": {
       "enum": [
        "maha-microproducts/0.1"
       ],
       "type": "string"
      },
      "boundaries": {
       "type": "array",
       "maxItems": 128,
       "minItems": 0
      },
      "inputDigest": {
       "type": "string",
       "maxLength": 71
      },
      "receiptDigest": {
       "type": "string",
       "maxLength": 71
      },
      "amountBaseUnits": {
       "enum": [
        "49001"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chemistry-spectrum-peak-comparison-ae86e8d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
