The Pangram API provides an instant result for any text input, classifying it as human or AI-generated. We provide Python SDK and Inference API options for seamless integration into your platform.
Your platform sends raw text via a secure HTTPS POST request to your regional Pangram endpoint.
Pangram analyzes the input text and calculates its likelihood of being AI-generated based on trained patterns.
The API instantly returns a structured JSON response including a prediction score and a confidence level. This allows for real-time content scoring and immediate action.




Download our easy-to-use Python package:
pip install pangram-sdkexport PANGRAM_API_KEY=<your API key>from pangram import Pangram
pangram_client = Pangram()
text = "The text to analyze with Pangram"
result = pangram_client.predict(text)
stage = result["stage"] # "STAGE_SUCCESS" after predict() completes.
fraction_ai = result["fraction_ai"]
fraction_ai_assisted = result["fraction_ai_assisted"]
fraction_human = result["fraction_human"]Use our async REST API directly:
curl -X POST https://text.external-api.pangram.com/task \
-H "Content-Type: application/json" \
-H "x-api-key: $PANGRAM_API_KEY" \
-d '{
"text": "The text to analyze with Pangram",
"public_dashboard_link": false
}'curl -X GET https://text.external-api.pangram.com/task/<task_id> \
-H "x-api-key: $PANGRAM_API_KEY"Pangram is quick and easy to implement into your existing tech stack. Sign up and build the same day.
Pangram is SOC 2 certified. Your data is encrypted at rest and in transit with enterprise-grade security.
Our team is here to help. Reach out to successfully implement AI detection into your existing workflows.
Pangram policy-grade accuracy and low false positive rate are third-party verified by leading AI experts.
Create an account or log in to the dashboard.
Click API in the header bar.
Find your API key on the left hand side of the page.

Pangram Labs partners with Quora to take on spammers using AI-generated content to respond to posts with inauthentic, AI-generated answers.
If you plan on using more queries than supported in the Pro plan, please reach out. Use our expertise to support your large-scale AI detection projects.
Pangram is available with different pricing plans to suit your AI detection needs.
Choose from our tailored plans designed for individuals, professionals, educational institutions, developers, and enterprises.
Each plan is designed to support the volume of AI scans, features, and integrations you need.

$25
500 credits
$.05 = Credit of 1,000 words