API Endpoints
The TruthLens AI Detection API includes three main detection endpoints: image, text, and video frames.
1. Detect Image
POST /v1/detect/image
{
"image_url": "https://example.com/photo.jpg"
}
2. Detect Text
POST /v1/detect/text
{
"text": "Hello world"
}
3. Detect Video (Frame Sampling)
POST /v1/detect/video
{
"video_url": "https://example.com/video.mp4",
"sample_rate": 1
}
The API returns:
{
"type": "image",
"label": "likely_ai",
"confidence": 0.87,
"provider": "TruthLens API",
"raw": { ... }
}