x402 Context APIs for AI Agents

x402 · USDC on Base · Pay per request

Utilities for agents that need cheaper context. Read webpages into clean markdown, turn messy text into JSON, reduce bloated prompts, or ask Claude through an optimized context path. Paid per request in USDC on Base via x402. No subscriptions. No API keys.

Endpoints

PathWhat it doesPrice (USDC)
/readFetch any webpage or PDF URL — returns clean markdown, title, language, publication date.$0.002 flat
/jsonifyConvert messy text into schema-shaped JSON.$0.015–$0.12
/token-reducerCompact long prompts or chat histories into a smaller task-preserving prompt while keeping critical constraints, exact facts, and code.$0.005–$0.01
/ask-cheapAsk Claude through an optimized context path: reduce the input first, then return Claude’s answer.$0.015–$0.05

Paid call example

# Step 1: no payment header → 402 + payment terms
curl -s -X POST https://romefeller.app/read \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com/article"}'

# Step 2: sign EIP-3009 USDC transfer (x402 client lib)
# Step 3: retry with payment proof
curl -s -X POST https://romefeller.app/read \
  -H 'Content-Type: application/json' \
  -H 'X-Payment: <signed_proof>' \
  -d '{"url":"https://example.com/article"}'

Compact a long prompt

curl -s -X POST https://romefeller.app/token-reducer \
  -H 'Content-Type: application/json' \
  -H 'X-Payment: <signed_proof>' \
  -d '{"messages":[{"role":"user","content":"<long prompt>"}]}'

Discovery

ResourceURL
Agent discovery/.well-known/agent-discovery.json
Google A2A agent card/.well-known/agent.json
x402 payment catalog/.well-known/x402.json
OpenAPI 3.1 spec/openapi.json
Semantic intents/intents.json
Agent workflows/workflows.json
Machine-readable pricing/pricing.json
EigenFold compression spec/eigenfold.json
Agent integration guide/AGENTS.md
x402 facilitators/.well-known/x402-facilitators.json
Platform compatibility/.well-known/platform-compatibility.json
LLMs.txt/llms.txt  ·  /.well-known/llms.txt
Health & metrics/health

When to use romefeller.app

Use /read when you need clean markdown from a URL or PDF.
Use /jsonify when you need structured JSON from messy text.
Use /token-reducer when prompt or context cost is too high.
Use /ask-cheap when you want Claude output after automatic context compression.

Network

Network: base-mainnet  ·  Receiving: 0x2a4dcdf273be222903629ff3a2222065b017309d