Skip to main content
POST
AI Detection
For more information on billing units and pricing, check our pricing page for developers. Current
Current version
The current AI detection API creates an async task and returns a task ID. Poll the task endpoint until it reaches STAGE_SUCCESS or STAGE_FAILED.
Use the Bulk API when you need to analyze many texts as one asynchronous job. Use GET /models to discover the selectors available to your API key. The REST API temporarily accepts an omitted model for backward compatibility and resolves it to "default". New integrations should always send a selector explicitly.

POST /task

Create an async AI detection task.

Request

string
required
The input text to analyze.
string
default:"default"
A model selector returned by GET /models.
Whether to include a public dashboard link in the completed response.

Response

string
The ID of the async inference task.

Example

Example Response

Model selection errors


GET /task/

Fetch the current status or completed result for an AI detection task.

Request

string
required
The task ID returned by POST /task.

Response

string
The ID of the async inference task. Present while the task is in progress.
string
Current task stage. Terminal stages are STAGE_SUCCESS and STAGE_FAILED.
string
The analyzed text returned by the model. Pangram 4 may normalize the submitted text before inference; window offsets refer to this returned value. Present on success.
string
The API version identifier (e.g., "4.0" for Pangram 4). Present on success.
string
Classification headline summarizing the result. Present on success.
string
Long-form prediction string describing the classification. Present on success.
string
Short-form prediction string. Pangram 4 returns "AI", "Human", or "Mixed". Present on success.
float
Fraction of text classified as AI-written (0.0–1.0). Present on success.
float
Fraction of text classified as AI-assisted (0.0–1.0). Present on success.
float
Fraction of text classified as human-written (0.0–1.0). Present on success.
integer
Number of text segments classified as AI. Present on success.
integer
Number of text segments classified as AI-assisted. Present on success.
integer
Number of text segments classified as human. Present on success.
A link to the dashboard page containing the full classification result. Present on success when public_dashboard_link is true.
array
List of text segments () analyzed individually. Present on success.

Example

cURL
In-Progress Response
Success Response This example shows a Pangram 4 result. Pangram 4 returns version: "4.0", uses "AI-Assisted" instead of lightly or moderately assisted window labels, and keeps confidence as "Low", "Medium", or "High".
Failed Response