Sapling Logo

Top 5 AI Detection APIs


Top 5 AI Detection APIs

Sapling AI Content Detector API

As Generative AI tools become ubiquitous, both enterprises and educational institutions will need AI Detection capabilities as part of their suite of content tools.

Generative AI tools have taken the world by storm since late 2022. This is particularly true for text generation via AI chatbots like ChatGPT and Bard. Their adoption seems to only be increasing, with a corresponding increase in AI generated content across the internet. This is not inherently negative, but it does raise the need to be able to detect text written by AI agents and differentiate it from human-written text.

An entire industry of writing tools will need to respond to this need. Content publishing houses and marketing agencies, wary of being dinged by SEO algorithms, will want AI detection capabilities built into their content management systems. Educational institutions will want ways to check the authenticity of students' work. Media platforms and will need ways to verify submissions were not purely AI generated.

How does an AI Content Detection API integration help?

A great indicator of the rising need for AI detection is the rise in Chrome extensions solving this problem. We offer one as well - AI Content Detector for ChatGPT - Sapling.ai. But while this is a great way for individuals to check their writing, or analyze suspicious looking content online, it doesn't do a great job of solving institutional requirements.

  • Companies will want AI detection built into their regular processes.
  • They would want to make it seamless for their employees to check for AI generated text
  • Enforcing these checks would be cumbersome and unreliable without integrating it into the tools they're already using.
  • Importantly, companies might not want their data in the cloud, and some API providers, Sapling.ai included, offer self-hosted on-premise deployments. This helps ensure data privacy and isolation.
An API integration will allow them to make flagging AI generated content a regular part of their processes.

Which are the best AI Content Detector APIs?

We've tried to go over the API providers out there and pick the ones with the best features and support. All of these providers allow developers to send in text to be analyzed, and respond with a probability score. This score indicates how confident the API provider is that the text was human-written or AI-generated. Some also do a sentence-level analysis. The list includes

  1. Sapling.ai - API & SDK
  2. CopyLeaks
  3. Originality.ai
  4. GPTZero
  5. Writer

(1) Sapling: AI Content Detector API

Sapling has a history of offering industry-leading AI (Artificial Intelligence) and NLP (Natural Language Processing) APIs.

Sapling now also provides AI content detection as an HTTP API and in Sapling's Javascript and Python SDKs. Our docs page provides sample code for both SDKs, and direct HTTP implementations in cURL, Javascript, and Python. See our Programming Languages to learn how to implement HTTP endpoints in the language of your choice.

Sapling's APIs for AI content detection respond with both an overall score, as well as a sentence level score. These are generated using dedicated models - one trained on classifying large chunks of text, the other being a perplexity-based model.

Sapling APIs can also accept HTML input, making it easier to run AI detection over rich text inputs. These often contain markdown or HTML tags that need to be filtered out before processing the text.

import requests

response = requests.post(
    "https://api.sapling.ai/api/v1/aidetect",
    json={
        "key": "[API-KEY]",
        "text": "This is sample text."
    }
)
{
  "score": 0.2794727597917829,
  "sentence_scores": [
    {
      "score": 0,
      "sentence": "This is sample text."
    }
  ],
  "text": "This is sample text."
}

(2) CopyLeaks

CopyLeaks is an established company in the plagiarism space.

They also now have one of the most popular AI content detection extensions, a live demo on their website, as well as API access for the same functionality.

CopyLeaks does offer their services across 15 languages. The API response categorizes both the entire text, as well as particular sections of text that were flagged by the detector. They do not currently offer a way to persist and share these results.

(3) Originality.ai

Originality.ai is also an AI company focused on plagiarism and AI content detection. Their focus target market is comprised of marketing companies and SEO agencies.

They do not offer a free live demo or chrome extension, and their UI offering is gated behind login as well.

They do offer a set of HTTP endpoints for API access to their AI detection models. They have APIs that accept both plain text, as well as website URLs. The response contains scores for the overall text as well as subsections of text.

Their API responses do also contain a shareable public link which can be used to share the results of the scan for a limited time period.

(4) GPTZero

GPTZero is a company focused primarily on detecting GPT-generated AI content.

They offer a free online demo, a Chrome extension, as well as Canvas and Microsoft word integrations.

They have API endpoints that allow developers to process text. The response contains analysis for the overall text, as well sentence and paragraph level scoring. They also offer the same functionality across a list of files through a separate endpoint.

They also do not provide a way to share or persist these results.

(5) Writer

Writer is an AI company which, as its name suggests, provides across-the-board writing tools. This includes LLM based generative tools, grammar checking, brand management amongst others.

For AI detection, they offer a free live demo for small amounts of text (~300 words). They do not have a browser extension.

For users subscribed to a Team plan, or Enterprise plans, they do get access to their API endpoint. The endpoint accepts text and only outputs a single score for the overall text. Sentence/ section level scores are not provided.

They do not provide a way to share or persist these results.

AI Content Detector APIs summary

This is an evolving landscape and companies will be working fast to iterate and keep up with the latest generative models out there. We're summarizing our findings here, and will update as we learn more.

Name Public Demo Chrome Extension API Endpoints HTML support Overall Score Sentence Scores Result sharing
Sapling.ai Yes Yes Yes Yes Yes Yes Yes
CopyLeaks Yes Yes Yes No Yes Yes No
Originality.ai No No Yes Yes Yes Yes No
GPTZero Yes Yes Yes No Yes Yes No
Writer Yes No Yes No Yes No No

Detailed API docs available.

Ready to integrate smarter corrections into your solution?


Talk with an expert