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.