Zum Inhalt
HALOWERK

Modellwerk

cost estimate

Works out what a call would cost. Give either the text itself or a token count, plus the expected output length, and get input, output, cache-read and cache-write cost per model with the total. Token counts derived from text are estimates from character and word statistics, not a tokeniser, and typically land within about 15 percent — where an exact count matters, count with the vendor tokeniser.

POST https://modell.halowerk.com/v1/cost-estimate

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
textstringNeinThe prompt text. Either this or input_tokens.
input_tokensintegerNeinKnown input token count. Either this or text.
output_tokensintegerNeinExpected output length in tokens.
modelsarrayNeinModel ids to price. All known models if omitted.
callsintegerNeinNumber of identical calls to multiply by.
cached_input_tokensintegerNeinOf the input tokens, how many are served from cache.
batchbooleanNeinApply the batch discount where the model has one.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 200000,
      "description": "The prompt text. Either this or input_tokens."
    },
    "input_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000000,
      "description": "Known input token count. Either this or text."
    },
    "output_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000,
      "default": 500,
      "description": "Expected output length in tokens."
    },
    "models": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "description": "Model ids to price. All known models if omitted."
    },
    "calls": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000,
      "default": 1,
      "description": "Number of identical calls to multiply by."
    },
    "cached_input_tokens": {
      "type": "integer",
      "minimum": 0,
      "description": "Of the input tokens, how many are served from cache."
    },
    "batch": {
      "type": "boolean",
      "default": false,
      "description": "Apply the batch discount where the model has one."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "output_tokens": 500,
  "calls": 1,
  "batch": false
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →