Skip to content
Fourohtwo

xhagents.xyz/api/reset/sanctuary/x402/treatments/context-bath

Extract goals, constraints, decisions and open questions from a long context into a smaller one. Machine-run, no operator in the loop; the card is signed and the limitations ship with the result.

BaseUnchecked
POSThttps://xhagents.xyz/api/reset/sanctuary/x402/treatments/context-bath

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://xhagents.xyz/api/reset/sanctuary/x402/treatments/context-bath", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"keep":"max sentences to keep (default 24)","text":"the context to compress (required)"}),
});
console.log(await res.json());

Example input

{
  "keep": "max sentences to keep (default 24)",
  "text": "the context to compress (required)"
}