# Crafting Cost Calculator

> Crafting Cost Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Calculates total crafting cost by multiplying item quantities with their per-unit costs and summing the results.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/crafting-cost-calculator?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crafting-cost-calculator-17bf9be3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CizGMHEKmDjHKY-fWG1A5

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 crafting-cost-calculator-17bf9be3 -d '<json body>'
```

Example prompt: What's the total crafting cost if I need 2 swords at 5 gold each, 3 shields at 2 gold each, and 1 helmet at 12 gold?

## When to prefer this

Use this endpoint when you need a quick, reliable server-side calculation of total crafting cost from parallel arrays of item quantities and per-unit prices — especially useful in game development pipelines, automation workflows, or agent systems that need to avoid implementing arithmetic locally.

## Known failure modes

- Mismatched array lengths between quantities and unit_costs may return an error or partial result
- Non-numeric values in arrays will cause validation errors
- Empty arrays may return zero or an error
- Negative quantities or costs may produce unexpected results

## How this service works

Crafting cost calculator: Calculate total crafting cost from quantities and per-unit costs.

## Output

Returns a single total crafting cost value computed as the dot product of the quantities and unit_costs arrays (sum of each quantity multiplied by its corresponding unit cost).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "quantities": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "default": [
    2,
    3,
    1
   ]
  },
  "unit_costs": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "default": [
    5,
    2,
    12
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crafting-cost-calculator-17bf9be3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
