# AI Text Detection Response

> Response structure and field definitions for the Copyleaks AI Content Detection API, including classification results and detailed explanations.

The Copyleaks AI Content Detection API returns a comprehensive response that includes classification results, per-section `probability` values, 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

<ParamField path="modelVersion" type="string">
  The version of the AI detection model used (e.g., "v9.0").
</ParamField>
<ParamField path="results" type="array<object>">
  An array of classification results for different sections of the text.
      <ResultAiDetection />
</ParamField>
<SummaryAiDetection />
<ParamField path="scannedDocument" type="object">
  Metadata about the scan.
      <ScannedDocument />
</ParamField>

## Example Response

```json
{
  "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

| Code | Classification | Description                                                             |
| ---- | -------------- | ----------------------------------------------------------------------- |
| 1    | Human          | Content is likely written by a human                                   |
| 2    | AI-generated   | Content is likely generated by artificial intelligence                 |

## Next Steps

<CardGroup cols={2}>
  <Card title="AI Content Detection Guide" icon="robot" href="/guides/ai-detector/ai-text-detection/">Learn how to use the AI Content Detection API to identify AI-generated text.</Card>
  <Card title="AI Detection API Reference" icon="code" href="/reference/actions/writer-detector/check/">Explore the complete API reference for AI content detection.</Card>
  <Card title="AI Logic Feature" icon="robot" href="/concepts/features/ai-logic/">Understand how AI Logic provides transparency in AI detection results.</Card>
</CardGroup>
