EyeSift
Developer GuideApril 30, 2026· 17 min read

Originality.ai scan/ai API: cURL, X-OAI-API-KEY & x-oai-api-key Fixes

By Brazora Monk·Last updated June 1, 2026

A technical and commercial guide to AI detection APIs for developers and product teams — including the exact Originality.ai api.originality.ai/api/v1/scan/ai endpoint, the X-OAI-API-KEY header, normalized x-oai-api-key logs, provider differences, latency expectations, and safe workflow patterns for CMS, LMS, ATS, and publishing platforms.

Fast answer

Use POST https://api.originality.ai/api/v1/scan/ai with X-OAI-API-KEY

The api.originality.ai/api/v1/scan/ai URL is the commonly referenced Originality.ai v1 AI text scan endpoint. Call it from your backend with a server-side API key, JSON content, and the X-OAI-API-KEY header. If logs show x-oai-api-key, that is usually normal lowercase header normalization.

Short answer for x-oai-api-key Originality: keep sending the documented X-OAI-API-KEY header from backend code. Seeing x-oai-api-key in Node, proxy, or server logs usually means the framework lowercased the header name; it does not mean the authentication header changed.

curl -X POST "https://api.originality.ai/api/v1/scan/ai" \
  -H "X-OAI-API-KEY: $ORIGINALITY_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"content":"Text to check for AI-generated patterns."}'

Source links checked June 1, 2026: Originality.ai API help page, which links to the provider's full API documentation, plus the Originality.ai minimum word count note. For a shorter implementation checklist, use the Originality.ai API endpoint guide.

A common failure mode in editorial, academic, and compliance workflows is not lack of awareness; it is lack of integration. Reviewers copy and paste selected documents into browser-based detectors, which makes screening slow, inconsistent, and hard to audit. The stronger pattern is to wire an AI detection API into intake so every eligible document receives the same structured triage signal before a human reviewer decides what to do next.

This is the standard problem that AI detector APIs solve: moving detection from a manual, ad-hoc check to an automated, systematic signal embedded in your existing workflow. The market for these APIs has matured significantly in 2025–2026. Multiple providers now offer stable, well-documented REST APIs with clear rate limits, competitive pricing, and accuracy suitable for production use. This guide covers how to evaluate them, what each offers, and how to implement detection in the workflows most likely to need it.

Key Takeaways

  • Three mature API options exist for production use in 2026: Originality.ai for publisher-style text scans, GPTZero for academic workflows, and Copyleaks for multilingual/API-governance deployments.
  • Pricing models vary dramatically — some providers use subscriptions, some use credits, and some reserve API access for custom enterprise or education plans. Always model cost by words, rate limits, and monthly minimums together.
  • Measure latency in your own workflow. Provider speed depends on text length, file handling, queue load, plan limits, and whether the scan is synchronous or asynchronous.
  • Never automate rejection on API output alone. Detector scores can produce false positives on edited, short, translated, non-native, template-heavy, or highly technical writing. Route flagged content to human review.
  • Test on your actual content type before committing — accuracy benchmarks are built on mixed corpora. Your specific domain (academic essays, job applications, marketing copy) may perform differently from headline numbers.

Direct answer for API searches

api.originality.ai/api/v1/scan/ai uses POST plus X-OAI-API-KEY

If your server logs, docs, or error messages mention api.originality.ai/api/v1/scan/ai, you are looking at the Originality.ai v1 text AI-detection scan endpoint. Send the request from your backend, include X-OAI-API-KEY, and keep the key out of browser JavaScript.

  • Method: POST
  • Endpoint: https://api.originality.ai/api/v1/scan/ai
  • Auth header: X-OAI-API-KEY; lowercase x-oai-api-key in logs is normally just header normalization.
  • Common mistake: avoid a double slash such as /api/v1//scan/ai.

Source links checked June 1, 2026: Originality.ai API help page, which links to the provider's full API documentation. See the focused scan/ai endpoint checklist for response-field handling and short-text confidence rules.

June 1, 2026 source checkpoint

