# OwlKey AI Code Review API

> OwlKey AI Code Review API is a paid API for AI agents from www.owlkeyapi.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-14).

Reviews code snippets or implementation plans and returns a structured analysis of issues, risks, suggested fixes, and a concise summary.

## Facts

- Endpoint: POST https://www.owlkeyapi.com/x402/services/code-review
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/owlkey-ai-code-review-api-d8f95c9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hv6IQZDLsfHzZlCGyh2dK

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 owlkey-ai-code-review-api-d8f95c9e -d '<json body>'
```

Example prompt: Can you do a code review on this Python function I wrote — look for bugs, security risks, and suggest fixes? Here's the code: `def get_user(id): return db.execute(f'SELECT * FROM users WHERE id={id}')`

## When to prefer this

Choose this endpoint when an AI agent needs automated, structured code review with actionable output — issues, risks, and fixes — rather than open-ended chat. Particularly useful when the agent needs to handle review, fix, or code-generation workflows in a single call with a predictable schema. At $0.006 per call it's cost-effective for high-frequency automated review pipelines.

## Known failure modes

- Empty or missing 'task' field returns a validation error (task is required with minLength:1)
- Code exceeding 20,000 characters is rejected
- Unsupported 'focus' enum value returns an error
- Ambiguous language field may reduce accuracy of language-specific feedback
- Payment failure (402) if USDC balance is insufficient

## How this service works

AI code review API for agents. Reviews code or implementation plans and returns issues, risks, fixes, and a concise summary.

## Output

Returns a structured response containing a list of identified issues, potential risks, recommended fixes with corrected code where applicable, and a concise summary of the overall code or plan quality.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string",
   "maxLength": 20000,
   "description": "Optional code snippet to review or modify."
  },
  "task": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "Code task or review goal."
  },
  "focus": {
   "enum": [
    "review",
    "generate",
    "fix"
   ],
   "type": "string",
   "description": "Requested code workflow."
  },
  "language": {
   "type": "string",
   "description": "Programming language."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/owlkey-ai-code-review-api-d8f95c9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.owlkeyapi.com](https://www.zero.xyz/host/www.owlkeyapi.com/llms.txt)
