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-estimateEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| text | string | Nein | The prompt text. Either this or input_tokens. |
| input_tokens | integer | Nein | Known input token count. Either this or text. |
| output_tokens | integer | Nein | Expected output length in tokens. |
| models | array | Nein | Model ids to price. All known models if omitted. |
| calls | integer | Nein | Number of identical calls to multiply by. |
| cached_input_tokens | integer | Nein | Of the input tokens, how many are served from cache. |
| batch | boolean | Nein | Apply 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."
}
}
}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
- Modellwerk0,003 USDC
chat completions
POSThttps://modell.halowerk.com/v1/chat-completionsRuns openai/gpt-oss-20b via GroqCloud. Messages are sent to Groq Inc., USA; payment metadata is not forwarded. At most 8 messages, 8192 UTF-8 bytes overall and 1024 completion tokens including reasoning. A length finish_reason exposes trunc
- Modellwerk0,002 USDC
context plan
POSThttps://modell.halowerk.com/v1/context-planPlans the division of a long input for a given model. It reserves room for the system prompt, the expected answer and a safety margin, then works out how many chunks are needed and where to cut, preferring paragraph boundaries over line and
- Modellwerk0,003 USDC
document rerank
POSThttps://modell.halowerk.com/v1/document-rerankEmbeds a query and at most 20 short documents on local nomic-embed-text, then sorts by cosine similarity with stable input-index tie breaks. Scores are not probabilities. No third-party text transfer; input is not silently truncated.