What the current Originality.ai public help says

  • API overview: the official help page says the API lets developers submit text, trigger scans, and receive detailed AI-detection and plagiarism results, then points to the full API documentation. The public help page shows an update date of March 11, 2026.
  • Minimum length: the official minimum-word-count note says website scans have a 100-word minimum, while API AI-detection scans have no word-count minimum. It also warns that accuracy decreases below 100 words. That note shows an update date of May 13, 2026.
  • Production rule: treat api.originality.ai/api/v1/scan/ai as a v1-style endpoint reference and recheck your account's current provider docs before shipping, because endpoints, quotas, fields, and plan gates are vendor-controlled.

Answer-first API selection

Which AI detector API should you use?

Choose the API by workflow, not by a universal accuracy claim. LMS teams need document handling and academic review notes; publishers need fast server-side text scans and editorial queues; enterprise platforms need multilingual support, audit logs, webhooks, retention controls, and a clear human-review rule.

WorkflowPrioritizeDo not automate
LMS / educationFile input, sentence evidence, course policy fields, draft-history review, and false-positive warnings.Do not issue misconduct penalties from a score alone.
CMS / publishingBackend text scans, queues, reviewer notes, source checks, and sanitized request logs.Do not block publication without editor review.
Enterprise / multilingualLanguage coverage, webhooks, retention controls, access roles, and audit exports.Do not apply English-only thresholds to translated or multilingual text.

Source checkpoint May 30, 2026: Originality.ai API help and minimum-word-count notes, GPTZero API support, and Copyleaks writer-detector documentation. Caveat: endpoints, plan gates, response fields, and quotas are vendor-controlled and should be rechecked before production deployment.

Endpoint troubleshooting

Originality.ai scan/ai endpoint errors: what to check first

Search queries for api.originality.ai/api/v1/scan/ai, scan/ai, and x-oai-api-key usually come from developers debugging one of a few integration mistakes. Check these before changing providers or adding complex retry logic.

SymptomLikely causeFix
Logs mention api.originality.ai/api/v1/scan/aiYou are calling the text AI scan route.Use a backend POST request to https://api.originality.ai/api/v1/scan/ai.
Logs show x-oai-api-keyYour server or proxy lowercased the header name.Treat this as normal header normalization; keep the API key server-side.
invalid api callWrong route, missing path segment, or a double slash such as /api/v1//scan/ai.Compare the final URL string after environment variables are joined.
401 or unauthorizedMissing, expired, mistyped, or exposed key.Regenerate the key, store it in server secrets, and never ship it to browser code.
Unstable scores on short textThe detector has too little writing signal.Originality.ai says API scans have no minimum, but accuracy decreases below 100 words; add a short-text warning and route uncertain results to human review.

Source-checked implementation note

No API word-count minimum does not mean high confidence on short text

Originality.ai's current help article says website scans have a 100-word minimum, while AI detection scans in the API have no word-count minimum. The same note warns that accuracy decreases for API texts below 100 words. Treat that as a production-design requirement: your API wrapper should save word count, confidence band, provider score, and a short-text warning before a human reviewer sees the result.

  • Under 100 words: show a low-confidence warning and avoid automated decisions.
  • 100-300 words: useful for triage, but still compare with drafts, sources, and context.
  • Longer documents: more reliable for statistical signals, but not definitive proof.

Source links checked June 1, 2026: Originality.ai minimum word counts for scans.

Quick reference

Originality.ai API endpoint developers search for

If you are looking for the exact endpoint from server logs or documentation snippets, the common text scan pattern is:

POST https://api.originality.ai/api/v1/scan/ai
X-OAI-API-KEY: <server-side-api-key>
Content-Type: application/json

{
  "content": "Text to check for AI-generated patterns"
}

Copy-paste cURL example

curl -X POST "https://api.originality.ai/api/v1/scan/ai" \
  -H "X-OAI-API-KEY: $ORIGINALITY_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"content":"Paste the server-side text you want to scan."}'

Some logs normalize the header as x-oai-api-key. Header names are case-insensitive, but production code should keep API keys server-side, not in public browser JavaScript.

