# OmniAPI AI Code Debugger

> OmniAPI AI Code Debugger is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.134048/call, status unknown (last checked 2026-09-14).

Debugs code snippets by analyzing errors, identifying bugs, and suggesting fixes using AI

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/code/debug
- Price: $0.134048/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-code-debugger-ca52759a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_84FQHXd_i2xh3sPiX77iI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability omniapi-ai-code-debugger-ca52759a -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-ai-code-debugger-ca52759a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
