# NexusAPI AI Code Debugger

> NexusAPI AI Code Debugger is a paid API for AI agents from nexus-api-peach-nine.vercel.app, paid per call via x402, $0.144191/call, status unknown (last checked 2026-09-15).

Analyzes and debugs code snippets, identifying errors, suggesting fixes, and explaining issues using AI.

## Facts

- Endpoint: POST https://nexus-api-peach-nine.vercel.app/api/ai/code/debug
- Price: $0.144191/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nexusapi-ai-code-debugger-00c6014c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KlwhNNDdVgbK4A-TbzFx5

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 nexusapi-ai-code-debugger-00c6014c -d '<json body>'
```

Example prompt: Can you debug this Python function for me? It keeps throwing a TypeError on line 5: `def add(a, b): return a + b + c` — tell me what's wrong and how to fix it.

## When to prefer this

Choose this endpoint when you need a quick AI-powered code debugging analysis via a pay-per-call model without managing API keys. Best suited for single code snippet debugging tasks where you want an explanation plus fix suggestion. Avoid if you need deep static analysis, linting integrated into a CI/CD pipeline, or full project-level code review.

## Known failure modes

- Empty or missing query field returns a generic error response
- Malformed or non-code input may produce irrelevant or low-quality debug suggestions
- Payment failure (402) if USDC balance is insufficient on Base
- Timeout if the code snippet is excessively large
- Ambiguous input without language context may yield inaccurate results

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

The agent receives an AI-generated analysis of the submitted code, including identified bugs, explanations of the errors, and suggested corrections or fixed code snippets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nexusapi-ai-code-debugger-00c6014c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-peach-nine.vercel.app](https://www.zero.xyz/host/nexus-api-peach-nine.vercel.app/llms.txt)
