Skip to content
HALOWERK

Language Model Access

inference repeat prompt budget

Inference budget planning calculates how many sequential calls fit when the first prompt is cold and a prefix is reused. Use it when an agent needs a call allowance for a repeated workload.

POST https://modell.halowerk.com/v1/inference-repeat-prompt-budget

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
modelstringYes
input_tokensintegerYes
output_tokensintegerYes
cached_prefixintegerYes
budget_usdnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "maxLength": 150,
      "minLength": 1
    },
    "input_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "output_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "cached_prefix": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    },
    "budget_usd": {
      "type": "number",
      "minimum": 1e-06,
      "maximum": 1000000
    }
  },
  "required": [
    "model",
    "input_tokens",
    "output_tokens",
    "cached_prefix",
    "budget_usd"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "model": "gpt-4o-mini",
  "input_tokens": 12000,
  "output_tokens": 400,
  "cached_prefix": 1024,
  "budget_usd": 0.1
}

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 โ†’