# Air vs Ocean Freight Break-Even Calculator

> Air vs Ocean Freight Break-Even Calculator 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).

Compares total cost of air freight vs ocean freight including inventory carrying cost during transit days to determine the cheaper shipping mode and savings.

## Facts

- Endpoint: GET https://x402-niche-briefs.fly.dev/v1/air-vs-ocean-breakeven?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/air-vs-ocean-freight-break-even-calculator-ff289a17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_csGfTB_igjpjJiehFqvyh

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 air-vs-ocean-freight-break-even-calculator-ff289a17
```

Example prompt: Compare air vs ocean freight for my shipment: 500 chargeable kg, 3 CBM, air rate is $6.50/kg, ocean LCL rate is $120/CBM, goods are worth $80,000, our carrying cost is 25% per year, air transit is 3 days, ocean transit is 28 days — which mode is cheaper and by how much?

## When to prefer this

Use this endpoint when you need to compare freight modes factoring in the often-overlooked inventory carrying cost of slower transit — not just raw freight rates. Ideal for supply chain agents, logistics cost optimizers, and e-commerce operators deciding between air and ocean for time-sensitive or high-value cargo where holding cost is material.

## Known failure modes

- Missing required query parameters returns an error — all eight parameters (chargeable_kg, cbm, air_rate_per_kg, ocean_rate_per_cbm, goods_value_usd, carrying_cost_pct_yr, air_days, ocean_days) are required
- Non-numeric string values for numeric fields may cause computation errors
- Zero or negative goods_value_usd will make carrying cost zero, skipping transit-day cost impact
- Payment failure or expired x402 credentials result in 402 Payment Required response

## How this service works

Compare air vs ocean including inventory carrying cost of transit days.

## Output

Returns the total all-in cost for both air freight and ocean freight (incorporating the inventory carrying cost of the respective transit days), identifies which mode is cheaper, the dollar savings, the echoed input parameters, and a timestamp of the 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": [
      "chargeable_kg",
      "cbm",
      "air_rate_per_kg",
      "ocean_rate_per_cbm",
      "goods_value_usd",
      "carrying_cost_pct_yr",
      "air_days",
      "ocean_days"
     ],
     "properties": {
      "cbm": {
       "type": "string",
       "description": "CBM"
      },
      "air_days": {
       "type": "string",
       "description": "Air transit days"
      },
      "ocean_days": {
       "type": "string",
       "description": "Ocean transit days"
      },
      "chargeable_kg": {
       "type": "string",
       "description": "Chargeable kg"
      },
      "air_rate_per_kg": {
       "type": "string",
       "description": "Air $/kg"
      },
      "goods_value_usd": {
       "type": "string",
       "description": "Goods value"
      },
      "ocean_rate_per_cbm": {
       "type": "string",
       "description": "Ocean LCL $/CBM"
      },
      "carrying_cost_pct_yr": {
       "type": "string",
       "description": "Carrying cost %/yr"
      }
     }
    }
   },
   "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",
      "air_total_usd",
      "ocean_total_usd",
      "cheaper",
      "savings_usd",
      "as_of"
     ],
     "properties": {
      "as_of": {
       "type": "string"
      },
      "input": {
       "type": "object",
       "required": [
        "chargeable_kg",
        "cbm",
        "air_rate_per_kg",
        "ocean_rate_per_cbm",
        "goods_value_usd",
        "carrying_cost_pct_yr",
        "air_days",
        "ocean_days"
       ],
       "properties": {
        "cbm": {
         "type": "number"
        },
        "air_days": {
         "type": "number"
        },
        "ocean_days": {
         "type": "number"
        },
        "chargeable_kg": {
         "type": "number"
        },
        "air_rate_per_kg": {
         "type": "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/air-vs-ocean-freight-break-even-calculator-ff289a17/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)
