Overview
The Rinse API is plain HTTPS and JSON. Send a POST with content-type: application/json and you get JSON back, including on errors.
https://rinsetext.pages.dev| Endpoint | What it does | Status |
|---|---|---|
POST /api/rewrite | Rewrites a draft in new words, locks numbers, links and quotes, strips hidden characters and returns an AI score. | Live |
POST /api/rewrite + context | Re-roll mode: add context to rewrite one sentence so it still fits the text around it. | New |
POST /api/detect | Scores text for AI writing, overall and sentence by sentence. | New |
POST /mcp | The same tools over the Model Context Protocol, for Claude and other agents. | Live |
Quickstart
Send a draft and get it back rewritten. No sign-up or key needed. Pick your language:
curl https://rinsetext.pages.dev/api/rewrite \
-H "content-type: application/json" \
-d '{
"text": "Quarterly revenue rose 18% to $4.2M, driven primarily by enterprise renewals.\u202fFurthermore, it is important to note that customer churn decreased to 2.1%, which represents a significant improvement compared to the previous year.",
"strength": "medium",
"tone": "professional"
}'// Node 18+, Deno, Bun or any server runtime with fetch
const res = await fetch('https://rinsetext.pages.dev/api/rewrite', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
text: 'Quarterly revenue rose 18% to $4.2M, driven primarily by enterprise renewals.\u202fFurthermore, it is important to note that customer churn decreased to 2.1%, which represents a significant improvement compared to the previous year.',
strength: 'medium',
tone: 'professional',
}),
});
const data = await res.json();
if (!res.ok) throw new Error(data.error);
console.log(data.output, data.ai_score);import json
import urllib.request
body = json.dumps({
"text": "Quarterly revenue rose 18% to $4.2M, driven primarily by enterprise renewals.\u202fFurthermore, it is important to note that customer churn decreased to 2.1%, which represents a significant improvement compared to the previous year.",
"strength": "medium",
"tone": "professional",
}).encode()
req = urllib.request.Request(
"https://rinsetext.pages.dev/api/rewrite",
data=body,
headers={
"content-type": "application/json",
# Cloudflare blocks Python's default user agent, so name your app
"user-agent": "my-app/1.0",
},
)
with urllib.request.urlopen(req, timeout=120) as r:
data = json.load(r)
print(data["output"], data["ai_score"]){
"output": "Quarterly revenue rose 18% to $4.2M, driven mainly by enterprise renewals. Customer churn dropped to 2.1%. That’s a clear improvement over last year.",
"reworded": 84,
"facts_kept": true,
"meaning_checked": true,
"ai_score": 40,
"ai_detail": { "desklib": 62, "fakespot": 18 },
"candidates": 4,
"hidden_chars_removed": 1,
"ai_words_fixed": 0,
"words": 33,
"chunks": 1,
"strength": "medium",
"tone": "professional",
"ms": 12081
}
\u202fin the sample is a narrow no-break space, a hidden character that shows up in some AI output. Rinse turned it into a normal space, sohidden_chars_removedis 1.- Allow 120 seconds. This Medium call took 12 s. Strong took a median of 22 s per rewrite in our Oct 14 benchmark (long documents up to about 60 s), so set your HTTP timeout to at least 120 s.
- Call it from a server. The API doesn't send CORS headers, so browsers block calls from other websites.
Keys and access
The public endpoints are open: no account and no key. They're limited per IP address so they stay available for everyone.
Authorization: Bearer rinse_…. Without a key, requests work too, up to 500 words per rewrite.Rate limits
Each free endpoint allows 15 requests per 10 minutes from one IP address. Sentence re-rolls have their own allowance of 60 per 10 minutes. Over the limit you get HTTP 429 with an error message. Wait a few minutes and try again.
The count is kept per server instance, so treat 15 as a guide rather than an exact cut-off.
/api/rewriteLiveRewrite text
Rewrites a draft in new words. Before the rewrite, numbers, amounts, links, emails and quoted text are swapped for locked tokens so the model can't change them. Rinse writes several versions, scores each with its AI check, fact-checks the most human ones and returns the best.
Body
textstringrequiredThe draft, 5 to 500 words without a key, or up to 3,000 words with an Unlimited plan key. Longer texts are split at paragraph breaks into parts of about 350 to 600 words that are rewritten in parallel.
strengthstringdefault "medium"How much to change.
lightOne version. Keeps the sentence order and swaps in plain, everyday words.mediumSeveral versions are scored by the AI check and the most human one that passes the fact check wins. In the standard tone each version is written in one pass in a plain professional voice: up to 8 for a one-paragraph draft, 3 per paragraph for 2 to 4 paragraphs, 2 per paragraph for 5 or more. Other tones write each version in two passes: a person's voice, then loosened.strongLike medium with more versions: in the standard tone, up to 12 for a one-paragraph draft (plus a repair of the sentences that still read most like AI), 4 per paragraph for 2 to 4 paragraphs, and 3 per paragraph for 5 or more. Other tones use a looser second pass, and if every version of a one-paragraph draft still reads as AI, Rinse writes another batch.tonestringdefault "standard"NewThe voice of the rewrite.
standardPlain, everyday words, like a person writing to a colleague.academicFormal and precise, for course papers. Hedges like "may" and "suggests" stay as strong as they were.professionalPlain, direct business English.casualRelaxed and conversational, like telling a friend.simpleShort, common words, at about an 8th-grade reading level.Response
outputstringThe rewritten text.
rewordedinteger 0–100Share of the original's 4-word phrases that no longer appear.
facts_keptbooleantrue when every locked number, link, email and quote came back exactly once.
meaning_checkedbooleantrue when a second model pass found nothing added, dropped or changed. If no version passed, you get the one that read most human, with false.
ai_scoreinteger 0–100 | nullRinse's AI check: the average of two open-source detectors. null if the check couldn't run.
ai_detailobject | nullEach detector's score: desklib (DeBERTa-v3) and fakespot (RoBERTa).
candidatesintegerHow many versions were written and passed the checks.
hidden_chars_removedintegerInvisible characters removed and odd spaces normalized.
ai_words_fixedintegerStock AI words, such as "delve" or "tapestry", swapped out after the rewrite.
wordsintegerWords in your text after cleaning.
chunksintegerHow many parts the text was split into. When it's more than 1, chunk_scores lists { words, ai_score } for each part.
strength, tonestringWhat was used. Unknown values fall back to medium and standard.
msintegerTime spent on the server, in milliseconds.
curl https://rinsetext.pages.dev/api/rewrite \
-H "content-type: application/json" \
-d '{"text": "Your draft here", "strength": "strong", "tone": "standard"}'const res = await fetch('https://rinsetext.pages.dev/api/rewrite', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ text: draft, strength: 'strong', tone: 'standard' }),
});
const data = await res.json();
if (!res.ok) throw new Error(data.error);req = urllib.request.Request(
"https://rinsetext.pages.dev/api/rewrite",
data=json.dumps({"text": draft, "strength": "strong", "tone": "standard"}).encode(),
headers={"content-type": "application/json", "user-agent": "my-app/1.0"},
)
with urllib.request.urlopen(req, timeout=120) as r:
data = json.load(r){
"output": "Quarterly revenue went up 18% to $4.2M. Big driver was enterprise renewals. And churn dropped to 2.1%. That's a real improvement over last year.",
"reworded": 97,
"facts_kept": true,
"meaning_checked": true,
"ai_score": 22,
"ai_detail": { "desklib": 43, "fakespot": 0 },
"candidates": 4,
"hidden_chars_removed": 1,
"words": 33,
"strength": "medium",
"ms": 9624
}
tone, chunks and ai_words_fixed were added./api/rewriteNewRe-roll a sentence
Add context to rewrite just one sentence. Rinse writes three versions that fit the text around it, scores each one in place, and returns the one that reads most human.
Body
textstringrequiredThe sentence to re-roll, 2 to 120 words.
contextstringrequiredThe text around the sentence. Rinse keeps up to about 250 words on each side.
strengthstringdefault "strong"light, medium or strong.
tonestringdefault "standard"Same tones as a full rewrite.
Response
Returns mode: "sentence", output, reworded, facts_kept, hidden_chars_removed, words, strength, tone and ms, plus context_ai_score: the AI score of the surrounding text with the new sentence in place.
curl https://rinsetext.pages.dev/api/rewrite \
-H "content-type: application/json" \
-d '{
"text": "Furthermore, it is important to note that customer churn decreased to 2.1%, which represents a significant improvement compared to the previous year.",
"context": "Quarterly revenue rose 18% to $4.2M, driven primarily by enterprise renewals. Furthermore, it is important to note that customer churn decreased to 2.1%, which represents a significant improvement compared to the previous year. The team expects continued momentum into Q4."
}'
{
"mode": "sentence",
"output": "And churn fell to 2.1%, a real improvement over last year.",
"reworded": 100,
"facts_kept": true,
"context_ai_score": 82,
"hidden_chars_removed": 0,
"words": 22,
"strength": "strong",
"tone": "standard",
"ms": 3908
}
context_ai_score stays high because the sentences around it are still AI-written./api/detectNewDetect AI
Scores text for AI writing with the same two open-source detectors as the rewrite check. You get an overall score, a verdict and a score for every sentence.
Body
textstringrequiredThe text to check, 5 to 3,000 words.
Response
ai_scoreinteger 0–100Overall score, a word-weighted average across the text.
verdictstringHuman under 50, Mixed from 50 to 69, AI at 70 and above.
sentencesarray{ text, ai, para } for each sentence: its text, its score from 0 to 100 and its paragraph number.
words, hidden_charsintegerWord count, and invisible characters found.
detailobjectEach detector's overall score: desklib and fakespot.
msintegerTime spent on the server, in milliseconds.
curl https://rinsetext.pages.dev/api/detect \
-H "content-type: application/json" \
-d '{"text": "Writing clear documentation is an essential skill for any software developer. Good documentation helps teammates understand how a system works, reduces the time spent answering repetitive questions, and makes onboarding new engineers significantly easier. The most useful documentation focuses on the why behind decisions, not just the how, and includes practical examples that readers can follow. It is also important to keep documentation close to the code it describes and to update it whenever behavior changes. Treating documentation as part of the development process, rather than an afterthought, leads to more maintainable software."}'const res = await fetch('https://rinsetext.pages.dev/api/detect', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ text }),
});
const scan = await res.json();
if (!res.ok) throw new Error(scan.error);
const flagged = scan.sentences.filter(s => s.ai >= 70);req = urllib.request.Request(
"https://rinsetext.pages.dev/api/detect",
data=json.dumps({"text": text}).encode(),
headers={"content-type": "application/json", "user-agent": "my-app/1.0"},
)
with urllib.request.urlopen(req, timeout=120) as r:
scan = json.load(r)
print(scan["ai_score"], scan["verdict"]){
"ai_score": 99,
"verdict": "AI",
"sentences": [
{ "text": "Writing clear documentation is an essential skill for any software developer.", "ai": 50, "para": 0 },
{ "text": "Good documentation helps teammates understand how a system works, reduces the time spent answering repetitive questions, and makes onboarding new engineers significantly easier.", "ai": 50, "para": 0 },
{ "text": "The most useful documentation focuses on the why behind decisions, not just the how, and includes practical examples that readers can follow.", "ai": 42, "para": 0 },
{ "text": "It is also important to keep documentation close to the code it describes and to update it whenever behavior changes.", "ai": 47, "para": 0 },
{ "text": "Treating documentation as part of the development process, rather than an afterthought, leads to more maintainable software.", "ai": 51, "para": 0 }
],
"words": 93,
"hidden_chars": 0,
"ms": 2180,
"detail": { "desklib": 98, "fakespot": 100 }
}
/mcpLiveMCP endpoint
Rinse runs a remote MCP server: Streamable HTTP, stateless, no sign-in. Point any MCP client at this URL. For Claude, follow the connector setup.
Messages are JSON-RPC 2.0 sent with POST. A tools/list call returns the tools below, and tools/call runs one:
curl https://rinsetext.pages.dev/mcp \
-H "content-type: application/json" \
-d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'
curl https://rinsetext.pages.dev/mcp \
-H "content-type: application/json" \
-d '{"jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": {"name": "clean_characters", "arguments": {"text": "The launch is set for March 3.\u202fEarly results look strong\u200b and the team is on track."}}}'
{
"jsonrpc": "2.0",
"id": 3,
"result": {
"content": [{ "type": "text", "text": "The launch is set for March 3. Early results look strong and the team is on track." }],
"isError": false,
"structuredContent": {
"text": "The launch is set for March 3. Early results look strong and the team is on track.",
"hidden_chars_removed": 2
}
}
}
Tools
What the MCP server exposes. Each rewrite in a batch counts toward the rate limit. Tool errors come back as a normal result with isError: true and a message Claude can read.
rewrite_textLiveRewrites a draft in new words and keeps every number, link and quote. Returns the text plus how much was reworded and its AI score. Up to 500 words without a key, 3,000 with one.
textstrengthtone
clean_charactersLiveRemoves zero-width, direction and other invisible characters and normalizes odd spaces. Doesn't change any words.
text
detect_aiNewScores text for AI writing with the same check as /api/detect and lists the sentences scoring 60% or more. 5 to 3,000 words.
text
rewrite_batchNewRewrites 1 to 5 separate texts in one call (500 words in total without a key, 3,000 with one), each with its own score. Part of the Unlimited plan.
textsstrengthtone
Errors
Errors use standard HTTP status codes and a JSON body with one field: {"error": "…"}. The message is written for people, so you can show it as is. The examples below are real responses.
| Status | When | Example message |
|---|---|---|
400 | The body isn't JSON, or the text has fewer than 5 words. | "Paste at least 5 words." |
405 | You sent a GET. Use POST. | "POST {"text": "..."} to this URL." |
413 | The text is over 3,000 words, or a re-roll is over 120. | "Rinse takes up to 3,000 words at a time. This has 3,200." |
429 | Too many requests from your IP in 10 minutes. | "Too many rewrites from this connection. Try again in a few minutes." |
502 | The rewrite model or the detector didn't answer. Retry. | "The rewrite model did not answer. Try again." |
503 | Detect only: the AI check isn't available on that server. | "The AI detector is not configured on this server." |
Limits
| Rewrite | 5 to 3,000 words per request |
| Re-roll | One sentence, 2 to 120 words |
| Detect | 5 to 3,000 words per request |
| Requests | 15 per 10 minutes per IP for each endpoint (60 for re-rolls) |
| Timeout | Allow 120 seconds. Strong rewrites took a median of 22 s in our Oct 14 benchmark; long documents up to about 60 s. |
| Browsers | No CORS headers. Call the API from your server. |
| Python | Set a user-agent. Cloudflare blocks urllib's default one (error 1010). |
Privacy
Rinse doesn't store or log the text you send. To rewrite it, the text goes to open AI models through OpenRouter (DeepSeek and Qwen) and to Rinse's own AI-check service, which runs the two open-source detectors. Rinse never uses Claude or Gemini to rewrite, because both watermark the text they write. More on the privacy page.