Skip to main content
All endpoints on this page are legacy AI detection endpoints. Use the current async AI detection API for single inputs or the Bulk API for many inputs.

Synchronous V3 Endpoint Deprecated Legacy

POST /v3

Synchronous V3 classification endpoint. Use POST /task and GET /task/{task_id} on https://text.external-api.pangram.com instead. Request Body
string
required
The input text to analyze.
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 /

Single text classification returning an AI likelihood score. Request Body
string
required
The input text to classify.
boolean
default:"false"
If true, return a list of the most indicative AI sentences.
Response
float
Classification score from 0.0 (human) to 1.0 (AI).
string
The classified text.
string
A string representing the classification.
array
List of the most indicative AI sentences. Only present when return_ai_sentences is true.
Example Response

Batch Endpoint Deprecated Legacy

POST /

Classify multiple texts in a single request. Use the current Bulk API instead. Request Body
array
required
An array of input texts to classify.
Response
array
The classification results as a list. Each item contains text, ai_likelihood, and prediction.
Example Response

Sliding Window Endpoint Deprecated Legacy

POST /

Classify a long document using a sliding window across the full text. Request Body
string
required
The input text to segment into windows and classify.
boolean
default:"false"
If true, return a list of the most indicative AI sentences.
Response
string
The classified text.
float
Classification score from 0.0 (human) to 1.0 (AI).
float
Maximum AI likelihood score among all windows.
float
Average AI likelihood score among all windows.
string
A string representing the classification.
string
Short classification string ("AI", "Human", "Mixed").
float
Fraction of windows classified as AI.
array
List of windows and their individual classifications.
Example Response

Dashboard Endpoint Deprecated Legacy

POST /

Classify text and return a link to a dashboard page with the full result. Request Body
string
required
The input text to classify.
Response
float
Classification score from 0.0 (human) to 1.0 (AI).
string
A string representing the classification.
string
Short classification string ("AI", "Human", "Mixed").
A link to the dashboard page containing the full classification result.
float
Fraction of windows classified as AI.
float
Maximum AI likelihood score among all windows.
float
Average AI likelihood score among all windows.
array
List of windows and their individual classifications.
Example Response

Extended Endpoint Deprecated Legacy

POST /

Extended analysis with adaptive boundaries and windowed results. Request Body
string
required
The input text to classify with extended analysis.
boolean
default:"false"
Enable dashboard integration.
boolean
default:"true"
Control visibility in dashboard.
Response
string
The input text that was analyzed.
float
Weighted average AI likelihood score across all windows.
float
Maximum AI likelihood score among all windows.
string
Long-form prediction string representing the classification.
string
Short-form prediction string ("AI", "Human", "Mixed").
string
Classification headline summarizing the result.
array
List of text segments analyzed individually. Each window contains text, ai_likelihood, label, confidence, start_index, end_index, and word_count.
array
AI likelihood scores for each window (list of values from 0.0 to 1.0).
array
Indices indicating the position of each window in the original text (list of [start_char_index, end_char_index]).
float
Fraction of text classified as human-written (0.0–1.0).
float
Fraction of text classified as AI-written (0.0–1.0).
float
Fraction of text classified as mixed content (0.0–1.0).
object
Additional metadata about the analysis.
string
Analysis version identifier ("adaptive_boundaries").
Dashboard link. Only present when dashboard is true. is_public controls visibility.
Example Response