Synchronous V3 Endpoint Deprecated Legacy
POST /v3
POST /task and GET /task/{task_id} on https://text.external-api.pangram.com instead.
Request Body
string
required
The input text to analyze.
boolean
default:"false"
Whether to include a public dashboard link in the response.
prediction, prediction_short, authorship fractions, segment counts, and windows.
Root Endpoint Deprecated Legacy
POST /
string
required
The input text to classify.
boolean
default:"false"
If
true, return a list of the most indicative AI sentences.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.Batch Endpoint Deprecated Legacy
POST /
array
required
An array of input texts to classify.
array
The classification results as a list. Each item contains
text, ai_likelihood, and prediction.Sliding Window Endpoint Deprecated Legacy
POST /
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.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.
Dashboard Endpoint Deprecated Legacy
POST /
string
required
The input text to classify.
float
Classification score from 0.0 (human) to 1.0 (AI).
string
A string representing the classification.
string
Short classification string (
"AI", "Human", "Mixed").string
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.
Extended Endpoint Deprecated Legacy
POST /
string
required
The input text to classify with extended analysis.
boolean
default:"false"
Enable dashboard integration.
boolean
default:"true"
Control visibility in dashboard.
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").string
Dashboard link. Only present when
dashboard is true. is_public controls visibility.