The Case Study Innovations Logo
Contact Us

Packem: AI-Powered 3D Bin-Packing on Google Cloud

Last updated: October 27, 2025

3D bin packing illustration on Google Cloud

Introduction

Inefficient packing costs businesses millions every year through wasted space, increased shipping fees, and slower warehouse operations. Finding the most space-efficient arrangement of items in boxes, pallets, or containers is a complex 3D problem that grows exponentially with the number of items. Packem, developed by The Case Study Innovations, leverages AI and advanced optimization algorithms to solve this challenge. By automating the packing process and maximizing space utilization, Packem helps businesses reduce costs, improve logistics efficiency, and scale globally. To achieve reliable performance at scale, we deployed Packem on Google Cloud, enabling serverless, globally accessible, high-performance operations.

Inside Packem: The Technology

At its core, Packem is an AI-powered 3D packing engine that helps businesses fit items into boxes, pallets, and containers as efficiently as possible. Even a small set of items can have thousands of possible arrangements, making manual optimization virtually impossible. Packem automates this process by allowing users to define items, bins, objectives, and rules — such as rotation permissions, fragile items, or weight distribution. The AI computes the optimal arrangement balancing space utilization, stability, and priority constraints. Results are provided as structured data for integration with enterprise systems, as well as visual layouts for intuitive understanding.

Packem combines advanced heuristics and constraint-solving algorithms, implemented in Python 3.11 and exposed via a FastAPI REST API. Requests are handled serverlessly on Google Cloud Run, which automatically scales to accommodate high-volume workloads or multiple users. Each request produces detailed packing plans, including item coordinates, bin usage, and optional visualizations — allowing businesses to simulate configurations, test “what-if” scenarios, and ensure fragile or high-priority items are packed correctly.

Packem’s cloud-native architecture ensures reliability and security. Requests pass through Google Cloud API Gateway for authentication and rate limiting, while Cloud Storage stores inputs, outputs, and analytics. This serverless setup allows complex 3D optimization tasks to execute quickly, reliably, and at global scale, delivering measurable business impact: saving space, reducing shipping costs, and accelerating logistics operations.

Why We Chose Google Cloud

Packem was designed to be API-driven, serverless, and globally accessible. As our user base and data volume grew, we needed a cloud platform that could scale automatically, ensure low latency worldwide, and reduce infrastructure overhead. Google Cloud provided the perfect combination of services, enabling us to deploy an architecture that is both powerful and effortless to maintain:

  • Cloud Run — serverless container deployment with fast cold starts, automatic scaling, and a fully managed environment that removes operational burden.
  • Cloud Load Balancing — seamless global HTTPS routing for low-latency, zero-downtime delivery.
  • Cloud Storage — secure, globally available storage for static assets, API documentation, and visual outputs.
  • API Gateway — centralized authentication, rate limiting, and endpoint management for secure API access.

Together, these services form a unified backbone that lets Packem scale effortlessly across regions, handle large volumes of optimization requests, and maintain consistent performance worldwide — without the need for manual infrastructure management.

Architecture Overview

1. Get API Key

Users obtain a secure API key via Google Marketplace to access Packem.

2. Send Request

Users send packing requests using their API key to our custom domain.

3. API Gateway & Load Balancer

The request is routed securely through API Gateway and Load Balancer to the Packem API.

4. Cloud Run & Packem API

Cloud Run executes the backend code, performs the optimization, and returns structured results along with visual layouts.

Operational Impact

Since migrating to Google Cloud, Packem has achieved exceptional reliability and scalability, ensuring a seamless experience for both developers and end users. The system consistently delivers:

  • 99.9% uptime with fully managed, serverless infrastructure.
  • Sub-second cold starts on Cloud Run through optimized concurrency tuning.
  • Global latency under 300 ms across Europe and North America.
  • Zero DevOps overhead — scaling and monitoring fully automated.

These operational gains directly translated into measurable business outcomes: early adopters in logistics and warehouse automation reported up to 20% better space utilization through Packem’s optimization API — powered entirely by Google Cloud’s elasticity and reliability.

Looking Ahead

Google Cloud has been instrumental in helping us build Packem into a globally available, intelligent optimization platform. With Cloud Run, Load Balancing, and Cloud Storage at its core, Packem delivers reliable, secure, and high-performance optimization — without servers to manage or maintain.

Moving forward, our roadmap focuses on deeper integration with Vertex AI for predictive packing behavior and BigQuery for large-scale analytics. These additions will empower Packem to deliver even smarter, data-driven optimization for enterprise supply chain systems worldwide.

“With Google Cloud, we can deploy new models instantly, scale automatically, and focus on solving the optimization problem — not maintaining infrastructure.”

Learn More

We use cookies to improve analytics, personalize content, and support ads. Choose your preferences below.

Analytics tracking
Personalized content
Targeted ads