Developers
The Plumes API.
Rewrite AI-generated text so it sounds natural, and estimate how much of a text is AI, straight from your application, your CMS or your scripts.
Quick start
The API is a REST API that takes and returns JSON. It is included in the Pro and Premium plans and shares your account's monthly word quota with the website.
1. Create a key
In “My account” › API. It is shown only once: keep it somewhere safe.
2. Send a text
A POST request to /v1/humanize with your text and the tone and intensity you want.
3. Get the result
The rewritten text, the AI score before and after, and the words left this month.
Base URL: https://plumes.dev/v1
Authentication
Every request must carry your key in the Authorization header. Keys start with plumes_sk_. The website's session cookies are not accepted by the API.
Authorization: Bearer plumes_sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
You can have up to 5 active keys (one per application, for example) and revoke a key at any time: it stops working immediately.
Never put your key in code that runs in your visitors' browsers: call the API from your server.
Rewrite a text
POST/v1/humanize
Rewrites the text so it sounds natural, keeping the meaning, the facts and the paragraph structure. Words in the input text count towards your monthly quota.
| Parameter | Type | Description |
|---|---|---|
text | string | Required. Text to rewrite (15 words minimum). |
tone | string | Writing tone: standard, conversational, academic, professional, simple, creative. Default: standard. |
intensity | string | light, balanced, strong. Default: balanced. |
language | string | Output language: fr, en, es, de, it, pt. Empty: same language as the text. |
use_style | boolean | Imitates your “Your style” reference texts. Default: false. |
stream | boolean | Streams the result as it is produced (Server-Sent Events). Default: false. |
curl https://plumes.dev/v1/humanize \
-H "Authorization: Bearer $PLUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Effective communication plays a crucial role in the modern workplace...", "tone": "professional", "intensity": "balanced"}'
import os
import requests
resp = requests.post(
"https://plumes.dev/v1/humanize",
headers={"Authorization": f"Bearer {os.environ['PLUME_API_KEY']}"},
json={"text": text, "tone": "professional", "intensity": "balanced"},
timeout=300,
)
resp.raise_for_status()
data = resp.json()
print(data["output"])
print(data["ai_score_before"], "->", data["ai_score_after"])
const resp = await fetch("https://plumes.dev/v1/humanize", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.PLUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ text, tone: "professional", intensity: "balanced" }),
});
if (!resp.ok) throw new Error((await resp.json()).error.message);
const data = await resp.json();
console.log(data.output);
Response
{
"id": "hum_5f2c9a1e0b7d4c3a2e1f0a9b",
"output": "Teams that talk to each other well get more done...",
"words": 182,
"tone": "professional",
"intensity": "balanced",
"language": "en",
"ai_score_before": 91,
"ai_score_after": 18,
"usage": { "words_charged": 182, "words_remaining": 49818 }
}
AI scores are heuristic estimates from our detector (0 to 100), not a guarantee.
Streaming
With "stream": true, the response is a text/event-stream: delta events (chunks of text), then a done event that repeats the summary above. If something goes wrong, an error event is sent.
event: delta
data: {"text": "Teams that talk to each other well get more done."}
event: delta
data: {"text": " Sharing information is the easy part."}
event: done
data: {"id": "hum_…", "output": "…", "ai_score_after": 18, "usage": {…}}
curl -N https://plumes.dev/v1/humanize \
-H "Authorization: Bearer $PLUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "...", "stream": true}'
import json, os, requests
with requests.post(
"https://plumes.dev/v1/humanize",
headers={"Authorization": f"Bearer {os.environ['PLUME_API_KEY']}"},
json={"text": text, "stream": True},
stream=True, timeout=300,
) as resp:
event = None
for line in resp.iter_lines(decode_unicode=True):
if line.startswith("event: "):
event = line[7:]
elif line.startswith("data: "):
data = json.loads(line[6:])
if event == "delta":
print(data["text"], end="", flush=True)
elif event == "done":
print("\nAI score:", data["ai_score_after"])
const resp = await fetch("https://plumes.dev/v1/humanize", {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.PLUME_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ text, stream: true }),
});
const reader = resp.body.pipeThrough(new TextDecoderStream()).getReader();
let buffer = "";
for (;;) {
const { value, done } = await reader.read();
if (done) break;
buffer += value;
const events = buffer.split("\n\n");
buffer = events.pop();
for (const block of events) {
const event = block.match(/^event: (.*)$/m)?.[1];
const data = JSON.parse(block.match(/^data: (.*)$/m)?.[1] ?? "null");
if (event === "delta") process.stdout.write(data.text);
if (event === "done") console.log("\nAI score:", data.ai_score_after);
}
}
Detect AI text
POST/v1/detect
Estimates the probability that a text was written by AI, with the signals found and the sentences highlighted. Free (no words counted), 20 to 2000 words per request, subject to the rate limit.
curl https://plumes.dev/v1/detect \
-H "Authorization: Bearer $PLUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "..."}'
resp = requests.post(
"https://plumes.dev/v1/detect",
headers={"Authorization": f"Bearer {os.environ['PLUME_API_KEY']}"},
json={"text": text},
timeout=60,
)
result = resp.json()
print(result["score"], result["verdict"])
const resp = await fetch("https://plumes.dev/v1/detect", {
method: "POST",
headers: { "Authorization": `Bearer ${process.env.PLUME_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ text }),
});
const { score, verdict, signals } = await resp.json();
{
"score": 87,
"verdict": "ai",
"verdict_label": "Probablement IA",
"language": "en",
"words": 154,
"signals": [{ "kind": "ai", "label": "…", "detail": "…", "strength": 2.4 }],
"sentences": [{ "start": 0, "end": 92, "level": "high", "reasons": ["…"] }],
"highlights": [{ "start": 0, "end": 26, "category": "opener", "label": "…", "why": "…" }],
"stats": { "sentences": 7, "mean_sentence": 22.1, "variation": 21, "diversity": 86, "markers": 9 }
}
verdict is ai, mixed or human. The start / end positions are character offsets in the text you sent.
Usage
GET/v1/usage
Your plan, the words used and left this month (website and API combined) and your limits.
curl https://plumes.dev/v1/usage -H "Authorization: Bearer $PLUME_API_KEY"
{
"plan": { "id": "pro", "name": "Pro" },
"api_access": true,
"period": { "start": "2026-12-01T00:00:00+00:00", "end": "2027-01-01T00:00:00+00:00" },
"words_used": 12450,
"words_remaining": 37550,
"words_used_by_source": { "web": 8200, "api": 4250 },
"limits": { "monthly_words": 50000, "max_words_per_request": 1500, "requests_per_minute": 20, … }
}
Available options
GET/v1/options
The list of accepted tones, intensities and languages, with their descriptions. No key required.
curl https://plumes.dev/v1/options
Error codes
All errors have the same shape. The message, in English, is meant for developers.
{ "error": { "type": "quota_exceeded", "message": "Monthly quota exceeded: 120 words left this month for a 400-word text." } }
| Code | type | Meaning |
|---|---|---|
| 400 | invalid_request_error | Invalid request: unreadable JSON, text too short… |
| 401 | authentication_error | Missing, invalid or revoked key. |
| 402 | quota_exceeded | Monthly word quota used up. |
| 403 | permission_error | Your plan does not include the API or this option. |
| 404 | not_found_error | Unknown endpoint. |
| 413 | payload_too_large | Text too long for your plan. |
| 422 | validation_error | Invalid parameter (tone, intensity, language, type). |
| 429 | rate_limit_error | Too many requests: wait the number of seconds given in Retry-After. |
| 503 | service_unavailable | Rewriting engine temporarily unavailable: try again later. |
Limits
| Plan | Requests / minute / key | Words / month | Words / request |
|---|---|---|---|
| Pro | 20 | 50,000 | 1,500 |
| Premium | 60 | 250,000 | 4,000 |
Every authenticated response carries the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers (seconds until a request slot frees up). A 429 response also includes Retry-After.
The word quota is shared between the website and the API, and resets on the 1st of each month. The detector does not use any words.
Best practices
- Keep your keys on the server side, in an environment variable, with one key per application: you can revoke one without cutting off the others.
- Allow a generous timeout (up to a few minutes for a long text) or use streaming to display the text as it arrives.
- On a 429 or 503, retry after the indicated delay, increasing the wait between attempts.
- Split very long documents into groups of paragraphs, below your plan's per-request word limit.
- Check GET /v1/usage before a batch job to see your remaining quota.
- Texts sent to the API are not kept after processing.