{"uid":"cap_84FQHXd_i2xh3sPiX77iI","slug":"omniapi-ai-code-debugger-ca52759a","name":"OmniAPI AI Code Debugger","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/debug","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.134048","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.134048/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.134048","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.134048","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2FaMY7IyhR0Q5hT8tBLLT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.134048","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Debugs code snippets by analyzing errors, identifying bugs, and suggesting fixes using AI","exampleAgentPrompt":"Can you debug this Python function for me? It keeps throwing a TypeError on line 12: `def add(a, b): return a + b + c` — figure out what's wrong and suggest a fix.","exampleUseCases":[{"title":"Fix broken JavaScript function","prompt":"I have a JavaScript function that's throwing 'Cannot read property of undefined' — here's the code: `function getUser(data) { return data.user.name; }` — can you debug it and tell me what's wrong?"},{"title":"Diagnose Python runtime error","prompt":"My Python script crashes with a ZeroDivisionError at this line: `result = total / count` — can you analyze it and suggest how to fix it so it handles edge cases?"},{"title":"Spot logic bug in loop","prompt":"This for-loop in my Java code isn't producing the right output — it should sum an array but always returns 0. Can you debug it and explain the logic error: `int sum = 0; for(int i = 1; i <= arr.length; i++) { sum += arr[i]; }`?"}],"resultDescription":"Returns an AI-generated debug report that identifies bugs, explains the cause of errors, and suggests corrected code or fixes for the submitted code snippet.","failureModes":["Missing required 'query' field returns a validation error","Ambiguous or incomplete code snippet may produce inaccurate or generic debugging suggestions","Very large code inputs may be truncated or fail","Payment failure via x402 results in 402 response and no analysis","Unsupported programming language may yield low-quality results"],"whenToPreferThis":"Choose this endpoint when you need quick AI-assisted code debugging without integrating a full IDE or language-specific linter. It is particularly useful for agents that need to analyze short code snippets or error messages on the fly and return human-readable explanations and fixes, especially in a pay-per-call context via x402 USDC microtransactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:39:16.828Z","isFirstParty":false}