File size: 1,043 Bytes
abeae79 | 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 28 29 30 31 32 33 34 35 36 | ---
title: MFFT AI Image Detector API
emoji: π
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
license: mit
---
# MFFT β Multi-Frequency Fusion Transformer, Detection API
FastAPI inference server for AI-generated image detection. Three model
variants are served and selectable per request.
> **Demo checkpoints:** these are *pilot* models (1 training epoch on a 5K
> subset) published for pipeline demonstration. Full-scale weights will
> replace them after the training campaign completes.
## Endpoints
- `GET /` β health
- `GET /models` β available variants (`tiny` 372K, `base` 1.62M, `large` 6.30M)
- `POST /predict?model=base` β multipart `file=<image>`; returns prediction,
probabilities, anomaly heatmap (base64 PNG), frequency band contributions
- `POST /predict/batch?model=large` β multiple files
## Example
```bash
curl -X POST "https://mohsineli-mfft-api.hf.space/predict?model=large" \
-H "Authorization: Bearer free" \
-F "file=@image.jpg"
```
|