Sentinel: AI Text Detector
This API provides an forensic AI detector designed to analyze AI text patterns. It determines the likelihood that a piece of text was generated by an AI models or a human.
Endpoint
Section titled “Endpoint” POST
/api/v1/sentinel Request Parameters
Section titled “Request Parameters”The following parameters are accepted in the request body:
| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The content to analyze. |
Request Examples
Section titled “Request Examples”curl -X POST https://heavstal.com.ng/api/v1/sentinel \-H "Content-Type: application/json" \-H "x-api-key: <YOUR_API_KEY>" \-d '{"text": "This is the text I want to scan for AI patterns."}'const response = await fetch('https://heavstal.com.ng/api/v1/sentinel', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': '<YOUR_API_KEY>' }, body: JSON.stringify({ text: "This is the text I want to scan for AI patterns." })});
const res = await response.json();console.log(`Verdict: ${res.data.verdict}`);import { ai } from '@heavstal/api';
const scan = await ai.sentinel("The quick brown fox jumps over the lazy dog.");console.log(`Score: ${scan.score}% | Verdict: ${scan.verdict}`);import requests
url = "https://heavstal.com.ng/api/v1/sentinel"headers = { "Content-Type": "application/json", "x-api-key": "<YOUR_API_KEY>"}payload = { "text": "This is the text I want to scan for AI patterns."}
response = requests.post(url, headers=headers, json=payload)print(response.json()["data"])Response Examples
Section titled “Response Examples”{ "status": "success", "creator": "HEAVSTAL TECH", "data": { "score": 98, "verdict": "AI-Generated", "analysis": "The text exhibits low perplexity and consistent sentence structure typical of LLMs." }}{ "status": "error", "error": "Text provided is too short for accurate analysis."}