Skip to content
HALOWERK

Language Model Access

inference output affordability

Inference token budgeting finds the maximum generated tokens affordable after a fixed prompt cost. Use it when an agent needs a generation ceiling under both price and model limits.

POST https://modell.halowerk.com/v1/inference-output-affordability

Inputs

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

Open original schema

Published input example

{
  "model": "gpt-4o-mini",
  "input_tokens": 8000,
  "budget_usd": 0.005
}

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