# Bitcoin Benji AI Code Review

> Bitcoin Benji AI Code Review is a paid API for AI agents from api.bitcoinbenji.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Performs AI-powered code review on submitted code, gated by Lightning Network micropayments via L402 protocol — no API key required.

## Facts

- Endpoint: POST https://api.bitcoinbenji.com/ai/code-review
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-benji-ai-code-review-a9c74e11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7UiN3lVkQr7X6qi4kgsTM

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 bitcoin-benji-ai-code-review-a9c74e11 -d '<json body>'
```

Example prompt: Can you do a code review on this JavaScript function I wrote? Check it for bugs, security issues, and any best practice violations — pay for the review via Lightning.

## When to prefer this

Choose this endpoint when you need a pay-per-call AI code review with no API key, account registration, or subscription — ideal for infrequent one-off reviews or agent workflows that require autonomous micropayment via Bitcoin Lightning. Prefer this over traditional code review APIs when operating in a Lightning-native or crypto-friendly environment, or when avoiding vendor lock-in from subscription-based services.

## Known failure modes

- Payment not completed or L402 challenge not satisfied — 402 Payment Required response returned
- Invalid or malformed code input — may return an error or incomplete review
- Unsupported programming language — review quality may degrade
- Request timeout for very large code submissions
- Lightning payment network unavailability causing payment failure

## How this service works

L402-gated APIs: real-time Bitcoin mempool intelligence and private AI inference. Pay-per-call via Lightning. Zero API keys. Zero subscriptions.

## Output

A JSON response containing AI-generated code review feedback, including identified bugs, security vulnerabilities, code quality issues, style violations, and actionable improvement suggestions for the submitted code.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

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