# momoAI Code Review

> momoAI Code Review is a paid API for AI agents from momoai-cyan.vercel.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-15).

Performs AI-powered code review on submitted source code, returning a score, issues list, suggestions, and summary.

## Facts

- Endpoint: POST https://momoai-cyan.vercel.app/api/code
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/momoai-code-review-22e4b195
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KsoemaXGs8uEeS3iQ5-SP

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 momoai-code-review-22e4b195 -d '<json body>'
```

Example prompt: Can you do a code review on this Python function I wrote — focus on security issues and tell me the quality score, any bugs, and suggestions for improvement?

## When to prefer this

Choose this endpoint when you need a structured, scored code review with explicit issues and suggestions returned as machine-readable JSON. Prefer it over generic chat LLM endpoints when you need a consistent review schema (score, issues array, suggestions array) and pay-per-call pricing via USDC on Base without a subscription.

## Known failure modes

- Missing required 'code' field returns a 400 or error response
- Payment not received or insufficient USDC results in a 402 Payment Required
- Unsupported or undetectable programming language may reduce review quality
- Very large code submissions may exceed model context limits
- Network or Vercel hosting downtime returns 5xx errors

## How this service works

Pay-per-use LLM API. Chat, reasoning, code review, translation, summarization, data extraction, and more. Pay with USDC on Base.

## Output

Returns a JSON object with a review sub-object containing an integer quality score, an array of issues found, an array of improvement suggestions, and a plain-language summary. Also includes metadata such as the programming language detected, review focus, model used, token usage, and timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "code"
 ],
 "properties": {
  "code": {
   "type": "string",
   "description": "Source code to review"
  },
  "focus": {
   "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/momoai-code-review-22e4b195/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from momoai-cyan.vercel.app](https://www.zero.xyz/host/momoai-cyan.vercel.app/llms.txt)
