{"uid":"cap_gS6Li3hBvwZWlscnV0ZBo","slug":"speraxos-openrouter-text-summarizer-x402-9bd7c2a8","name":"SperaxOS OpenRouter Text Summarizer (x402)","description":"AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.","url":"https://chat.sperax.io/api/x402/openrouter-summarize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"'brief' asks for under 3 sentences (openrouter only; ignored by groq)"},"text":{"type":"string","description":"Text to summarize. Required unless headlines is a non-empty array."},"model":{"enum":["meta-llama/llama-3.1-8b-instruct:free","meta-llama/llama-3.1-70b-instruct","google/gemma-2-9b-it:free","mistralai/mistral-7b-instruct:free"],"type":"string","default":"meta-llama/llama-3.1-8b-instruct:free"},"variant":{"type":"string","description":"Accepted but unused"},"headlines":{"type":"array","items":{"type":"string"},"description":"Alternative to text; joined with newlines when text is absent."},"maxTokens":{"type":"integer","default":512,"description":"max_tokens sent to the provider"},"geoContext":{"type":"string","description":"Optional geographic/regional focus added to the system prompt"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XqWzLTXfKm_JHgpHsxdLy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Summarizes a block of text or a list of headlines using an AI language model selected by the caller, paid per-request via USDC on Base.","exampleAgentPrompt":"Give me a brief summary (under 3 sentences) of the following text using the Mistral 7B model: 'Ethereum gas fees surged to record highs today as on-chain activity spiked following a major DeFi protocol launch, with average transaction costs exceeding $50 for simple transfers.'","exampleUseCases":[{"title":"DeFi news briefing from headlines","prompt":"Here are 10 DeFi headlines from today — can you summarize them into a short paragraph using the Llama 3.1 70B model, with a focus on what's happening in Europe? Headlines: ['Uniswap V4 launches on Base', 'Aave surpasses $10B TVL', 'MakerDAO proposes fee hike', ...]"},{"title":"TL;DR for a long research report","prompt":"Summarize this 800-word DeFi yield farming explainer into a brief 2-3 sentence takeaway using Google Gemma 2 9B: [full article text here]"},{"title":"Quick crypto news digest","prompt":"Take these 5 crypto news headlines and condense them into one clean summary paragraph using the free Llama 3.1 8B model — keep it under 100 words: ['Bitcoin hits $100k', 'SEC approves new ETF', 'Coinbase expands to Japan', 'Solana NFT volume doubles', 'Ethereum staking hits new record']"}],"resultDescription":"Returns a natural-language text summary of the provided input, either as a concise paragraph or a brief (≤3 sentence) digest depending on the requested mode, generated by the selected LLM via OpenRouter.","failureModes":["Missing both 'text' and 'headlines' fields returns a 400 validation error","Payment not provided or insufficient USDC triggers a 402 Payment Required response with x402 payment instructions","Invalid model enum value results in a 400 bad request","Provider-side LLM timeout or rate limit may return a 503 or gateway error","maxTokens too low may result in a truncated or incomplete summary"],"whenToPreferThis":"Choose this endpoint when you need on-demand, pay-per-use text summarization without managing API keys, especially when operating in a DeFi or crypto-native agent context that already handles x402 USDC payments. Prefer it over general-purpose LLM APIs when you want model flexibility (Llama, Gemma, Mistral) with a single unified payment interface and no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:47:53.863Z","isFirstParty":false,"canonicalSlug":"speraxos-openrouter-text-summarizer-x402-9bd7c2a8"}