← Back to directory

Fit caller-supplied markdown, HTML or plain text to a token budget: structure-aw...

https://fetchweb.net/api/public/optimize

Overview

Fit caller-supplied markdown, HTML or plain text to a token budget: structure-aware reduction with an omission manifest.

Protocol x402 (POST)
Price $0.0015
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider fetchweb
Source bazaar
Indexed 2026-08-25 12:13:37

Health

Status healthy
Latency (p50) 599ms
Uptime (30d) 100.0%
Reliability Score 90/100
Last Checked 2026-10-21 04:51:28
Last Healthy 2026-10-21 04:51:28
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "bodySchema": { "properties": { "content": { "description": "Markdown, HTML or plain text to compress.", "type": "string" }, "input_format": { "default": "auto", "enum": [ "auto", "markdown", "html", "text" ], "type": "string" }, "max_tokens": { "default": 2000, "type": "number" }, "preserve_code": { "default": true, "type": "boolean" }, "preserve_links": { "default": true, "type": "boolean" }, "preserve_tables": { "default": true, "type": "boolean" }, "query": { "description": "Optional task/query to bias relevance.", "type": "string" } }, "required": [ "content" ], "type": "object" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "properties": { "charged": { "type": "boolean" }, "content": { "type": "string" }, "omissions": { "type": "array" }, "outline": { "type": "array" }, "report": { "properties": { "budgetTokens": { "type": "number" }, "estimated": { "type": "boolean" }, "reductionPercent": { "type": "number" }, "tokensIn": { "type": "number" }, "tokensOut": { "type": "number" }, "tokensSaved": { "type": "number" } }, "type": "object" } }, "type": "object" }

Recent Health Checks

Time Status HTTP Latency Error
2026-10-21 04:51:28 healthy 402 444ms
2026-10-20 18:26:11 healthy 402 599ms
2026-10-20 07:27:36 healthy 402 579ms
2026-10-19 12:08:34 healthy 402 432ms
2026-10-18 18:49:51 healthy 402 897ms
2026-10-18 05:45:28 healthy 402 1120ms