# Vextorium IP Subnet Calculator

> Vextorium IP Subnet Calculator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-13).

Calculates IPv4/IPv6 subnet details (network, mask, wildcard, broadcast, first/last host, usable hosts, address type) and optionally checks if a given IP belongs to the subnet.

## Facts

- Endpoint: POST https://api.vextorium.com/subred-ip-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-ip-subnet-calculator-7e0e3865
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8UGf8HHYIEE-cZ-L_v5TD

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 vextorium-ip-subnet-calculator-7e0e3865 -d '<json body>'
```

Example prompt: Can you calculate all the subnet details for 192.168.1.64/26 — I need the network address, broadcast, first and last host, wildcard mask, and how many usable hosts there are? Also check if 192.168.1.100 is in that subnet.

## When to prefer this

Choose this endpoint when you need a complete subnet computation from a single CIDR string without setting up local networking libraries, or when you need to programmatically check IP membership in a subnet. Ideal for agents doing network planning, infrastructure validation, or IP address management tasks. Prefer this over general-purpose code execution when a quick, accurate, paid-per-call computation is acceptable.

## Known failure modes

- Invalid or malformed CIDR notation returns an error
- Missing required 'cidr' field causes a 400-level error
- Out-of-range prefix length (e.g. /33 for IPv4) causes computation failure
- Malformed optional IP in comprobar_ip may return null membership result
- Network timeouts may occur under load

## How this service works

IPv4/IPv6 subnet calculator: network, mask, wildcard, broadcast, first/last host, usable hosts, address type (private, public, loopback...) and whether a given IP belongs to the subnet.

## Output

A JSON object containing: network address (red), full CIDR notation, subnet mask (mascara), prefix length, wildcard mask, broadcast address, first and last usable host, total addresses, usable host count, IP version (4 or 6), address type (private/public/loopback etc.), IP class (A/B/C), the original input, and optionally an object indicating whether a tested IP belongs to the subnet and which IP was tested.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "cidr"
     ],
     "properties": {
      "cidr": {
       "type": "string",
       "description": "Network in CIDR notation, e.g. 10.0.0.0/16 or 2001:db8::/48"
      },
      "comprobar_ip": {
       "type": "string",
       "description": "IP to test for membership (optional)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "red": {
       "type": [
        "string",
        "null"
       ]
      },
      "cidr": {
       "type": [
        "string",
        "null"
       ]
      },
      "tipo": {
       "type": [
        "string",
        "null"
       ]
      },
      "clase": {
       "type": [
        "string",
        "null"
       ]
      },
      "entrada": {
       "type": [
        "string",
        "null"
       ]
      },
      "mascara": {
       "type": [
        "string",
        "null"
       ]
      },
      "prefijo": {
       "type": [
        "number",
        "null"
       ]
      },
      "version": {
       "type": [
        "number",
        "null"
       ]
      },
      "wildcard": {
       "type": [
        "string",
        "null"
       ]
      },
      "broadcast": {
       "type": [
        "string",
        "null"
       ]
      },
      "primer_host": {
       "type": [
        "string",
        "null"
       ]
      },
      "ultimo_host": {
       "type": [
        "string",
        "null"
       ]
      },
      "comprobar_ip": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "ip": {
         "type": [
          "string",
          "null"
         ]
        },
        "pertenece": {
         "type": [
          "boolean",
          "null"
         ]
        }
       }
      },
      "hosts_u
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "red": "192.168.1.64",
  "cidr": "192.168.1.64/26",
  "tipo": "privada",
  "clase": "C",
  "entrada": "192.168.1.77/26",
  "mascara": "255.255.255.192",
  "prefijo": 26,
  "version": 4,
  "wildcard": "0.0.0.63",
  "broadcast": "192.168.1.127",
  "primer_host": "192.168.1.65",
  "ultimo_host": "192.168.1.126",
  "comprobar_ip": {
   "ip": "192.168.1.100",
   "pertenece": true
  },
  "hosts_utiles": 62,
  "total_direcciones": 64
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-ip-subnet-calculator-7e0e3865/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
