3D Bin Packing
API

Pack items into containers with mathematically optimal placement. Void space nesting, multi-box splitting, and dimensional weight optimization — all through a single REST endpoint.

Everything you need to optimize packing

Optimal Packing

EB-AFIT algorithm finds near-optimal placement by testing all 6 orientations at every available space in the container.

Void Space Nesting

Hollow items have internal cavities? The algorithm packs smaller items inside them — rectangular, cylindrical, or spherical voids.

Multi-Box Splitting

Too many items for one box? Enable multi-box mode and the API automatically distributes items across the fewest containers possible.

API-First

One POST request, JSON in and out. Integrate into any language or platform in minutes. No SDKs required.

3D Visualization

See exactly how items are packed with an interactive 3D viewer built into the dashboard. Rotate, zoom, and inspect every placement.

Usage Dashboard

Track API calls, manage API keys, and monitor usage with a built-in dashboard. Know exactly how your packing quota is being used.

One request. Optimal packing.

Send your containers and items, get back exact coordinates.

Request
curl -X POST https://api.fractalpack.com/api/v1/pack \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "containers": [{
    "id": "box-1",
    "length": 10, "width": 10, "height": 10,
    "maxWeight": 100
  }],
  "items": [{
    "id": "cube",
    "length": 5, "width": 5, "height": 5,
    "weight": 2, "quantity": 8
  }]
}'
Response
{
  "results": [{
    "containerId": "box-1",
    "packedItems": [
      {
        "id": "cube",
        "coordinate": {"x":0,"y":0,"z":0},
        "packedDimensions": {
          "length":5,"width":5,"height":5
        }
      },
      // ... 7 more cubes
    ],
    "volumeUtilizationPercent": 100.0,
    "totalWeight": 16
  }]
}

How it works

1

Define your items

Specify container dimensions, item sizes, weights, and quantities. Optionally define void spaces for nesting.

2

Call the API

Send a single POST request. The EB-AFIT algorithm evaluates all orientations and positions to find the best fit.

3

Get coordinates

Receive exact X/Y/Z placement coordinates, volume utilization percentage, and any items that didn't fit.

Ready to optimize your packing?

Sign up for free, get an API key, and start packing in under a minute.

Get Started Free