{"uid":"cap_OwKTceauKJ1QGn_0cMtni","slug":"24k-labs-ip-cidr-calculator-3f7c71a7","name":"24K Labs 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/v1/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_JdA61u3cuXsYIHHR0isdl","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, supports mask-to-prefix conversion, optional contains check, and subnet splitting.","exampleAgentPrompt":"Can you do the CIDR math for 10.0.0.0/22 — give me the network address, broadcast, netmask, wildcard mask, usable host range and count, and then split it into 4 equal subnets?","exampleUseCases":[{"title":"Subnet planning for a new VPC","prompt":"I'm setting up a new VPC with the block 172.16.0.0/20 — can you tell me the network address, broadcast address, netmask, wildcard, and how many usable hosts that gives me?"},{"title":"Check if IP belongs to subnet","prompt":"I need to know if the IP 192.168.10.45 falls inside the network 192.168.10.0/26 — can you check that and also give me the full subnet details?"},{"title":"Split a network into smaller subnets","prompt":"Take the network 10.100.0.0/16 and split it into 8 equal subnets — show me all the resulting CIDR blocks with their ranges."}],"resultDescription":"Returns a structured object containing: network address, broadcast address, netmask, wildcard mask, prefix length, first and last usable host IPs, total usable host count. Optionally includes a boolean result for whether a given IP is contained in the network, and an array of subnet CIDR blocks if a split was requested.","failureModes":["Invalid CIDR notation returns an error (e.g. missing prefix length or malformed IP)","Prefix length out of range (e.g. /33 for IPv4) returns validation error","IP version mismatch between CIDR and contains-check IP returns error","Requesting too many subnet splits (e.g. splitting /30 into 64 subnets) may return an error or empty result","Malformed request body returns 400-level error"],"whenToPreferThis":"Use this endpoint when you need precise, programmatic CIDR subnet calculations without setting up a local library — especially useful in network automation, infrastructure provisioning scripts, or agent workflows that need to validate IP ranges, plan address space, or check containment. Prefer this over general-purpose code execution when the goal is pure CIDR math with reliable structured output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:41:26.574Z","isFirstParty":false}