WriteHuman AI Humanizer API Documentation
The WriteHuman API rewrites AI-generated text so that it reads as human-written, scores text for AI authorship, and reports your word balance. It is a JSON API over HTTPS with Bearer key authentication and three endpoints.
Base URLhttps://api.writehuman.ai
- POST /v1/humanizeHumanize textRewrites text and returns one result, or three scored results on Premium plans.
- POST /v1/detectDetect AI textScores text from 0 to 1 for AI authorship, per document and per sentence.
- GET /v1/usageGet usageReturns your plan, the words used in the current cycle and your top-up balance. Not billed.
- 4xx and 5xxErrorsThe error format, every error
code, and which errors are safe to retry.
Quickstart#
Create an API key
Subscribe to an API plan, then create a key on the API Keys tab of the API dashboard. The full key is displayed only once, at creation. Copy it before closing the dialog.
Store the key in an environment variable. All code samples in this documentation read the key from it:
export WRITEHUMAN_API_KEY="wh_live_..."Send a request
Send the text to
/v1/humanizeusing cURL, an official SDK (npm install @writehuman/sdkorpip install writehuman), or any HTTP client.curl https://api.writehuman.ai/v1/humanize \ -H "Authorization: Bearer $WRITEHUMAN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Artificial intelligence has revolutionized the way we approach content creation and digital communication." }'Read the response
The rewritten text is returned in
results. Standard plans receive one result. Premium plans receive three, ordered best first, each with a score from 0 to 1, where a higher score indicates more human-like text.{ "id": "hum_a1b2c3d4-e5f", "created": 1778533901580, "results": [ "AI has changed how we create content and communicate online." ], "scores": null, "input_words": 14, "words_remaining": { "included": 124986, "topup": 0, "total": 124986 }, "model": "standard"}input_wordsis the number of words charged for the request, andwords_remainingis the balance after it. Failed requests are not charged, with one exception.
Next steps#
- Humanize referenceAll request fields, response fields and errors for the humanize endpoint.
- ErrorsThe error format, all error codes, retry guidance and billing behavior on failure.
- Plans and limitsPer-plan limits on words per request, requests per minute and API keys.
- Production best practicesTimeouts, retries, long documents, rate limits and balance monitoring.
Video walkthrough#
A seven-minute walkthrough of authentication and setup, followed by three example integrations: a Python script, a Lovable app and Claude.
Using this documentation with an AI assistant#
- Each page has a Copy for LLM button that copies the page as Markdown. On this page, the button copies every page. The copied Markdown can be pasted into Claude Code, Cursor or another assistant.
- llms-full.txt contains every page in a single Markdown file, and llms.txt is an index of the pages.
- The OpenAPI document describes the three endpoints in machine-readable form.
To use WriteHuman from within Claude or another AI assistant without writing code, connect the MCP server.