{"uid":"cap_EkFPBqXsShbqA1td1yVwj","slug":"ip-cidr-calculator-ce696758","name":"IP CIDR Calculator","description":"CIDR math for IPv4/IPv6: network, broadcast, netmask, wildcard, prefix, usable host range and count, mask<->prefix, plus optional contains check and subnet split.","url":"https://api.24klabs.ai/api/ip-cidr-calc","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cidr":{"type":"string"},"contains":{"type":"string"}}},"responseSchema":{"type":"json","example":{"network":"192.168.1.0","contains":true,"broadcast":"192.168.1.255","num_addresses":256}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_X6MqhSzh7WuJrYNhlTUw_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs CIDR math for IPv4/IPv6 addresses: computes network, broadcast, netmask, wildcard, prefix, usable host range and count, and optionally checks if an IP is contained in a subnet or splits a subnet.","exampleAgentPrompt":"Calculate all the CIDR details for 10.0.0.0/22 — give me the network address, broadcast, netmask, wildcard, usable host range and count, and also check if 10.0.1.55 is contained in that subnet.","exampleUseCases":[{"title":"Subnet planning for a new network","prompt":"I'm setting up a new office network with 192.168.10.0/25 — can you give me the network address, broadcast address, netmask, wildcard mask, and how many usable hosts I have?"},{"title":"Check if an IP belongs to a subnet","prompt":"Does the IP 172.16.45.200 fall inside the subnet 172.16.32.0/20? Also show me the full CIDR breakdown for that block."},{"title":"Split a large subnet into smaller ones","prompt":"I have the block 10.4.0.0/16 and I need to split it into /24 subnets — can you do that and show me the list of all the resulting subnets?"}],"resultDescription":"Returns a JSON object with computed CIDR fields: network address, broadcast address, netmask, wildcard mask, prefix length, first and last usable host, usable host count, and optionally a boolean indicating whether a given IP is contained in the subnet, plus an array of subnets if a split was requested.","failureModes":["Invalid CIDR notation returns a 400 error with a descriptive message","IPv6 addresses passed with IPv4-only operations may fail or be unsupported","Prefix length out of range (e.g. /33 for IPv4) returns a validation error","Malformed IP address strings return a parse error","Requesting a subnet split with too large a target prefix may time out or return too many results"],"whenToPreferThis":"Choose this endpoint when you need fast, reliable CIDR arithmetic for IPv4 or IPv6 without standing up your own networking library. It is ideal for network automation agents, infrastructure provisioning tools, or security workflows that need to validate IP ranges, enumerate subnets, or check containment at low cost ($0.002/call) with no setup required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:32:30.691Z","isFirstParty":false}