AI Humanizer API Reference
Use a simple REST API to rewrite AI drafts, detect AI authorship, and monitor usage. Authenticate with request headers, pay by the word, and work with plain JSON.
https://prosevalo-test.pages.dev/v1Quickstart
Get up and running in under a minute.
Get your API key
Open your API dashboard. Choose an API plan and create a key. Keys are prefixed pv_live_.
Make your first request
curl -X POST https://prosevalo-test.pages.dev/v1/humanize \
-H "X-API-Key: pv_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"text": "Artificial intelligence has revolutionized the way we approach content creation.", "tone": "standard"}'See the response
Take humanized_textfrom the body and read quota to track your balance.
{
"success": true,
"humanized_text": "AI has changed how we create content and communicate online.",
"input_word_count": 14,
"output_word_count": 14,
"tone": "standard",
"truncated": false,
"response_time_ms": 1843,
"quota": {
"remaining": 98500,
"plan_words_remaining": 98500,
"pack_words_remaining": 0
}
}Authentication
All API requests require your key in the X-API-Keyheader. There is no OAuth flow and no session cookie. Create and manage keys from your API dashboard.
X-API-Key: pv_live_your_api_key_hereKeys use the prefix pv_live_followed by a unique token. The full key is shown once at creation — we only store a hash, so treat it like a password. Never ship a key in browser or mobile code; call the API from your backend and proxy the result. You can revoke any key at any time.
Retry a Text Request
Send Idempotency-Key with POST /v1/humanize or POST /v1/detect. For up to 24 hours, the same key and input return the saved response without charging again. Replays include Idempotency-Replayed: true. Different input or a request still in progress returns 409.
Plans & Limits
Choose a plan that fits your usage. All plans include a monthly word allowance that resets each billing cycle.
| Standard | Premium | |
|---|---|---|
| Monthly price | $24.00/mo | $59.00/mo |
| Monthly words | 150,000 | 500,000 |
| Max words per request | 2,000 | 4,000 |
| Rate limit | 60 req/min | 120 req/min |
| API keys | 2 | 5 |
Usage is tracked by input word count and shared across /v1/humanize and /v1/detect. Plan words are used first, followed by purchased packs. Both text endpoints share an account-wide rate limit.
Endpoint Reference
Five REST endpoints, one base URL, one API key. All requests authenticate the same way.
/v1/humanize
https://prosevalo-test.pages.dev/v1/humanize
Rewrite text in the selected tone. Successful requests deduct the input word count from your API balance. The per-request limit depends on your plan.
Request body — application/json
textRequiredstring
The text to humanize.
At least one word, up to your plan’s per-request limit
toneOptionalstring
Optional writing tone. Omit for the default style.
Allowed values: standard, professional, academic, blog, casual
Response body — application/json
successboolean
True when the request completed. Always check this first.
humanized_textstring
The rewritten text.
input_word_countinteger
Input words billed for this request.
output_word_countinteger
Words in the returned text.
tonestring
The tone that was applied.
truncatedboolean
Always false. Requests that exceed the word limit return 413.
response_time_msinteger
Server-side processing time in milliseconds.
quotaobject
Your remaining word balance after this request.
Fields: remaining (integer), plan_words_remaining (integer), pack_words_remaining (integer)
{
"success": true,
"humanized_text": "AI has changed how we create content and communicate online.",
"input_word_count": 14,
"output_word_count": 14,
"tone": "standard",
"truncated": false,
"response_time_ms": 1843,
"quota": {
"remaining": 98500,
"plan_words_remaining": 98500,
"pack_words_remaining": 0
}
}Error responses
Missing header
{ "success": false, "error": "No API key provided", "error_code": "missing_api_key" }Invalid, revoked or expired key
{ "success": false, "error": "Invalid API key", "error_code": "invalid_api_key" }No API access
{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }Text too short
{ "success": false, "error": "Enter at least one word", "error_code": "missing_text" }Text too long
{ "success": false, "error": "Text exceeds the per-request word limit", "error_code": "word_limit_exceeded" }Tone not available
{ "success": false, "error": "Tone is unavailable for this API plan", "error_code": "tone_not_available" }Rate limit
{ "success": false, "error": "API request rate exceeded", "error_code": "rate_limit_exceeded" }Quota exhausted
{ "success": false, "error": "API word quota exceeded", "error_code": "quota_exceeded" }Server error
{ "success": false, "error": "API request failed", "error_code": "service_unavailable" }/v1/detect
https://prosevalo-test.pages.dev/v1/detect
Score text for AI authorship. Billed per input word from the same balance as /v1/humanize. Returns an AI probability from 0 to 100 where higher means more likely machine-written, plus a convenience boolean derived from that score.
Request body — application/json
textRequiredstring
The text to score for AI authorship.
At least one word, up to your plan’s per-request limit
Response body — application/json
successboolean
True when the request completed.
ai_probabilitynumber
Likelihood the text was AI-generated.
0–100, higher = more likely AI
is_humanboolean
Convenience flag derived from the probability score.
ai_scorenumber
Raw detection score returned by the model.
word_countinteger
Words billed for this request.
response_time_msinteger
Server-side processing time in milliseconds.
quotaobject
Your remaining word balance after this request.
Fields: remaining (integer), plan_words_remaining (integer), pack_words_remaining (integer)
{
"success": true,
"ai_probability": 94.5,
"is_human": false,
"ai_score": 94.5,
"word_count": 215,
"response_time_ms": 1200,
"quota": {
"remaining": 97800,
"plan_words_remaining": 97800,
"pack_words_remaining": 0
}
}Error responses
Missing header
{ "success": false, "error": "No API key provided", "error_code": "missing_api_key" }Invalid, revoked or expired key
{ "success": false, "error": "Invalid API key", "error_code": "invalid_api_key" }No API access
{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }Text too short
{ "success": false, "error": "Enter at least one word", "error_code": "missing_text" }Text too long
{ "success": false, "error": "Text exceeds the per-request word limit", "error_code": "word_limit_exceeded" }Rate limit
{ "success": false, "error": "API request rate exceeded", "error_code": "rate_limit_exceeded" }Quota exhausted
{ "success": false, "error": "API word quota exceeded", "error_code": "quota_exceeded" }Server error
{ "success": false, "error": "API request failed", "error_code": "service_unavailable" }/v1/status
https://prosevalo-test.pages.dev/v1/status
Retrieve the limits configured on your key together with your current quota. Read-only — it never deducts words. Remaining balance = plan_words_remaining + pack_words_remaining.
No request body or query parameters. Send the API key header only.
Response body — application/json
namestring
The label you gave this key.
environmentstring
Key environment.
live
word_limit_per_requestinteger
Maximum words accepted in a single request.
rate_limit_per_minuteinteger
Requests allowed per minute on this key.
expires_atstring | null
ISO-8601 expiry timestamp, or null when the key does not expire.
quotaobject
Monthly allowance, usage so far, and remaining balance.
Fields: monthly_quota, monthly_used, plan_words_remaining, pack_words_remaining, total_remaining
{
"success": true,
"name": "My Production Key",
"created_at": "2026-07-24T09:00:00.000Z",
"last_used_at": "2026-07-25T10:00:00.000Z",
"environment": "live",
"word_limit_per_request": 2000,
"rate_limit_per_minute": 60,
"expires_at": null,
"quota": {
"monthly_quota": 150000,
"monthly_used": 1500,
"plan_words_remaining": 148500,
"pack_words_remaining": 50000,
"total_remaining": 198500
}
}Error responses
Missing header
{ "success": false, "error": "No API key provided", "error_code": "missing_api_key" }Invalid, revoked or expired key
{ "success": false, "error": "Invalid API key", "error_code": "invalid_api_key" }No API access
{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }/v1/usage
https://prosevalo-test.pages.dev/v1/usage
Retrieve account-wide daily usage grouped by date, endpoint, and status. This endpoint does not deduct words.
Optional query parameter days (1–90). The default is 30 days.
Response body — application/json
summaryobject
Request totals for the selected date range and plan words used during the current billing period.
Fields: total_requests (integer), success_rate (number), monthly_words_used (integer)
daily_breakdownobject[]
One row per date, endpoint, and status for the selected date range.
Fields: date, endpoint, status, requests, words
{
"success": true,
"summary": {
"total_requests": 842,
"success_rate": 99.1,
"monthly_words_used": 1500
},
"daily_breakdown": [
{
"date": "2026-07-25",
"endpoint": "humanize",
"status": "success",
"requests": 12,
"words": 4200
}
]
}Error responses
Missing header
{ "success": false, "error": "No API key provided", "error_code": "missing_api_key" }Invalid, revoked or expired key
{ "success": false, "error": "Invalid API key", "error_code": "invalid_api_key" }No API access
{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }/v1/tones
https://prosevalo-test.pages.dev/v1/tones
List the writing tones you can pass to /v1/humanize. The available flag reflects your own plan — premium tones report available: false until you upgrade. Read-only, no words deducted.
No request body or query parameters. Send the API key header only.
Response body — application/json
has_premium_accessboolean
True when your plan unlocks premium tones.
tonesobject[]
Every active tone, ordered for display.
Fields: key (string), label (string), requires_pro (boolean), available (boolean)
{
"success": true,
"has_premium_access": true,
"tones": [
{ "key": "standard", "label": "Standard", "requires_pro": false, "available": true },
{ "key": "professional", "label": "Professional", "requires_pro": true, "available": true }
]
}Error responses
Missing header
{ "success": false, "error": "No API key provided", "error_code": "missing_api_key" }Invalid, revoked or expired key
{ "success": false, "error": "Invalid API key", "error_code": "invalid_api_key" }No API access
{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }Code Examples
Production-shaped snippets with error handling and backoff on rate limits.
import os, time, requests
BASE = "https://prosevalo-test.pages.dev/v1"
HEADERS = {"X-API-Key": os.environ["PROSEVALO_API_KEY"]}
def humanize(text, tone="standard", retries=3):
for attempt in range(retries):
r = requests.post(
f"{BASE}/humanize",
headers=HEADERS,
json={"text": text, "tone": tone},
timeout=60,
)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", 2 ** attempt)))
continue
data = r.json()
if not data.get("success"):
raise RuntimeError(data.get("error_code", "unknown_error"))
return data["humanized_text"]
raise RuntimeError("rate_limit_exceeded")Tones
Pass any of these keys as the tone parameter on /v1/humanize. Call GET /v1/tones at runtime to see which ones your own plan unlocks.
standardStandardprofessionalProfessionalPremiumacademicAcademicPremiumblogBlogPremiumcasualCasualPremiumSupport
Send us the endpoint, your request body and the error_code you received and we'll dig in. Custom limits and volume pricing are available on request.


