Take 71% OFF
🔥 Get Started⚡ Get Started
Prosevalo Developer API v1 Reference

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.

Base URLhttps://prosevalo-test.pages.dev/v1

Quickstart

Get up and running in under a minute.

1

Get your API key

Open your API dashboard. Choose an API plan and create a key. Keys are prefixed pv_live_.

2

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

See the response

Take humanized_textfrom the body and read quota to track your balance.

200 OK
{
  "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_here

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

StandardPremium
Monthly price$24.00/mo$59.00/mo
Monthly words150,000500,000
Max words per request2,0004,000
Rate limit60 req/min120 req/min
API keys25

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.

POST

/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

textRequired

string

The text to humanize.

At least one word, up to your plan’s per-request limit

toneOptional

string

Optional writing tone. Omit for the default style.

Allowed values: standard, professional, academic, blog, casual

200Text humanized successfully

Response body — application/json

success

boolean

True when the request completed. Always check this first.

humanized_text

string

The rewritten text.

input_word_count

integer

Input words billed for this request.

output_word_count

integer

Words in the returned text.

tone

string

The tone that was applied.

truncated

boolean

Always false. Requests that exceed the word limit return 413.

response_time_ms

integer

Server-side processing time in milliseconds.

quota

object

Your remaining word balance after this request.

Fields: remaining (integer), plan_words_remaining (integer), pack_words_remaining (integer)

Example response
{
  "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

401Missing or invalid API key.

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" }
403Your plan does not include API access.

No API access

{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }
400 / 413Invalid input or unavailable tone.

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" }
402 / 429Rate limit exceeded or word quota exhausted.

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" }
500Processing failure.

Server error

{ "success": false, "error": "API request failed", "error_code": "service_unavailable" }
POST

/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

textRequired

string

The text to score for AI authorship.

At least one word, up to your plan’s per-request limit

200Text scored successfully

Response body — application/json

success

boolean

True when the request completed.

ai_probability

number

Likelihood the text was AI-generated.

0–100, higher = more likely AI

is_human

boolean

Convenience flag derived from the probability score.

ai_score

number

Raw detection score returned by the model.

word_count

integer

Words billed for this request.

response_time_ms

integer

Server-side processing time in milliseconds.

quota

object

Your remaining word balance after this request.

Fields: remaining (integer), plan_words_remaining (integer), pack_words_remaining (integer)

Example response
{
  "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

401Missing or invalid API key.

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" }
403Your plan does not include API access.

No API access

{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }
400 / 413Invalid input.

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" }
402 / 429Rate limit exceeded or word quota exhausted.

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" }
500Processing failure.

Server error

{ "success": false, "error": "API request failed", "error_code": "service_unavailable" }
GET

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

200Key status returned

Response body — application/json

name

string

The label you gave this key.

environment

string

Key environment.

live

word_limit_per_request

integer

Maximum words accepted in a single request.

rate_limit_per_minute

integer

Requests allowed per minute on this key.

expires_at

string | null

ISO-8601 expiry timestamp, or null when the key does not expire.

quota

object

Monthly allowance, usage so far, and remaining balance.

Fields: monthly_quota, monthly_used, plan_words_remaining, pack_words_remaining, total_remaining

Example response
{
  "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

401Missing or invalid API key.

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" }
403Your plan does not include API access.

No API access

{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }
GET

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

200Usage returned

Response body — application/json

summary

object

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_breakdown

object[]

One row per date, endpoint, and status for the selected date range.

Fields: date, endpoint, status, requests, words

Example response
{
  "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

401Missing or invalid API key.

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" }
403Your plan does not include API access.

No API access

{ "success": false, "error": "An active API subscription is required", "error_code": "subscription_required" }
GET

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

200Tones returned

Response body — application/json

has_premium_access

boolean

True when your plan unlocks premium tones.

tones

object[]

Every active tone, ordered for display.

Fields: key (string), label (string), requires_pro (boolean), available (boolean)

Example response
{
  "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

401Missing or invalid API key.

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" }
403Your plan does not include API access.

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.

standardStandardprofessionalProfessionalPremiumacademicAcademicPremiumblogBlogPremiumcasualCasualPremium

Support

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.