Skip to content

Humanizer and detector

Rewrite only the sentences that read as machine-written

The detector scores each sentence and returns the signals behind the score. The rewrite changes only the high ones, keeps names, numbers and quotes, and returns the diff.
POST/v1/humanizer/humanize
  1. It is important to note that the meeting has been moved The meeting moved to Thursday.

    score0.22

  2. Furthermore, all attendees are required to bring Everyone should bring the updated report.

    score0.19

0.20

Detector score

0 reads human, 1 reads machine-written

iterations 2words charged 23Sample output, not a live call

The problem sits in single sentences. So the fix works one sentence at a time.

Generated drafts share habits a reader notices: filler openers, sentences of the same length, the same stock phrases. Rewriting a whole document by hand is slow, and a tool that rewrites every sentence also changes the names and figures you needed to keep.

Who it is for

  • Content platforms that score submitted articles before an editor opens them
  • Writing tools with a rewrite button next to the draft and a view of what changed
  • Agencies that turn generated first drafts into a client's voice from a sample of the client's writing

One pipeline, two endpoints. Detect is the first half of humanize.

Two endpoints share one detector. Detect scores every sentence of your text and returns the signals behind each score. Humanize rewrites the sentences that score high, checks that names, numbers and quotes are unchanged, scores the result again and runs another pass on the sentences that are still high. Both run on open models we tune and host on our own servers.

What runs for one request

Steps, in order:

  1. Your text (input)
  2. Split and protect (check)
  3. Sentence scoring (model)
  4. Model registry (store)
  5. Scores per sentence (output)
  6. Tuned rewrite model (model)
  7. Fact and meaning checks (check)
  8. Quality gate (check)
  9. Rewrite with diff (output)

Connections:

  • Your text to Split and protect
  • Split and protect to Sentence scoring
  • Sentence scoring to Scores per sentence: detect
  • Sentence scoring to Tuned rewrite model: high sentences
  • Model registry to Tuned rewrite model: weights
  • Tuned rewrite model to Fact and meaning checks
  • Fact and meaning checks to Sentence scoring: rescore
  • Fact and meaning checks to Quality gate
  • Quality gate to Rewrite with diff: humanize
  1. 01 · prepare

    Split the text and protect what must stay

    Splits the text into sentences, detects language and genre, and marks names, numbers, dates and quoted passages as protected.

    Runs on
    CPU worker, before any model call
    Goes in
    text
    Comes out
    sentences[] with offsets and protected spans
  2. 02 · score

    Score every sentence

    A set of signals scores each sentence: perplexity under a small open language model, variation in sentence length and structure, lexical diversity, the rate of phrases overused in generated text, passive voice share and repeated structures. Detect stops here and returns the scores.

    Runs on
    Our GPU nodes for perplexity, CPU workers for the other signals
    Goes in
    sentences[]
    Comes out
    score and signals per sentence

    POST /v1/humanizer/detect returns here

  3. 03 · rewrite

    Rewrite the high-scoring sentences

    A rewrite model, fine-tuned and preference-tuned on pairs of generated and human text, rewrites each sentence above the target. Its instructions come from that sentence's signals, the strength you chose and, when you send one, your style sample.

    Runs on
    Our GPU nodes
    Goes in
    high-scoring sentences + signals
    Comes out
    candidate rewrites
  4. 04 · constrain

    Check that the facts survived

    Compares named entities, numbers and quotes before and after, checks that the meaning stayed close with an embedding similarity score, and keeps the length in range. Candidates that fail are dropped.

    Runs on
    CPU worker plus a small embedding model
    Goes in
    candidate rewrites
    Comes out
    accepted rewrites
  5. 05 · loop

    Run another pass on what is still high

    Scores the accepted rewrites again and sends only the sentences still above the target back to the rewrite step. The response reports the number of passes in iterations.

    Runs on
    The same nodes as the scoring and rewrite steps
    Goes in
    accepted rewrites
    Comes out
    rescored sentences
  6. 06 · gate

    Quality gate

    Checks grammar and readability of the rewritten text, and a judge model compares each rewrite with the original sentence.

    Runs on
    Our GPU nodes
    Goes in
    rescored sentences
    Comes out
    approved sentences
  7. 07 · assemble

    Return the text and the diff

    Normalizes unicode, joins the sentences and builds the diff plus the before and after score of each segment. With Accept: text/event-stream each segment is sent as soon as it is finished.

    Runs on
    API node
    Goes in
    approved sentences
    Comes out
    text, diff, segments, scores

    POST /v1/humanizer/humanize returns here

