ort.halowerk.com/v1/box-fit
Find the smallest box from your carton inventory that fits all items, using a disclosed 3D extreme-point packing heuristic with rotations, support check and weight limits; returns item placements. Boxes are tried from the smallest inner volume upwards. Fast rejections: total item volume larger than the box, an item that fits in no orientation, or weight (items + tare) above the box limit.
POST
https://ort.halowerk.com/v1/box-fitUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ort.halowerk.com/v1/box-fit", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"boxes":[{"inner_height_cm":15,"inner_length_cm":25,"inner_width_cm":20,"name":"S"},{"inner_height_cm":15,"inner_length_cm":35,"inner_width_cm":25,"name":"M"}],"items":[{"height_cm":10,"length_cm":30,"name":"Book","weight_kg":1.2,"width_cm":20}]}),
});
console.log(await res.json());Example input
{
"boxes": [
{
"inner_height_cm": 15,
"inner_length_cm": 25,
"inner_width_cm": 20,
"name": "S"
},
{
"inner_height_cm": 15,
"inner_length_cm": 35,
"inner_width_cm": 25,
"name": "M"
}
],
"items": [
{
"height_cm": 10,
"length_cm": 30,
"name": "Book",
"weight_kg": 1.2,
"width_cm": 20
}
]
}