Language Model Access
inference prompt compression payback
Inference cost analysis finds how many equal calls must reuse a shortened prompt to recover a one-time preprocessing cost. Use it when an agent needs a prompt compression payback horizon.
POST https://modell.halowerk.com/v1/inference-prompt-compression-paybackInputs
| Field | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | |
| original_tokens | integer | Yes | |
| compressed_tokens | integer | Yes | |
| setup_usd | number | Yes |
Show full input schema
{
"type": "object",
"properties": {
"model": {
"type": "string",
"maxLength": 150,
"minLength": 1
},
"original_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 10000000
},
"compressed_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 10000000
},
"setup_usd": {
"type": "number",
"minimum": 1e-06,
"maximum": 1000000
}
},
"required": [
"model",
"original_tokens",
"compressed_tokens",
"setup_usd"
],
"additionalProperties": false
}Published input example
{
"model": "gpt-4o-mini",
"original_tokens": 8192,
"compressed_tokens": 1024,
"setup_usd": 0.25
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.
More endpoints in this hub
- Language Model Access0.003 USDC
chat completions
POSThttps://modell.halowerk.com/v1/chat-completionsAI chat completions API - pay per request with USDC on Base. OpenAI-style messages in, choices and usage out. Runs openai/gpt-oss-20b via Groq Cloud; messages are sent to Groq Inc., USA, payment metadata is not forwarded. At most 8 messages
- Language Model Access0.002 USDC
context plan
POSThttps://modell.halowerk.com/v1/context-planWorks out how to split a document across a model context window: how many chunks, where the cuts fall, how much overlap, and what it will cost. Returns a deterministic JSON result computed only from the supplied input, without external data
- Language Model Access0.002 USDC
cost estimate
POSThttps://modell.halowerk.com/v1/cost-estimateEstimates token use and price for a prompt across several models before you spend anything, including cache and batch discounts. Returns a deterministic JSON result computed only from the supplied input, without external data lookups. Works