Skip to content
TurnitPass
DevelopersAPI v1Get an API key
Browse documentation

DevelopersAPI Reference

TurnitPass REST API

Endpoints, parameters, limits, and error codes.

POST/api/v1/humanize

Lower AI-like writing signals in submitted text. Modes: reduce-aigc, reduce-both, paraphrase, academic-polish.

ParameterTypeDefaultDescription
textRequiredstring—Text to rewrite. At least 3 word units, up to 500 quality units per request.
languagestringenLanguage code, such as en or zh.
modeenumreduce-aigcreduce-aigc, reduce-both, paraphrase, academic-polish
personal_termsstring[]—Up to 30 names or terms to keep unchanged, each up to 120 characters.
Request
POST /api/v1/humanize
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "reduce-aigc" }
Response
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 },
  "metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}
POST/api/v1/paraphrase

Rewrite text in standard, fluency, formal, academic, simple, creative, expand, or shorten mode. synonyms_level ranges from 0 to 100.

ParameterTypeDefaultDescription
textRequiredstring—Text to rewrite. Up to 2,000 quality units per request.
languagestringenLanguage code, such as en or zh.
modeenumstandardstandard, fluency, formal, academic, simple, creative, expand, shorten
synonyms_levelinteger50How freely words are replaced, from 0 to 100.
Request
POST /api/v1/paraphrase
{ "text": "Paste the draft you want to revise.", "language": "en", "mode": "academic", "synonyms_level": 60 }
Response
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 }
}
POST/api/v1/rewrite

Academic polish for structure, tone, and sentence flow.

ParameterTypeDefaultDescription
textRequiredstring—Text to rewrite. At least 3 word units, up to 500 quality units per request.
languagestringenLanguage code, such as en or zh.
Request
POST /api/v1/rewrite
{ "text": "Paste the draft you want to revise.", "language": "en" }
Response
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 }
}
POST/api/v1/detect

Return an AI score, writing signals, and revision notes for pasted text or extracted documents. source_kind: paste, pdf, docx, or txt.

ParameterTypeDefaultDescription
textRequiredstring—Text to scan. Up to 5,000 words or 30,000 characters.
languagestringenLanguage code, such as en or zh.
source_kindenumpastepaste, pdf, docx, txt
original_filenamestring—Original file name, up to 255 characters.
Request
POST /api/v1/detect
{ "text": "Paste the draft you want to revise.", "language": "en", "source_kind": "paste" }
Response
200 OK
{
  "score": 62,
  "label": "…",
  "risk_level": "high",
  "signals": [{ "key": "…", "label": "…", "value": 0.7, "level": "medium", "detail": "…" }],
  "passages": [{ "text": "…", "label": "ai", "level": "high" }],
  "detection_quota": { "limit": 10, "remaining": 9, "resets_at": "2026-10-25T00:00:00Z" }
}
POST/api/v1/citation

Format a DOI, URL, or manual citation in 22 styles, including APA, MLA, Chicago, IEEE, Harvard, Nature, Vancouver, ACS, AMA, GB/T 7714, OSCOLA, and Bluebook. Responses include html, text, BibTeX, and RIS.

ParameterTypeDefaultDescription
inputstring—A DOI, URL, or citation title, up to 2,000 characters. Use this or citation.
citationobject—A citation object with title, authors, and source details. Use this or input.
stylestringapaCitation style key, such as apa, mla, or chicago.
Request
POST /api/v1/citation
{ "input": "10.1038/nature14539", "style": "apa" }
Response
200 OK
{
  "citation": { "title": "…", "authors": [{ "firstName": "…", "lastName": "…" }] },
  "style": "apa",
  "html": "…",
  "text": "…",
  "bibtex": "…",
  "ris": "…"
}
POST/api/v1/bibliography

Sort and format a list of citations in the requested style, with html and text output plus BibTeX and RIS exports.

ParameterTypeDefaultDescription
citationsRequiredobject[]—1 to 100 citation objects, each with an id and a title.
stylestringapaCitation style key, such as apa, mla, or chicago.
Request
POST /api/v1/bibliography
{ "citations": [{ "id": "1", "title": "…", "authors": [] }], "style": "apa" }
Response
200 OK
{
  "style": "apa",
  "entries": [{ "citation": { "id": "1" }, "html": "…", "text": "…" }],
  "html": "…",
  "text": "…",
  "bibtex": "…",
  "ris": "…"
}
GET/api/v1/status

Return the key name, remaining words, per-request limits, detection quota, and rate limit.

This endpoint takes no parameters.

Response
200 OK
{
  "name": "Production",
  "words_remaining": 2858,
  "max_humanize_quality_units": 500,
  "max_paraphrase_quality_units": 2000,
  "max_detection_words_per_request": 5000,
  "max_detection_characters": 30000,
  "detection_quota": { "limit": 10, "remaining": 9, "resets_at": "2026-10-25T00:00:00Z" },
  "rate_limit_per_minute": 50
}

Parameters and options

Auth
Authorization: Bearer tp_live_your_api_key
Humanize terms
Optional personal_terms array (up to 30) keeps names, technical terms, and brand spellings unchanged in English humanization.

Rate limits and request limits

Humanize and rewrite
500 quality units per requestOne CJK character counts as one unit; three other characters count as one, rounded up. All plans share the same limits.
Paraphrase
2,000 quality units per requestCounted the same way.
Detection
5,000 words or 30,000 characters per scanCounts against the daily scan allowance. Split longer documents.
Rate limits
50 requests per minute per keyCitation and bibliography allow 100 and don’t use words.
API keys
Up to 5 active keys

Error handling

Errors return JSON with error, code, and message fields.

400
invalid_input, quality_limit_exceeded, word_limit_exceeded
401
missing_api_key, invalid_api_key
403
insufficient_words, daily_detection_limit
429
rate_limited
500
internal_error
Response
400
{
  "error": "quality_limit_exceeded",
  "code": "quality_limit_exceeded",
  "message": "Up to 500 Chinese or 1,500 English characters per request."
}
Retry 429 and 5xx with backoff. Fix the request before retrying a 4xx.

Examples

Humanize
JSON
POST /api/v1/humanize
{
  "text": "Paste the draft you want to revise.",
  "language": "en",
  "mode": "reduce-aigc",
  "personal_terms": ["TurnitPass"]
}

200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 },
  "metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}
Paraphrase, detect, and citation
JSON
POST /api/v1/paraphrase
{
  "text": "Paste the draft you want to revise.",
  "language": "en",
  "mode": "academic",
  "synonyms_level": 60
}

POST /api/v1/detect
{
  "text": "Paste the draft you want to revise.",
  "language": "en",
  "source_kind": "paste"
}

POST /api/v1/citation
{
  "input": "https://example.com/article",
  "style": "apa"
}

Next steps