# Nova Code Review API

> Nova Code Review API is a paid API for AI agents from noa.orbonomy.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Submits source code for AI-powered code review, returning a quality score, issues list, summary, and improvement suggestions.

## Facts

- Endpoint: POST https://noa.orbonomy.xyz/api/code
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nova-code-review-api-f044bfc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K-EF6K7buhe-qPL5slXsP

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 nova-code-review-api-f044bfc5 -d '<json body>'
```

Example prompt: Can you review this Python function I wrote and give me a quality score, flag any bugs or issues, and suggest improvements? Here's the code: `def add(a,b): return a+b` — focus on security.

## When to prefer this

Choose this endpoint when you need a structured, scored AI code review with discrete issues and actionable suggestions returned as machine-readable JSON — especially when paying per-call via USDC on Base fits your workflow and you want to avoid managing a subscription or API key for a standalone code analysis service.

## Known failure modes

- Missing required 'code' field returns a validation error
- Unsupported or ambiguous language may degrade review quality
- Payment failure (insufficient USDC balance) returns HTTP 402
- Very large code submissions may time out or exceed token limits
- Empty or trivial code snippets may produce low-quality reviews

## How this service works

Pay-per-call AI inference. Chat, reason, translate, analyze, generate. USDC on Base.

## Output

Returns a JSON object with a success flag, a data block containing the model used, token usage stats, and a review object with an integer quality score (0-100), an array of identified issues, a plain-text summary, and an array of improvement suggestions; plus a meta block with the detected language, focus area, endpoint, price, and timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "code"
 ],
 "properties": {
  "code": {
   "type": "string",
   "description": "Source code to review"
  },
  "focus": {
   "enum": [
    "security",
    "performance",
    "quality",
    "all"
   ],
   "type": "string"
  },
  "language": {
   "type": "string",
   "description": "Programming language (auto-detect if omitted)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "model": {
     "type": "string"
    },
    "usage": {
     "type": "object"
    },
    "review": {
     "type": "object",
     "properties": {
      "score": {
       "type": "integer"
      },
      "issues": {
       "type": "array"
      },
      "summary": {
       "type": "string"
      },
      "suggestions": {
       "type": "array"
      }
     }
    }
   }
  },
  "meta": {
   "type": "object",
   "properties": {
    "focus": {
     "type": "string"
    },
    "price": {
     "type": "string"
    },
    "endpoint": {
     "type": "string"
    },
    "language": {
     "type": "string"
    },
    "timestamp": {
     "type": "string"
    }
   }
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nova-code-review-api-f044bfc5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from noa.orbonomy.xyz](https://www.zero.xyz/host/noa.orbonomy.xyz/llms.txt)
