Tube & Pipe Cutting Optimization API
Yes — there is an API for tube and pipe cutting. Cutting tube, pipe or hollow section to length is a 1D cutting-stock problem, and the same engine that powers the CutOptim app is callable over HTTP. Your ERP, estimating or MES software sends the cut list and the available bar lengths as JSON and gets back the optimized cut plan, the number of bars and the yield — no browser, no clicks.
This is live today — the CutOptim engine already runs 1D optimization in production for the app; the Engine API exposes the exact same solver over HTTP, so the plan an API call returns matches what the app shows.
POST /v1/optimize/1d
{
"parts": [
{ "length": 1200, "qty": 8, "meta": { "ref": "RHS-40x40" } },
{ "length": 2450, "qty": 4 }
],
"stock": [{ "length": 6000, "qty": 50, "price": 21.5 }],
"options": { "kerf": 2 }
}- — Live today on POST /v1/optimize/1d — the same engine as the app, not a pre-release.
- — Free validation: POST /v1/validate/1d checks a job with no key and no quota.
- — Attach a meta object (article number, order line) and it comes back on every placed cut.
- — The reported off-cut is the usable remainder — the freeing kerf is already deducted.
Why fabricators need it
Cutting a job of tube or pipe in the order it appears on the list wastes a published 15–30% of the stock. A 1D optimizer rearranges the cuts across bars to bring waste well below that. Doing it by hand does not scale to hundreds of parts; doing it inside your own software, through the API, does.
What you send and what comes back
Send the part lengths (with quantities) and the available bar lengths and prices as JSON. The response carries the full cut plan bar by bar, the bar count, the yield, the total length sawn, and the usable off-cut left on each bar (kerf already deducted). Ask for include:["csv","dxf"] and the cut list comes back as a file inline in the response.
Deterministic — reproducible for quotes and audits
The same request always returns the same cut plan: no randomness, no clock in the algorithm. A quote built from an API call can be reproduced months later for an audit or a repeat order, and results can be cached and diffed in tests.
A two-page summary — the problem, what you send and get back, a request and response, and how to build on the engine. Print-ready, with a QR back to this page.