AI Detection
REST API
AI Detection
Detect AI-generated and AI-assisted text using the async inference API
POST
AI Detection
Current
Use the Bulk API when you need to analyze many texts as one asynchronous job.
Example Response
In-Progress Response
Success Response
Failed Response
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.POST /task
Create an async AI detection task.Request
The input text to analyze.
Whether to include a public dashboard link in the completed response.
Response
The ID of the async inference task.
Example
GET /task/
Fetch the current status or completed result for an AI detection task.Request
The task ID returned by
POST /task.Response
The ID of the async inference task. Present while the task is in progress.
Current task stage. Terminal stages are
STAGE_SUCCESS and STAGE_FAILED.The input text that was analyzed. Present on success.
The API version identifier (e.g.,
"3.0"). Present on success.Classification headline summarizing the result. Present on success.
Long-form prediction string describing the classification. Present on success.
Short-form prediction string (e.g.,
"AI", "AI-Assisted", "Human", "Mixed"). Present on success.Fraction of text classified as AI-written (0.0–1.0). Present on success.
Fraction of text classified as AI-assisted (0.0–1.0). Present on success.
Fraction of text classified as human-written (0.0–1.0). Present on success.
Number of text segments classified as AI. Present on success.
Number of text segments classified as AI-assisted. Present on success.
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.List of text segments () analyzed individually. Present on success.
Example
cURL