← 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) 567ms
Uptime (30d) 100.0%
Reliability Score 87/100
Last Checked 2026-08-29 00:51:59
Last Healthy 2026-08-29 00:51:59
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-08-29 00:51:59 healthy 402 333ms
2026-08-28 21:26:35 healthy 402 473ms
2026-08-28 10:13:23 healthy 402 540ms
2026-08-28 06:21:38 healthy 402 787ms
2026-08-28 00:44:48 healthy 402 292ms
2026-08-27 17:24:24 healthy 402 813ms
2026-08-27 08:14:55 healthy 402 567ms
2026-08-26 23:50:17 healthy 402 658ms
2026-08-26 12:04:47 healthy 402 854ms
2026-08-26 02:19:06 healthy 402 483ms