Integrations/REST API

MegaLens REST API

Review anywhere, not just inside an IDE.

Use cases

CI/CD pipelines

Run multi-engine review on every push. Block merges when critical findings surface. No IDE required.

PR automation

Post structured review comments directly on pull requests. Each finding includes file, line, severity, and next step.

Custom platforms

Build MegaLens review into your own tools. Internal dashboards, Slack bots, code review portals, anything with HTTP.

Batch audits

Review hundreds of files in a single run. Queue analysis jobs and collect results asynchronously.

Quick start

One POST request. Multi-engine review. Structured results.

curl -X POST https://megalens.ai/api/v1/analyze \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "skill": "code_intelligence",
    "mode": "multi",
    "tier": "standard",
    "prompt": "Review this function",
    "context": "..."
  }'

Endpoints

MethodEndpointDescription
POST/api/v1/analyzeSubmit code for multi-engine review
GET/api/v1/keysList your API keys
GET/api/v1/usageView token usage and billing

Skills

Each skill configures the review pipeline for a specific domain. Pass the skill name in the skill field.

code_intelligenceCode Intelligence
security_auditSecurity Audit
full_auditFull Audit
researchResearch
seoSEO
saas_launchSaaS Launch
wordpressWordPress
legalLegal
generalGeneral
planningPlanning
diff_auditDiff Audit

Modes

quickQuick

Single engine review. Fastest response. Best for simple checks where you need a quick answer, not a debate.

multiMulti

Full debate pipeline. Multiple engines review independently, cross-examine, and a judge produces the final verdict.

Tiers

TierDebatersJudgeAppellate
free2GPT 5.4--
standard3GPT 5.4--
deep3GPT 5.4Opus

Pricing

Free

$0BYOK

Bring your own API keys. Full review pipeline, you pay model providers directly.

Pro

$15/mounlimited

Unlimited reviews. All engines included. No API keys needed.

Managed Credits

$9/M

Pay per million tokens. We handle routing, you control spend.

Multi-engine review via HTTP.

CI/CD, PR bots, custom tools. One endpoint, structured results, no IDE required.