Offline, between releases. How the model gets retrained.

  1. 01Collect pairs of generated text and the same text rewritten by people
  2. 02Supervised fine-tune of the rewrite model on those pairs
  3. 03Preference tuning on rewrites that reviewers chose over others
  4. 04Reinforcement step that rewards rewrites our detector set scores as human, with the fact checks still passing
  5. 05Register the new weights in the model registry
  6. 06Weekly benchmark against an external test set
  7. 07Monthly retrain with the pairs collected since the last one

Then back to step 1, with the new pairs

Where it stops. What it does not do.

  • Per request: up to 5,000 words (40,000 characters) to humanize and up to 20,000 words (150,000 characters) to detect. The style sample is capped at 5,000 characters.
  • The detector score is a probability from 0 to 1, not proof of who wrote a text.
  • Sentences still above the target after the last pass come back with their score_after, so you can see what remains high.
  • Language is detected per request or set by you.
  • Sync and stream only. There is no batch job for large document sets.

Pick an input and a strength. See the response it would get.

Nothing here calls the API. These are sample responses in the real shape: only the medium memo is the documented example, and the other scores are illustrations, not measurements.

POST/v1/humanizer/humanizeSample output, not a live call
Sample input
Strength

Request body

text
It is important to note that the meeting has been moved to Thursday. Furthermore, all attendees are required to bring the updated report.
strength
"medium"
  1. It is important to note that the meeting has been moved The meeting moved to Thursday.

    Score before 0.81, after 0.22
  2. Furthermore, all attendees are required to bring Everyone should bring the updated report.

    Score before 0.77, after 0.19

Struck text was removed, underlined text was written in, and dotted text is protected.

status 200 OKscore 0.79 → 0.20iterations 2x-units-charged 23

Two endpoints, plain HTTP. JSON in, JSON or a stream out.

Both take the same key in the x-api-key header. Branch on error.code, never on the message.

  • POST/v1/humanizer/detect

    Scores every sentence and returns the signals behind each score.

    Answers
    Sync
    Meter
    humanizer.detect
  • POST/v1/humanizer/humanize

    Rewrites the high-scoring sentences and returns the diff.

    Answers
    Sync or stream
    Meter
    humanizer.humanize

Request

