Rinse API

Rewrite and check AI text from your own code

One JSON call rewrites a draft in new words, keeps every number, strips hidden characters and returns an AI score. The same tools run over MCP for Claude and other agents.

REST + JSONMCP over HTTPNo key needed to try
Real responses, Oct 8, 2026
Request
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": "strong"}'
Response 200 · 13.1 s
{
  "output": "Quarterly revenue went up 18% to $4.2M, mostly thanks to enterprise renewals. 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": 35, "fakespot": 8 },
  "candidates": 4,
  "hidden_chars_removed": 1,
  "ai_words_fixed": 0,
  "words": 33,
  "chunks": 1,
  "strength": "strong",
  "tone": "standard",
  "ms": 13103
}

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.

Base URLhttps://rinsetext.pages.dev
EndpointWhat it doesStatus
POST /api/rewriteRewrites a draft in new words, locks numbers, links and quotes, strips hidden characters and returns an AI score.Live
POST /api/rewrite + contextRe-roll mode: add context to rewrite one sentence so it still fits the text around it.New
POST /api/detectScores text for AI writing, overall and sentence by sentence.New
POST /mcpThe 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"
  }'
200 Response
{
  "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
}
A real response from a call made on Oct 8, 2026. Yours will differ: Rinse writes several versions each time.
  • \u202f in 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, so hidden_chars_removed is 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.

API keys come with the Unlimited plan. Create one from your dashboard's Account screen and send it as 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.

POST/api/rewriteLive

Rewrite 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

textstringrequired

The 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"New

The 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

outputstring

The rewritten text.

rewordedinteger 0–100

Share of the original's 4-word phrases that no longer appear.

facts_keptboolean

true when every locked number, link, email and quote came back exactly once.

meaning_checkedboolean

true 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 | null

Rinse's AI check: the average of two open-source detectors. null if the check couldn't run.

ai_detailobject | null

Each detector's score: desklib (DeBERTa-v3) and fakespot (RoBERTa).

candidatesinteger

How many versions were written and passed the checks.

hidden_chars_removedinteger

Invisible characters removed and odd spaces normalized.

ai_words_fixedinteger

Stock AI words, such as "delve" or "tapestry", swapped out after the rewrite.

wordsinteger

Words in your text after cleaning.

chunksinteger

How many parts the text was split into. When it's more than 1, chunk_scores lists { words, ai_score } for each part.

strength, tonestring

What was used. Unknown values fall back to medium and standard.

msinteger

Time 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"}'
200 Response, Medium, standard tone
{
  "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
}
Real call, Oct 8, 2026, same draft as the quickstart. It ran before tone, chunks and ai_words_fixed were added.
POST/api/rewriteNew

Re-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

textstringrequired

The sentence to re-roll, 2 to 120 words.

contextstringrequired

The 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
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."
  }'
200 Response
{
  "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
}
Real call, Oct 8, 2026. context_ai_score stays high because the sentences around it are still AI-written.
POST/api/detectNew

Detect 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

textstringrequired

The text to check, 5 to 3,000 words.

Response

ai_scoreinteger 0–100

Overall score, a word-weighted average across the text.

verdictstring

Human 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_charsinteger

Word count, and invisible characters found.

detailobject

Each detector's overall score: desklib and fakespot.

msinteger

Time spent on the server, in milliseconds.

Why sentence scores can sit lower than the total. A short sentence on its own scores noisily, so each one is scored inside a window of its neighbours, about 40 to 80 words. Read them to compare sentences with each other.
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."}'
200 Response
{
  "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 }
}
Real call, Oct 8, 2026, on a paragraph written by Claude.
POST/mcpLive

MCP 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.

https://rinsetext.pages.dev/mcp

Messages are JSON-RPC 2.0 sent with POST. A tools/list call returns the tools below, and tools/call runs one:

cURL · list the tools
curl https://rinsetext.pages.dev/mcp \
  -H "content-type: application/json" \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/list"}'
cURL · call clean_characters
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."}}}'
200 Response
{
  "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
    }
  }
}
Real call, Oct 8, 2026. A narrow no-break space and a zero-width space were removed.

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_textLive

Rewrites 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_charactersLive

Removes zero-width, direction and other invisible characters and normalizes odd spaces. Doesn't change any words.

text

detect_aiNew

Scores 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_batchNew

Rewrites 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.

StatusWhenExample message
400The body isn't JSON, or the text has fewer than 5 words."Paste at least 5 words."
405You sent a GET. Use POST."POST {"text": "..."} to this URL."
413The 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."
429Too many requests from your IP in 10 minutes."Too many rewrites from this connection. Try again in a few minutes."
502The rewrite model or the detector didn't answer. Retry."The rewrite model did not answer. Try again."
503Detect only: the AI check isn't available on that server."The AI detector is not configured on this server."

Limits

Rewrite5 to 3,000 words per request
Re-rollOne sentence, 2 to 120 words
Detect5 to 3,000 words per request
Requests15 per 10 minutes per IP for each endpoint (60 for re-rolls)
TimeoutAllow 120 seconds. Strong rewrites took a median of 22 s in our Oct 14 benchmark; long documents up to about 60 s.
BrowsersNo CORS headers. Call the API from your server.
PythonSet 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.

Build with Rinse

The public endpoints are open today. Personal API keys are coming with the Unlimited plan.