The ZeroGPT API, also known as chatGPT detector, is an API designed to detect whether a given text has been generated by a GPT language model or written by a human. It utilizes various natural language processing techniques to analyze the text and identify patterns and characteristics that are indicative of GPT-generated content. The API can be integrated into various applications and systems to help identify and filter out potentially misleading or malicious content generated by GPT models.
ZeroGPT API or chatGPT detector is an AI-based technology that uses machine learning algorithms to analyze text-based conversations and detect potential instances of inappropriate or harmful content. This API is designed to be integrated into various chat platforms, social media applications, or other digital communication tools to provide real-time content moderation and enhance user safety.
API Endpoint: /api/v1/detectText
HTTP Method: POST
Request Body:
The request body is a JSON object that contains a single field “input_text”, which represents the text that needs to be analyzed for ChatGPT generation.
{
“input_text”: “Hello, how are you today?”
}
Response Body:
{
“success”: true,
“data”: {
“is_human_written”: 0,
“is_gpt_generated”: 100,
“feedback_message”: “Please input more text for a more accurate result”,
“gpt_generated_sentences”: [],
“words_count”: 75
}
HTTP Status Codes:
200 OK: The request was successful and the response body contains the detection results.
400 Bad Request: The request is missing required fields or has invalid data in the request body.
The /api/v1/detectText
endpoint of the ZeroGPT API is designed to analyze a given text and detect if it is generated by GPT or similar language models.
const axios = require('axios');
const options = {
method: 'POST',
url: 'https://zerogpt.p.rapidapi.com/api/v1/detectText',
headers: {
'content-type': 'application/json',
'X-RapidAPI-Key': 'your-api-key-here',
'X-RapidAPI-Host': 'zerogpt.p.rapidapi.com'
},
data: {
input_text: 'C is a high-level, general-purpose programming language...'
}
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zerogpt.p.rapidapi.com/api/v1/detectText",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input_text' => 'C is a high-level, general-purpose programming language...'
]),
CURLOPT_HTTPHEADER => [
"X-RapidAPI-Host: zerogpt.p.rapidapi.com",
"X-RapidAPI-Key: your-api-key-here",
"content-type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
For more information, refer to the API documentation or visit the ZeroGPT API website.