Originality.ai empowers developers and content creators with a suite of AI-powered tools designed to detect and analyze content originality. Their advanced algorithms go beyond plagiarism checkers, specifically targeting content generated by AI language models. This ensures the authenticity and integrity of your content, protecting against plagiarism and misleading information.

Authentication:

Originality.ai utilizes API keys for authentication. You can obtain your free API key with a limited number of credits per month by creating an account on the Originality.ai platform. Paid plans offer increased credit allowances and additional features.

Here's a breakdown of some key Originality.ai Text API endpoints along with JavaScript example code snippets for each:

1. Originality Check (Scan)

  • This endpoint analyzes text and determines the likelihood of it being generated by AI.
  • Type: POST
  • JavaScript Example:
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.originality.ai/v1/scan';

const data = {
    text: 'This is a sample text to check for originality.',
};

const headers = {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
};

fetch(url, { method: 'POST', headers, body: JSON.stringify(data) })
    .then((response) => response.json())
    .then((data) => {
        console.log('Originality Score:', data.score);
        console.log('AI Content Probability:', data.ai_content);
    })
    .catch((error) => console.error(error));

2. Paraphrase Detection (Paraphrase)

  • This endpoint identifies whether a text is a paraphrase of another source, even if rewritten with different wording.
  • Type: POST
  • JavaScript Example: (Note: Requires a paid plan)
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.originality.ai/v1/paraphrase';

const data = {
    text: 'This sentence is a rephrased version of the original.',
};

const headers = {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
};

fetch(url, { method: 'POST', headers, body: JSON.stringify(data) })
    .then((response) => response.json())
    .then((data) => {
        console.log('Paraphrase Probability:', data.paraphrase);
    })
    .catch((error) => console.error(error));

3. Fact Checking (FactCheck) (Beta)

  • This endpoint analyzes text for factual accuracy by comparing it to credible sources. (Beta Feature)
  • Type: POST
  • JavaScript Example: (Note: Beta functionality and may require a paid plan)
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.originality.ai/v1/factcheck';

const data = {
    text: 'The population of Earth is 8 billion.',
};

const headers = {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
};

fetch(url, { method: 'POST', headers, body: JSON.stringify(data) })
    .then((response) => response.json())
    .then((data) => {
        console.log('Fact Check Result:', data);
    })
    .catch((error) => console.error(error));

4. Readability Check (Readability)

  • This endpoint analyzes the reading level of your text for clarity and comprehension.
  • Type: POST
  • JavaScript Example:
const apiKey = 'YOUR_API_KEY';
const url = 'https://api.originality.ai/v1/readability';

const data = {
    text: 'This text is written in a clear and concise manner.',
};

const headers = {
    Authorization: `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
};

fetch(url, { method: 'POST', headers, body: JSON.stringify(data) })
    .then((response) => response.json())
    .then((data) => {
        console.log('Readability Score:', data.score);
    })
    .catch((error) => console.error(error));

Explore More with Originality.ai

Originality.ai offers a free tier with limited credits, along with paid plans that unlock increased credit allowances, access to advanced features like paraphrase detection and fact checking (Beta), and priority processing. Explore their comprehensive documentation to delve deeper into each API endpoint, advanced functionalities, and pricing options. By leveraging Originality.ai's AI-powered tools, you can ensure the authenticity and credibility of your content, fostering trust and transparency within your applications and online presence.