# IPv4 Subnet Calculator

> IPv4 Subnet Calculator is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Calculates IPv4 subnet details (network address, broadcast, host range, mask, etc.) from a given CIDR or subnet specification

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/network/ipv4-subnet-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ipv4-subnet-calculator-2e8d2283
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AMgssSrExn-faqMS0k90g

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 ipv4-subnet-calculator-2e8d2283
```

Example prompt: Can you calculate the subnet details for 192.168.10.0/24 — I need the network address, broadcast address, usable host range, and total number of usable hosts?

## When to prefer this

Choose this endpoint when you need fast, deterministic IPv4 subnet calculations without requiring an API key or account — ideal for AI agents that need on-demand network math as part of infrastructure automation or validation workflows, paid per-call with USDC over x402.

## Known failure modes

- Invalid or malformed CIDR notation returns an error
- Missing schema parameter may result in empty or default response
- Host bits set in network address may trigger a warning or normalization
- Payment failure (402) if USDC balance is insufficient

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with computed IPv4 subnet fields including network address, broadcast address, first and last usable host, subnet mask, wildcard mask, prefix length, and total usable host count for the given input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ipv4-subnet-calculator-2e8d2283/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
