AI detector API and AI humanizer API for Python and JavaScript
The TextSight SDK is a free, open-source client for the TextSight AI detector. Check whether text was written by ChatGPT, Claude or Gemini, see which sentences look AI-written, and rewrite them so they read naturally. MIT licensed, no dependencies.
Python guideNode.js guideInstall
| Language | Install | Package |
|---|---|---|
| Python 3.8+ | pip install textsight | PyPI |
| Node.js 18+ / TypeScript | npm install textsight | Source |
Detect AI-generated text in 3 lines
from textsight import TextSight
ts = TextSight(api_key="sk_live_...")
print(ts.detect("Paste an essay or article here")["verdict"]) # human, mixed or ai
Every call returns a humanization_score from 0 to 100 (higher means more human), an ai_probability, a verdict and a score for each sentence. See the full field list in the TextSight API reference.
What you can build
Batch-check essays, blog drafts or support replies from a script.
Add an "is this AI?" check to a CMS, LMS or Slack bot.
Rewrite flagged text in a conversational, academic, blog or email tone.
How TextSight compares when you pick a detection API.
API keys and pricing
You need a TextSight API key. Create one at app.textsight.ai/signup under Settings, then API Keys. API access starts on the Pro plan; current limits are on the pricing page. If you only need to check a few texts by hand, the free AI detector works in the browser.
FAQ
Is the TextSight SDK free?
Yes. The Python and JavaScript libraries are open source under the MIT license. API calls count against your TextSight plan.
Which AI models can TextSight detect?
TextSight is trained to flag text from common large language models such as ChatGPT, Claude and Gemini. Detection currently supports English.
How long can the text be?
Each request accepts up to 50,000 characters.