Spaces:
Running
Running
# 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" | |
} | |
``` |