Why Organizations Are Embedding AI Detection Into Their Pipelines

The shift from ad-hoc to systematic AI detection is being driven by three practical factors. First, the volume problem: editors, instructors, recruiters, and compliance teams cannot manually copy-paste every document into a detector without slowing the workflow or screening only the most suspicious cases.

Second, the consistency problem: manual spot checks create selection bias. An API can apply the same minimum-length rules, provider, threshold band, and escalation note to every eligible document, which makes the review trail more defensible than informal browser checks.

Third, the defensibility problem: in any context where detection results have formal consequences — academic integrity proceedings, publication rejections, employment decisions — documented, consistent, automated screening creates an audit trail that ad-hoc manual checks do not.

The Leading AI Detector APIs in 2026

Originality.ai API

Originality.ai offers one of the most developer-friendly AI detection APIs: documented scan endpoints, API-key authentication, credit-based usage, and combined AI detection plus plagiarism workflows. Pricing and plan gates change over time, so verify current access rules in the Originality.ai dashboard before building a production budget. Independent tests generally place Originality.ai among the stronger commercial detectors, but teams should still benchmark it against their own content before treating scores as a decision signal.

Originality.ai documents API access through its help center and full API documentation. Treat current endpoints, response fields, plan gates, quotas, and pricing as provider-controlled details that should be checked in the dashboard before production deployment. For implementation, the key safety point is simple: call the endpoint from backend code, keep X-OAI-API-KEY in server secrets, and log sanitized status codes rather than full request headers.

GPTZero API

GPTZero's API is a strong option for academic institution deployments. GPTZero's support documentation says the API accepts files and text input, returns probabilities at document, paragraph, and sentence level, and supports batched inference. The classification model includes human, mixed, and AI outcomes, which is useful for educational contexts where students may submit partially AI-assisted work.

The GPTZero API accepts both raw text and file uploads, enabling LMS integration where student submissions arrive as documents rather than extracted text. Batch processing is supported, significantly reducing integration complexity for high-volume assignment review. GPTZero also documents confidence categories and recommends caution when tuning thresholds for academic use because false positives can cause disproportionate harm.

Copyleaks API

Copyleaks provides a mature API surface for AI detection and plagiarism workflows, including raw-text submission, file/URL handling in broader API flows, sandbox mode for testing, and documented rate-limit behavior. For international publishers or universities with non-English submission pipelines, Copyleaks' cross-language and governance tooling can address gaps in English-dominant detection stacks. Their public pricing currently lists Personal and Pro web plans, while API, LMS, education, and enterprise deployments may require a custom plan.

For high-stakes integrity workflows, benchmark Copyleaks against your own content mix before setting thresholds. For first-pass triage at scale — identifying which submissions warrant human review — it can be useful when paired with clear escalation rules, reviewer notes, and a policy that prohibits automatic penalties from detector output alone.

Winston AI API

Winston AI is worth evaluating for smaller teams that want a lower-friction commercial detector and multimodal coverage. Confirm current API availability, quotas, and plan requirements directly before committing, because API access and monthly word limits are the parts of this market that change most often.

AI Detector API Comparison

ProviderWhat to VerifyAPI AccessSentence-LevelMultilingualFile UploadBest For
Originality.aiEndpoint, scan payload, minimum text, quotas, plagiarism bundlePlan-gated / dashboard controlledYesLimitedNoPublishers, high-volume text
GPTZeroText/file input, sentence bands, confidence labels, education workflow fitAPI subscription / dashboard controlledYesNoPDF/DOCXAcademic, LMS integration
CopyleaksOAuth flow, scan ID lifecycle, language support, webhook/result pollingAPI/custom plan optionsYes30+ languagesYesGlobal/multilingual platforms
Winston AIAPI availability, quotas, supported file types, export/report fieldsPlan-gatedYesNoLimitedSMBs, budget teams
SaplingFree-tier limits, response schema, reliability on your own corpusFree tierNoNoNoPrototyping, POC testing

