# fastapi.online — Code Review Comment Generator

> fastapi.online — Code Review Comment Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0015/call, status down (last checked 2026-09-15).

Generates a code review comment for a given code diff using self-hosted AI inference

## Facts

- Endpoint: POST https://api.fastapi.online/code-review-comment
- Price: $0.0015/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-code-review-comment-generator-f8204f88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ELDlsnVbm19ZenrdrDH-L

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 fastapi-online-code-review-comment-generator-f8204f88 -d '<json body>'
```

Example prompt: Can you generate a code review comment for this diff? Here's the patch: `- return x + y\n+ return x - y` — I need feedback on whether the change looks correct.

## When to prefer this

Choose this endpoint when you need a quick, per-call AI-generated code review comment without signing up for a full code-review SaaS platform. It is well-suited for CI/CD pipelines, agent-driven PR bots, or developer tools that need pay-as-you-go code feedback at $0.0015 per call via crypto.

## Known failure modes

- Empty or missing 'diff' field returns a validation error
- Diff exceeding 20,000 characters is rejected
- Malformed or non-code input may produce generic or low-quality review comments
- Payment failure or insufficient USDC balance results in a 402 response

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

A natural language code review comment analyzing the provided diff, highlighting potential bugs, style issues, logic errors, or improvements — similar to what a human code reviewer would write on a pull request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "diff": {
   "type": "string",
   "maxLength": 20000,
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-code-review-comment-generator-f8204f88/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
