{"uid":"cap_9GiYUQgh-KLzjuEta6NTO","slug":"24k-labs-ai-security-audit-c63e0d27","name":"24K Labs AI Security Audit","description":"Comprehensive vulnerability assessment with OWASP classification and remediation.","url":"https://api.24klabs.ai/api/v1/security-audit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","description":"Primary input content"},"context":{"type":"string","description":"Optional context or instructions"},"language":{"type":"string","description":"Programming language (code services)"}}},"responseSchema":{"type":"json","example":{"model":"claude-opus-4-5","result":"**CRITICAL (CVSS 9.8):** SQL injection via unparameterized query...","tokens_used":890}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RYpIlcb-b7MIzezzr-bGz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs an AI-powered security audit of source code, identifying vulnerabilities with CVSS scores and detailed explanations","exampleAgentPrompt":"Can you do a security audit on this Python function that handles user login — it builds a SQL query by concatenating user input directly into the string — and tell me what vulnerabilities exist and how critical they are?","exampleUseCases":[{"title":"Pre-deployment security check for microservices","prompt":"Before we push this Node.js API handler to production, can you run a security audit on it? I need to know if there are any injection vulnerabilities or authentication issues that could get us compromised, and how serious each one is."},{"title":"CI/CD pipeline vulnerability gate enforcement","prompt":"We're setting up automated security checks in our build pipeline. Can you audit this Go function that processes user uploads and tell me if there are any critical CVSS-scored vulnerabilities we should fail the build on?"},{"title":"Third-party code review for security risks","prompt":"A contractor gave us this JavaScript module for handling payment processing. Can you do a security audit on it and identify any XSS, CSRF, or injection flaws before we integrate it into our checkout flow?"}],"resultDescription":"Returns a JSON object with the model used (claude-opus-4-5), a detailed vulnerability report in markdown including severity labels (e.g. CRITICAL with CVSS score), specific descriptions of each issue found, and the number of tokens consumed.","failureModes":["Missing or empty 'code' field returns an error or empty analysis","Unsupported or ambiguous language may reduce accuracy of findings","Very large code snippets may exceed token limits","Malformed JSON input returns HTTP 400","Payment failure via x402 returns HTTP 402 before processing"],"whenToPreferThis":"Choose this endpoint when you need a fast, per-request AI security audit without committing to a subscription or managing API keys — ideal for spot-checking snippets, CI/CD hooks, or one-off reviews. It is especially useful in agentic pipelines that pay per call with USDC on Base L2 via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:48:45.280Z","isFirstParty":false}