# AI Align Bias Audit

> AI Align Bias Audit is a paid API for AI agents from aialign.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Calculates positive-outcome rates per group, compares each against a reference group, and reports rate differences and selection-rate ratios to surface potential disparate impact.

## Facts

- Endpoint: POST https://aialign.halowerk.com/v1/bias-audit
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-align-bias-audit-c36ebb65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B-lcOlNCB27FmxsBI-HIz

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 ai-align-bias-audit-c36ebb65 -d '<json body>'
```

Example prompt: Run a bias audit on my loan approval model — I have three groups: 'white' with 5000 total and 3200 approved, 'black' with 1800 total and 900 approved, and 'hispanic' with 2200 total and 1100 approved. Use 'white' as the reference group and flag anything below an 0.8 selection-rate ratio.

## When to prefer this

Choose this endpoint when you need a fast, deterministic computation of disparate impact metrics across labeled groups — particularly for applying the 4/5ths (80%) rule or similar regulatory standards. Best suited for scenarios where you already have aggregated counts per group and need rate differences and selection-rate ratios without running raw individual-record analysis. Prefer this over custom statistical tools when you need a lightweight, pay-per-call audit step integrated into an AI pipeline.

## Known failure modes

- Fewer than 2 groups supplied — validation error
- positive_count exceeds total_count for any group — validation error
- reference_group_id not found among supplied group IDs — error
- Single-group input missing minimum 2 groups — rejection
- Extremely small group counts may produce unstable ratios — low statistical power warning
- Metrics reflect aggregate rates only and may miss intersectional disparities

## How this service works

Calculates each group positive-outcome rate, compares it with an explicit or automatically selected reference group, and reports rate differences and selection-rate ratios. Aggregate disparity metrics do not establish discrimination, fairness, causation or legal compliance and can conceal intersectional or sampling effects.

## Output

Returns the positive-outcome rate for each group, the absolute rate difference relative to the reference group, the selection-rate ratio (each group's rate divided by the reference group's rate), and flags indicating whether any group falls below the specified minimum selection-rate ratio threshold. Includes aggregate disparity metrics across all groups.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "groups": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "group_id",
     "total_count",
     "positive_count"
    ],
    "properties": {
     "group_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1
     },
     "total_count": {
      "type": "integer",
      "maximum": 1000000000,
      "minimum": 1
     },
     "positive_count": {
      "type": "integer",
      "maximum": 1000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 1000,
   "minItems": 2
  },
  "reference_group_id": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1
  },
  "minimum_selection_rate_ratio": {
   "type": "number",
   "maximum": 1,
   "minimum": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-align-bias-audit-c36ebb65/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aialign.halowerk.com](https://www.zero.xyz/host/aialign.halowerk.com/llms.txt)
