AI humanizer API
Humanize AI-generated text and check it for AI from your own app, CMS or content pipeline. Included with Pro and Unlimited.
Authentication
Create a key in Dashboard → API keys and send it in the Authorization header as Bearer hai_…. Keys are shown once; we store only a hash. Keep keys on your server, never in browser code.
Humanize text
POST /api/v1/humanize. Words are taken from your monthly allowance, and the per-run limit of your plan applies (3,000 words on Pro and Unlimited). A request usually takes 10–20 seconds, so allow a timeout of at least 90 seconds.
curl -X POST https://gptaihumanizer.com/api/v1/humanize \
-H "Authorization: Bearer hai_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "In today's rapidly evolving digital landscape, ...",
"mode": "Balanced",
"purpose": "Blog post",
"level": "University",
"keep_words": ["AI humanizer"]
}'Parameters
| Field | Type | Notes |
|---|---|---|
text | string, required | 50 characters to 3,000 words. |
mode | string | Balanced, More human, Light touch. Default: Balanced. |
purpose | string | General writing, Essay, Blog post, Marketing, Email, Story, Cover letter, Report, Business, Legal. |
level | string | High school, University, Doctorate, Journalist, Marketing. |
keep_words | string[] | Up to 10 keywords to keep. Changed ones are listed in changed_keywords. |
Response
{
"output": "Tools change fast, and the teams that keep up ...",
"words": 148,
"changed_keywords": [],
"words_remaining": 59852
}JavaScript example
const r = await fetch("https://gptaihumanizer.com/api/v1/humanize", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.GPTAIHUMANIZER_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ text, purpose: "Email" }),
});
const { output } = await r.json();Check text for AI
POST /api/v1/detect returns the estimated chance the text is AI-written (0–100) and, where available, estimates for other detectors. Uses your daily AI-check allowance.
curl -X POST https://gptaihumanizer.com/api/v1/detect \
-H "Authorization: Bearer hai_YOUR_KEY" -H "Content-Type: application/json" \
-d '{"text": "Text to check ..."}'
{ "ai_score": 12, "detectors": { "GPTZero": 10, "ZeroGPT": 15 }, "words": 210 }Errors
| Status | Meaning |
|---|---|
| 400 | Text missing or too short |
| 401 | Missing or invalid key |
| 402 | Monthly words used up |
| 403 | Plan without API access |
| 413 | Text longer than your per-run limit |
| 429 | Too many requests or daily limit reached; retry later |
| 5xx | Temporary problem; words are refunded automatically, retry with backoff |
Every error response has the form {"error": "message"}.