spectr-ai API

AI-powered smart contract security analysis via API. Audit Solidity and Vyper contracts programmatically.

Free

$0/mo
  • 3 audits/day
  • JSON output
  • Solidity + Vyper
  • SARIF / HTML output
Get Free API Key
Most Popular

Pro

$29/mo
  • Unlimited audits
  • JSON + SARIF + HTML
  • Solidity + Vyper
  • Priority processing
Subscribe — $29/mo

Enterprise

$99/mo
  • Everything in Pro
  • Webhook notifications
  • Custom models
  • Priority support
Subscribe — $99/mo

Developer Templates

Quick Start

# 1. Get your API key

curl -X POST https://spectr.noctis.biz/api/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'

# 2. Audit a contract

curl -X POST https://spectr.noctis.biz/api/v1/audit \
  -H "x-api-key: sk_spectr_..." \
  -H "Content-Type: application/json" \
  -d '{"fileName": "Token.sol", "source": "pragma solidity ^0.8.0; ..."}'

Response:

{
  "id": "abc123",
  "report": {
    "issues": [
      {
        "severity": "critical",
        "title": "Reentrancy in withdraw()",
        "location": "withdraw(), line 20",
        "recommendation": "Use checks-effects-interactions",
        "codefix": "balances[msg.sender] = 0; ..."
      }
    ],
    "summary": {
      "riskRating": "critical",
      "counts": { "critical": 1, "high": 0, ... }
    }
  }
}