# Container CBM Load Optimizer

> Container CBM Load Optimizer is a paid API for AI agents from x402-niche-briefs.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Calculates how many cartons fit in 20ft, 40ft, and 40HC shipping containers based on carton dimensions and weight.

## Facts

- Endpoint: GET https://x402-niche-briefs.fly.dev/v1/container-cbm-load-optimizer?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/container-cbm-load-optimizer-3940295f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9NYr0bcr5AHUp4-lrSSwk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability container-cbm-load-optimizer-3940295f
```

Example prompt: How many of my cartons fit in a 20ft, 40ft, and 40HC container if each carton is 60cm long, 40cm wide, 30cm tall, and weighs 12kg?

## When to prefer this

Choose this endpoint when you need a fast, deterministic calculation of carton-to-container fit across all three standard container types simultaneously, factoring in both volume (CBM) and weight limits. Ideal for logistics agents, freight planning tools, or e-commerce import workflows that need to compare container options in a single call without building their own CBM math.

## Known failure modes

- Missing required query parameters (carton_l_cm, carton_w_cm, carton_h_cm, carton_kg) returns a validation error
- Non-numeric or negative dimension values may cause errors or unexpected results
- Extremely large carton dimensions exceeding container size may result in zero cartons
- Payment failure via x402 protocol returns 402 response before calculation

## How this service works

Cartons per 20ft/40ft/40HC by volume and weight.

## Output

Returns the carton's CBM, and for each container type (20ft, 40ft, 40HC): the usable CBM, the maximum number of cartons that fit, and whether the constraint is volume or weight. Includes a timestamp of calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "carton_l_cm",
      "carton_w_cm",
      "carton_h_cm",
      "carton_kg"
     ],
     "properties": {
      "carton_kg": {
       "type": "string",
       "description": "Carton kg"
      },
      "carton_h_cm": {
       "type": "string",
       "description": "Carton H cm"
      },
      "carton_l_cm": {
       "type": "string",
       "description": "Carton L cm"
      },
      "carton_w_cm": {
       "type": "string",
       "description": "Carton W cm"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "input",
      "carton_cbm",
      "containers",
      "as_of"
     ],
     "properties": {
      "as_of": {
       "type": "string"
      },
      "input": {
       "type": "object",
       "required": [
        "carton_l_cm",
        "carton_w_cm",
        "carton_h_cm",
        "carton_kg"
       ],
       "properties": {
        "carton_kg": {
         "type": "number"
        },
        "carton_h_cm": {
         "type": "number"
        },
        "carton_l_cm": {
         "type": "number"
        },
        "carton_w_cm": {
         "type": "number"
        }
       }
      },
      "carton_cbm": {
       "type": "number"
      },
      "containers": {
       "type": "object",
       "required": [
        "20ft",
        "40ft",
        "40HC"
       ],
       "properties": {
        "20ft": {
         "type": "object",
         "required": [
          "usable_cbm",
          "max_cartons",
          "limited_by"
         ],
         "properties": {
          "limited_by": {
           "type": "string"
          },
          "usable_cbm": {
           "type": "number"
          },
          "max_cartons": {
           "type": "number"
          }
         }
        },
        "40HC": {
         "type": "object",
         "required": [
         
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/container-cbm-load-optimizer-3940295f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-niche-briefs.fly.dev](https://www.zero.xyz/host/x402-niche-briefs.fly.dev/llms.txt)
