Show HN: AI API for 3D container packing
I’ve just released an AI API for 3dpack.ing
. Instead of structuring inputs, you can now send a free-text prompt and get optimized packing back as JSON + 3D visualization link.
Example:
curl -X POST https://3dpack.ing/api/ai/calculate \ -H "Content-Type: application/json" \ -d '{ "prompt": "Ship 24 pcs 200.3x120.2x100.2 cm (non-tiltable) using optimal mix of 40ft and 20ft containers", "apiKey": "test", "username": "test" }'
Response includes:
{ "containers": [ { "containerDims": { "length": 1203.2, "width": 235.0, "height": 269.24 }, "totalQuantity": 20, "volumeUsage": 63.4 }, { "containerDims": { "length": 589.28, "width": 235.0, "height": 239.0 }, "totalQuantity": 4, "volumeUsage": 29.2 } ], "unpackedItems": { "total": 0 }, "linkToResult": "https://3dpack.ing?g=56455ed9-5339-4f46-8c41-cb7462f7aaa1" }
Supports units, decimals, and constraints Supports getting precise coordinates for each placement Full support for stackability, fragility, and orientation rules Automatically selects the right container mix (in this case, 1×40ft + 1×20ft) Returns a direct 3D visualization link
I’d love feedback on API design (fields, constraints parsing, pricing). Docs: https://3dpack.ing/api-docs.html
No comments yet