🔌 REST API

API Documentation

Integrate AI text humanization into your workflow. Available on Unlimited plans.

🔑 API Access

API access is included in the Unlimited plan (100K words/month via API). Authenticate using your session cookie or contact us for a dedicated API key.

View Pricing →

Humanize Text

POSThttps://ai-to-human.com/api/humanize

Request Body

{
  "text": "string",           // Required. AI-generated text to humanize (max 10K words for Unlimited)
  "mode": "blog",             // Optional. One of: blog, casual, academic, professional, standard
  "intensity": "medium",      // Optional. One of: light, medium, heavy
  "terms": ["term1", ...],    // Optional. Up to 20 terms to preserve (Term Shield)
  "include_detection": false  // Optional. Include AI detection scores (Pro+)
}
ParameterTypeRequiredDescription
textstringYesThe AI-generated text to humanize
modestringNoWriting mode. Default: blog. Options: blog, casual, academic, professional, standard
intensitystringNoRewrite intensity. Default: medium. Options: light, medium, heavy
termsarrayNoArray of terms to preserve unchanged (Term Shield). Max 20 terms
include_detectionbooleanNoReturn AI detection scores before/after. Default: false

Response

{
  "humanized_text": "string",   // The rewritten, humanized text
  "original_text": "string",    // Original input text
  "changes": [...],             // Array of modifications with reasons
  "plan": "unlimited",          // Your current plan
  "words_processed": 342,       // Word count processed
  "watermark": ""               // Empty for Pro/Unlimited plans
}

Example Request

curl -X POST https://ai-to-human.com/api/humanize \
  -H "Content-Type: application/json" \
  -H "Cookie: YOUR_SESSION_COOKIE" \
  -d '{
    "text": "The implementation of machine learning algorithms...",
    "mode": "academic",
    "intensity": "medium",
    "terms": ["machine learning", "neural network"]
  }'

* Session-based auth only. Dedicated API keys coming soon.

Error Codes

HTTPError CodeDescription
400TEXT_TOO_LONGText exceeds word limit for your plan
400TEXT_TOO_SHORTText is too short (minimum 10 words)
403MODE_NOT_ALLOWEDMode not available on your plan
429RATE_LIMIT_EXCEEDEDToo many requests. Check Retry-After header
429DAILY_LIMIT_REACHEDDaily word limit reached (Free plan)
429MONTHLY_LIMIT_REACHEDMonthly word limit reached (Pro plan)
401UNAUTHORIZEDAuthentication required

Rate Limits

PlanPer RequestMonthlyAPI Access
Guest500 words1,000 words/day
Free5,000 words5,000 words/day
Pro5,000 words100,000 words
Unlimited10,000 wordsUnlimited✓ 100K words/month

Ready to integrate?

Get API access with the Unlimited plan

View Pricing