textdetectextension / README.md
abhishekdeshmukh
First commit
ed81b57
|
raw
history blame
494 Bytes

AI Text Detection API

This API provides endpoints for detecting AI-generated text using the RoBERTa-based model from fakespot-ai.

API Endpoints

  • GET /: Health check endpoint
  • POST /predict: Predict if text is AI-generated or human-written

Sample Usage

POST /predict

{
    "text": "Your text to analyze"
}

Response:

{
    "text": "Your text to analyze",
    "human_probability": 85.5,
    "ai_probability": 14.5,
    "prediction": "Human-written"
}