PLATFORM

P4 Pack API

AI-powered 3D bin packing via a simple REST endpoint. Sub-second responses, 3D coordinates, and multiple container support.

P4 Pack API
QUICK START

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
        }
      ]
    }
  ]
}
KEY FEATURES

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

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

LimitValue
Requests per minute10
Concurrent requests1
Request timeout5 seconds
Max items per request100
Max containers per request10
Result retention30 days
View Full API Reference

Ready to integrate AI packing?

Explore the full API reference or try the interactive sandbox.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.