# Delx Commerce — Retry Budget Plan Calculator

> Delx Commerce — Retry Budget Plan Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Computes an exponential backoff retry schedule given base delay, growth factor, max attempts, and an optional delay ceiling.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/retry-budget-plan?utm_source=zero.xyz
- Price: $0.003/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-retry-budget-plan-calculator-7db422ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PkpaxlGh-I4aE3fZFskvI

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-retry-budget-plan-calculator-7db422ea -d '<json body>'
```

Example prompt: Calculate an exponential backoff retry schedule starting at 100ms, doubling each time, for up to 5 attempts with a max delay cap of 3000ms.

## When to prefer this

Choose this endpoint when an AI agent or automated system needs a precise, pre-computed retry delay schedule rather than implementing backoff logic inline. Ideal for agents that need to externalise retry policy calculation, audit the full schedule before executing, or share a consistent backoff plan across multiple subsystems. Costs $0.003 USDC per call via x402, so best used when the computed schedule will be reused across many retries rather than recalculated per attempt.

## Known failure modes

- Invalid factor value (e.g. negative or zero) may cause unexpected schedule output
- max_attempts outside 1–20 range may be rejected or clamped
- Missing required fields may result in a 400 error or default values being applied
- Payment failure via x402 protocol results in no response being returned

## 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 containing a labeled schedule array where each entry shows the attempt number and the delay in milliseconds before that attempt, plus total_delay_ms (sum of all delays) and max_attempts. Includes an advisory note that the caller owns the actual retry policy.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "factor": {
   "type": "number",
   "description": "Exponential growth factor per attempt (typically 2)."
  },
  "max_attempts": {
   "type": "number",
   "description": "Maximum retry attempts to schedule (1–20)."
  },
  "max_delay_ms": {
   "type": "number",
   "description": "Hard ceiling for any single delay."
  },
  "base_delay_ms": {
   "type": "number",
   "description": "Initial backoff delay in milliseconds."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-retry-budget-plan/v1",
  "advisory": "Descriptive plan only; caller owns retry policy.",
  "schedule": [
   {
    "attempt": 1,
    "delay_ms": 100
   },
   {
    "attempt": 2,
    "delay_ms": 200
   },
   {
    "attempt": 3,
    "delay_ms": 400
   },
   {
    "attempt": 4,
    "delay_ms": 800
   }
  ],
  "max_attempts": 4,
  "total_delay_ms": 1500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-retry-budget-plan-calculator-7db422ea/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)
