Skip to content
HALOWERK

Language Model Access

inference cache cost split

AI model pricing separates uncached input, cache reads and generated output charges for one request. Use it when an agent needs a verifiable split of a quoted token bill.

POST https://modell.halowerk.com/v1/inference-cache-cost-split

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
modelstringYes
input_tokensintegerYes
output_tokensintegerYes
cached_tokensintegerYes
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_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000
    }
  },
  "required": [
    "model",
    "input_tokens",
    "output_tokens",
    "cached_tokens"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "model": "gpt-4o-mini",
  "input_tokens": 12000,
  "output_tokens": 400,
  "cached_tokens": 8192
}

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