cookbook · Restyler · Final pass on human writing
Clean up your own draft with strict mode
When you wrote the text yourself and only want the machine-sounding tells gone, use strict mode. It turns em dashes into the punctuation the sentence needs, ends exclamations with a full stop and drops filler openers like "Moreover," and "It's worth noting that", and leaves every other word as you wrote it. It runs without a model call, so it is free: the usage below is zero tokens and $0.00.
The draft
Thanks for joining the beta — it means a lot to us! Moreover, your feedback has already shaped three changes. It's worth noting that the export button now lives under Settings, not the dashboard. We'll send the next build on 3 December — keep an eye on your inbox!
Request
POST /v1/restyle, documented in the Restyler reference.
curl https://meragpt.com/v1/restyle \
-H "Authorization: Bearer $MERAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "restyler-1",
"mode": "strict",
"text": "Thanks for joining the beta — it means a lot to us! Moreover, your feedback has already shaped three changes. It'\''s worth noting that the export button now lives under Settings, not the dashboard. We'\''ll send the next build on 3 December — keep an eye on your inbox!"
}'What came back
The real output from running this recipe, unedited.
{
"text": "Thanks for joining the beta; it means a lot to us. Your feedback has already shaped three changes. The export button now lives under Settings, not the dashboard. We'll send the next build on 3 December — keep an eye on your inbox.",
"blocks": [
{
"index": 0,
"words": 49,
"status": "rewritten"
}
],
"rewritten": 1,
"total": 1,
"usage": {
"input_tokens": 0,
"output_tokens": 0,
"total_tokens": 0,
"cost_usd": "$0.00"
}
}Python
import os, requests
API = "https://meragpt.com/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MERAGPT_API_KEY']}"}
draft = "Thanks for joining the beta \u2014 it means a lot to us! Moreover, your feedback has already shaped three changes. It's worth noting that the export button now lives under Settings, not the dashboard. We'll send the next build on 3 December \u2014 keep an eye on your inbox!"
r = requests.post(f"{API}/restyle", headers=HEADERS, json={"model": "restyler-1", "mode": "strict", "text": draft}).json()
print(r["text"])
print("cost:", r["usage"]["cost_usd"]) # strict mode makes no model call
TypeScript
const API = "https://meragpt.com/v1";
const headers = {
Authorization: `Bearer ${process.env.MERAGPT_API_KEY}`,
"Content-Type": "application/json",
};
const draft = "Thanks for joining the beta \u2014 it means a lot to us! Moreover, your feedback has already shaped three changes. It's worth noting that the export button now lives under Settings, not the dashboard. We'll send the next build on 3 December \u2014 keep an eye on your inbox!";
const r = await fetch(`${API}/restyle`, {
method: "POST",
headers,
body: JSON.stringify({ model: "restyler-1", mode: "strict", text: draft }),
}).then((res) => res.json());
console.log(r.text);
console.log("cost:", r.usage.cost_usd); // strict mode makes no model call
When to trust it
Strict mode cannot change your meaning: it only removes or swaps punctuation and stock openers. It is also not exhaustive. In this run it fixed the first em dash and left the second one ("3 December — keep an eye on your inbox") in place, so do a last read if you want every dash gone. Use the default mode instead when the goal is reading as human-written; strict mode is for writing that is already yours.
Try it without code in the playground, or see more Restyler recipes: restyle a draft, then check the numbers, rewrite release notes without losing a version number, restyle a batch of product descriptions.