{"uid":"cap_uxHnZRQAl0yJq5oRNvUrD","slug":"x402-text-summarizer-8e60a095","name":"x402 Text Summarizer","description":"Summarize and compress text, Markdown, or JSON into a structured summary. Output as prose, bullets, headline, or TLDR, with optional exact target word count. Built for agent and document pipelines.","url":"https://web-production-78e17.up.railway.app/v1/summarize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"Text, Markdown, or JSON string to summarize. Max 100KB."},"format":{"enum":["prose","bullets","headline","tldr"],"type":"string","description":"Output format. Default: prose"},"length":{"enum":["brief","medium","detailed"],"type":"string","description":"Length preset. Ignored when target_words is set. Default: medium"},"explain":{"type":"boolean","description":"Include notes on what was omitted. Default: false"},"input_type":{"enum":["text","markdown","json"],"type":"string","description":"How to interpret the input. Default: text"},"target_words":{"type":"integer","maximum":500,"minimum":1,"description":"Exact target word count (1–500). Overrides length preset."}}},"responseSchema":{"type":"json","example":{"meta":{"model":"claude-haiku-4-5-20251001","format":"headline","input_length":124,"target_words":null,"length_preset":"brief"},"notes":null,"format":"headline","summary":"FastAPI: high-performance Python web framework using type hints.","word_count":8,"compression_ratio":2.5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_baO24MRz1tW5PFHZ9t2Ts","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses text, Markdown, or JSON into a structured summary (prose, bullets, headline, or TL;DR) using Claude AI, paid via x402 USDC micropayment.","exampleAgentPrompt":"Summarize this markdown document into bullet-point format with a medium level of detail, and let me know what was omitted: [paste markdown here]","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'summary' string in the requested format, the word count, compression ratio, the Claude model used, the format and length preset applied, and optional 'notes' explaining what content was omitted if explain=true was set.","failureModes":["Input exceeds 100KB limit — request rejected","Payment not provided or insufficient USDC — 402 Payment Required response","Invalid format or length enum value — validation error","target_words out of range (must be 1–500) — validation error","Claude AI backend unavailable — upstream error","Malformed JSON input when input_type=json — parsing error"],"whenToPreferThis":"Choose this endpoint when you need to compress large text, Markdown, or JSON into a concise summary with a specific format (prose, bullets, headline, TL;DR) and optional word-count control, and are willing to pay a $0.005 USDC micropayment per call. Prefer this over free alternatives when you need Claude-quality summarization, structured output metadata (word count, compression ratio), or support for Markdown and JSON input types beyond plain prose.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:34:13.853Z","isFirstParty":false,"canonicalSlug":"x402-text-summarizer-8e60a095"}