Prerequisites
Before you begin, you’ll need:- A Veri API key (get one at dashboard.tryveri.com)
- Python 3.10+ or Node.js 18+
Installation
Your First Detection
1
Initialize the client
Create a client with your API key:
2
Detect an image
Pass an image to the detect method:
3
Interpret the results
The detection result contains:
Understanding Results
| Field | Description |
|---|---|
is_fake / isFake | true if the image is likely AI-generated |
confidence | Overall confidence score (0-1) |
model_scores / modelScores | Individual scores from each detection model |
cached | Whether the result came from cache |
processing_time_ms / processingTimeMs | Total inference time |
A
confidence of 0.5 is the default threshold. Scores above 0.5 indicate the image is likely AI-generated.