gate402 · Minify

by gate402

POSTBaseSolanaArbitrumPolygon

$0.005

per call · USD Coin on Base

Compress text: strip filler, collapse JSON, densify prose. Cuts upstream LLM token spend ~40%.

Endpoint

POST https://gate402.app/v1/minify

1

Calls / 30d

1

Unique payers / 30d

Aug 22

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://gate402.app/v1/minify", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "format": "auto",
    "text": "Long verbose passage to compress for LLM ingestion."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://gate402.app/v1/minify" \
  -H "Content-Type: application/json" \
  -d '{"format":"auto","text":"Long verbose passage to compress for LLM ingestion."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "compressed": "Dense text…",
  "stats": {
    "inputTokens": 12000,
    "outputTokens": 7200,
    "reductionPercent": 40
  }
}

Payment details

Pay to0x8e57bfde053dbb6862991759c19affc5f383d5d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesexact

Is this your API?

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

Get featured →

More from gate402 & similar services