{"uid":"cap_j-IxG_wULIP3wadssegnU","slug":"sovereign-x402-ai-chat-completions-ff42edd7","name":"Sovereign X402 AI Chat Completions","description":"AI chat completions API - pay per request with USDC on Base","url":"https://sovereign-x402-zeta.vercel.app/api/v1/chat/completions","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","properties":{},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NbzaCu8y1AEl_j4yX8NZv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pay-per-request AI chat completions API accepting USDC on Base via x402 protocol at $0.005 per call","exampleAgentPrompt":"Send a chat completion request to the x402 AI endpoint asking 'What are the three laws of thermodynamics?' and pay the $0.005 USDC fee from my Base wallet.","exampleUseCases":[{"title":"Crypto-native chatbot backend","prompt":"I'm building a chatbot that should charge users in USDC on Base per message — can you send my user's message 'Explain quantum entanglement in simple terms' to the x402 chat completions API and return the AI's answer?"},{"title":"Agent reasoning with pay-per-call LLM","prompt":"My AI agent needs to reason through a complex task — send the prompt 'Break down the steps to launch a SaaS product from scratch' to the sovereign x402 chat API, paying the micro-fee in USDC, and give me the response."},{"title":"On-demand AI writing assistant","prompt":"Use the pay-per-request AI chat API to generate a short professional bio for me based on this info: 'Jane Doe, 10 years in fintech, co-founded two startups, now advising Web3 companies.' Just pay the USDC fee and return the result."}],"resultDescription":"Returns a chat completion response in standard OpenAI-compatible format, including the assistant's generated message content, finish reason, token usage statistics, and model metadata. Each successful call costs $0.005 USDC deducted via the x402 payment protocol on Base.","failureModes":["Insufficient USDC balance causes payment failure and 402 response","Malformed or missing 'messages' field in the request body returns a validation error","Rate limiting or upstream LLM provider errors return 5xx responses","Invalid x402 payment header causes authentication/payment rejection","Network timeout from underlying LLM provider if inference takes too long"],"whenToPreferThis":"Choose this endpoint when you need AI chat completions with crypto-native, pay-per-request billing via USDC on Base using the x402 protocol — ideal for agents, dApps, or serverless workflows that want no subscription overhead and automatic micropayment settlement. Prefer this over OpenAI or Anthropic direct APIs when your application is already handling x402 payments or operating in a Web3 context where USDC settlement on Base is preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:49:56.959Z","isFirstParty":false}