Modellwerk
output validate
Validates output against a JSON Schema and reports each violation with its JSON path, the rule it broke and a sentence saying what to change. Accepts either a parsed object or the raw string a model returned: a payload wrapped in a code fence or surrounded by prose is unwrapped, and the wrapping is reported separately from schema errors so you fix the right layer. Draft 2020-12 and draft-07 are both supported, along with the common string formats.
POST https://modell.halowerk.com/v1/output-validateEingaben
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| output | Siehe Schema | Nein | The model answer, as a parsed JSON value. Either this or output_text. |
| output_text | string | Nein | The raw answer as text. Code fences and surrounding prose are stripped. |
| schema | object | Ja | JSON Schema to validate against. |
| all_errors | boolean | Nein | Report every violation instead of stopping at the first. |
| suggest_repairs | boolean | Nein | List repairable problems (defaultable missing fields, extra fields). |
Vollständiges Eingabeschema anzeigen
{
"type": "object",
"required": [
"schema"
],
"additionalProperties": false,
"properties": {
"output": {
"description": "The model answer, as a parsed JSON value. Either this or output_text."
},
"output_text": {
"type": "string",
"maxLength": 400000,
"description": "The raw answer as text. Code fences and surrounding prose are stripped."
},
"schema": {
"type": "object",
"description": "JSON Schema to validate against."
},
"all_errors": {
"type": "boolean",
"default": true,
"description": "Report every violation instead of stopping at the first."
},
"suggest_repairs": {
"type": "boolean",
"default": true,
"description": "List repairable problems (defaultable missing fields, extra fields)."
}
}
}Veröffentlichtes Eingabebeispiel
{
"schema": {},
"all_errors": true,
"suggest_repairs": true
}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,002 USDC
cost estimate
POSThttps://modell.halowerk.com/v1/cost-estimateWorks 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 f