Integration Patterns by Platform Type

CMS Integration (WordPress, Headless CMS)

The canonical CMS integration uses a pre-publish webhook that triggers an AI detection API call before content is marked published. In WordPress, this is implemented via the pre_post_update hook. In headless CMS platforms like Contentful or Strapi, it uses a serverless function triggered on content state changes.

Response handling should be non-blocking: the API call happens asynchronously, the detection score is stored as a content metadata field, and editors see the score on the review screen without it blocking publication. Automatic rejection on score thresholds is not recommended. Instead, your team should define confidence bands after testing the detector on your own content, then surface higher-risk bands as a warning banner requiring editorial acknowledgment before publication.

// Example: Originality.ai API pre-publish check (Node.js)
async function checkAIBeforePublish(contentBody, apiKey) {
  const res = await fetch('https://api.originality.ai/api/v1/scan/ai', {
    method: 'POST',
    headers: {
      'X-OAI-API-KEY': apiKey,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ content: contentBody })
  })
  const { score } = await res.json()
  // score.ai is 0-1; score.original is 0-1
  return { aiProbability: score.ai, humanProbability: score.original }
}

LMS Integration (Canvas, Moodle, Blackboard)

LMS integration follows a different pattern: submissions arrive as file uploads (PDF or DOCX) rather than plain text, and the integration point is the assignment submission event rather than a publish action. GPTZero's file-upload API is the most practical choice for this workflow, as it accepts documents directly without requiring text extraction preprocessing.

The recommended architecture for LMS integration uses a webhook listener that subscribes to the LMS's assignment submission event, extracts the submission file, sends it to the detection API, and writes the result back to the grade book as a metadata tag visible to instructors. The entire flow should complete within 10–15 seconds for a standard essay submission. This gives instructors a detection score alongside the submission before they even open the document, enabling faster triage of high-volume submission windows like end-of-semester periods.

Canvas supports this pattern natively through its Submission API and webhook subscriptions. Moodle requires a custom plugin. Blackboard's Building Blocks framework supports REST-based integrations. Our guide to AI detection in education covers institutional deployment considerations in detail.

ATS Integration (Applicant Tracking Systems)

HR platforms and applicant tracking systems represent an emerging use case for AI detection APIs. As AI-generated resumes and cover letters become more common, organizations screening candidates at scale face the same volume and consistency problems as publishers. This is also one of the riskiest use cases, because a detector score can be misunderstood as proof rather than a signal requiring context.

ATS integration follows the CMS pattern: a webhook on application receipt triggers a detection API call, the score is stored in the candidate record, and recruiters see the score on the candidate review screen. The key difference in HR contexts is the legal and ethical framework — employment decisions based on AI detection flags require careful documentation and must not create disparate impact on protected classes. Organizations implementing detection in hiring workflows should consult legal counsel about disclosure obligations and document review protocols.

The platforms most commonly requesting AI detection API access in HR contexts are Greenhouse, Lever, and Workday. All three support webhook-based integrations that can feed detection scores into candidate records without requiring custom platform development.

Custom Publishing Workflows

For organizations with custom submission management systems — common in academic journal publishing, legal document review, and government content management — the most flexible pattern is a microservice wrapper around the detection API of choice. This service accepts document input in multiple formats, normalizes it to text, calls the detection API, and returns a standardized detection result schema regardless of which underlying provider is used.

This abstraction layer is valuable for two reasons: it allows switching detection providers without modifying the consuming applications, and it enables running multiple detectors on the same document and comparing or averaging results — an ensemble approach that can improve overall accuracy compared to any single detector. The Pangram Labs API, which offers a Python SDK alongside its REST interface, is specifically designed for this kind of programmatic integration and is worth evaluating for custom pipeline implementations.

Key Technical Considerations Before Integration

Troubleshooting Originality.ai API Requests

For the Originality.ai scan endpoint, most integration failures come from three places: sending the request from browser-side JavaScript, using the wrong key header, or passing content that is too short for a reliable detection score. Keep the request on your server, include the API key as X-OAI-API-KEY, and log sanitized status codes rather than full request headers. If your proxy lowercases the header to x-oai-api-key, that is normal HTTP behavior.

