humanize.beer logo humanize.beer

Developer API

Humanize text from your own app.

Humanize text or run AI detection from your own app. Prepaid credit, no surprises.

Read the docs
  • $0.28 / 1K words
  • 20–2,500 words per request
  • No overages
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."}'
200 OKtext/plain

AI has changed how we write. Tools can now turn out smooth paragraphs in seconds…

Console

Documentation

Quickstart

  1. 1
    Subscribe

    $100/month adds $100 of prepaid credit.

  2. 2
    Create a key

    In the console above. It’s shown once — store it as an environment variable.

  3. 3
    Send text

    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."}'

Authentication

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.

Request

POSThttps://humanize.beer/v1/humanize

JSON body with Content-Type: application/json, up to 256 KB.

FieldTypeDescription
textstring · requiredThe text to humanize, 20–2,500 words.
detectboolean · optionalRun the GPTZero AI-detection scan on the rewrite (default true). Set false to skip it and answer faster.

Response

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.

HeaderMeaning
X-Humanize-Input-WordsWords billed for this request.
X-Humanize-Charged-USDAmount deducted from your credit.
X-Humanize-GPTZerook when the scan ran, unavailable when it could not.
X-Humanize-Human-ScoreHuman probability, 0–100.
X-Humanize-AI-ScoreAI probability, 0–100.
X-Humanize-Mixed-ScoreMixed probability, 0–100.
X-Humanize-AI-DetectionPredicted class: human, ai or mixed.
X-Humanize-GPTZero-MsScan time in milliseconds.

Long texts can take up to a minute or two — set a generous client timeout.

Detect only

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.

POSThttps://humanize.beer/v1/detect

Same 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

Errors return JSON: {"error": {"code": "…", "message": "…"}}. Failed requests are never charged.

StatusCodeWhat to do
400invalid_json invalid_request invalid_lengthSend valid JSON with a text string of 20–2,500 words.
401invalid_api_keyCheck the key; it may be revoked.
402insufficient_creditNot enough credit left this period.
402credit_expiredCredit refills once the renewal payment succeeds.
403subscription_requiredSubscribe or fix the payment method.
405 413 415method_not_allowed invalid_json unsupported_media_typeUse POST, a body under 256 KB, and JSON.
5xxinternal_error upstream_unavailable api_unavailableTemporary — retry the same request after a short wait (for example 2, 5 and 10 seconds). You were not charged.

Pricing & credit

$0.28per 1,000 words · rewrite
$0.02per 1,000 words · detect
$0overage — ever
  • Each paid month adds $100 of credit. Rewrites cost exactly $0.00028 per input word; detection costs $0.00002 per input word.
  • Credit is reserved when a request starts, charged only on success and fully returned on failure.
  • Unused credit expires at the end of each billing period and does not roll over. New credit is added only after the renewal payment succeeds.
  • When credit runs out or expires, requests return 402. There are never automatic overage charges.