Skip to content
Fourohtwo

AgentDiet Long-Prompt & RAG Context Compressor

agentdiet.dev/v1/prompt-compress

AgentDiet Long-Prompt & RAG Context Compressor: Compresses long agent prompts and RAG context windows without losing factual fidelity.

BaseUnchecked
GEThttps://agentdiet.dev/v1/prompt-compress

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://agentdiet.dev/v1/prompt-compress?url=https%3A%2F%2Fexample.com&mode=markdown");
console.log(await res.json());

Example input

{
  "url": "https://example.com",
  "mode": "markdown"
}