# modell.halowerk.com LLM Cost Estimator

> modell.halowerk.com LLM Cost Estimator is a paid API for AI agents from modell.halowerk.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Estimates the total API cost for a given LLM call by computing input, output, cache-read, and cache-write costs across models based on text or token counts.

## Facts

- Endpoint: POST https://modell.halowerk.com/v1/cost-estimate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modell-halowerk-com-llm-cost-estimator-fb352155
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5ig2kJeRwzE3IyvrJSdKG

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 modell-halowerk-com-llm-cost-estimator-fb352155 -d '<json body>'
```

Example prompt: How much would it cost to send this 5,000-word document as input and get back a 500-token response — give me the input, output, cache-read, and cache-write cost breakdown per model using modell.halowerk's cost estimator?

## When to prefer this

Use this endpoint when you need a fast, pre-call cost estimate for one or more LLM API calls — especially useful for budget planning, model selection, or pipeline cost analysis. It is ideal when exact tokenization is not critical and a ~15% estimate is acceptable; for exact token counts, tokenize with the vendor's tokenizer first and supply the count directly. Prefer this over the model comparison catalogue endpoint when you have a specific prompt or token count and want cost figures rather than a feature comparison.

## Known failure modes

- Missing both text and token count — request must supply one or the other
- Invalid or unrecognized model name — returns error or excludes that model from results
- Negative or zero output length provided — may return validation error
- Very short text producing low-confidence token estimates — accuracy degrades below ~15% bound
- Network timeout if request payload is extremely large

## How this service works

Works out what a call would cost. Give either the text itself or a token count, plus the expected output length, and get input, output, cache-read and cache-write cost per model with the total. Token counts derived from text are estimates from character and word statistics, not a tokeniser, and typically land within about 15 percent — where an exact count matters, count with the vendor tokeniser.

## Output

A breakdown of estimated costs per model including input cost, output cost, cache-read cost, cache-write cost, and total cost. Token counts are estimated from character and word statistics if raw text is provided (within ~15% accuracy), or taken directly if a token count is supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 200000,
   "description": "The prompt text. Either this or input_tokens."
  },
  "batch": {
   "type": "boolean",
   "default": false,
   "description": "Apply the batch discount where the model has one."
  },
  "calls": {
   "type": "integer",
   "default": 1,
   "maximum": 1000000,
   "minimum": 1,
   "description": "Number of identical calls to multiply by."
  },
  "models": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 20,
   "description": "Model ids to price. All known models if omitted."
  },
  "input_tokens": {
   "type": "integer",
   "maximum": 10000000,
   "minimum": 0,
   "description": "Known input token count. Either this or text."
  },
  "output_tokens": {
   "type": "integer",
   "default": 500,
   "maximum": 1000000,
   "minimum": 0,
   "description": "Expected output length in tokens."
  },
  "cached_input_tokens": {
   "type": "integer",
   "minimum": 0,
   "description": "Of the input tokens, how many are served from cache."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/modell-halowerk-com-llm-cost-estimator-fb352155/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from modell.halowerk.com](https://www.zero.xyz/host/modell.halowerk.com/llms.txt)
