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.

ParameterTypeDescription
textstringRequired. Text to rewrite (15 words minimum).
tonestringWriting tone: standard, conversational, academic, professional, simple, creative. Default: standard.
intensitystringlight, balanced, strong. Default: balanced.
languagestringOutput language: fr, en, es, de, it, pt. Empty: same language as the text.
use_stylebooleanImitates your “Your style” reference texts. Default: false.
streambooleanStreams 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"}'

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}'

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": "..."}'
{
  "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." } }
CodetypeMeaning
400invalid_request_errorInvalid request: unreadable JSON, text too short…
401authentication_errorMissing, invalid or revoked key.
402quota_exceededMonthly word quota used up.
403permission_errorYour plan does not include the API or this option.
404not_found_errorUnknown endpoint.
413payload_too_largeText too long for your plan.
422validation_errorInvalid parameter (tone, intensity, language, type).
429rate_limit_errorToo many requests: wait the number of seconds given in Retry-After.
503service_unavailableRewriting engine temporarily unavailable: try again later.

Limits

PlanRequests / minute / keyWords / monthWords / request
Pro2050,0001,500
Premium60250,0004,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.

Try the API in the interactive reference →