# Optical Band-Gap Fit Audit

> Optical Band-Gap Fit Audit is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.109003/call, status unknown (last checked 2026-10-20).

Evaluates absorption spectrum observations against a declared band-gap model (direct or indirect allowed) over a specified fit window to audit the quality of the fit.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/compute/materials/optical-bandgap-fit?utm_source=zero.xyz
- Price: $0.109003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/optical-band-gap-fit-audit-e516df48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2aKcpmNPbHtcoBasU4_xP

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 optical-band-gap-fit-audit-e516df48 -d '<json body>'
```

Example prompt: Can you audit the band-gap fit for my absorption data? I have 64 energy points from 1.2 to 2.8 eV and corresponding absorption coefficients, the transition type is direct-allowed, and I want the fit window from index 10 to 50. The data is synthetic.

## When to prefer this

Choose this endpoint when you need to formally audit or validate a band-gap model fit against experimental or synthetic absorption spectra with explicit control over the fit window. It is specifically designed for per-observation-level fit quality evaluation with sensitivity analysis, not for device-level performance prediction or universal band-gap lookup. Prefer this over general curve-fitting tools when you need materials-science-specific Tauc-plot-style auditing with retained results and structured receipt metadata.

## Known failure modes

- Mismatched array lengths between energyEV and absorptionPerM — validation error returned
- fitStartIndex >= fitEndIndex or out of array bounds — invalid window error
- Fewer than 1 or more than 128 data points — schema validation failure
- Invalid transition type or data class enum value — rejected request
- Insufficient data points in fit window for reliable regression — low-confidence or error result

## How this service works

Evaluate supplied absorption observations under a declared band-gap model with fit-window sensitivity. No universal band-gap or integrated-device performance claim. New modular adapter: retained result recovery for 24 hours, minimal receipt metadata for 90 days. Existing live route unchanged.

## Output

Returns the results of fitting the supplied absorption observations to the declared band-gap model (direct-allowed or indirect-allowed) over the specified energy index window, including fit quality metrics and fit-window sensitivity information. Results are retained for 24 hours; minimal receipt metadata is retained for 90 days.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "energyEV": {
   "type": "array",
   "maxItems": 128,
   "minItems": 1
  },
  "dataClass": {
   "enum": [
    "public",
    "synthetic"
   ],
   "type": "string"
  },
  "transition": {
   "enum": [
    "direct-allowed",
    "indirect-allowed"
   ],
   "type": "string"
  },
  "fitEndIndex": {
   "type": "integer",
   "maximum": 127,
   "minimum": 2
  },
  "fitStartIndex": {
   "type": "integer",
   "maximum": 125,
   "minimum": 0
  },
  "absorptionPerM": {
   "type": "array",
   "maxItems": 128,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/optical-band-gap-fit-audit-e516df48/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)
