ToolAssay

Cut a document down to a token budget by dropping the lowest-priority sections f

Cut a document down to a token budget by dropping the lowest-priority sections first and truncating the last one at a sentence boundary; exact count of the result. Accepts explicit sections with priorities (or Markdown that is split at headings, with optional priorities by heading text). Required sections are never dropped.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
887 msmedian answer time
$0.002listed price per call
$0.002price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://denk.halowerk.com/v1/token-budget-trim

CategoryMarket data
Provider hostdenk.halowerk.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.002 887 ms
2026-11-25 valid payment request 402$0.002 901 ms
2026-11-24 valid payment request 402$0.002 906 ms
2026-11-23 valid payment request 402$0.002 869 ms
2026-11-22 valid payment request 402$0.002 894 ms
2026-11-21 valid payment request 402$0.002 882 ms
2026-11-20 valid payment request 402$0.002 878 ms

Example input (from the provider)

{
  "body": {
    "budget_tokens": 12,
    "sections": [
      {
        "id": "a",
        "priority": 90,
        "text": "Keep this sentence."
      },
      {
        "id": "b",
        "priority": 10,
        "text": "Drop this one first. It is less important."
      }
    ]
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "budget_tokens": {
              "maximum": 2000000,
              "minimum": 1,
              "type": "integer"
            },
            "markdown": {
              "maxLength": 400000,
              "minLength": 1,
              "type": "string"
            },
            "priorities": {
              "additionalProperties": {
                "maximum": 100,
                "minimum": 0,
                "type": "integer"
              },
              "type": "object"
            },
            "required_headings": {
              "items": {
                "type": "string"
              },
              "maxItems": 100,
              "type": "array"
            },
            "sections": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "maxLength": 64,
                    "type": "string"
                  },
                  "priority": {
                    "default": 50,
                    "maximum": 100,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "required": {
                    "default": false,
                    "type": "boolean"
                  },
                  "text": {
                    "maxLength": 200000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "title": {
                    "maxLength": 300,
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "type": "object"
              },
              "maxItems": 200,
              "minItems": 1,
              "type": "array"
            },
            "separator": {
              "default": "\n\n",
              "maxLength": 20,
              "type": "string"
            },
            "tokenizer": {
              "default": "o200k_base",
              "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"
              ],
              "type": "string"
            },
            "truncate": {
              "default": "sentence",
              "enum": [
                "sentence",
                "none"
              ],
              "type": "string"
            }
          },
          "required": [
            "budget_tokens"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON