API Documentation

Welcome to the documentation for Ghost AI. Our API offers robust features for detecting AI-generated content and humanizing text to create more natural text that can bypass all major AI detectors. This documentation serves as a comprehensive guide, providing you with all the information needed to integrate and make the most out of our API. Whether you're looking to enhance the authenticity of digital communication or increase the ranking of your online content, you'll find valuable insights and practical instructions here.

AI Humanizer

Overview

The AI Humanizer is a feature of our API designed to transform AI-generated text into content that more closely resembles natural human writing. This tool is invaluable for developers and content creators seeking to enhance the readability and relatability of their AI-generated content, ensuring that it resonates more effectively with human audiences.

Endpoint

POST https://www.the-ghost-ai-api.com/transformations/humanize-v2/

Request Parameters

To use the AI Humanizer, you must send a POST request with the following parameters in the body:
  • text (required): The AI-generated text you wish to humanize.
  • humanizerIntensity (required): Defines the level of humanization to be applied to the text. Options: LOW, MEDIUM, HIGH.

Headers

Authorization (required): "Api-Key ..."

Responses

  • 200: JSON with humanizedText and wordCount.
  • 500: JSON with error.

Example Request

POST https://www.the-ghost-ai-api.com/transformations/humanize-v2/ Headers: { "Authorization": "Api-Key ..." } Body: { "text": "This is a sample text generated by an AI.", "humanizerIntensity": "HIGH" }

Example Success Response

{ "humanizedText": "Here is a bit of text that has been created by some clever AI, given a personal touch to sound more like it came from a human."}

Example Error Response

{ "error": "Invalid API key provided." }

Notes

  • Ensure your API key is valid and has not expired.
  • The effectiveness of humanization may vary depending on the original text's complexity and the chosen intensity level.

AI Detector

Overview

The AI Detection feature of our API is a powerful tool designed to analyze text and predict whether it was generated by an AI, written by a human, or contains elements of both.

Endpoint

POST https://www.the-ghost-ai-api.com/detection/ai-v2/

Request Parameters

  • text (required): The text you want to analyze.

Headers

Authorization (required): "Api-Key ..."

Response

  • 200: JSON with AI, mixed, and human probabilities.
  • 500: JSON with error.

Example Request

POST https://www.the-ghost-ai-api.com/detection/ai-v2/ Headers: { "Authorization": "Api-Key ..." } Body: { "text": "This text will be analyzed for its origin." }

Example Success Response

{"turnitin":{"ai":0,"mixed":0,"human":1}, ...}

Example Error Response

{ "error": "API key missing or invalid." }

Notes

  • The accuracy of the predictions may vary based on the complexity and length of the text.
  • Keep your API key confidential to prevent unauthorized usage.