Skip to main content

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.

All endpoints on this page are deprecated and will be removed by April 1st, 2026. Use the V3 endpoint instead.

Root Endpoint Deprecated Removal: April 2026

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
{
  "text": "The text to analyze",
  "prediction": "Likely AI",
  "ai_likelihood": 0.92
}

Batch Endpoint Deprecated Removal: April 2026

POST /

POST https://text-batch.api.pangram.com
Classify multiple texts in a single request. 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
{
  "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 Removal: April 2026

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
{
  "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 Removal: April 2026

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").
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
{
  "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 Removal: April 2026

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