# API Pricing Engine - Calculate Optimal Pricing

> API Pricing Engine - Calculate Optimal Pricing is a paid API for AI agents from api-pricing-engine.johntaylor1online.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Calculates optimal per-call and subscription pricing for an API based on provided input and output specifications

## Facts

- Endpoint: POST https://api-pricing-engine.johntaylor1online.workers.dev/calculate
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-pricing-engine-calculate-optimal-pricing-d7f9ed5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IX_mzsLPmShANbJnFTmXX

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 api-pricing-engine-calculate-optimal-pricing-d7f9ed5b -d '<json body>'
```

Example prompt: Can you calculate the optimal per-call and subscription pricing for my HTTP POST API that takes structured input and returns JSON output with pricing recommendations?

## When to prefer this

Choose this endpoint when you need a quick, automated computation of API pricing — specifically per-call and subscription rates — based on your API's structural characteristics. It is best suited for API developers and product teams monetizing HTTP APIs who want a data-driven starting point rather than guessing or manually researching market rates. Prefer this over general market comparison tools when you need a concrete price recommendation for a specific endpoint configuration.

## Known failure modes

- Missing required 'input' or 'output' fields returns a validation error
- Input type not set to 'http' or method not set to 'POST' may cause rejection due to const/enum constraints
- Malformed JSON body returns a parsing error
- Service unavailability on the Cloudflare Workers edge may return a 5xx error
- Payment failure via x402 protocol may block access before computation

## How this service works

Calculate optimal per-call and subscription pricing for an API

## Output

Returns a computed pricing recommendation including optimal per-call price and subscription pricing figures based on the API's input/output characteristics and method type.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "body": {},
     "enum": [
      "POST"
     ],
     "type": "string",
     "bodyType": "json"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-pricing-engine-calculate-optimal-pricing-d7f9ed5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-pricing-engine.johntaylor1online.workers.dev](https://www.zero.xyz/host/api-pricing-engine.johntaylor1online.workers.dev/llms.txt)
