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 Example Success ResponseKey response fields:
stage is STAGE_SUCCESS or STAGE_FAILED.stage— terminal task stage for completed resultsfraction_ai/fraction_ai_assisted/fraction_human— breakdown of text by authorshipwindows— segment-level classifications with confidence scoresheadline— 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 Example Response
POST /bulk for asynchronous AI detection across many inputs.6
Poll and fetch bulk results
Poll the bulk job until Then page through results.
status is succeeded, failed, or partial.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.