API Documentation

Complete guide to integrate our API into your applications

Quick Start

  1. 1.Get your API key from the dashboard
  2. 2.Use base URL: https://humanizeaitext.ai/api/v1
  3. 3.Add Authorization header with your API key
  4. 4.Make POST requests to available endpoints

Authentication

Include your API key in the Authorization header of every request.

Authorization: Bearer YOUR_API_KEY

Important: Never expose your API key in client-side code. Always make requests from your backend.

Available Endpoints

AI Detector API

POST

/api/v1/ai-detector/detect

Detect if text is AI-generated

Request Parameters

input_textstring (required) - The text to check for AI generation

Example Code

curl -X POST https://humanizeaitext.ai/api/v1/ai-detector/detect \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_text": "The text you want to check for AI generation"
  }'

Response

{
  "success": true,
  "data": {
    "fakePercentage": 80,
    "isCompletelyFake": false,
    "textWords": 150,
    "aiWords": 120,
    "isHuman": 0,
    "detected_language": "en",
    "feedback": "This text appears to be AI-generated"
  },
  "message": "AI detection completed successfully"
}

Batch Detection: Use /api/v1/ai-detector/detect/batch to check multiple texts at once (max 10 texts per request).

Error Codes

CodeDescription
200Success
400Bad Request
401Unauthorized
402Insufficient Credits
500Server Error

Rate Limits

60 requests per minute

1,000 requests per hour

Usage deducted from your credit balance