{"uid":"cap_Z5sA0w3JqZW1MPcjpJJKQ","slug":"x402-demo-api-llm-endpoint-c049a32d","name":"x402 Demo API - LLM Endpoint","description":"Paid API with real data: AI/LLM, crypto prices, web search, translation, trending topics, sentiment analysis, aggregator, and more. All endpoints use x402 protocol on Base mainnet.","url":"https://x402-demo-api-theta.vercel.app/api/llm","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":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gs81G50-cpnpQqBPOg2S8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Processes natural language prompts through an AI/LLM model, returning generated text responses, paid via x402 protocol on Base mainnet.","exampleAgentPrompt":"Send this prompt to the x402 LLM endpoint and pay the 0.1 USDC fee automatically: 'Explain the concept of zero-knowledge proofs in two sentences.'","exampleUseCases":[{"title":"Summarize market sentiment for trading","prompt":"Query the LLM to analyze the latest crypto market sentiment and summarize bullish vs bearish indicators in a few bullet points, then pay the micropayment automatically."},{"title":"Generate customer support responses at scale","prompt":"Use the AI endpoint to draft personalized responses to common customer inquiries, paying per response in USDC so we only pay for what we actually generate."},{"title":"Translate and analyze foreign social posts","prompt":"Ask the LLM to translate trending posts from non-English sources and provide a quick sentiment analysis, settling each translation request with a micropayment on Base."}],"resultDescription":"Returns an AI-generated text completion or response to the submitted prompt, produced by the underlying LLM model hosted on this x402-gated endpoint. The agent receives the text output after the $0.1 USDC micropayment is processed on Base mainnet.","failureModes":["Payment failure: insufficient USDC balance on Base mainnet returns 402 Payment Required","Invalid or missing prompt body returns 400 Bad Request","LLM service unavailable returns 503 or 500 error","x402 facilitator timeout causes payment processing failure","Malformed request body causes parsing error"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use LLM API that settles payments automatically in USDC on Base mainnet via the x402 protocol, without requiring traditional API key subscriptions. Ideal for agents with on-chain wallets that want to access AI text generation with transparent micropayment pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:36:07.723Z","isFirstParty":false}