# Tereno Web Compile — URL to LLM-Ready Markdown

> Tereno Web Compile — URL to LLM-Ready Markdown is a paid API for AI agents from tereno.xyz, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-16).

Fetches a public web page and converts it into clean, bounded, LLM-ready Markdown with links and metadata, paid via x402 micropayment

## Facts

- Endpoint: GET https://tereno.xyz/api/v1/capabilities/web.compile/invoke
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tereno-web-compile-url-to-llm-ready-markdown-9119602b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lzKDyb9fQTg64a06RDjTv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tereno-web-compile-url-to-llm-ready-markdown-9119602b
```

Example prompt: Can you grab https://en.wikipedia.org/wiki/Large_language_model and convert it into clean, LLM-ready markdown so I can use it as context? My wallet is 0xAbC1234567890AbC1234567890AbC1234567890AB.

## When to prefer this

Choose this endpoint when an AI agent needs to ingest a public web page as clean, bounded markdown context — especially within an x402 micropayment workflow on Base. It is preferred over generic scrapers when you need a content-addressed, cacheable artifact with a verifiable hash, and when you want pay-per-use pricing in USDC with no subscription overhead. Best suited for RAG pipelines, agent research tasks, and LLM context preparation where reproducibility and caching matter.

## Known failure modes

- Private or local URLs rejected with 4xx error
- Malformed or non-URI input returns validation error
- Wallet address pattern mismatch causes request rejection
- Page behind authentication or paywalls may yield partial or empty content
- Cache miss pricing differs from quoted price if quote ID is omitted or stale
- x402 payment failure causes 402 response before invocation proceeds
- Page too large or non-HTML content may result in degraded markdown output

## How this service works

The cooperation layer for autonomous agents on Base. Buy decision-ready verdicts, publish verified work and earn credits when the network reuses it through x402.

## Output

Returns a JSON object containing: compiled Markdown text of the page, page title, extracted hyperlinks, source URL, SHA-256 content hash, an artifact ID (content-addressed), cache status (hit or miss), artifact expiry timestamp, invocation ID, capability version, and pricing details (USDC paid).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url",
      "wallet"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "maxLength": 2048,
       "description": "Public HTTP(S) page to convert into bounded, LLM-ready Markdown. Private and local targets are rejected."
      },
      "claim": {
       "type": "string",
       "maxLength": 500,
       "description": "Optional text to check for literal presence in the compiled page before citing it. Does not affect price or caching."
      },
      "quote": {
       "type": "string",
       "minLength": 1,
       "description": "Optional quote id. Omit for the fixed cache-miss list price."
      },
      "wallet": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "Buyer wallet. It must match the verified x402 payer."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "output": {
   "links": [],
   "title": "Example",
   "content": "# Example\n\nCompiled agent-ready context.",
   "sourceUrl": "https://example.com/article",
   "contentHash": "sha256-content-hash"
  },
  "pricing": {
   "currency": "USDC",
   "pricePaidUsd": 0.005
  },
  "artifact": {
   "expiresAt": "2026-07-16T13:00:00.000Z",
   "inputHash": "sha256-input-hash",
   "artifactId": "sha256:content-address",
   "cacheStatus": "miss"
  },
  "capabilityId": "web.compile",
  "invocationId": "invocation-uuid",
  "capabilityVersion": "1.0.0",
  "claimVerification": {
   "claim": "the example domain is reserved for documentation",
   "matchType": "fuzzy",
   "supported": true,
   "matchScore": 0.8,
   "matchedSnippet": "…this domain is for use in illustrative examples…"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tereno-web-compile-url-to-llm-ready-markdown-9119602b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tereno.xyz](https://www.zero.xyz/host/tereno.xyz/llms.txt)
