{"uid":"cap_bZAV9ntaCK3JgykGeI9Hz","slug":"x402-ai-gateway-text-summarization-18b86ec9","name":"x402 AI Gateway – Text Summarization","description":"AI-powered API endpoints powered by Gemini 2.0 Flash. Pay with USDC on Base or Solana.","url":"https://x402-ai-gateway-rosy.vercel.app/api/summarize","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text to summarize"},"maxSentences":{"type":"integer"}}},"responseSchema":{"type":"object"},"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_-9AlQMAvXt_2A-QAfc7uD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Summarizes a block of text using Gemini 2.0 Flash, returning a concise summary, with payment via USDC on Base or Solana.","exampleAgentPrompt":"Summarize the following article in no more than 3 sentences, paying with USDC: 'Artificial intelligence has rapidly transformed industries ranging from healthcare to finance, enabling automation of complex tasks that once required human expertise. Companies are investing billions in AI research, and governments are scrambling to regulate the technology before it outpaces oversight.'","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the summarized version of the input text, condensed to the specified number of sentences or a reasonable default length if not specified.","failureModes":["Missing required 'text' field returns a 400 validation error","Payment not provided or insufficient USDC returns a 402 Payment Required response","Text too long or malformed causes a 500 server error","Network timeout if Gemini 2.0 Flash API is slow or unavailable","Invalid maxSentences value (e.g. negative number) may cause unexpected output or error"],"whenToPreferThis":"Choose this endpoint when you need fast, AI-powered text summarization backed by Gemini 2.0 Flash and are willing to pay micro-transactions in USDC per call. Ideal for agents operating in crypto-native environments that already handle x402 payment flows on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:43:43.524Z","isFirstParty":false}