{"service":"summarize","version":"1.0.0","title":"Summarize text","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.","paid":{"method":"POST","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/summarize","scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"8000","amountUsdc":"0.008","payTo":"0x94732367107EB976574574C762709DEE88881474","maxTimeoutSeconds":60},"input":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":80,"maxLength":20000,"description":"Plain text to summarize, e.g. an article or a transcript (80 to 20,000 characters)"},"maxBullets":{"description":"Most bullet points to return (1-10, default 5)","type":"integer","minimum":1,"maximum":10},"language":{"description":"Language for the summary, e.g. English or Portuguese (default: the language of the text)","type":"string","minLength":2,"maxLength":30}},"required":["text"]},"example":{"text":"The x402 protocol turns the old HTTP 402 Payment Required status into a working payment step. When a client asks for a paid resource, the server answers 402 with machine-readable terms: price, network, asset and the address that receives the money. The client, often an AI agent, signs a USDC authorization and sends the request again. A facilitator checks the signature, settles the payment on-chain and the server returns the data. Sellers never handle cards or accounts, and buyers pay only for the calls they make.","maxBullets":3}},"output":{"schema":{"type":"object","properties":{"summary":{"type":"string"},"bullets":{"type":"array","items":{"type":"string"}},"model":{"type":"string"},"inputChars":{"type":"number"},"usage":{"type":"object","properties":{"promptTokens":{"type":["number","null"]},"completionTokens":{"type":["number","null"]}},"required":["promptTokens","completionTokens"],"additionalProperties":false},"next":{"type":"object","properties":{"service":{"type":"string","description":"Service id of the suggested next paid call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"type":"string","enum":["GET","POST"]},"url":{"type":"string","description":"Paid route of the next call"},"useWhen":{"type":"string","description":"When the next call is the right one"},"sample":{"type":"string","description":"Free fixed sample of the whole family"}},"required":["service","tool","method","url","useWhen","sample"],"additionalProperties":false,"description":"Suggested next paid call in the same family (call it in a loop when the task continues)"}},"required":["summary","bullets","model","inputChars","usage"],"additionalProperties":false},"example":{"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.","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"],"model":"@cf/ibm-granite/granite-4.0-h-micro","inputChars":518,"usage":{"promptTokens":200,"completionTokens":173}}},"mcp":{"url":"https://x402-gateway.blackwoodstate8.workers.dev/mcp","tool":"blackwood_text_summarize"},"openapi":"https://x402-gateway.blackwoodstate8.workers.dev/openapi.json","status":"https://x402-gateway.blackwoodstate8.workers.dev/status.json"}