1
Set your API key
All requests require your API key in the
x-api-key header.2
Discover available models
Retrieve the model selectors enabled for your API key.The response is entitlement- and availability-aware:
3
Submit an AI detection task
Pangram AI detection uses an async task API. Submit text to create a task.Example Response
4
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"is_humanized/humanizer_score— Pangram 4 humanizer-head output on every window
5
Request a dashboard link
Pass
public_dashboard_link: true when submitting the task to get a shareable link in the completed result.6
Submit a Bulk API job
Use Example Response
POST /bulk for asynchronous AI detection across many inputs.7
Poll and fetch bulk results
Poll the bulk job until Then page through results.
status is succeeded, failed, or partial.8
Upload a file
Send documents as multipart form data to create file-based AI detection results.
9
Check for plagiarism
Check text against a database of online content. Note the different base URL.Example Response
The text and bulk APIs temporarily accept an omitted
model for backward compatibility and resolve it to "default". New integrations should always send a selector returned by GET /models. A bulk selector applies to every item in the job.Error Handling
If you are running into errors, please reach out at support@pangram.com.