SymptomLikely causeFix
401 or unauthorizedMissing, expired, or exposed API keyRegenerate the key, store it server-side, and send it only from trusted backend code.
429 rate limitToo many synchronous scansQueue scans, add backoff, and batch low-priority checks outside peak submission windows.
Inconsistent scoresShort, mixed-language, or heavily edited contentRequire minimum text length, store confidence bands, and route borderline results to human review.

Minimum Text Length Requirements

AI detection APIs usually have minimum text-length guidance, and reliability drops sharply on short text because there is not enough writing signal to evaluate. Originality.ai's current public note says API AI detection scans have no word-count minimum, but accuracy is decreased for texts below 100 words. If your platform processes short-form content — social media posts, single-paragraph abstracts, cover email fields — either exclude those fields from automated detection or group eligible content into a larger review packet with a clear confidence warning.

Handling Multilingual and Code Content

Most AI detection APIs are optimized for English prose. Submitting non-English text to English-only APIs produces unreliable results — typically inflated AI probability scores — which can create false positive problems for international user bases. If your platform serves multilingual users, either restrict automated detection to English-language submissions (detecting language server-side before the API call) or use a multilingual-capable API like Copyleaks.

Code-heavy documents present a similar problem: code typically scores as high AI probability because its structure resembles the low-perplexity, high-predictability profile of AI-generated text. Submissions containing substantial code blocks should be processed with code sections stripped before detection, or detection should not be applied to code-heavy documents at all.

Rate Limiting and Batch Processing Design

API rate limits and quota rules vary by provider, plan, endpoint, and billing model. For real-time single-document checking, quota problems are usually manageable. For batch workflows — existing document archives, end-of-semester bulk submissions, or daily content intake queues — use queue-based processing with exponential backoff on 429 responses. Design batch jobs to run off-peak and implement retry jitter to avoid synchronized retry storms.

Responsible API Deployment: The Non-Negotiables

The ethical framework for AI detection applies with additional force when detection is automated at scale. Three practices are non-negotiable for any organization deploying an AI detection API:

1. Human review before consequences. Detection API scores should route to human review queues, not trigger automatic rejection, scoring penalties, or access restrictions. False positives are not theoretical: short text, formal prose, translated writing, non-native English, and heavily edited drafts can all trigger elevated scores. Automated consequences applied to false positives cause harm; human review catches them.

2. Transparency with submitters. Users whose content is being screened should know that AI detection is part of the evaluation process. Disclosure requirements vary by jurisdiction and context; in academic settings, institutional policy typically requires disclosure. In commercial contexts, privacy regulations in GDPR-governed jurisdictions may require notification. Consult legal counsel for your specific deployment context.

3. Regular accuracy auditing. AI models evolve, and the text detection models that detect them must evolve too. A detector that performs well on your validation set today can behave differently in 12 months as content patterns change. Implement periodic re-testing of your detection pipeline against a gold-standard corpus of known human and AI content, and set an alert threshold that triggers provider re-evaluation if accuracy drops below your acceptable floor.

Frequently Asked Questions

What is an AI detector API?

An AI detector API is a REST or HTTP interface that accepts text input and returns a probability score indicating how likely the text is to have been generated by an AI model. Organizations use these APIs to integrate AI detection directly into their platforms — CMS, LMS, ATS — so that every document is automatically screened without requiring manual copy-paste into a browser-based tool. The API returns structured JSON data that can be stored, displayed to reviewers, or used to trigger workflow actions.

Which AI detector API is most accurate?

There is no universal “most accurate” AI detector API for every workflow. Accuracy depends on text length, language, domain, model family, editing level, and whether the content is human, AI, or mixed. Shortlist providers by API fit first, then test each one on a private validation set made from your own content before choosing thresholds.

How much does an AI detection API cost?

