Skip to main content

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.aiDeep AI DetectorNotes
data.ai.scorescoreAI probability 0-1. Same scale, same direction.
data.ai.confidencemeta.reliability.levelWe expose "low" / "high" based on word count; their numeric confidence is approximate.
data.plagiarism.scoreplagiarism.report.overallPercentDifferent endpoint — see /v1/plagiarism. Both report overall similarity percentage.
data.plagiarism.sources[].urlplagiarism.report.sources[].urlPer-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_linkdocument_idWe 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 (not X-OAI-API-KEY); body is JSON.
  • 80-word floor on detection. Below this we return 422 insufficient_text rather than a low-confidence number.
  • Plagiarism min is 80 words / 200 chars. Below this we return 422.
  • No public share links. Store the document_id with your own records, or build your own share UI.
  • English works best. Each detection response includes a detected_language code; scores are most reliable on English text.

Migration checklist

  1. Once the API launches, generate a Deep AI Detector API key in your dashboard (Pro and higher).
  2. Split the call site — issue parallel detect + plagiarism calls instead of one Originality scan.
  3. Swap auth header: X-OAI-API-KEY: ... → Authorization: Bearer dad_live_....
  4. Change content-type to application/json and serialise the body.
  5. Update response parsing per the field map.
  6. Add 422 handling for short text.
  7. (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