spectr-ai API
AI-powered smart contract security analysis via API. Audit Solidity and Vyper contracts programmatically.
Most Popular
Pro
$29/mo
- ✓ Unlimited audits
- ✓ JSON + SARIF + HTML
- ✓ Solidity + Vyper
- ✓ Priority processing
Enterprise
$99/mo
- ✓ Everything in Pro
- ✓ Webhook notifications
- ✓ Custom models
- ✓ Priority support
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, ... }
}
}
}