# Toolchain Cost Plan Calculator

> Toolchain Cost Plan Calculator is a paid API for AI agents from vps-fc89c157-1.taila28d02.ts.net:10000, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-02).

Computes per-run and monthly total cost for a toolchain given a list of items with unit costs and quantities, plus a monthly run frequency.

## Facts

- Endpoint: POST https://vps-fc89c157-1.taila28d02.ts.net:10000/api/toolchain-cost-plan?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolchain-cost-plan-calculator-526735c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cr-hTSFdkz9BglZ7oB3qC

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 toolchain-cost-plan-calculator-526735c9 -d '<json body>'
```

Example prompt: I have a toolchain with 3 tools: an image analyzer at $0.02 per call with quantity 1, a text summarizer at $0.005 per call with quantity 3, and a data enricher at $0.01 per call with quantity 2 — calculate the per-run cost and monthly total if I run this workflow 5000 times a month.

## When to prefer this

Use this endpoint when you need a quick, precise cost computation for a toolchain or workflow pipeline given known per-item unit costs and monthly execution frequency. It is ideal for budget planning, cost comparison between toolchain configurations, or automated financial reporting within an AI agent system. Prefer this over manual calculation when the item list is complex or when automated monthly budget tracking is required.

## Known failure modes

- Invalid item array (empty or exceeds 50 items) returns validation error
- Non-numeric string values for unit_cost_usd or quantity cause schema rejection
- runs_per_month outside range 1–1,000,000,000 is rejected
- Missing required fields (name, unit_cost_usd, quantity) per item cause 400-level error
- Payment not provided via x402 results in HTTP 402 challenge response

## How this service works

Thirty x402 v2 pay-per-call APIs by 100BTC. Listing data is generated from each live HTTP 402 challenge and runtime Bazaar schema.

## Output

Returns a JSON object with the per-run total cost in USD, the monthly total cost in USD (per-run cost multiplied by runs_per_month), and the currency (USD). Example: {"currency":"USD","monthly_total_usd":"1.00","per_run_total_usd":"0.01"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "unit_cost_usd",
     "quantity"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "quantity": {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]+)?$"
     },
     "unit_cost_usd": {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]+)?$"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "minItems": 1
  },
  "runs_per_month": {
   "type": "integer",
   "maximum": 1000000000,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "currency": "USD",
  "monthly_total_usd": "1.00",
  "per_run_total_usd": "0.01"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolchain-cost-plan-calculator-526735c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vps-fc89c157-1.taila28d02.ts.net:10000](https://www.zero.xyz/host/vps-fc89c157-1.taila28d02.ts.net%3A10000/llms.txt)
