Credit
This billing period
- Credit expires
- —
- Next payment
- —
Developer API
Humanize text or run AI detection from your own app. Prepaid credit, no surprises.
curl https://humanize.beer/v1/humanize \
-H "Authorization: Bearer $HUMANIZE_BEER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Artificial intelligence has transformed the way we write, offering tools that draft fluent paragraphs in seconds."}'
const res = await fetch('https://humanize.beer/v1/humanize', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HUMANIZE_BEER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ text }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const humanized = await res.text();
import os, requests
res = requests.post(
"https://humanize.beer/v1/humanize",
headers={"Authorization": f"Bearer {os.environ['HUMANIZE_BEER_API_KEY']}"},
json={"text": text},
timeout=300,
)
res.raise_for_status()
humanized = res.text
AI has changed how we write. Tools can now turn out smooth paragraphs in seconds…
Subscribe, watch your credit and create keys. The documentation below is open to everyone.
Sign inAPI plan
Includes $100 of credit every paid month — about 357,142 words.
Unused credit expires at the end of each billing period. Cancel anytime.
Credit
API keys
Copy your new key now. For your security it won’t be shown again.
$100/month adds $100 of prepaid credit.
In the console above. It’s shown once — store it as an environment variable.
POST it to /v1/humanize, read the plain-text reply and the GPTZero score headers.
curl https://humanize.beer/v1/humanize \
-H "Authorization: Bearer $HUMANIZE_BEER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Artificial intelligence has transformed the way we write, offering tools that draft fluent paragraphs in seconds."}'
const res = await fetch('https://humanize.beer/v1/humanize', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.HUMANIZE_BEER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ text }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const humanized = await res.text();
import os, requests
res = requests.post(
"https://humanize.beer/v1/humanize",
headers={"Authorization": f"Bearer {os.environ['HUMANIZE_BEER_API_KEY']}"},
json={"text": text},
timeout=300,
)
res.raise_for_status()
humanized = res.text
Send your key as a Bearer token on every request:
Authorization: Bearer hb_api_…
Keep keys on your server — never in browser or mobile code. You can have up to five active keys, and revoking one takes effect immediately. An active API subscription is required.
https://humanize.beer/v1/humanizeJSON body with Content-Type: application/json, up to 256 KB.
| Field | Type | Description |
|---|---|---|
text | string · required | The text to humanize, 20–2,500 words. |
detect | boolean · optional | Run the GPTZero AI-detection scan on the rewrite (default true). Set false to skip it and answer faster. |
200 OK with the humanized text as text/plain; charset=utf-8. The rewrite is also scanned with GPTZero and the human/AI scores come back as headers, the same detector the website shows beside a rewrite.
The API has one fixed rewrite mode and takes only text (plus detect). A 200 always means a finished rewrite; failures always use an error status, never a 200 with an error message. If the detector is briefly unavailable the rewrite still returns 200 with X-Humanize-GPTZero: unavailable.
| Header | Meaning |
|---|---|
X-Humanize-Input-Words | Words billed for this request. |
X-Humanize-Charged-USD | Amount deducted from your credit. |
X-Humanize-GPTZero | ok when the scan ran, unavailable when it could not. |
X-Humanize-Human-Score | Human probability, 0–100. |
X-Humanize-AI-Score | AI probability, 0–100. |
X-Humanize-Mixed-Score | Mixed probability, 0–100. |
X-Humanize-AI-Detection | Predicted class: human, ai or mixed. |
X-Humanize-GPTZero-Ms | Scan time in milliseconds. |
Long texts can take up to a minute or two — set a generous client timeout.
Need the AI score without a rewrite? POST /v1/detect runs the same GPTZero scan on the text you send and returns the report as JSON. It costs $0.02 per 1,000 input words.
https://humanize.beer/v1/detectSame authentication and JSON body as the rewrite endpoint, with text of 25–2,500 words.
curl https://humanize.beer/v1/detect -H "Authorization: Bearer $HUMANIZE_BEER_API_KEY" -H "Content-Type: application/json" -d '{"text": "Your text here…"}'
200 OK returns JSON:
{
"ok": true,
"human": 0.97,
"ai": 0.02,
"mixed": 0.01,
"predicted_class": "human",
"confidence": "high",
"sentences": [{ "text": "…", "ai_prob": 0.01, "highlight": false }],
"words": 120,
"ms": 1840
}
Probabilities are 0–1. If the detector is unavailable the request returns 502 and is not charged. The response also carries X-Detect-Input-Words and X-Detect-Charged-USD headers.
Errors return JSON: {"error": {"code": "…", "message": "…"}}. Failed requests are never charged.
| Status | Code | What to do |
|---|---|---|
| 400 | invalid_json invalid_request invalid_length | Send valid JSON with a text string of 20–2,500 words. |
| 401 | invalid_api_key | Check the key; it may be revoked. |
| 402 | insufficient_credit | Not enough credit left this period. |
| 402 | credit_expired | Credit refills once the renewal payment succeeds. |
| 403 | subscription_required | Subscribe or fix the payment method. |
| 405 413 415 | method_not_allowed invalid_json unsupported_media_type | Use POST, a body under 256 KB, and JSON. |
| 5xx | internal_error upstream_unavailable api_unavailable | Temporary — retry the same request after a short wait (for example 2, 5 and 10 seconds). You were not charged. |
402. There are never automatic overage charges.