# AI Content Detector API: Detect AI-Generated Text

**Use case:** 

Detect AI-generated text through an API: send text or a document and get the overall AI and human scores plus a sentence-by-sentence breakdown, as JSON for your own app, LMS, CMS or editorial workflow.

## Input

```json
{
  "textContent": "In today's fast-paced digital landscape, artificial intelligence has emerged as a transformative force across industries. By leveraging advanced machine learning algorithms, businesses can streamline operations, enhance customer experiences, and unlock new opportunities for growth. Moreover, AI-powered tools empower teams to make data-driven decisions with greater speed and accuracy. As organizations continue to embrace innovation, it is essential to strike a balance between automation and the human touch, ensuring that technology serves as a catalyst for meaningful progress.",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

## Output

```json
{
  "original": {
    "label": "Overall Original Score",
    "format": "number"
  },
  "ai": {
    "label": "Overall AI Score",
    "format": "number"
  },
  "text": {
    "label": "Text Block",
    "format": "text"
  },
  "result.real": {
    "label": "Original Score (for block)",
    "format": "number"
  },
  "result.fake": {
    "label": "AI Score (for block)",
    "format": "number"
  },
  "result.status": {
    "label": "Status",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The AI Content Detector Actor is ready to run with the inputs already set for "AI Content Detector API: Detect AI-Generated Text". [Sign up or log in](https://console.apify.com/create-task-from-example/7YU7d0HbncGfLJIiN) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "AI Content Detector API: Detect AI-Generated Text" task

The AI Content Detector Actor will start running based on the input automatically. You can also change all the input fields, like text to check and proxy configuration, to match your specific use case.

### 3. Receive the "AI Content Detector API: Detect AI-Generated Text" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as overall original score, overall ai score, text block, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "AI Content Detector API: Detect AI-Generated Text" task via API](https://apify.com/muhammetakkurtt/ai-content-detector.md).

## FAQ

### Is there an AI content detector API?

Yes. This task works as an AI content detector API: send text through the Apify API and get AI and human scores with a per-sentence breakdown as JSON.

### What does the AI detector return?

An overall AI score and an original (human) score from 0 to 1, plus each sentence block with its own scores, so you can see which parts look AI-written.

### Can it tell whether ChatGPT wrote a text?

It does not name a specific model; it scores how likely the text is AI-generated. This example paragraph was written by an AI and scores 1 for AI.

### How accurate is AI content detection?

No AI detector is 100% accurate. Treat the scores as a signal, review flagged sentences yourself, and never use a single score as proof of AI use.

### Can I check documents instead of pasted text?

Yes. Upload a PDF, DOCX, TXT, Markdown or HTML file; scanned image-only PDFs need OCR first. Texts over 50,000 words are processed in chunks.

## About this Actor

This example demonstrates how to use [AI Content Detector](https://apify.com/muhammetakkurtt/ai-content-detector.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/muhammetakkurtt/ai-content-detector.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/muhammetakkurtt/ai-content-detector.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
