API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  • Endpoints
  • Request Body
  • Code Examples
  1. API Product Docs
  2. Capix AI

AI & Plagiarism Checker

An AI API service to detect AI content

PreviousHome GPTNextAI Story Generator

Last updated 11 months ago

Endpoints

URL

https://api.magicapi.dev/api/v1/capix/free/detector/v1/

Method

POST

Description

This endpoint detects anomalies in the provided content. It analyzes the text and returns insights or flags any peculiarities based on predefined criteria.

Request Headers

  • Content-Type: application/json: Indicates that the request body format is JSON.

  • x-magicapi-key: API_KEY: Your unique API key for authentication. Replace API_KEY with your actual API key.

Request Body

The request body must be in JSON format and contain the following parameter:

  • content (string): The text content to be analyzed.

Example:

{
  "content": "In the bustling metropolis of Neo City, where technology reigned supreme, a peculiar phenomenon began to unfold. Citizens reported receiving mysterious messages simply saying \"hello\" on their electronic devices, be it their holographic screens or their neural implants. The message seemed to emanate from an unknown source, sparking curiosity and a sense of unease among the populace."
}

Response

The response will be in JSON format and may include the following fields:

  • ai_percentage (number): The percentage likelihood that the content was generated by AI.

  • average_score (number): The average score of all analyzed sentences.

  • content_label (string): A label indicating the likelihood of AI-generated content (e.g., "May Have AI").

  • gptzero_me_label (string): Another label indicating AI detection results (e.g., "ai").

  • sentence_scores (array): An array of sentences and their respective scores.

Example Response:

{
  "ai_percentage": 66.66666666666666,
  "average_score": 42.94423105622707,
  "content_label": "May Have AI",
  "gptzero_me_label": "ai",
  "sentence_scores": [
    [
      "In the bustling metropolis of Neo City, where technology reigned supreme, a peculiar phenomenon began to unfold.",
      35.899437137314855
    ],
    [
      "Citizens reported receiving mysterious messages simply saying \"hello\" on their electronic devices, be it their holographic screens or their neural implants.",
      74.62703649255953
    ],
    [
      "The message seemed to emanate from an unknown source, sparking curiosity and a sense of unease among the populace.",
      18.306219538806836
    ]
  ]
}

Code Examples

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/free/detector/v1/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'content=ContentDetector.AI%20is%20an%20accurate%20and%20free%20AI%20Detector%20and%20AI%20Content%20Detector%20that%20can%20be%20used%20to%20detect%20any%20AI-generated%20content.%20It%20provides%20a%20probability%20score%20based%20on%20the%20likelihood%20that%20the%20text%20content%20was%20generated%20by%20AI%20tools%20or%20chatbots.'
import requests

headers = {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY',
    'Content-Type': 'application/x-www-form-urlencoded',
}

data = {
    'content': 'ContentDetector.AI is an accurate and free AI Detector and AI Content Detector that can be used to detect any AI-generated content. It provides a probability score based on the likelihood that the text content was generated by AI tools or chatbots.',
}

response = requests.post('https://api.magicapi.dev/api/v1/capix/free/detector/v1/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/free/detector/v1/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-magicapi-key: API_KEY',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'content=ContentDetector.AI%20is%20an%20accurate%20and%20free%20AI%20Detector%20and%20AI%20Content%20Detector%20that%20can%20be%20used%20to%20detect%20any%20AI-generated%20content.%20It%20provides%20a%20probability%20score%20based%20on%20the%20likelihood%20that%20the%20text%20content%20was%20generated%20by%20AI%20tools%20or%20chatbots.');

$response = curl_exec($ch);

curl_close($ch);
import axios from 'axios';

const response = await axios.post(
  'https://api.magicapi.dev/api/v1/capix/free/detector/v1/',
  new URLSearchParams({
    'content': 'ContentDetector.AI is an accurate and free AI Detector and AI Content Detector that can be used to detect any AI-generated content. It provides a probability score based on the likelihood that the text content was generated by AI tools or chatbots.'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-magicapi-key': 'API_KEY'
    }
  }
);
fetch('https://api.magicapi.dev/api/v1/capix/free/detector/v1/', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'content': 'ContentDetector.AI is an accurate and free AI Detector and AI Content Detector that can be used to detect any AI-generated content. It provides a probability score based on the likelihood that the text content was generated by AI tools or chatbots.'
  })
});

This code returns response like this:

{
    "ai_percentage":66.66666666666666,
    "average_score":42.94423105622707,
    "content_label":"May Have AI",
    "gptzero_me_label":"ai",
    "sentence_scores":[
        [
            "In the bustling metropolis of Neo City, where technology reigned supreme, a peculiar phenomenon began to unfold.",
            35.899437137314855
        ],
        [
            "Citizens reported receiving mysterious messages simply saying \"hello\" on their electronic devices, be it their holographic screens or their neural implants.",
            74.62703649255953
        ],
        [
            "The message seemed to emanate from an unknown source, sparking curiosity and a sense of unease among the populace.",
            18.306219538806836
        ]
    ]
}
Try Demo