Skip to content
HALOWERK

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-payback

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
modelstringYes
original_tokensintegerYes
compressed_tokensintegerYes
setup_usdnumberYes
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
}

Open original schema

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

All endpoints in this hub โ†’