H

Halowerk · Memory Compact

by Halowerk

POSTBase

$0.005

per call · USD Coin on Base

Takes a message history and a character budget and returns a shortened history together with a full account of what it cost. Four stages run in fixed order: pin protects messages that must survive (roles listed in keep_roles, the last keep_last_n messages, and anything you marked pin), dedupe removes later near-duplicates of an earlier message of the same role using word-overlap similarity, trim shortens unprotected survivors to max_message_chars at the last sentence boundary, and drop removes…

Endpoint

POST https://agent.halowerk.com/v1/memory-compact

1

Calls / 30d

1

Unique payers / 30d

Aug 19

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent.halowerk.com/v1/memory-compact", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "budget_chars": 400,
    "duplicate_threshold": 0.9,
    "keep_last_n": 2,
    "keep_roles": [
      "system"
    ],
    "max_message_chars": 120,
    "messages": [
      {
        "content": "You are a logistics dispatcher. Always answer with the shipment id first.",
        "role": "system"
      },
      {
        "content": "Where is shipment DE-4471? It left Hamburg on Monday morning and should reach Lyon by Thursday.",
        "role": "user"
      },
      {
        "content": "DE-4471 is in transit and cleared the Strasbourg hub at 03:10. Estimated arrival in Lyon is Thursday 14:00.",
        "role": "assistant"
      },
      {
        "content": "Where is shipment DE-4471? It left Hamburg on Monday morning and should reach Lyon by Thursday.",
        "role": "user"
      },
      {
        "content": "DE-4471 is still on schedule, no new scan since Strasbourg.",
        "role": "assistant"
      },
      {
        "content": "Good. Book the return leg for Friday.",
        "role": "user"
      }
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent.halowerk.com/v1/memory-compact" \
  -H "Content-Type: application/json" \
  -d '{"budget_chars":400,"duplicate_threshold":0.9,"keep_last_n":2,"keep_roles":["system"],"max_message_chars":120,"messages":[{"content":"You are a logistics dispatcher. Always answer with the shipment id first.","role":"system"},{"content":"Where is shipment DE-4471? It left Hamburg on Monday morning and should reach Lyon by Thursday.","role":"user"},{"content":"DE-4471 is in transit and cleared the Strasbourg hub at 03:10. Estimated arrival in Lyon is Thursday 14:00.","role":"assistant"},{"content":"Where is shipment DE-4471? It left Hamburg on Monday morning and should reach Lyon by Thursday.","role":"user"},{"content":"DE-4471 is still on schedule, no new scan since Strasbourg.","role":"assistant"},{"content":"Good. Book the return leg for Friday.","role":"user"}]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x2880edfff13100677bf97a3cbdf3bc34771c4e5e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Halowerk & similar services

H

Halowerk · LLM Catalog

modell.halowerk.com

A comparison table of language models: input, output and cache prices per million tokens, context window, maximum output length, batch discount and a short note on what each is suited to. Filter by vendor, by a maximum price, by the context window you need, or by capability tag. Every row carries the date its prices were last checked, so a stale figure is visible rather than silently wrong.

POSTBaseAI & Inference
$0.005 / call8 calls / 30d
H

Halowerk · EV Charging

karte.halowerk.com

Queries OpenStreetMap for charging stations within a radius of a point and returns each with its position, distance, operator, network, connector types with their individual power ratings and socket counts, access restrictions, fee status, opening hours and whether authentication is required. Results are sorted nearest first and can be filtered to a minimum power or a required connector type, which is the question a vehicle actually has.

POSTBaseOther
$0.005 / call5 calls / 30d
H

Halowerk · Inverter Load Check

solar.halowerk.com

Continuous load is the sum of the running watts of all appliances marked as simultaneous. The surge check adds the largest single starting surge on top of the continuous load, which is the case that trips an inverter; simultaneous starts of two motors are reported separately as a second figure. Starting factors and power factors are design rules of thumb per appliance class and are stated in the response, they are not device data.

POSTBaseOther
$0.002 / call4 calls / 30d