
Detect if a document or portrait image was captured live or photographed from a screen
Vision Language Model for image/video understanding with reasoning
media_typestringType of media being sent: 'image' or 'video'. Auto-detected if not specified.
imageimage_urlstringURL of image to analyze
https://example.com/image.jpgbase64_imagestringBase64-encoded image data
video_urlstringURL of video to analyze
https://example.com/video.mp4base64_videostringBase64-encoded video data
Structured Document Liveness Detector response
responseobjectStructured response from the model
livenessstringWhether the document was captured live or from a screen
livecomputer_screenphone_screenother_screenconfidencestringConfidence level of the detection
lowmediumhighindicatorsarrayList of visual indicators detected
thinkingstringChain-of-thought reasoning from the model (may be empty)
{
"model": "document-liveness",
"image_url": "https://example.com/image.jpg"
}{
"inference_id": "inf_abc123def456",
"model_id": "document_liveness",
"model_name": "Document Liveness Detector",
"moderation_type": "image",
"status": "completed",
"result": {
"response": {
"liveness": "live",
"confidence": "low",
"indicators": null
},
"thinking": ""
}
}429 HTTP error code along with an error message. You should then retry with an exponential back-off strategy, meaning that you should retry after 4 seconds, then 8 seconds, then 16 seconds, etc.Integrate Document Liveness Detector into your application today with our easy-to-use API.