# Mining Breakeven & Profitability Calculator

> Mining Breakeven & Profitability Calculator is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Computes daily and monthly BTC/USD revenue, power costs, net profit, margin, break-even electricity price, break-even BTC price, and optional hardware payback days for an ASIC miner model or raw hashrate/wattage specification.

## Facts

- Endpoint: GET https://payai.agentstools.dev/mining/breakeven
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mining-breakeven-profitability-calculator-208a3645
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oWbnGVi0gr2EvQBMhM0G6

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 mining-breakeven-profitability-calculator-208a3645
```

Example prompt: Can you calculate the daily and monthly profitability for an Antminer S21 miner at an electricity price of $0.07 per kWh, including how many days it would take to pay back $3,500 in hardware costs?

## When to prefer this

Use this endpoint when you need a detailed, multi-metric profitability and break-even analysis for a specific Bitcoin ASIC miner model or a custom hashrate/wattage configuration. It is ideal for pre-purchase hardware evaluations, ongoing operational cost monitoring, or sensitivity analysis around electricity prices and BTC price thresholds. Prefer this over generic crypto profitability calculators when you need itemized cost/revenue breakdowns and break-even figures in a single call.

## Known failure modes

- Unknown or invalid miner model ID returns an error — use GET /mining/asics to retrieve valid model IDs
- Missing required combination: must supply either 'model' or both 'th_s' and 'watts'
- Negative or zero electricity price may produce mathematically undefined break-even results
- Pool fee outside 0–100 range returns a validation error
- Hardware cost provided without a valid miner spec returns an error

## How this service works

ASIC-miner break-even and profitability: daily and monthly BTC and USD revenue, power cost, net profit, margin, the break-even electricity price and the break-even BTC price, and optional hardware payback days, for a named miner model or raw hashrate and wattage at a given electricity price. Informational, not advice.

## Output

Returns daily and monthly BTC and USD revenue, electricity power cost, net profit, profit margin percentage, break-even electricity price (USD/kWh), break-even BTC price (USD), and optionally hardware payback days — all calculated for the specified miner model or raw hashrate/wattage input at the given electricity price.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "th_s": {
       "type": "number",
       "description": "Raw hashrate in TH/s; use with watts instead of a model"
      },
      "model": {
       "type": "string",
       "description": "ASIC model id from GET /mining/asics (such as antminer-s21); alternative to th_s and watts"
      },
      "watts": {
       "type": "number",
       "description": "Raw wall power in watts; use with th_s instead of a model"
      },
      "pool_fee_pct": {
       "type": "number",
       "description": "Mining-pool fee percent from 0 to 100; defaults to 0"
      },
      "hardware_cost_usd": {
       "type": "number",
       "description": "Optional hardware cost in USD to compute payback days"
      },
      "electricity_usd_kwh": {
       "type": "number",
       "description": "Electricity price in USD per kWh; defaults to 0.05"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mining-breakeven-profitability-calculator-208a3645/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
