API Documentation

Integrate AI Detector into your application

Get your API key

Before using the API, you need to generate an API key. Sign in to your dashboard and create your personal API key from the settings page.

Your API key

sk_test_xxxxxxxxxxxxxxxxxxxx

API endpoints

Rate limits

Free tier100 requests/day
Pro tier10,000 requests/day
Enterprise tierUnlimited
POST/api/v1/detect

Check whether a single file was generated by AI

Request example

// Single file detection
curl -X POST https://api.aidetector.com/v1/detect \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "[email protected]"

// Example response
{
  "success": true,
  "data": {
    "id": "det_123456",
    "fileName": "document.txt",
    "isAI": true,
    "confidence": 92.5,
    "aiProbability": 87.3,
    "humanProbability": 12.7,
    "analysis": {
      "patterns": ["Repeated sentence structures", "Overly formal wording"],
      "suggestions": ["Add more personal expression"]
    },
    "createdAt": "2024-01-15T10:30:00Z"
  }
}

Error codes

CodeDescription
400Invalid request parameters
401Unauthorized. Please check your API key.
429Too many requests. Rate limit exceeded.
500Internal server error