The Copyleaks AI Content Detection API returns a comprehensive response that includes classification results, probability scores, and detailed explanations of the AI detection analysis. This response structure provides both high-level insights and granular details about detected AI-generated content patterns.

Response Properties

modelVersion
string
The version of the AI detection model used (e.g., “v9.0”).
results
array<object>
An array of classification results for different sections of the text.
result
array[object]
An array of all the classifications. The sections contain their position, classification and the probability for that classification.
summary
object
Aggregated detection results.
scannedDocument
object
Metadata about the scan.

Example Response

{
  "modelVersion": "v9.0",
  "results": [
    {
      "classification": 2,
      "probability": 0.7316979,
      "matches": [
        {
          "text": {
            "chars": {
              "starts": [0],
              "lengths": [554]
            },
            "words": {
              "starts": [0],
              "lengths": [73]
            }
          }
        }
      ]
    }
  ],
  "summary": {
    "human": 0.0,
    "ai": 1.0
  },
  "scannedDocument": {
    "scanId": "scan-id",
    "totalWords": 73,
    "totalExcluded": 0,
    "credits": 1,
    "expectedCredits": 1,
    "creationTime": "2025-08-10T08:33:05.22225Z"
  },
  "explain": {
    "patterns": {
      "statistics": {
        "aiCount": [1.2066389, 9.673915, 34.41001],
        "humanCount": [0.18481831, 0.13894142, 0.33555666],
        "proportion": [6.5287843, 69.625854, 102.54607],
        "source": [1, 1, 1]
      },
      "text": {
        "chars": {
          "starts": [10, 96, 136],
          "lengths": [25, 33, 33]
        },
        "words": {
          "starts": [1, 12, 17],
          "lengths": [4, 4, 5]
        }
      }
    }
  }
}

Classification Codes

CodeClassificationDescription
1HumanContent is likely written by a human
2AI-generatedContent is likely generated by artificial intelligence

Next Steps

AI Content Detection Guide

Learn how to use the AI Content Detection API to identify AI-generated text.

AI Detection API Reference

Explore the complete API reference for AI content detection.

AI Logic Feature

Understand how AI Logic provides transparency in AI detection results.