# Peyon Bittensor Unstake Cost

> Peyon Bittensor Unstake Cost is a paid API for AI agents from peyon.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Returns the real-time cost to exit (unstake) a Bittensor subnet position, including TAO received, cost in TAO, and percent cost, simulated directly from the chain's swap mechanism.

## Facts

- Endpoint: GET https://peyon.ai/api/subnet-exit/:netuid?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/peyon-bittensor-unstake-cost-4e7c5a85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B0lHhNe3zF5H4HpR2FefN

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 peyon-bittensor-unstake-cost-4e7c5a85
```

Example prompt: What will I actually receive in TAO if I unstake my 500 alpha from Bittensor subnet 18 right now, and what's the exit cost percentage?

## When to prefer this

Use this endpoint when you need a real-time, chain-accurate simulation of the cost to exit (unstake) a specific Bittensor subnet position. It is preferable over manual calculations or static estimates because it queries the chain's own swap simulator, reflecting current pool reserves and alpha price. Choose this when you need exact TAO received and cost percentage before executing an actual unstake.

## Known failure modes

- Invalid netuid (non-numeric or out of range) returns a 400 or error response
- Subnet not found or not active returns an error
- Neither alpha nor tao query param provided may return a default simulation or error
- Chain RPC unavailability may cause timeouts or 500 errors
- Payment not made (x402) results in 402 Payment Required response

## How this service works

Exact cost to unstake from a Bittensor subnet right now, from the chain's own swap simulator: TAO received, cost in TAO and percent. Give alpha (amount of alpha) or tao (position value in TAO).

## Output

Returns the TAO amount received after the swap, the cost of the exit in TAO, and the exit cost as a percentage — all computed from the on-chain swap simulator for the specified subnet at the current moment.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "netuid"
     ],
     "properties": {
      "netuid": {
       "type": "string",
       "pattern": "^[0-9]{1,3}$"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "tao": {
       "type": "number"
      },
      "alpha": {
       "type": "number"
      }
     }
    }
   },
   "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/peyon-bittensor-unstake-cost-4e7c5a85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from peyon.ai](https://www.zero.xyz/host/peyon.ai/llms.txt)
