Hvac Duct Size
by Agent Utility Suite in Other
HVAC duct sizing calculator: any two of duct size (round or rectangular), airflow, velocity and friction rate. Round and rectangular equivalents, nearest standard sizes, friction loss per 100 ft (Darcy-Weisbach, Colebrook), velocity pressure, design checks. Equal-friction sizing, fixed-depth ducts, IP or SI. Shows every step with the numbers. $0.002 USDC per call.
https://x402-agent-api.onrender.com/api/v1/hvac-duct-size- Price
- $0.002
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 260 ms
- 802 ms slowest 5%
- Last check
- Passed
- 1 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://x402-agent-api.onrender.com/api/v1/hvac-duct-size
Each call costs $0.002 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://x402-agent-api.onrender.com/api/v1/hvac-duct-size
content-type: application/json
{
"airflow": 1000,
"friction_rate": 0.08
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
airflow | number | No | Airflow: CFM (IP) or L/s (SI). |
diameter | number | No | Round duct diameter: in (IP) or mm (SI). |
friction_rate | number | No | Friction loss: in. w.g. per 100 ft (IP, typically 0.05-0.15) or Pa/m (SI, typically 0.4-1.2). With airflow, this is equal-friction sizing. |
height | number | No | Rectangular height: in or mm. |
units | string | No | "IP" (°F, CFM, in, BTU) or "SI" (°C, L/s, mm, kW). Default IP. Applies to inputs and results. One of: IP, SI. Default: "IP". |
velocity | number | No | Air velocity: FPM (IP) or m/s (SI). |
width | number | No | Rectangular width: in or mm. With height, the duct size; alone, a fixed side (e.g. a ceiling depth) the other side is solved for. |
Example response
The provider's example. We can't check it without paying.
Example response, 134 lines
{
"airflow": 1000,
"checks": {
"aspect_ratio": null,
"friction": "Typical design range (0.04-0.15 in. w.g./100 ft; about 0.3-1.2 Pa/m).",
"velocity": "Normal design range (400-2,500 FPM; about 2-12.7 m/s)."
},
"friction_factor": 0.01885,
"friction_rate": 0.08,
"inputs_used": {
"airflow": 1000,
"friction_rate": 0.08
},
"next_calls": [
{
"arguments": {
"airflow": 1000,
"entering": {
"dry_bulb": 80,
"wet_bulb": 67
},
"leaving": {
"dry_bulb": 55,
"wet_bulb": 54
},
"units": "IP"
},
"price": "$0.002",
"tool": "hvac_coil_load",
"why": "What cooling load does 1000 CFM carry from 80/67 to 55/54 °F?"
}
],
"notes": [
"The rectangular size has the same friction loss and airflow as the round duct (ASHRAE equivalent diameter); its velocity is lower because its area is larger.",
"Galvanized steel (ε = 0.0003 ft) and standard air (0.075 lb/ft³, 70 °F, sea level). Fittings and transitions are not included.",
"For design guidance; the engineer of record is responsible for final selections."
],
"primary_shape": "round",
"rectangular": {
"area": 1.184,
"aspect_ratio": 1,
"basis": "equal_friction",
"equivalent_diameter": 14.27,
"friction_rate": 0.08,
"height": 13.06,
"standard_sizes": [
{
"aspect_ratio": 1,
"best_fit": false,
"equivalent_diameter": 15.3,
"friction_rate": 0.0568,
"height": 14,
"velocity": 735,
"width": 14
},
{
"aspect_ratio": 1.33,
"best_fit": false,
"equivalent_diameter": 15.11,
"friction_rate": 0.0605,
"height": 12,
"velocity": 750,
"width": 16
}
],
"velocity": 845,
"width": 13.06
},
"references": [
"ASHRAE Handbook—Fundamentals (2021), Ch. 21 Duct Design",
"SMACNA HVAC Duct Design Manual (standard sizes, aspect ratio guidance)"
],
"reynolds_number": 114361,
"round": {
"area": 1.1112,
"diameter": 14.27,
"friction_rate": 0.08,
"standard_sizes": [
{
"best_fit": true,
"diameter": 14,
"friction_rate": 0.088,
"velocity": 935
},
{
"best_fit": false,
"diameter": 16,
"friction_rate": 0.0457,
"velocity": 716
}
],
"velocity": 900
},
"solved_for": "size",
"steps": [
{
"calculation": "Iterated the diameter (bisection) until the Darcy-Weisbach friction loss at 1,000 CFM equals 0.0800 in. w.g./100 ft → D = 14.27 in",
"reference": "ASHRAE Handbook—Fundamentals (2021), Ch. 21 Duct Design",
"step": "Round diameter at the friction rate (equal friction)"
},
{
"calculation": "For W = H = S: De = 1.30·S^1.25 / (2S)^0.25 = 1.09317·S → S = 14.27 / 1.09317 = 13.06 in",
"reference": "ASHRAE Handbook—Fundamentals (2021), Ch. 21 Duct Design (Huebscher equivalent diameter)",
"step": "Square equivalent"
},
{
"calculation": "Re = D·V / ν = 1.1895 ft × 14.998 ft/s / 1.56×10⁻⁴ ft²/s = 114,361",
"reference": null,
"step": "Round duct: Reynolds number"
}
],
"unit_labels": {
"airflow": "CFM",
"area": "ft²",
"condensate": "gal / h",
"density": "lb / ft³",
"elevation": "ft",
"enthalpy": "BTU / lb dry air",
"friction_rate": "in. w.g. / 100 ft",
"grains": "gr / lb dry air",
"humidity_ratio": "lb water / lb dry air",
"length": "in",
"load": "MBH (1,000 BTU/h)",
"pressure": "psia",
"relative_humidity": "%",
"specific_volume": "ft³ / lb dry air",
"temperature": "°F",
"velocity": "FPM",
"velocity_pressure": "in. w.g."
},
"units": "IP",
"velocity": 900,
"velocity_pressure": 0.0505
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://x402-agent-api.onrender.com/api/v1/hvac-duct-size' \
-H 'content-type: application/json' \
--data-raw '{"airflow":1000,"friction_rate":0.08}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://x402-agent-api.onrender.com/api/v1/hvac-duct-size' \
-H 'content-type: application/json' \
--data-raw '{"airflow":1000,"friction_rate":0.08}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402-agent-api.onrender.com%2Fapi%2Fv1%2Fhvac-duct-size&method=POST
const res = await pay("https://x402-agent-api.onrender.com/api/v1/hvac-duct-size", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"airflow": 1000,
"friction_rate": 0.08
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://x402-agent-api.onrender.com/api/v1/hvac-duct-size",
json={
"airflow": 1000,
"friction_rate": 0.08,
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 265 ms | $0.002 |
| 6 h ago | Passed | 402 | 226 ms | $0.002 |
| 10 h ago | Passed | 402 | 802 ms | $0.002 |
| 15 h ago | Passed | 402 | 267 ms | $0.002 |
| 19 h ago | Passed | 402 | 278 ms | $0.002 |
Show 10 older checks
| 23 h ago | Passed | 402 | 196 ms | $0.002 |
| 27 h ago | Passed | 402 | 262 ms | $0.002 |
| 32 h ago | Passed | 402 | 276 ms | $0.002 |
| 36 h ago | Passed | 402 | 913 ms | $0.002 |
| 40 h ago | Passed | 402 | 685 ms | $0.002 |
| 44 h ago | Passed | 402 | 257 ms | $0.002 |
| 2 days ago | Passed | 402 | 249 ms | $0.002 |
| 2 days ago | Passed | 402 | 306 ms | $0.002 |
| 2 days ago | Passed | 402 | 223 ms | $0.002 |
| 3 days ago | Passed | 402 | 209 ms | $0.002 |