// API Documentation

TruthLens API

Integrate AI image detection into your app. One endpoint, real-time results, 94%+ accuracy.

Quick Start
curl -X POST https://truthlens-mhamayos-projects.vercel.app/api/detect \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "image=@photo.jpg"

# Response
{
  "aiScore": 87,
  "verdict": "ai",
  "classes": [
    { "class": "ai_generated", "score": 0.87 },
    { "class": "not_ai_generated", "score": 0.13 }
  ]
}
URL Detection
curl -X POST https://truthlens-mhamayos-projects.vercel.app/api/detect \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/suspicious-image.jpg"}'
API Pricing
Free
$0
10/day
Pro
$9/mo
100/day
Team
$29/mo
Unlimited
Get Your API Key

Sign up → Dashboard → Your API key is auto-generated. Use it in the X-API-Key header.

Go to Dashboard →