Skip to main content
POST
AI Detection
Current
Async inference API
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.

POST /task

Create an async AI detection task.

Request

text
string
required
The input text to analyze.
Whether to include a public dashboard link in the completed response.

Response

task_id
string
The ID of the async inference task.

Example

Example Response

GET /task/

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

Request

task_id
string
required
The task ID returned by POST /task.

Response

task_id
string
The ID of the async inference task. Present while the task is in progress.
stage
string
Current task stage. Terminal stages are STAGE_SUCCESS and STAGE_FAILED.
text
string
The input text that was analyzed. Present on success.
version
string
The API version identifier (e.g., "3.0"). Present on success.
headline
string
Classification headline summarizing the result. Present on success.
prediction
string
Long-form prediction string describing the classification. Present on success.
prediction_short
string
Short-form prediction string (e.g., "AI", "AI-Assisted", "Human", "Mixed"). Present on success.
fraction_ai
float
Fraction of text classified as AI-written (0.0–1.0). Present on success.
fraction_ai_assisted
float
Fraction of text classified as AI-assisted (0.0–1.0). Present on success.
fraction_human
float
Fraction of text classified as human-written (0.0–1.0). Present on success.
num_ai_segments
integer
Number of text segments classified as AI. Present on success.
num_ai_assisted_segments
integer
Number of text segments classified as AI-assisted. Present on success.
num_human_segments
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.
windows
array
List of text segments () analyzed individually. Present on success.

Example

cURL
In-Progress Response
Success Response
Failed Response