⚠️ The model is trained primarily on government-issued identity documents. Submissions of non-official or stylized documents (e.g., mockups, templates, or artistic edits) may result in undefined or low-confidence results.
Endpoint Overview
Method:POSTPath:
/api/v4/deepfake/document/image/analyzeBase URL:
https://api.dataspike.ioAuthentication: Include your API key in the header
ds-api-token: <YOUR_API_KEY>
Supported formats: .jpg, .jpeg, .png, .webpMaximum file size:
10 MBContent type:
multipart/form-data with a single file field
Example Workflow (cURL)
Document analysis requests are processed synchronously, meaning the API performs the full analysis during the request and returns the final result immediately — no separate polling step is required.Submit a document for analysis
You can directly read the
score and verdict fields to interpret the result.
| Field | Description |
|---|---|
score | Confidence value (0–1). Higher values indicate a higher likelihood of manipulation or AI-generated content. |
verdict | Classification result — for example deepfake_likely or deepfake_unlikely. |
Tip: Choose a score threshold appropriate for your verification workflow.
For example, flag results withscore > 0.5for manual review or secondary validation.
Important Guidelines
- Intended Input: High-quality scans or photos of government-issued identity documents (passports, IDs, licenses).
- Undefined Results: Non-standard documents (mockups, templates, low-resolution scans) may yield undefined or low-confidence outcomes.
- Lighting and Clarity: Ensure the document is well-lit, unblurred, and occupies most of the image frame.
- File Size: Maximum 10 MB per upload. Resize or compress large images before submission.
- Rate Limits: Poll every 1–3 seconds when checking job status. Avoid tight loops to prevent throttling.
Typical Flow
- Upload the image of the ID/passport using the
/deepfake/image/analyzeendpoint. - Receive the job
idin the response. - Poll the
/deepfake/job/{id}endpoint periodically untilstatusbecomescompleted. - Read the
scoreandverdictfields to assess document authenticity. - Take action based on your fraud or KYC workflow.
Sandbox Testing
For testing and integration purposes, you can use the sandbox environment: Base URL:https://sandboxapi.dataspike.io
This environment behaves identically but uses non-production scoring and does not affect your production quota.