# util.beauty CIDR Network Utility

> util.beauty CIDR Network Utility is a paid API for AI agents from util.beauty, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Performs CIDR notation parsing and network calculations, returning subnet details like IP range, netmask, broadcast address, and host count.

## Facts

- Endpoint: POST https://util.beauty/v1/net/cidr
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/util-beauty-cidr-network-utility-8ca224a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E2OTlO9mnVpsWCMlq03Dk

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 util-beauty-cidr-network-utility-8ca224a4 -d '<json body>'
```

Example prompt: Can you parse the CIDR block 10.0.0.0/16 and tell me the network address, broadcast address, netmask, and how many usable hosts it contains?

## When to prefer this

Choose this endpoint when you need quick, metered, pay-per-call CIDR subnet calculations without standing up your own networking library — especially useful in AI agent workflows that need on-demand network math paid via USDC on Base (x402) or a prepaid API key. Ideal for one-off lookups in automation pipelines rather than bulk subnet processing.

## Known failure modes

- Invalid CIDR notation format returns an error response
- IPv6 CIDR may not be supported — only IPv4 input confirmed
- Missing or malformed request body returns 400-level error
- Payment failure via x402 if USDC balance is insufficient
- Rate limiting or quota exhaustion on prepaid API key

## How this service works

Metered web utilities for developers and AI agents: browser screenshot and PDF, crypto, DNS and net tools. Pay per request with x402 (USDC on Base) or prepaid API keys.

## Output

Returns a JSON object with ok status, the utility name, a requestId for tracking, chargedCredits count, and the computed CIDR details including network address, broadcast address, netmask, IP range start/end, and total/usable host counts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object",
     "description": "JSON request body (see OpenAPI for the utility schema).",
     "additionalProperties": true
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "utility": {
       "type": "string"
      },
      "requestId": {
       "type": "string"
      },
      "chargedCredits": {
       "type": "number"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "utility": "…",
  "requestId": "req_…",
  "chargedCredits": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/util-beauty-cidr-network-utility-8ca224a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from util.beauty](https://www.zero.xyz/host/util.beauty/llms.txt)
