<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: One</title>
    <description>The latest articles on Forem by One (@one_projects).</description>
    <link>https://forem.com/one_projects</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3858384%2Fb18ff6ba-3f5c-43b8-b684-b1bc92169789.png</url>
      <title>Forem: One</title>
      <link>https://forem.com/one_projects</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/one_projects"/>
    <language>en</language>
    <item>
      <title>How to Detect AI-Generated Content in Your App (Node.js + Python Examples)</title>
      <dc:creator>One</dc:creator>
      <pubDate>Thu, 02 Apr 2026 22:01:39 +0000</pubDate>
      <link>https://forem.com/one_projects/how-to-detect-ai-generated-content-in-your-app-nodejs-python-examples-2a6</link>
      <guid>https://forem.com/one_projects/how-to-detect-ai-generated-content-in-your-app-nodejs-python-examples-2a6</guid>
      <description>&lt;p&gt;If you're building anything that handles user-submitted text — a CMS, an EdTech platform, a publishing tool — you probably need to know if that text was written by AI.&lt;/p&gt;

&lt;p&gt;I built ContentKit AI to solve this. It's a REST API that takes text in and tells you whether it's AI-generated, with a confidence score and specific signals.&lt;/p&gt;

&lt;p&gt;Here's how to integrate it in under 5 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Node.js Example
&lt;/h2&gt;

&lt;p&gt;const axios = require('axios');&lt;/p&gt;

&lt;p&gt;const options = {&lt;br&gt;
  method: 'POST',&lt;br&gt;
  url: '&lt;a href="https://contentkit-ai.p.rapidapi.com/detect" rel="noopener noreferrer"&gt;https://contentkit-ai.p.rapidapi.com/detect&lt;/a&gt;',&lt;br&gt;
  headers: {&lt;br&gt;
    'Content-Type': 'application/json',&lt;br&gt;
    'X-RapidAPI-Key': 'YOUR_KEY_HERE',&lt;br&gt;
    'X-RapidAPI-Host': 'contentkit-ai.p.rapidapi.com'&lt;br&gt;
  },&lt;br&gt;
  data: {&lt;br&gt;
    text: 'Artificial intelligence has become an integral part of modern society. Furthermore, it is important to note that machine learning algorithms continue to evolve at an unprecedented rate.'&lt;br&gt;
  }&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;const response = await axios.request(options);&lt;br&gt;
console.log(response.data);&lt;/p&gt;

&lt;p&gt;// Response:&lt;br&gt;
// {&lt;br&gt;
//   "ai_score": 90,&lt;br&gt;
//   "human_score": 10,&lt;br&gt;
//   "verdict": "likely_ai",&lt;br&gt;
//   "signals": ["Repetitive transition phrases", "Uniform sentence structure"],&lt;br&gt;
//   "confidence": "high"&lt;br&gt;
// }&lt;/p&gt;

&lt;h2&gt;
  
  
  Python Example
&lt;/h2&gt;

&lt;p&gt;import requests&lt;/p&gt;

&lt;p&gt;url = "&lt;a href="https://contentkit-ai.p.rapidapi.com/detect" rel="noopener noreferrer"&gt;https://contentkit-ai.p.rapidapi.com/detect&lt;/a&gt;"&lt;br&gt;
headers = {&lt;br&gt;
    "Content-Type": "application/json",&lt;br&gt;
    "X-RapidAPI-Key": "YOUR_KEY_HERE",&lt;br&gt;
    "X-RapidAPI-Host": "contentkit-ai.p.rapidapi.com"&lt;br&gt;
}&lt;br&gt;
payload = {&lt;br&gt;
    "text": "Artificial intelligence has become an integral part of modern society. Furthermore, it is important to note that machine learning algorithms continue to evolve."&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;response = requests.post(url, json=payload, headers=headers)&lt;br&gt;
print(response.json())&lt;/p&gt;

&lt;h2&gt;
  
  
  What the API Actually Analyzes
&lt;/h2&gt;

&lt;p&gt;The detection endpoint looks at several signals:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sentence structure uniformity — AI writes very evenly, humans vary dramatically&lt;/li&gt;
&lt;li&gt;Transition phrase patterns — "Furthermore", "Moreover", "It is important to note" are classic AI tells&lt;/li&gt;
&lt;li&gt;Vocabulary diversity — AI tends to stay in a safe range&lt;/li&gt;
&lt;li&gt;Burstiness — humans mix 5-word punches with 30-word flowing sentences, AI keeps it uniform&lt;/li&gt;
&lt;li&gt;Hedging language — "It should be noted that" type phrases&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  But Wait, There's More
&lt;/h2&gt;

&lt;p&gt;The API also has 3 other endpoints:&lt;/p&gt;

&lt;p&gt;/humanize — Takes AI text and rewrites it to sound human. Actually restructures sentences, doesn't just swap synonyms.&lt;/p&gt;

&lt;p&gt;/rewrite — Rewrite any text in 8 different tones (formal, casual, academic, professional, friendly, persuasive, simple, technical).&lt;/p&gt;

&lt;p&gt;/readability — Returns a readability score, grade level, and specific issues with suggestions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Free tier on RapidAPI — 10 requests/month, no credit card needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(&lt;a href="https://rapidapi.com/agencyonemediaonline/api/contentkit-ai" rel="noopener noreferrer"&gt;https://rapidapi.com/agencyonemediaonline/api/contentkit-ai&lt;/a&gt;)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Built with Node.js, Express, and Groq's llama-3.3-70b. The whole thing costs me $3/month to run.&lt;/p&gt;

&lt;p&gt;If you're building something that handles text content, this might save you from building your own detection/humanization pipeline from scratch.&lt;/p&gt;

</description>
      <category>api</category>
      <category>ai</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
