analyze
Detect AI-generated text using Pangram Labs: classify input as human-written, AI-generated, or AI-assisted and return verdict, class fractions, and segment breakdown.
Instructions
Detect AI-generated text with Pangram Labs.
Classifies the input as human-written, AI-generated, or AI-assisted and returns an
overall verdict (prediction), per-class fractions 0.0-1.0
(fraction_ai / fraction_ai_assisted / fraction_human), segment counts, and a
per-segment breakdown (windows).
Requires the PANGRAM_API_KEY environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to classify (read files with your own tools first). | |
| public_dashboard_link | No | Request a PUBLIC shareable Pangram dashboard link for the result. Off by default; only enable for non-sensitive text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Pangram model version that produced this result. | |
| windows | No | Per-segment breakdown. | |
| headline | No | One-line human summary. | |
| prediction | Yes | Overall verdict for the whole text. | |
| fraction_ai | Yes | Fraction of the text classified as AI-generated (0.0-1.0). | |
| dashboard_link | No | Shareable dashboard URL (only if requested). | |
| fraction_human | Yes | Fraction classified as human-written (0.0-1.0). | |
| num_ai_segments | No | ||
| prediction_short | No | Short form of the verdict. | |
| num_human_segments | No | ||
| fraction_ai_assisted | Yes | Fraction classified as AI-assisted (0.0-1.0). | |
| num_ai_assisted_segments | No |