# Penny Engine — Price Batch Profitability Analyzer

> Penny Engine — Price Batch Profitability Analyzer is a paid API for AI agents from penny-paid-batch-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-23).

Evaluates up to 50 pricing scenarios and returns profit estimates, identifying the highest-profit plan given price, cost, fees, ads, and shipping inputs.

## Facts

- Endpoint: POST https://penny-paid-batch-production.up.railway.app/api/price-batch?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/penny-engine-price-batch-profitability-analyzer-e38818bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M1A1gArhT521InF16gF4M

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 penny-engine-price-batch-profitability-analyzer-e38818bd -d '<json body>'
```

Example prompt: I have two pricing scenarios for my product — Plan A: price $25, cost $10, shipping $3, ads $2, fee 10%; Plan B: price $30, cost $12, shipping $4, ads $3, fee 10%. Can you batch-evaluate both and tell me which one gives me the highest estimated profit, targeting a 30% margin?

## When to prefer this

Choose this endpoint when you need to batch-compare multiple pricing configurations (up to 50) for profitability in a single call, especially in ecommerce or dropshipping contexts where price, cost, shipping, ads, and fee percentage all vary across scenarios. It is purpose-built for ranking plans by estimated profit and identifying the highest-margin option, making it more efficient than calling a single-scenario calculator repeatedly.

## Known failure modes

- Missing required 'price' or 'cost' fields in any scenario returns a validation error
- Submitting more than 50 scenarios exceeds maxItems and is rejected
- Negative or non-numeric values for cost/price may produce unexpected results or errors
- Empty scenarios array (minItems:1 not met) returns a schema validation error
- Network or server errors on Railway deployment may return 5xx responses

## How this service works

Machine-to-machine result validation via x402. One structured call, deterministic PASS or FAIL and SHA-256 fingerprint, $0.001 USDC on Base.

## Output

Returns a JSON object with the total count of evaluated scenarios, the currency (USD), a list of scenario results with estimated profit per scenario, a plain-language assumptions note, and a highlighted 'highestEstimatedProfit' object identifying the best-performing plan ID and its estimated profit in USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "scenarios": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "price",
     "cost"
    ],
    "properties": {
     "ads": {
      "type": "number"
     },
     "cost": {
      "type": "number"
     },
     "price": {
      "type": "number"
     },
     "feePct": {
      "type": "number"
     },
     "shipping": {
      "type": "number"
     }
    }
   },
   "maxItems": 50,
   "minItems": 1
  },
  "targetMarginPct": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "currency": "USD",
  "scenarios": [],
  "assumptions": "Estimates from supplied data.",
  "highestEstimatedProfit": {
   "id": "plan-B",
   "estimatedProfitUsd": 7.52
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-engine-price-batch-profitability-analyzer-e38818bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from penny-paid-batch-production.up.railway.app](https://www.zero.xyz/host/penny-paid-batch-production.up.railway.app/llms.txt)
