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
text
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
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

Batch Endpoint Deprecated Legacy

POST /

Classify multiple texts in a single request. Use the current Bulk API 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

Sliding Window Endpoint Deprecated Legacy

POST /

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

Dashboard Endpoint Deprecated Legacy

POST /

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").
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

Extended Endpoint Deprecated Legacy

POST /

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. Only present when dashboard is true. is_public controls visibility.
Example Response