API docs → Migrate from Originality.ai
Migrate from Originality.ai
Two things to know up front: our detection and plagiarism live on separate endpoints (call both in parallel for the equivalent of their "Scan"), and our plagiarism scan checks open academic databases and reference works as well as the open web.
Why switch
- Academic plagiarism coverage. Open academic databases, reference works and the open web.
- Per-sentence breakdown. Starter tier and above get Deep Scan, which scores each of the first 80 sentences separately.
- No public share links. We don't publish results to a public URL.
Side-by-side
Before — Originality.ai
// Before: Originality.ai
const res = await fetch('https://api.originality.ai/api/v1/scan/ai', {
method: 'POST',
headers: { 'X-OAI-API-KEY': process.env.ORIGINALITY_KEY, 'Accept': 'application/json' },
body: new URLSearchParams({ content: text, title: 'doc' }),
});
const data = await res.json();
const aiScore = data.data.ai.score;
const plagScore = data.data.plagiarism.score; After — Deep AI Detector
// After: deepaidetector (split: detection + plagiarism are separate endpoints)
// @deepaidetector/client is coming soon (not yet published to npm).
import { createClient } from '@deepaidetector/client';
const client = createClient({ apiKey: process.env.DEEPAIDETECTOR_KEY });
const [detect, plag] = await Promise.all([
client.detect({ text }),
client.plagiarism({ text }),
]);
const aiScore = detect.score;
const plagScore = plag.report.overallPercent / 100; Field mapping
| Originality.ai | Deep AI Detector | Notes |
|---|---|---|
data.ai.score | score | AI probability 0-1. Same scale, same direction. |
data.ai.confidence | meta.reliability.level | We expose "low" / "high" based on word count; their numeric confidence is approximate. |
data.plagiarism.score | plagiarism.report.overallPercent | Different endpoint — see /v1/plagiarism. Both report overall similarity percentage. |
data.plagiarism.sources[].url | plagiarism.report.sources[].url | Per-source citation list, with title, matching passages and coverage for each source. |
data.readability.score | — | No equivalent. Readability metrics are not part of our response. |
public_link | document_id | We return a stable UUID instead of a public link. Build your own share link off it if you need one. |
Behaviour differences to know
- Two endpoints, not one. Detection and plagiarism are independent — call only the one you need, or both in parallel for the bundled equivalent.
- JSON body, not form-encoded. Bearer token in
Authorization(notX-OAI-API-KEY); body is JSON. - 80-word floor on detection. Below this we return
422 insufficient_textrather than a low-confidence number. - Plagiarism min is 80 words / 200 chars. Below this we return
422. - No public share links. Store the
document_idwith your own records, or build your own share UI. - English works best. Each detection response includes a
detected_languagecode; scores are most reliable on English text.
Migration checklist
- Once the API launches, generate a Deep AI Detector API key in your dashboard (Pro and higher).
- Split the call site — issue parallel
detect+plagiarismcalls instead of one Originality scan. - Swap auth header:
X-OAI-API-KEY: ...→Authorization: Bearer dad_live_.... - Change content-type to
application/jsonand serialise the body. - Update response parsing per the field map.
- Add 422 handling for short text.
- (Optional, once it's published) drop in
@deepaidetector/client(coming soon) for typed errors + retries.
Want a hand?
Questions about your call site? Email support@deepaidetector.com. The API isn't accepting public traffic yet, so get notified when keys go live.
Notify me at launch