{"uid":"cap_hv6IQZDLsfHzZlCGyh2dK","slug":"owlkey-ai-code-review-api-d8f95c9e","name":"OwlKey AI Code Review API","description":"AI code review API for agents. Reviews code or implementation plans and returns issues, risks, fixes, and a concise summary.","url":"https://www.owlkeyapi.com/x402/services/code-review","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Y5Rqm5ANcKuU_FrlJG7-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reviews code snippets or implementation plans and returns a structured analysis of issues, risks, suggested fixes, and a concise summary.","exampleAgentPrompt":"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}')`","exampleUseCases":[{"title":"Security audit of backend endpoint","prompt":"Review this Node.js Express route handler for security vulnerabilities and tell me what's risky and how to fix it — focus is on a review, language is JavaScript."},{"title":"Fix broken algorithm implementation","prompt":"This Python sorting function isn't working correctly — can you identify what's wrong and generate a corrected version for me?"},{"title":"Evaluate implementation plan before coding","prompt":"Before I start coding, can you review this implementation plan for a user authentication system and flag any architectural risks or issues I should address?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:21.244Z","isFirstParty":false}