{"uid":"cap__lr0zm6AcN8GsfyRv3PK_","slug":"x402-gateway-text-summarizer-b2dbabfa","name":"x402-gateway Text Summarizer","description":"Use when you need to summarize text such as an article, notes or a transcript into a short summary. Do not use for uRLs or PDFs (extract the text first), exact quotes or citations. Returns JSON with a concise summary of the plain text you send (up to 20,000 characters): one short paragraph and key bullet points, written by IBM Granite 4.0 Micro on Workers AI for 0.008 USDC per call. Typical response time 8000 ms (p95). Category: Inference.","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/summarize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":20000,"minLength":80,"description":"Plain text to summarize, e.g. an article or a transcript (80 to 20,000 characters)"},"language":{"type":"string","maxLength":30,"minLength":2,"description":"Language for the summary, e.g. English or Portuguese (default: the language of the text)"},"maxBullets":{"type":"integer","maximum":10,"minimum":1,"description":"Most bullet points to return (1-10, default 5)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["summary","bullets","model","inputChars","usage"],"properties":{"next":{"type":"object","required":["service","tool","method","url","useWhen","sample"],"properties":{"url":{"type":"string","description":"Paid route of the next call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"enum":["GET","POST"],"type":"string"},"sample":{"type":"string","description":"Free fixed sample of the whole family"},"service":{"type":"string","description":"Service id of the suggested next paid call"},"useWhen":{"type":"string","description":"When the next call is the right one"}},"description":"Suggested next paid call in the same family (call it in a loop when the task continues)","additionalProperties":false},"model":{"type":"string"},"usage":{"type":"object","required":["promptTokens","completionTokens"],"properties":{"promptTokens":{"type":["number","null"]},"completionTokens":{"type":["number","null"]}},"additionalProperties":false},"bullets":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"inputChars":{"type":"number"}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"model":"@cf/ibm-granite/granite-4.0-h-micro","usage":{"promptTokens":200,"completionTokens":173},"bullets":["x402 protocol replaces HTTP 402 Payment Required with a functional payment step","Server sends 402 with machine-readable terms (price, network, asset, receiving address) to the client","AI agent signs USDC authorization, facilitator verifies and processes payment on-chain"],"summary":"The x402 protocol updates the outdated HTTP 402 Payment Required status to enable a functional payment process. When a client requests a paid resource, the server responds with 402, including machine-readable details like price, network, asset, and the receiving address. The client, typically an AI agent, signs a USDC authorization and resubmits the request. A facilitator verifies the signature, processes the payment on-chain, and the server delivers the data. Sellers never manage cards or accounts, and buyers only pay for the actual calls they make.","inputChars":518}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2EsM5oKWG873NOtWvoivx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Summarizes plain text (articles, notes, transcripts) into a short paragraph and key bullet points using IBM Granite 4.0 Micro via Workers AI, for 0.008 USDC per call.","exampleAgentPrompt":"Can you summarize this article text into a short paragraph and 5 bullet points? Here's the text: [paste of article up to 20,000 characters]","exampleUseCases":[{"title":"Meeting transcript digest","prompt":"I have a long meeting transcript — can you summarize it into a short paragraph and 4 bullet points so I can share the highlights with my team?"},{"title":"Research article TL;DR","prompt":"Summarize this research article text into a concise paragraph and up to 6 key bullet points so I can quickly understand the main findings."},{"title":"Multilingual news summary","prompt":"Can you summarize this Spanish news article text into a summary written in English, with 3 bullet points covering the main events?"}],"resultDescription":"Returns a JSON object containing a concise summary paragraph, an array of key bullet points (up to the requested maximum), the model name used (IBM Granite 4.0 Micro), the number of input characters processed, token usage stats, and an optional suggested next-call hint for chaining workflows.","failureModes":["Text shorter than 80 characters is rejected with a validation error","Text exceeding 20,000 characters is rejected","Non-plain-text input (URLs, PDFs) will produce poor or nonsensical summaries — caller must extract text first","Model timeout may occur for very long inputs near the 20,000 character limit (~8 second p95 latency)","Payment failure or insufficient USDC balance will block the call","Unsupported or misspelled language codes may cause the language parameter to be ignored"],"whenToPreferThis":"Choose this endpoint when you have plain text (articles, notes, transcripts) that needs to be condensed into a paragraph and bullet points, especially when you need multilingual summaries or configurable bullet counts. Prefer this over general-purpose LLM calls when you need a metered, cost-predictable summarization at $0.008/call with a guaranteed structured JSON response. Not suitable for URLs or PDFs — extract the text first using a web scraper or PDF parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:43:34.771Z","isFirstParty":false,"canonicalSlug":"x402-gateway-text-summarizer-b2dbabfa"}