> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pangram.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deprecated Endpoints

> Legacy AI detection endpoints replaced by the async inference API

For more information on billing units and pricing, check our [pricing page](https://www.pangram.com/pricing).

> [!WARNING]
>
> All endpoints on this page are legacy AI detection endpoints. Use the current [async AI detection API](https://docs.pangram.com/api-reference/ai-detection.md) for single inputs or the [Bulk API](https://docs.pangram.com/api-reference/bulk-api.md) for many inputs.

## Synchronous V3 Endpoint Deprecated Legacy

### POST /v3

```
POST https://text.api.pangram.com/v3
```

Synchronous V3 classification endpoint. Use `POST /task` and `GET /task/{task_id}` on `https://text.external-api.pangram.com` instead.

**Request Body**

**text** `string` *required*

The input text to analyze.

**public\_dashboard\_link** `boolean` (default: false)

Whether to include a public dashboard link in the response.

**Response**

Returns the completed AI detection result directly, including `prediction`, `prediction_short`, authorship fractions, segment counts, and `windows`.

***

## Root Endpoint Deprecated Legacy

### POST /

```
POST https://text.api.pangram.com
```

Single text classification returning an AI likelihood score.

**Request Body**

**text** `string` *required*

The input text to classify.

**return\_ai\_sentences** `boolean` (default: false)

If `true`, return a list of the most indicative AI sentences.

**Response**

**ai\_likelihood** `float`

Classification score from 0.0 (human) to 1.0 (AI).

**text** `string`

The classified text.

**prediction** `string`

A string representing the classification.

**ai\_sentences** `array`

List of the most indicative AI sentences. Only present when `return_ai_sentences` is `true`.

**Example Response**

```json theme={null}
{
  "text": "The text to analyze",
  "prediction": "Likely AI",
  "ai_likelihood": 0.92
}
```

***

## Batch Endpoint Deprecated Legacy

### POST /

```
POST https://text-batch.api.pangram.com
```

Classify multiple texts in a single request. Use the current [Bulk API](https://docs.pangram.com/api-reference/bulk-api.md) instead.

**Request Body**

**text** `array` *required*

An array of input texts to classify.

**Response**

**responses** `array`

The classification results as a list. Each item contains `text`, `ai_likelihood`, and `prediction`.

**Example Response**

```json theme={null}
{
  "responses": [
    {
      "text": "The first text to analyze",
      "prediction": "Likely AI",
      "ai_likelihood": 0.92
    },
    {
      "text": "The second text to analyze",
      "prediction": "Possibly AI",
      "ai_likelihood": 0.58
    }
  ]
}
```

***

## Sliding Window Endpoint Deprecated Legacy

### POST /

```
POST https://text-sliding.api.pangram.com
```

Classify a long document using a sliding window across the full text.

**Request Body**

**text** `string` *required*

The input text to segment into windows and classify.

**return\_ai\_sentences** `boolean` (default: false)

If `true`, return a list of the most indicative AI sentences.

**Response**

**text** `string`

The classified text.

**ai\_likelihood** `float`

Classification score from 0.0 (human) to 1.0 (AI).

**max\_ai\_likelihood** `float`

Maximum AI likelihood score among all windows.

**avg\_ai\_likelihood** `float`

Average AI likelihood score among all windows.

**prediction** `string`

A string representing the classification.

**short\_prediction** `string`

Short classification string (`"AI"`, `"Human"`, `"Mixed"`).

**fraction\_ai\_content** `float`

Fraction of windows classified as AI.

**windows** `array`

List of windows and their individual classifications.

**Example Response**

```json theme={null}
{
  "text": "Extremely long text.",
  "prediction": "Highly likely AI",
  "ai_likelihood": 1.0,
  "max_ai_likelihood": 1.0,
  "avg_ai_likelihood": 0.6,
  "fraction_ai_content": 0.5,
  "windows": [
    {
      "text": "Extremely long",
      "ai_likelihood": 1.0,
      "prediction": "Highly likely AI"
    },
    {
      "text": "long text.",
      "ai_likelihood": 0.2,
      "prediction": "Unlikely AI"
    }
  ]
}
```

***

## Dashboard Endpoint Deprecated Legacy

### POST /

```
POST https://dashboard-text.api.pangram.com
```

Classify text and return a link to a dashboard page with the full result.

**Request Body**

**text** `string` *required*

The input text to classify.

**Response**

**ai\_likelihood** `float`

Classification score from 0.0 (human) to 1.0 (AI).

**prediction** `string`

A string representing the classification.

**short\_prediction** `string`

Short classification string (`"AI"`, `"Human"`, `"Mixed"`).

**dashboard\_link** `string`

A link to the dashboard page containing the full classification result.

**fraction\_ai\_content** `float`

Fraction of windows classified as AI.

**max\_ai\_likelihood** `float`

Maximum AI likelihood score among all windows.

**avg\_ai\_likelihood** `float`

Average AI likelihood score among all windows.

**windows** `array`

List of windows and their individual classifications.

**Example Response**

```json theme={null}
{
  "text": "Extremely long text.",
  "prediction": "Highly likely AI",
  "ai_likelihood": 1.0,
  "dashboard_link": "https://www.pangram.com/history/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "max_ai_likelihood": 1.0,
  "avg_ai_likelihood": 0.6,
  "fraction_ai_content": 0.5,
  "windows": [
    {
      "text": "Extremely long",
      "ai_likelihood": 1.0,
      "prediction": "Highly likely AI"
    },
    {
      "text": "long text.",
      "ai_likelihood": 0.2,
      "prediction": "Unlikely AI"
    }
  ]
}
```

***

## Extended Endpoint Deprecated Legacy

### POST /

```
POST https://text-extended.api.pangram.com
```

Extended analysis with adaptive boundaries and windowed results.

**Request Body**

**text** `string` *required*

The input text to classify with extended analysis.

**dashboard** `boolean` (default: false)

Enable dashboard integration.

**is\_public** `boolean` (default: true)

Control visibility in dashboard.

**Response**

**text** `string`

The input text that was analyzed.

**avg\_ai\_likelihood** `float`

Weighted average AI likelihood score across all windows.

**max\_ai\_likelihood** `float`

Maximum AI likelihood score among all windows.

**prediction** `string`

Long-form prediction string representing the classification.

**prediction\_short** `string`

Short-form prediction string (`"AI"`, `"Human"`, `"Mixed"`).

**headline** `string`

Classification headline summarizing the result.

**windows** `array`

List of text segments analyzed individually. Each window contains `text`, `ai_likelihood`, `label`, `confidence`, `start_index`, `end_index`, and `word_count`.

**window\_likelihoods** `array`

AI likelihood scores for each window (list of values from 0.0 to 1.0).

**window\_indices** `array`

Indices indicating the position of each window in the original text (list of `[start_char_index, end_char_index]`).

**fraction\_human** `float`

Fraction of text classified as human-written (0.0–1.0).

**fraction\_ai** `float`

Fraction of text classified as AI-written (0.0–1.0).

**fraction\_mixed** `float`

Fraction of text classified as mixed content (0.0–1.0).

**metadata** `object`

Additional metadata about the analysis.

**version** `string`

Analysis version identifier (`"adaptive_boundaries"`).

**dashboard\_link** `string`

Dashboard link. Only present when `dashboard` is `true`. `is_public` controls visibility.

**Example Response**

```json theme={null}
{
  "text": "The text to analyze with extended classification",
  "avg_ai_likelihood": 0.75,
  "max_ai_likelihood": 0.92,
  "prediction": "Primarily AI-generated, or heavily AI-assisted",
  "prediction_short": "AI",
  "headline": "AI Detected",
  "windows": [
    {
      "text": "The text to analyze",
      "ai_likelihood": 0.85,
      "label": "AI",
      "confidence": "Medium",
      "start_index": 0,
      "end_index": 19,
      "word_count": 4
    },
    {
      "text": "with extended classification",
      "ai_likelihood": 0.65,
      "label": "AI",
      "confidence": "Low",
      "start_index": 20,
      "end_index": 47,
      "word_count": 3
    }
  ],
  "window_likelihoods": [0.85, 0.65],
  "window_indices": [[0, 19], [20, 47]],
  "fraction_human": 0.25,
  "fraction_ai": 0.70,
  "fraction_mixed": 0.05,
  "metadata": {
    "request_id": "123e4567-e89b-12d3-a456-426614174000"
  },
  "version": "adaptive_boundaries",
  "dashboard_link": "https://www.pangram.com/history/123e4567-e89b-12d3-a456-426614174000"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.