Humanizer and detector
Rewrite only the sentences that read as machine-written
It is important to note that the meeting has been movedThe meeting moved to Thursday.score0.22
Furthermore, all attendees are required to bringEveryone should bring the updated report.score0.19
Detector score
0 reads human, 1 reads machine-written
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.
Steps, in order:
- Your text (input)
- Split and protect (check)
- Sentence scoring (model)
- Model registry (store)
- Scores per sentence (output)
- Tuned rewrite model (model)
- Fact and meaning checks (check)
- Quality gate (check)
- 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
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
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
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
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
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
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
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.
- 01Collect pairs of generated text and the same text rewritten by people
- 02Supervised fine-tune of the rewrite model on those pairs
- 03Preference tuning on rewrites that reviewers chose over others
- 04Reinforcement step that rewards rewrites our detector set scores as human, with the fact checks still passing
- 05Register the new weights in the model registry
- 06Weekly benchmark against an external test set
- 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.
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"
It is important to note that the meeting has been movedThe meeting moved to Thursday.Score before 0.81, after 0.22Furthermore, all attendees are required to bringEveryone 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.
whole text
The meeting moved to Thursday.
before0.81after0.22Everyone should bring the updated report.
before0.77after0.19
Accept: text/event-stream
{
"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
}
}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/detectScores every sentence and returns the signals behind each score.
- Answers
- Sync
- Meter
humanizer.detect
POST/v1/humanizer/humanizeRewrites 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"}'const BASE_URL = process.env.BASE_URL;
const headers = { "x-api-key": "sk_live_...", "content-type": "application/json" };
const text = "It is important to note that the meeting has been moved to Thursday. Furthermore, all attendees are required to bring the updated report.";
const detect = await fetch(BASE_URL + "/v1/humanizer/detect", {
method: "POST",
headers,
body: JSON.stringify({ text }),
}).then((res) => res.json());
console.log(detect.data.verdict, detect.data.score);
// Add "accept": "text/event-stream" to the headers to stream segments.
const res = await fetch(BASE_URL + "/v1/humanizer/humanize", {
method: "POST",
headers,
body: JSON.stringify({ text, strength: "medium" }),
});
if (!res.ok) {
const { error } = await res.json();
throw new Error(error.code); // for example quota_exceeded
}
const { data, meta } = await res.json();
console.log(data.text, data.score_before, data.score_after, meta.units);import os
import requests
BASE_URL = os.environ["BASE_URL"]
headers = {"x-api-key": "sk_live_..."}
text = "It is important to note that the meeting has been moved to Thursday. Furthermore, all attendees are required to bring the updated report."
detect = requests.post(f"{BASE_URL}/v1/humanizer/detect", headers=headers, json={"text": text}).json()
print(detect["data"]["verdict"], detect["data"]["score"])
res = requests.post(
f"{BASE_URL}/v1/humanizer/humanize",
headers=headers,
json={"text": text, "strength": "medium"},
)
if not res.ok:
raise RuntimeError(res.json()["error"]["code"])
body = res.json()
print(body["data"]["text"], body["data"]["score_after"], body["meta"]["units"])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
}
}{
"data": {
"score": 0.18,
"verdict": "human",
"segments": [
{
"index": 0,
"start": 0,
"end": 30,
"score": 0.21,
"signals": {
"perplexity": 41.2,
"burstiness": 0.62,
"lexical_diversity": 1,
"ai_word_rate": 0
}
},
{
"index": 1,
"start": 31,
"end": 82,
"score": 0.16,
"signals": {
"perplexity": 47.9,
"burstiness": 0.62,
"lexical_diversity": 1,
"ai_word_rate": 0
}
}
],
"words": 14
},
"meta": {
"request_id": "3f1c9a52-7d4e-4b8a-9e21-6c0d5b7a8f13",
"version": "1",
"engine": "native",
"module": "humanizer",
"units": 14
}
}validation_error400The body is not valid, text is empty, or a field is unknown.
unauthorized401The x-api-key header is missing, revoked or wrong.
forbidden403The key or the account is not allowed to call this endpoint.
not_entitled403Your account has no active humanizer plan or trial.
quota_exceeded403The humanize or detect meter has fewer words left than the request needs.
payload_too_large413The text is over the per-request word or character limit.
rate_limited429The key sent more requests per minute than its limit.
internal_error500Something failed on our side. The charge is refunded.
provider_error502Processing 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.
| Starter | Pro | Scale | |
|---|---|---|---|
| Price | $5/month | $19/month | $49/month |
| Included | 300,000 words | 1,500,000 words | 6,000,000 words |
| Limits |
|
|
|
| Fits | Trying the rewrite on one product feature | A writing tool with daily users | Scoring and rewriting everything a publishing pipeline produces |
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.