# Delx Odds Ratio Calculator

> Delx Odds Ratio Calculator is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts a probability value into its corresponding odds ratio (p / (1-p))

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/odds-ratio
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-odds-ratio-calculator-f5f0b62c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vzDP90SmjAWxxzBD-32Ko

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-odds-ratio-calculator-f5f0b62c -d '<json body>'
```

Example prompt: Convert a probability of 0.75 into its odds ratio for me.

## When to prefer this

Use this endpoint when you need a fast, single-call conversion from a decimal probability to an odds ratio — ideal for agents processing model confidence scores, betting probabilities, or statistical outputs that need to be expressed in odds form. Prefer it over writing inline math when you want a governed, auditable microservice call within a workflow.

## Known failure modes

- Probability value of 1.0 causes division by zero (odds would be infinite)
- Probability value of 0.0 yields odds ratio of 0
- Values outside [0, 1] are not valid probabilities and may return an error or undefined result
- Missing 'prob' field returns a validation error

## How this service works

Odds ratio p/(1−p) from a probability. Call when classic odds-ratio features and diagnostics. Returns odds ratio as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing the original probability value (prob), the computed odds ratio (odds_ratio = prob / (1 - prob)), and the schema identifier (delx/util-odds-ratio/v1). For example, prob=0.75 yields odds_ratio=3.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prob": {
   "type": "number",
   "description": "Input field: prob."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prob": 0.75,
  "schema": "delx/util-odds-ratio/v1",
  "odds_ratio": 3
 }
}
```

## More

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