Skip to content
HALOWERK

Paketwerk

model token cost

Calculate standard token cost from the provider price page, with source time. Public metadata with source time and checksum. Selected standard text prices only, prompts up to 100000 tokens; no cache, batch, tools or taxes. Source failures are not charged; no source code is executed.

POST https://paket.halowerk.com/v1/model-token-cost

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
providerSee schemaYes
modelstringYes
input_tokensintegerYes
output_tokensintegerYes
Show full input schema
{
  "type": "object",
  "required": [
    "provider",
    "model",
    "input_tokens",
    "output_tokens"
  ],
  "properties": {
    "provider": {
      "enum": [
        "openai",
        "anthropic"
      ]
    },
    "model": {
      "type": "string"
    },
    "input_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "output_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    }
  },
  "additionalProperties": false
}

Open original schema

Published input example

{
  "provider": "openai",
  "model": "gpt-6.1-sol",
  "input_tokens": 1000,
  "output_tokens": 200
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’