{"uid":"cap_a241It01WMILZZtn7KaLJ","slug":"omniapi-ai-chat-endpoint-30630f03","name":"OmniAPI AI Chat Endpoint","description":"444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.","url":"https://omni-api-cyan.vercel.app/api/ai/chat","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"input":{"type":"string","description":"Input data for the endpoint"},"query":{"type":"string","description":"Search query or input text"},"params":{"type":"object","description":"Additional parameters"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.073275","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.073275/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.073275","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.073275","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8wiJej2H_0HwC89a7WT8u","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.073275","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a natural language query to an AI chat model and returns a generated text response, billed per call via x402 USDC payment.","exampleAgentPrompt":"Ask the OmniAPI AI chat endpoint: 'What are the main differences between proof-of-work and proof-of-stake blockchains?' and pay for it with USDC via x402.","exampleUseCases":[{"title":"Crypto-native AI Q&A integration","prompt":"I'm building a Web3 app and need to let users ask AI questions, paying per query in USDC — can you call the OmniAPI AI chat endpoint with the query 'Explain how smart contract audits work' and handle the x402 payment?"},{"title":"On-demand AI answer for blockchain topic","prompt":"Ask the AI chat API: 'What is the current state of Ethereum layer-2 scaling solutions?' and pay the per-call fee automatically."},{"title":"AI assistant for crypto research","prompt":"Use the OmniAPI chat endpoint to ask: 'What are the key risks of yield farming in DeFi?' and pay per call in USDC so I get an answer right away."}],"resultDescription":"Returns an API response object containing the AI-generated text reply to the submitted query. The response is unstructured JSON with the model's answer as the primary payload.","failureModes":["Payment failure: insufficient USDC balance or x402 payment not accepted — returns 402 Payment Required","Missing required 'query' field — returns 400 Bad Request","AI model unavailable or overloaded — returns 503 Service Unavailable","Malformed request body — returns 400 with validation error","Network timeout from upstream AI provider — returns 504 Gateway Timeout"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call AI chat API that integrates with the x402 USDC micropayment protocol, particularly in crypto-native or Web3 contexts where traditional subscription billing is not desirable. It is suitable for low-volume or sporadic AI query needs where per-call pricing in stablecoins is preferred over monthly API key subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:38:21.716Z","isFirstParty":false}