Pricing varies significantly and changes often. Some vendors sell API access through dashboard subscriptions, some through credit packs, and some through custom enterprise or education contracts. Check the provider pricing page and API dashboard before estimating production cost; for high-volume workflows, model cost per 100 words, rate limits, and minimum monthly commitments together.

What is api.originality.ai/api/v1/scan/ai?

It is the commonly referenced Originality.ai text AI-detection scan endpoint. Developers send text in a POST request with an API key header and receive a structured detection result for workflow triage.

How do I call the Originality.ai /api/v1/scan/ai endpoint with cURL?

Send a server-side POST request to https://api.originality.ai/api/v1/scan/ai with Content-Type: application/json and the X-OAI-API-KEY header. Do not put the key in browser JavaScript or client-side code.

Should the Originality.ai API header be X-OAI-API-KEY or x-oai-api-key?

HTTP header names are case-insensitive, so logs may show x-oai-api-key while examples show X-OAI-API-KEY. Use the provider documentation capitalization in code examples and never expose the key in browser-side JavaScript.

Why do my logs show x-oai-api-key for Originality.ai?

Most HTTP frameworks normalize header names to lowercase in logs. That does not change header behavior. Keep using the documented X-OAI-API-KEY header in server-side code and store the key outside browser JavaScript.

Can AI detector API scores automatically reject a document?

No. Detection scores should route documents to human review. Automated rejection is risky because even strong AI detectors can produce false positives on edited, short, translated, or non-native English text.

Which AI detector API should I use for an LMS, CMS, or publishing workflow?

Use the workflow first. For LMS review, prioritize file handling, sentence-level evidence, and academic false-positive safeguards. For CMS or publishing review, prioritize server-side text scans, queueing, reviewer notes, and source checks. For multilingual or enterprise governance, verify language support, webhooks, audit logs, and retention rules before choosing a provider.

Why does the Originality.ai API return invalid api call?

Check that the request path is exactly /api/v1/scan/ai, not /api/v1//scan/ai with a double slash, and that the API key is sent server-side in the X-OAI-API-KEY header.

Does the Originality.ai API scan have a minimum word count?

Originality.ai says AI detection scans in the API have no word count minimum, but accuracy decreases below 100 words. For production workflows, store a short-text warning and route low-word-count results to human review.

What programming languages are supported?

All major AI detection APIs expose standard REST endpoints that work with any language that can make HTTP requests — Python, Node.js, Ruby, PHP, Go, Java, and others. Pangram Labs and some providers additionally offer Python SDKs that abstract the REST calls. No provider requires a language-specific client; if you can make an authenticated POST request and parse JSON, you can use any detection API regardless of your platform's language.

Can an AI detector API detect Claude or Gemini output, not just ChatGPT?

Most commercial detectors claim coverage across text from GPT, Claude, Gemini, Llama, and other model families, but real-world performance varies by source model, prompt style, editing, and language. Test your API of choice specifically against the models and content types your users are most likely to submit.

What response fields do AI detection APIs typically return?

A standard AI detection API response includes: an overall AI probability score (typically 0–1 or 0–100%), a human probability score (complement of AI score or independently calculated), a predicted classification ("human", "ai", or "mixed"), and optionally sentence-level scores showing which specific sentences carry the highest AI probability signal. Some APIs additionally return a confidence level, the detected language, word count, and metadata about which AI model family the text most resembles.

Is there a free AI detector API?

Some providers offer free trials, rate-limited tiers, or developer access for prototyping, but production AI detection APIs usually require a paid plan, dashboard access, or a custom contract. Verify current free-tier limits, retention policy, privacy terms, and commercial-use permission before building around a free endpoint.

How long does an AI detection API call take?

API response time depends on provider, plan, input length, file conversion, scan type, and queue load. Measure latency in staging with your real document sizes. For bulk batch processing — thousands of documents in a queue — async patterns with a job queue and result webhook are strongly recommended over synchronous sequential calls.

Test AI Detection Before You Integrate

Try EyeSift's free AI detector on your actual content before committing to an API integration. No signup, no character limit, multimodal coverage across text, images, video, and audio.

Run Free AI Detection