File size: 494 Bytes
ed81b57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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`
```json
{
    "text": "Your text to analyze"
}
```

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