# Changelog Source: https://docs.gpthuman.ai/api-reference/changelog # Changelog All notable changes to the GPTHuman API and documentation will be documented in this file. ## 1.0.1 – 2026-08-14 ### What's changed ⚡️ * Increased the maximum accepted input length from 2,000 to 2,500 words. ## 1.0.0 – 2026-04-21 ### What's changed ⚡️ * Initial public release of the GPTHuman API. * Introduced `POST /v1/humanize` endpoint for transforming AI-generated text. * Added standardized error schema. # Introduction Source: https://docs.gpthuman.ai/api-reference/introduction Overview of the GPTHuman REST API # Welcome to the GPTHuman API The GPTHuman API enables you to **transform AI-generated text into natural, human-sounding prose**. This documentation covers everything you need to integrate GPTHuman into your application, including authentication, credit usage, and the `POST /v1/humanize` response fields returned by the live API. Looking for a quick start? Jump straight to the [`POST /v1/humanize`](/api-reference/v1/humanize/post) endpoint or experiment in the interactive playground on the right. ## Usage ### Credits & pricing • **1 word = 1 credit.** The number of credits consumed equals the word count of the `text` field in your request. • **Credit packages.** Credits are purchased as packages from the API dashboard: [API Dashboard](https://app.gpthuman.ai/api). The API Dashboard displays your remaining credits and the available credit packages. ## Versions Current stable version: **1.0.0** (see the [Changelog](/api-reference/changelog)). Future releases will follow semantic versioning. ## Authentication All requests require an **API key** passed as a Bearer token in the `Authorization` header: ```http theme={null} Authorization: Bearer YOUR_API_KEY ``` You can create and manage keys from your GPTHuman API dashboard. ## Request defaults If you omit optional request settings, the API applies the following defaults: * `tone`: `College` * `mode`: `Balanced` ## Response metadata Successful `POST /v1/humanize` responses include the rewritten output together with usage and analysis metadata such as: * detected `language` * `similarity` and `readability` * `humanScore` when available * input and output counts * `creditUsage` and remaining `creditBalance` # MCP Server Source: https://docs.gpthuman.ai/api-reference/mcp-server A Model Context Protocol (MCP) server providing access to GPTHuman's API A Model Context Protocol (MCP) server providing access to GPTHuman's API, the leading platform for rewriting AI-generated text into more natural, human-sounding prose, with AI-detector metadata returned when available. This allows any MCP-compatible client (Cursor, Claude Desktop, Windsurf, etc.) to call the humanizer tool natively. The server is shipped as a single `humanize_text` tool that rewrites AI-generated text into a more natural, human-sounding variant, while preserving the requested tone and rewrite mode. ## Quick Start You can run the server directly and test it in 60 seconds: ```bash theme={null} export GPTHUMAN_API_KEY=your-api-key-here npx -y @gpthuman/mcp-server ``` To test the server interactively with the MCP Inspector before wiring it up to Cursor or Claude: ```bash theme={null} npx @modelcontextprotocol/inspector npx -y @gpthuman/mcp-server ``` ## Requirements * **Node.js**: `>= 22.0.0` * **GPTHuman API key**: Get one at [GPTHuman.ai](https://gpthuman.ai) ## Configuration The server reads a single environment variable: | Variable | Required | Description | | :- | :- | :- | | `GPTHUMAN_API_KEY` | Yes | Your GPTHuman API key. | ## Installation ### Cursor Add the server to `~/.cursor/mcp.json` (or your workspace `.cursor/mcp.json`): ```json theme={null} { "mcpServers": { "gpthuman": { "command": "npx", "args": ["-y", "@gpthuman/mcp-server"], "env": { "GPTHUMAN_API_KEY": "your-api-key-here" } } } } ``` > [!NOTE] > > **Security Note:** While the example above places the `GPTHUMAN_API_KEY` directly in JSON, we recommend using environment variables or local secret storage when possible. Never commit `.cursor/mcp.json` with real API keys to version control. ### Claude Desktop Add it to `claude_desktop_config.json`: ```json theme={null} { "mcpServers": { "gpthuman": { "command": "npx", "args": ["-y", "@gpthuman/mcp-server"], "env": { "GPTHUMAN_API_KEY": "your-api-key-here" } } } } ``` ### Other clients Any MCP client that supports the stdio transport can run the server with: ```bash theme={null} GPTHUMAN_API_KEY=your-api-key-here npx -y @gpthuman/mcp-server ``` ## Tools ### `humanize_text` Transforms AI-generated text into a more natural, human-sounding variant designed to bypass AI detectors, while preserving the requested tone and rewrite mode. **Input parameters** | Name | Type | Required | Default | Description | | :- | :- | :- | :- | :- | | `text` | string | Yes | — | The text to humanize. Must be **at least 250 characters** and **at most 2,500 words**. | | `tone` | enum | No | `College` | Target reading level / tone. One of `Standard`, `HighSchool`, `College`, `PhD`. | | `mode` | enum | No | `Balanced` | Rewrite strategy. One of `Professional`, `Balanced`, `Enhanced`. | **Output** The tool returns two content blocks: 1. The humanized text (the primary payload). 2. A markdown summary with metadata: AI-detector human score, similarity to original, readability, detected language, applied tone and mode, input/output word and character counts, credit usage, remaining credit balance, and the request ID. **Example call (from an MCP client)** ```json theme={null} { "name": "humanize_text", "arguments": { "text": "Your AI-generated text of at least 250 characters goes here...", "tone": "College", "mode": "Balanced" } } ``` ## Remote MCP Endpoint If you don’t want to run the MCP server locally, you can call GPTHuman’s hosted MCP endpoint directly. It is a Streamable HTTP MCP server served over HTTPS that speaks JSON-RPC 2.0 and returns JSON responses. This is useful for custom agents, backend workflows, automation platforms, or internal tools that want to integrate GPTHuman without managing a local MCP process. ### Endpoint ```http theme={null} POST https://api.gpthuman.ai/mcp ``` ### Headers | Header | Required | Value | | :- | :- | :- | | `Authorization` | Yes | `Bearer YOUR_GPTHUMAN_API_KEY` | | `Content-Type` | Yes | `application/json` | | `Accept` | Yes | `application/json, text/event-stream` | > [!NOTE] > > The Streamable HTTP transport requires the `Accept` header to list both `application/json` and `text/event-stream`. Requests that only accept `application/json` may be rejected. ### Humanize text (Remote) Use `tools/call` with the `humanize_text` tool to transform AI-generated text into more natural, human-sounding writing. ```bash theme={null} curl --location 'https://api.gpthuman.ai/mcp' \ --header 'Authorization: Bearer YOUR_GPTHUMAN_API_KEY' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json, text/event-stream' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "humanize_text", "arguments": { "text": "Your AI-generated text of at least 250 characters goes here...", "tone": "College", "mode": "Balanced" } } }' ``` > [!NOTE] > > When using the remote endpoint, pass your API key as a bearer token in the `Authorization` header. Do not include it in the tool's `arguments` payload. ### Connecting an MCP client to the remote endpoint MCP clients that support Streamable HTTP can connect to the hosted server by URL. For example, in Cursor's `mcp.json`: ```json theme={null} { "mcpServers": { "gpthuman": { "url": "https://api.gpthuman.ai/mcp", "headers": { "Authorization": "Bearer your-api-key-here" } } } } ``` ## Troubleshooting * **401 Unauthorized:** Invalid or missing API key. Verify your `GPTHUMAN_API_KEY` is set correctly. * **400 Bad Request:** The text provided is under 250 characters or over 2,500 words. * **429 Too Many Requests:** Rate limit exceeded or insufficient credits. * **Node version issue:** Ensure you are using Node >=22. * **`humanScore: null`:** The detector score is unavailable for that specific language or content type. # Humanize Text Source: https://docs.gpthuman.ai/api-reference/v1/humanize/post POST /v1/humanize Transforms the provided text into a more natural, human-sounding variant while preserving the requested tone and rewrite mode.