P4 Pack API
AI-powered 3D bin packing via a simple REST endpoint. Sub-second responses, 3D coordinates, and multiple container support.
One endpoint, infinite possibilities
Send items and containers as JSON — get optimized 3D placements back in milliseconds.
Request
POST /api/pack Content-Type: application/json { "items": [ { "name": "Laptop Box", "length": 15, "width": 12, "height": 4, "unit": "in", "quantity": 8, "weight": 5.2 } ], "containers": [ { "name": "Medium Carton", "length": 24, "width": 18, "height": 16, "unit": "in", "loadingMode": "topDown" } ] }
Response
{
"id": "a1b2c3d4-...",
"totalContainers": 2,
"totalItemsPacked": 8,
"containers": [
{
"name": "Medium Carton",
"utilization": 0.83,
"items": [
{
"name": "Laptop Box",
"x": 0, "y": 0, "z": 0,
"packedLength": 15,
"packedWidth": 12,
"packedHeight": 4
}
]
}
]
}Everything your packing workflow needs
Sub-Second Response
AI-optimized packing results in under 200ms, enabling real-time integration into checkout and fulfillment workflows.
3D Coordinates
Exact X, Y, Z placement coordinates for every item, with packed dimensions accounting for rotation.
Multi-Container
Provide multiple container types and the engine selects the optimal one — or uses multiple if needed.
Weight Constraints
Set per-item weights and a max container weight. The engine respects weight limits when packing.
Loading Modes
Top-down, front-load, and side-load modes for boxes, pallets, trailers, and containers.
SVG Visualization
Retrieve 2D SVG diagrams for any packed container — perfect for reports and labels.
Authentication & Rate Limits
Free Tier
No API key required. Use the API immediately with 10 requests/minute and 1 concurrent request. Results stored for 30 days.
Commercial Tier
Add an X-Api-Key header for higher limits, extended retention, and priority support. Contact sales for a key.
Free Tier Rate Limits
| Limit | Value |
|---|---|
| Requests per minute | 10 |
| Concurrent requests | 1 |
| Request timeout | 5 seconds |
| Max items per request | 100 |
| Max containers per request | 10 |
| Result retention | 30 days |