Denkwerk
prompt compress
Deterministic transformations in two levels. lossless: removes zero-width and BOM characters, turns no-break spaces into spaces, strips trailing whitespace, collapses inner space runs and blank-line runs, minifies JSON code blocks or a pure-JSON prompt; fenced code blocks are otherwise left untouched (indentation matters). light additionally removes HTML comments, ** and __ emphasis markers, horizontal rules after blank lines, table cell padding and exact duplicate lines (15+ characters)..
POST https://denk.halowerk.com/v1/prompt-compressInputs
| Field | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | UTF-8 text. |
| level | string | No | |
| tokenizer | string | No | Tokenizer id; see supported_tokenizers in the token-count-multi result. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100000,
"description": "UTF-8 text."
},
"level": {
"type": "string",
"enum": [
"lossless",
"light"
],
"default": "lossless"
},
"tokenizer": {
"type": "string",
"enum": [
"o200k_base",
"cl100k_base",
"p50k_base",
"r50k_base",
"qwen2.5",
"deepseek-v3",
"mistral-tekken",
"falcon",
"gpt-neox",
"yi-1.5",
"granite-3.3",
"glm-4.5"
],
"description": "Tokenizer id; see supported_tokenizers in the token-count-multi result.",
"default": "o200k_base"
}
}
}Published input example
{
"text": "Please answer briefly.\n\n\n\n```json\n{\n \"a\": 1\n}\n```",
"level": "lossless"
}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
- Denkwerk0.003 USDC
agent card generate
POSThttps://denk.halowerk.com/v1/agent-card-generateBuilds an Agent2Agent protocol Agent Card with protocolVersion, name, description, url, version, capabilities, default input/output modes and skills. Skills come from the supplied list or are derived from OpenAPI operations (operationId, su
- Denkwerk0.003 USDC
agent permission diff
POSThttps://denk.halowerk.com/v1/agent-permission-diffTakes the tool names (with optional descriptions) and permission scopes of an agent before and after a change and reports added and removed tools and scopes, classifies new capabilities by risk (payments, sending messages, deleting or writi
- Denkwerk0.003 USDC
annotation guide draft
POSThttps://denk.halowerk.com/v1/annotation-guide-draftTakes example texts per label and derives, without a language model, the most distinguishing terms per label (TF-IDF contrast against the other labels), representative examples, cross-label example pairs with high similarity that need a wri