{"uid":"cap_c5XYqBQ2fLoRlyILl70LA","slug":"omniapi-ai-code-explain-bdd67e28","name":"OmniAPI AI Code Explain","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/code/explain","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.084731","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.084731/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.084731","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.084731","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CbCmpqCZbi3R7RVRMpv_s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.084731","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a code snippet or query and returns a natural-language explanation of what the code does","exampleAgentPrompt":"Can you explain what this code does in plain English? Here's the snippet: `function debounce(fn, delay) { let timer; return function(...args) { clearTimeout(timer); timer = setTimeout(() => fn.apply(this, args), delay); }; }`","exampleUseCases":[{"title":"Understanding unfamiliar code snippet","prompt":"I found this function in our codebase and I have no idea what it does — can you explain it to me in plain English? Here it is: `def merge_sort(arr): if len(arr) <= 1: return arr mid = len(arr)//2; left = merge_sort(arr[:mid]); right = merge_sort(arr[mid:]); return merge(left, right)`"},{"title":"Learning a complex regex pattern","prompt":"What does this regex actually do? I can't figure it out: `^(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])[A-Za-z0-9!@#$%^&*]{8,}$`"},{"title":"Reviewing SQL query logic","prompt":"Can you explain what this SQL query is doing step by step? `SELECT u.name, COUNT(o.id) as order_count FROM users u LEFT JOIN orders o ON u.id = o.user_id WHERE o.created_at > NOW() - INTERVAL 30 DAY GROUP BY u.id HAVING order_count > 5`"}],"resultDescription":"Returns a natural-language explanation of the submitted code or query, describing what the code does, how it works, and any notable logic or patterns — formatted as a human-readable text response.","failureModes":["Missing required 'query' field returns a 400 or error response","Malformed or empty code input may return a generic or unhelpful explanation","Payment failure via x402 results in 402 Payment Required with no explanation returned","Very large code snippets may be truncated or cause timeout","Ambiguous input without sufficient code context may yield inaccurate explanation"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call AI-powered explanation of a code snippet without managing your own LLM infrastructure. It is well-suited for agents that occasionally need to interpret code on behalf of users and want to pay per use in USDC rather than maintain API keys or model subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:56:47.496Z","isFirstParty":false}