curl -X POST https://text.api.pangram.com/v3 \ -H "Content-Type: application/json" \ -H "x-api-key: your_api_key_here" \ -d '{ "text": "The text to analyze with V3 classification" }'
Example Response
Copy
{ "text": "The text to analyze with V3 classification", "version": "3.0", "headline": "AI Detected", "prediction": "We are confident that this document is a mix of AI-generated, AI-assisted, and human-written content", "prediction_short": "Mixed", "fraction_ai": 0.70, "fraction_ai_assisted": 0.20, "fraction_human": 0.10, "num_ai_segments": 7, "num_ai_assisted_segments": 2, "num_human_segments": 1, "windows": [ { "text": "The text to analyze", "label": "AI-Generated", "ai_assistance_score": 0.85, "confidence": "High", "start_index": 0, "end_index": 19, "word_count": 4, "token_length": 5 }, { "text": "with V3 classification", "label": "Moderately AI-Assisted", "ai_assistance_score": 0.45, "confidence": "Medium", "start_index": 20, "end_index": 49, "word_count": 4, "token_length": 5 } ]}