# AI Code Reviewer Reviews code or diffs for bugs, regressions, security risks, and missing tests. Paid x402 Bailian/Qwen service. Call with the declared JSON schema; unpaid calls return HTTP 402 before model execution. This is a paid API service exposed by Server402 for AI agents, MCP clients, OpenAPI importers, and applications. Call the endpoint once without payment to receive HTTP 402 payment instructions, complete payment, then retry with the returned payment token or x402 signature. ## Invocation - Service ID: `ai-code-reviewer` - Canonical service ID: `ai-code-reviewer` - Method: `POST` - Endpoint: `https://x402vip.com/api/tools/ai-code-reviewer` - Service page: https://x402vip.com/services/ai-code-reviewer - OpenAPI: https://x402vip.com/openapi.json - Catalog search: https://x402vip.com/api/catalog/search?q=ai-code-reviewer - MCP endpoint: https://x402vip.com/mcp - MCP tool: `ai_code_reviewer` ## Pricing And Payment - Price: USD 0.02 - Billing mode: `per_call` - Max calls per payment: `1` - Payment provider: `x402_facilitator` - Payment flow: call without payment, receive `402 Payment Required`, pay, then retry with `X-Payment-Token` or `PAYMENT-SIGNATURE`. - Payment hint: Call POST /api/tools/ai-code-reviewer once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId="ai-code-reviewer". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request. ## Use Cases - Call Alibaba Cloud Bailian/Qwen through a paid HTTP 402 API. - Use this service when an AI agent needs reviews code or diffs for bugs, regressions, security risks, and missing tests. - Return machine-readable JSON for downstream automation. ## Keywords ai-code-reviewer, AI Code Reviewer, bailian, qwen, dashscope, llm, ai model, ai agent, paid ai api, code-review, software-engineering, bugs, security, tests, semantic:code-review, intent:review-code, output:findings ## Input Schema ```json { "additionalProperties": true, "properties": { "code": { "description": "Required input field code.", "type": "string" }, "context": { "description": "Optional supporting context, source text, constraints, or background.", "type": "string" }, "language": { "description": "Optional output language or locale.", "type": "string" } }, "required": [ "code" ], "type": "object" } ``` ## Output Schema ```json { "additionalProperties": true, "properties": { "model": { "type": "string" }, "provider": { "type": "string" }, "result": { "additionalProperties": true, "type": "object" }, "service_id": { "type": "string" }, "status": { "type": "string" }, "upstream_id": { "type": "string" }, "upstream_request_id": { "type": "string" }, "usage": { "additionalProperties": true, "type": "object" } }, "required": [ "status", "service_id", "result" ], "type": "object" } ``` ## Example Request ```json { "code": "func add(a, b int) int { return a + b }" } ``` ## Example Response ```json { "model": "qwen-plus", "provider": "aliyun-bailian", "result": { "summary": "Example structured result." }, "service_id": "ai-code-reviewer", "status": "ok" } ```