# NexusAPI AI Code Debugger

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

Analyzes and debugs code snippets using AI to identify errors, explain issues, and suggest fixes

## Facts

- Endpoint: POST https://nexus-api-virid.vercel.app/api/ai/code/debug
- Price: $0.134048/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-f929ad89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f8nV0FxmCF-Uj61flgmvL

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-f929ad89 -d '<json body>'
```

Example prompt: Can you debug this Python function for me? It's throwing a KeyError on line 12: `def get_user(data): return data['user']['name']` — find the bug and tell me how to fix it.

## When to prefer this

Choose this endpoint when an AI agent needs to automatically debug or diagnose code issues without manual developer intervention, especially in workflows where code quality must be checked programmatically. Prefer this over general LLM calls when you want a pay-per-use, no-API-key solution for code debugging within an agent pipeline.

## Known failure modes

- Empty or missing query field returns an error response
- Extremely long code snippets may exceed input limits
- Non-code text input may produce irrelevant or low-quality output
- Highly obscure programming languages may yield inaccurate analysis
- Payment failure in USDC on Base blocks the request entirely

## How this service works

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

## Output

Returns an AI-generated analysis of the submitted code, including identified bugs, explanations of 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-f929ad89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nexus-api-virid.vercel.app](https://www.zero.xyz/host/nexus-api-virid.vercel.app/llms.txt)