POST/v1/humanizer/humanizeTo stream, send Accept: text/event-stream on its own. A tie with application/json, or */*, returns JSON.

# Score the text (humanizer.detect meter)
curl "$BASE_URL/v1/humanizer/detect" \
  -H "x-api-key: sk_live_..." \
  -H "content-type: application/json" \
  -d '{"text": "It is important to note that the meeting has been moved to Thursday. Furthermore, all attendees are required to bring the updated report."}'

# Rewrite it (humanizer.humanize meter).
# Add -H "accept: text/event-stream" to receive each segment as it finishes.
curl "$BASE_URL/v1/humanizer/humanize" \
  -H "x-api-key: sk_live_..." \
  -H "content-type: application/json" \
  -d '{"text": "It is important to note that the meeting has been moved to Thursday. Furthermore, all attendees are required to bring the updated report.", "strength": "medium"}'

Sample responses

{
  "data": {
    "text": "The meeting moved to Thursday. Everyone should bring the updated report.",
    "score_before": 0.79,
    "score_after": 0.2,
    "iterations": 2,
    "diff": [
      {
        "op": "replace",
        "from": "It is important to note that the meeting has been moved",
        "to": "The meeting moved"
      },
      {
        "op": "equal",
        "text": " to Thursday. "
      },
      {
        "op": "replace",
        "from": "Furthermore, all attendees are required to bring",
        "to": "Everyone should bring"
      },
      {
        "op": "equal",
        "text": " the updated report."
      }
    ],
    "segments": [
      {
        "index": 0,
        "source": {
          "start": 0,
          "end": 68
        },
        "text": "The meeting moved to Thursday.",
        "score_before": 0.81,
        "score_after": 0.22,
        "changed": true
      },
      {
        "index": 1,
        "source": {
          "start": 69,
          "end": 137
        },
        "text": "Everyone should bring the updated report.",
        "score_before": 0.77,
        "score_after": 0.19,
        "changed": true
      }
    ],
    "words": 23
  },
  "meta": {
    "request_id": "3f1c9a52-7d4e-4b8a-9e21-6c0d5b7a8f13",
    "version": "1",
    "engine": "native",
    "module": "humanizer",
    "units": 23
  }
}

Errors you can get

  • validation_error400

    The body is not valid, text is empty, or a field is unknown.

  • unauthorized401

    The x-api-key header is missing, revoked or wrong.

  • forbidden403

    The key or the account is not allowed to call this endpoint.

  • not_entitled403

    Your account has no active humanizer plan or trial.

  • quota_exceeded403

    The humanize or detect meter has fewer words left than the request needs.

  • payload_too_large413

    The text is over the per-request word or character limit.

  • rate_limited429

    The key sent more requests per minute than its limit.

  • internal_error500

    Something failed on our side. The charge is refunded.

  • provider_error502

    Processing failed. Retry later; the charge is refunded.

What you are billed for

Unit
words
Counted as
Two meters. humanizer.humanize counts words of input text sent to POST /v1/humanizer/humanize. humanizer.detect counts words of input text sent to POST /v1/humanizer/detect. A word is a whitespace-separated token. The style sample is not charged.
Rounding
Whole words, counted from the input before processing. A processing failure refunds the charge. The trial adds 50,000 detect words to the humanize words shown here.
Trial on approval
15,000 words

Prices. Billed monthly, by invoice.

The detector and the rewrite model are open models we tune and run on our own servers, so the price is what the stack costs us to run plus a margin. The rewrite reads the detector's signals for each sentence, which is how it knows which sentences to leave alone.

Humanizer and detector tiers, billed monthly

Starter

Price
$5/month
Included
300,000 words
Limits
  • Plus 1,000,000 words of detection
Fits
Trying the rewrite on one product feature

Pro

Price
$19/month
Included
1,500,000 words
Limits
  • Plus 5,000,000 words of detection
Fits
A writing tool with daily users

Scale

Price
$49/month
Included
6,000,000 words
Limits
  • Plus 20,000,000 words of detection
Fits
Scoring and rewriting everything a publishing pipeline produces

Over the quota: write to us and we can raise it, or it resets next period.

All six APIs are also sold together: $19, $49 or $129 a month for the Starter, Pro or Scale quotas of every category. See the bundle on the pricing page

Before you apply. What to check first.

Will the rewrite change names, numbers or quotes?

Not by default. preserve.entities, preserve.numbers and preserve.quotes are all on, and the fact check compares them before and after every rewrite. You can switch each one off per request.

Is the detector score proof that a person did or did not write a text?

No. It is a probability built from measurable signals, returned per sentence so you can see what raised it. Use it to decide what to review.

What happens when I run out of words?

The API answers 403 quota_exceeded with the meter that ran out and the words left, and the request is not charged. Humanize and detect have separate meters, so one can run out while the other keeps working. Write to us and we can raise the quota on your account, or it resets next period.

Can it write in our house style?

Send style_sample with up to 5,000 characters of your own writing. The rewrite matches its tone and rhythm, and the sample is not charged.

Which languages work?

Language is detected per request, or you set it with the language field.

Where does my text go?

In production, requests run only on our own models on our own servers, so your text is not sent to a third-party model API.

Apply to use the humanizer and detector

Send an application and we review it within 72 hours. Approved accounts get credentials and a small trial, and we send invoices by hand.

Apply for access