Skip to main content
1

Set your API key

All requests require your API key in the x-api-key header.
2

Submit an AI detection task

Pangram AI detection uses an async task API. Submit text to create a task.
Example Response
3

Poll for the completed result

Poll the task endpoint until stage is STAGE_SUCCESS or STAGE_FAILED.
Example Success Response
Key response fields:
  • stage — terminal task stage for completed results
  • fraction_ai / fraction_ai_assisted / fraction_human — breakdown of text by authorship
  • windows — segment-level classifications with confidence scores
  • headline — summary classification, such as "AI Detected" or "Human Written"
4

Request a dashboard link

Pass public_dashboard_link: true when submitting the task to get a shareable link in the completed result.
5

Submit a Bulk API job

Use POST /bulk for asynchronous AI detection across many inputs.
Example Response
6

Poll and fetch bulk results

Poll the bulk job until status is succeeded, failed, or partial.
Then page through results.
7

Upload a file

Send documents as multipart form data to create file-based AI detection results.
8

Check for plagiarism

Check text against a database of online content. Note the different base URL.
Example Response

Error Handling

If you are running into errors, please reach out at support@pangram.com.