REST API
Humanizer & detector API
Two calls to rewrite text: submit a task, then fetch the result. Plus usage and AI detection endpoints.
Authentication
Create a key in Dashboard → API keys (paid plans). Send it in the api-key header. API usage draws from your plan's words.
1. Submit a rewrite
curl -X POST https://fluenthumanizer.com/api/v1/submit \
-H "api-key: hs_..." -H "content-type: application/json" \
-d '{"input": "Your text (30+ words)...", "mode": "balanced", "purpose": "blog", "tone": "Friendly"}'
# -> {"err_code":0,"err_msg":"Success","data":{"task_id":"9b1c…","input_words":182}}mode: fast · balanced · aggressive · latest (subject to your plan). purpose: general, blog, marketing, business, academic, story, report, social. tone (optional): Natural, Friendly, Professional, Confident, Casual, Persuasive.
2. Get the result
Poll every 2–3 seconds until finished is true.
curl "https://fluenthumanizer.com/api/v1/obtain?task_id=9b1c…" -H "api-key: hs_..."
# -> {"err_code":0,"data":{"task_id":"9b1c…","status":"completed","finished":true,
# "output":"…","output_words":176,"progress":{"done":1,"total":1},
# "detection":{"verdict":"human","human_score":82.4,"ai_score":17.6}}}Check text for AI
curl -X POST https://fluenthumanizer.com/api/v1/detect -H "api-key: hs_..." -H "content-type: application/json" \
-d '{"text": "Text to check (30+ words)..."}'
# -> {"data":{"ai_score":12.5,"human_score":87.5,"verdict":"human","reliable":true,
# "sentences":[{"text":"…","ai_score":9.1}, …]}}Usage
curl https://fluenthumanizer.com/api/v1/usage -H "api-key: hs_..."
# -> {"data":{"plan":"pro","humanize":{"used":1200,"limit":50000},"detect":{…},"bonus_words":0}}Errors
| HTTP | err_code | Meaning |
|---|---|---|
| 400 | 1001 | Invalid input (too short, too long, bad JSON) |
| 401 | 1003 | Missing or invalid api-key |
| 402 | 1002 | Out of words, or mode/length not in your plan |
| 404 | 1004 | Task not found |
| 503 | 1005 | Detector temporarily unavailable |
Failed rewrites are refunded automatically. Need higher volumes? Talk to us.